diff --git a/.eatahorse-integrate-forge-guardrails-opt-in-tool-c/activity.jsonl b/.eatahorse-integrate-forge-guardrails-opt-in-tool-c/activity.jsonl deleted file mode 100644 index b1601f8..0000000 --- a/.eatahorse-integrate-forge-guardrails-opt-in-tool-c/activity.jsonl +++ /dev/null @@ -1,57 +0,0 @@ -{"action": "init", "at": "2026-07-03T23:40:10Z", "detail": {"goal": "Integrate forge-guardrails (opt-in tool-call guardrails for local LLMs) into anyllm-proxy. Backend port is DONE already (uncommitted): crates/proxy/src/tools/guardrails.rs (lsp_first/quiet_command/write_payload_cap nudges, fingerprint dedup), wired into both tool loops (tools/execution/mod.rs, server/chat_completions/stream/generic/tool_loop.rs), config via SimpleConfig.build_tool_guardrail_config (config/simple/types.rs, tool_builder.rs), env fallback FORGE_TOOL_CALL_POLICY in main_helpers/async_main/tools.rs, ToolEngineState.guardrails wired through state.rs/routes.rs, docs updated (CONFIG.md, ENV.md, configuration-and-modes.md), tests updated. Remaining verified gaps to plan/execute: (1) main_helpers/async_main/tools.rs init_tool_engine early-returns None when tool_config.has_any() is false, so FORGE_TOOL_CALL_POLICY alone (no YAML tool_execution block) never takes effect -- the target local-LLM-env-var-only use case is currently broken; fix has_any()/init gating and add a test for env-var-only init with no YAML. (2) LiteLLM YAML config format has no tool_config path at all (config/multi/loader.rs) -- document this limitation explicitly, do not build support for it now. (3) No admin UI surface exists for tool_execution config at all (admin-ui/src has zero references); optionally add a RuntimeConfig field + Settings.tsx toggle following the repo's documented 6-site RuntimeConfig-field checklist (struct + RuntimeConfigDefaults + 3 constructors + SQLite override-apply match in main.rs + delete_config_override reset in admin/routes/config.rs) -- treat as optional/lower priority than (1)/(2). (4) No CLI flag needed -- env var is this repo's existing convention for backend toggles, do not add a second mechanism. Produce a Kanban board of small, independently-completable tasks for items (1), (2), and optionally (3), plus a changelog bullet task per repo release process (CHANGELOG.md [Unreleased]).", "project": "forge-guardrails integration finish"}} -{"action": "add", "at": "2026-07-03T23:40:25Z", "detail": {"id": "EH-0001", "title": "Make FORGE_TOOL_CALL_POLICY alone initialize the guardrail engine (no YAML)"}} -{"action": "add", "at": "2026-07-03T23:40:34Z", "detail": {"id": "EH-0002", "title": "Document that LiteLLM YAML format cannot carry tool_execution/guardrails config"}} -{"action": "add", "at": "2026-07-03T23:40:45Z", "detail": {"id": "EH-0003", "title": "Add CHANGELOG [Unreleased] bullet for opt-in tool-call guardrails"}} -{"action": "add", "at": "2026-07-03T23:40:55Z", "detail": {"id": "EH-0004", "title": "(Optional) Admin UI + RuntimeConfig toggle for guardrail mode"}} -{"action": "sync", "at": "2026-07-03T23:41:00Z", "detail": {"board": "/Users/whit3rabbit/Documents/GitHub/anyllm/.eatahorse-integrate-forge-guardrails-opt-in-tool-c", "completed": 0, "dropped_missing": 0, "imported": 0, "moved": 0, "tasks": 4, "updated": 4}} -{"action": "drop", "at": "2026-07-03T23:47:21Z", "detail": {"id": "EH-0004"}} -{"action": "add", "at": "2026-07-03T23:47:21Z", "detail": {"id": "EH-0005", "title": "Backend: add tool_guardrail_mode RuntimeConfig field (6-site checklist)"}} -{"action": "add", "at": "2026-07-03T23:47:21Z", "detail": {"id": "EH-0006", "title": "Admin UI: guardrail mode toggle in Settings.tsx"}} -{"action": "sync", "at": "2026-07-03T23:47:29Z", "detail": {"board": "/Users/whit3rabbit/Documents/GitHub/anyllm/.eatahorse-integrate-forge-guardrails-opt-in-tool-c", "completed": 0, "dropped_missing": 0, "imported": 0, "moved": 0, "tasks": 6, "updated": 6}} -{"action": "move", "at": "2026-07-04T15:50:50Z", "detail": {"id": "EH-0001", "status": "doing"}} -{"action": "check", "at": "2026-07-04T15:52:33Z", "detail": {"group": "bites", "id": "EH-0001", "index": 1}} -{"action": "sync", "at": "2026-07-04T15:52:43Z", "detail": {"board": "/Users/whit3rabbit/Documents/GitHub/anyllm/.eatahorse-integrate-forge-guardrails-opt-in-tool-c", "completed": 0, "dropped_missing": 0, "imported": 0, "moved": 0, "tasks": 6, "updated": 6}} -{"action": "check", "at": "2026-07-04T15:54:03Z", "detail": {"group": "bites", "id": "EH-0001", "index": 2}} -{"action": "sync", "at": "2026-07-04T15:54:11Z", "detail": {"board": "/Users/whit3rabbit/Documents/GitHub/anyllm/.eatahorse-integrate-forge-guardrails-opt-in-tool-c", "completed": 0, "dropped_missing": 0, "imported": 0, "moved": 0, "tasks": 6, "updated": 6}} -{"action": "check", "at": "2026-07-04T15:59:34Z", "detail": {"group": "bites", "id": "EH-0001", "index": 3}} -{"action": "check", "at": "2026-07-04T15:59:34Z", "detail": {"group": "bites", "id": "EH-0001", "index": 4}} -{"action": "check", "at": "2026-07-04T15:59:34Z", "detail": {"group": "bites", "id": "EH-0001", "index": 5}} -{"action": "check", "at": "2026-07-04T15:59:55Z", "detail": {"group": "acceptance", "id": "EH-0001", "index": 1}} -{"action": "check", "at": "2026-07-04T15:59:55Z", "detail": {"group": "acceptance", "id": "EH-0001", "index": 2}} -{"action": "check", "at": "2026-07-04T15:59:55Z", "detail": {"group": "acceptance", "id": "EH-0001", "index": 3}} -{"action": "sync", "at": "2026-07-04T16:00:03Z", "detail": {"board": "/Users/whit3rabbit/Documents/GitHub/anyllm/.eatahorse-integrate-forge-guardrails-opt-in-tool-c", "completed": 0, "dropped_missing": 0, "imported": 0, "moved": 0, "tasks": 6, "updated": 6}} -{"action": "move", "at": "2026-07-04T16:02:05Z", "detail": {"id": "EH-0002", "status": "doing"}} -{"action": "check", "at": "2026-07-04T16:02:45Z", "detail": {"group": "bites", "id": "EH-0002", "index": 1}} -{"action": "check", "at": "2026-07-04T16:02:54Z", "detail": {"group": "bites", "id": "EH-0002", "index": 2}} -{"action": "sync", "at": "2026-07-04T16:03:14Z", "detail": {"board": "/Users/whit3rabbit/Documents/GitHub/anyllm/.eatahorse-integrate-forge-guardrails-opt-in-tool-c", "completed": 0, "dropped_missing": 0, "imported": 0, "moved": 0, "tasks": 6, "updated": 6}} -{"action": "check", "at": "2026-07-04T16:04:46Z", "detail": {"group": "bites", "id": "EH-0002", "index": 3}} -{"action": "check", "at": "2026-07-04T16:04:46Z", "detail": {"group": "acceptance", "id": "EH-0002", "index": 1}} -{"action": "check", "at": "2026-07-04T16:04:46Z", "detail": {"group": "acceptance", "id": "EH-0002", "index": 2}} -{"action": "check", "at": "2026-07-04T16:04:46Z", "detail": {"group": "acceptance", "id": "EH-0002", "index": 3}} -{"action": "sync", "at": "2026-07-04T16:04:54Z", "detail": {"board": "/Users/whit3rabbit/Documents/GitHub/anyllm/.eatahorse-integrate-forge-guardrails-opt-in-tool-c", "completed": 0, "dropped_missing": 0, "imported": 0, "moved": 0, "tasks": 6, "updated": 6}} -{"action": "move", "at": "2026-07-04T16:06:49Z", "detail": {"id": "EH-0003", "status": "doing"}} -{"action": "check", "at": "2026-07-04T16:07:46Z", "detail": {"group": "bites", "id": "EH-0003", "index": 1}} -{"action": "check", "at": "2026-07-04T16:07:46Z", "detail": {"group": "acceptance", "id": "EH-0003", "index": 1}} -{"action": "check", "at": "2026-07-04T16:07:46Z", "detail": {"group": "acceptance", "id": "EH-0003", "index": 2}} -{"action": "sync", "at": "2026-07-04T16:07:46Z", "detail": {"board": "/Users/whit3rabbit/Documents/GitHub/anyllm/.eatahorse-integrate-forge-guardrails-opt-in-tool-c", "completed": 0, "dropped_missing": 0, "imported": 0, "moved": 0, "tasks": 6, "updated": 5}} -{"action": "move", "at": "2026-07-04T16:09:10Z", "detail": {"id": "EH-0005", "status": "doing"}} -{"action": "check", "at": "2026-07-04T16:10:35Z", "detail": {"group": "bites", "id": "EH-0005", "index": 1}} -{"action": "sync", "at": "2026-07-04T16:10:41Z", "detail": {"board": "/Users/whit3rabbit/Documents/GitHub/anyllm/.eatahorse-integrate-forge-guardrails-opt-in-tool-c", "completed": 0, "dropped_missing": 0, "imported": 0, "moved": 0, "tasks": 6, "updated": 6}} -{"action": "check", "at": "2026-07-04T16:13:44Z", "detail": {"group": "bites", "id": "EH-0005", "index": 2}} -{"action": "sync", "at": "2026-07-04T16:13:51Z", "detail": {"board": "/Users/whit3rabbit/Documents/GitHub/anyllm/.eatahorse-integrate-forge-guardrails-opt-in-tool-c", "completed": 0, "dropped_missing": 0, "imported": 0, "moved": 0, "tasks": 6, "updated": 6}} -{"action": "check", "at": "2026-07-04T16:27:09Z", "detail": {"group": "bites", "id": "EH-0005", "index": 3}} -{"action": "check", "at": "2026-07-04T16:27:52Z", "detail": {"group": "acceptance", "id": "EH-0005", "index": 1}} -{"action": "check", "at": "2026-07-04T16:27:53Z", "detail": {"group": "acceptance", "id": "EH-0005", "index": 3}} -{"action": "sync", "at": "2026-07-04T16:28:21Z", "detail": {"board": "/Users/whit3rabbit/Documents/GitHub/anyllm/.eatahorse-integrate-forge-guardrails-opt-in-tool-c", "completed": 0, "dropped_missing": 0, "imported": 0, "moved": 0, "tasks": 6, "updated": 6}} -{"action": "check", "at": "2026-07-04T16:30:43Z", "detail": {"group": "acceptance", "id": "EH-0005", "index": 2}} -{"action": "sync", "at": "2026-07-04T16:30:57Z", "detail": {"board": "/Users/whit3rabbit/Documents/GitHub/anyllm/.eatahorse-integrate-forge-guardrails-opt-in-tool-c", "completed": 0, "dropped_missing": 0, "imported": 0, "moved": 0, "tasks": 6, "updated": 6}} -{"action": "sync", "at": "2026-07-04T16:31:50Z", "detail": {"board": "/Users/whit3rabbit/Documents/GitHub/anyllm/.eatahorse-integrate-forge-guardrails-opt-in-tool-c", "completed": 0, "dropped_missing": 0, "imported": 0, "moved": 0, "tasks": 6, "updated": 6}} -{"action": "sync", "at": "2026-07-04T16:32:38Z", "detail": {"board": "/Users/whit3rabbit/Documents/GitHub/anyllm/.eatahorse-integrate-forge-guardrails-opt-in-tool-c", "completed": 0, "dropped_missing": 0, "imported": 0, "moved": 0, "tasks": 6, "updated": 6}} -{"action": "sync", "at": "2026-07-04T16:33:57Z", "detail": {"board": "/Users/whit3rabbit/Documents/GitHub/anyllm/.eatahorse-integrate-forge-guardrails-opt-in-tool-c", "completed": 0, "dropped_missing": 0, "imported": 0, "moved": 0, "tasks": 6, "updated": 6}} -{"action": "move", "at": "2026-07-04T16:34:22Z", "detail": {"id": "EH-0006", "status": "doing"}} -{"action": "check", "at": "2026-07-04T16:35:49Z", "detail": {"group": "bites", "id": "EH-0006", "index": 1}} -{"action": "check", "at": "2026-07-04T16:37:17Z", "detail": {"group": "acceptance", "id": "EH-0006", "index": 1}} -{"action": "check", "at": "2026-07-04T16:37:17Z", "detail": {"group": "acceptance", "id": "EH-0006", "index": 2}} -{"action": "check", "at": "2026-07-04T16:37:17Z", "detail": {"group": "acceptance", "id": "EH-0006", "index": 3}} -{"action": "sync", "at": "2026-07-04T16:37:42Z", "detail": {"board": "/Users/whit3rabbit/Documents/GitHub/anyllm/.eatahorse-integrate-forge-guardrails-opt-in-tool-c", "completed": 0, "dropped_missing": 0, "imported": 0, "moved": 0, "tasks": 6, "updated": 6}} -{"action": "sync", "at": "2026-07-04T16:39:24Z", "detail": {"board": "/Users/whit3rabbit/Documents/GitHub/anyllm/.eatahorse-integrate-forge-guardrails-opt-in-tool-c", "completed": 0, "dropped_missing": 0, "imported": 0, "moved": 0, "tasks": 6, "updated": 6}} diff --git a/.eatahorse-integrate-forge-guardrails-opt-in-tool-c/board.md b/.eatahorse-integrate-forge-guardrails-opt-in-tool-c/board.md deleted file mode 100644 index c5a09b4..0000000 --- a/.eatahorse-integrate-forge-guardrails-opt-in-tool-c/board.md +++ /dev/null @@ -1,54 +0,0 @@ -# Eatahorse Board: forge-guardrails integration finish - -Goal: Integrate forge-guardrails (opt-in tool-call guardrails for local LLMs) into anyllm-proxy. Backend port is DONE already (uncommitted): crates/proxy/src/tools/guardrails.rs (lsp_first/quiet_command/write_payload_cap nudges, fingerprint dedup), wired into both tool loops (tools/execution/mod.rs, server/chat_completions/stream/generic/tool_loop.rs), config via SimpleConfig.build_tool_guardrail_config (config/simple/types.rs, tool_builder.rs), env fallback FORGE_TOOL_CALL_POLICY in main_helpers/async_main/tools.rs, ToolEngineState.guardrails wired through state.rs/routes.rs, docs updated (CONFIG.md, ENV.md, configuration-and-modes.md), tests updated. Remaining verified gaps to plan/execute: (1) main_helpers/async_main/tools.rs init_tool_engine early-returns None when tool_config.has_any() is false, so FORGE_TOOL_CALL_POLICY alone (no YAML tool_execution block) never takes effect -- the target local-LLM-env-var-only use case is currently broken; fix has_any()/init gating and add a test for env-var-only init with no YAML. (2) LiteLLM YAML config format has no tool_config path at all (config/multi/loader.rs) -- document this limitation explicitly, do not build support for it now. (3) No admin UI surface exists for tool_execution config at all (admin-ui/src has zero references); optionally add a RuntimeConfig field + Settings.tsx toggle following the repo's documented 6-site RuntimeConfig-field checklist (struct + RuntimeConfigDefaults + 3 constructors + SQLite override-apply match in main.rs + delete_config_override reset in admin/routes/config.rs) -- treat as optional/lower priority than (1)/(2). (4) No CLI flag needed -- env var is this repo's existing convention for backend toggles, do not add a second mechanism. Produce a Kanban board of small, independently-completable tasks for items (1), (2), and optionally (3), plus a changelog bullet task per repo release process (CHANGELOG.md [Unreleased]). - -Updated: `2026-07-04T16:39:24Z` - -## Counts - -| Status | Count | -|---|---:| -| backlog | 0 | -| ready | 0 | -| doing | 0 | -| blocked | 0 | -| done | 5 | -| dropped | 1 | - -## backlog - -_No tasks._ - -## ready - -_No tasks._ - -## doing - -_No tasks._ - -## blocked - -_No tasks._ - -## done - -| ID | Task | Bites | Acceptance | Priority | Owner | -|---|---|---:|---:|---|---| -| [EH-0001](tasks/done/EH-0001-make-forge-tool-call-policy-alone-initialize-the-guardrail-e.md) | Make FORGE_TOOL_CALL_POLICY alone initialize the guardrail engine (no YAML) | 5/5 | 3/3 | P0 | | -| [EH-0002](tasks/done/EH-0002-document-that-litellm-yaml-format-cannot-carry-tool-executio.md) | Document that LiteLLM YAML format cannot carry tool_execution/guardrails config | 3/3 | 3/3 | P1 | | -| [EH-0003](tasks/done/EH-0003-add-changelog-unreleased-bullet-for-opt-in-tool-call-guardra.md) | Add CHANGELOG [Unreleased] bullet for opt-in tool-call guardrails | 1/1 | 2/2 | P2 | | -| [EH-0005](tasks/done/EH-0005-backend-add-tool-guardrail-mode-runtimeconfig-field-6-site-c.md) | Backend: add tool_guardrail_mode RuntimeConfig field (6-site checklist) | 3/3 | 3/3 | P3 | | -| [EH-0006](tasks/done/EH-0006-admin-ui-guardrail-mode-toggle-in-settings-tsx.md) | Admin UI: guardrail mode toggle in Settings.tsx | 1/1 | 3/3 | P3 | | - -## dropped - -| ID | Task | Bites | Acceptance | Priority | Owner | -|---|---|---:|---:|---|---| -| [EH-0004](tasks/dropped/EH-0004-optional-admin-ui-runtimeconfig-toggle-for-guardrail-mode.md) | (Optional) Admin UI + RuntimeConfig toggle for guardrail mode | 0/2 | 0/3 | P3 | | - -## Workflow - -Move one task into `doing`, finish one bite, sync, then take the next bite. - -Generated by Eatahorse. Edit task markdown files or use `scripts/eatahorse.py`. diff --git a/.eatahorse-integrate-forge-guardrails-opt-in-tool-c/state.json b/.eatahorse-integrate-forge-guardrails-opt-in-tool-c/state.json deleted file mode 100644 index 6437ab0..0000000 --- a/.eatahorse-integrate-forge-guardrails-opt-in-tool-c/state.json +++ /dev/null @@ -1,619 +0,0 @@ -{ - "created_at": "2026-07-03T23:40:10Z", - "goal": "Integrate forge-guardrails (opt-in tool-call guardrails for local LLMs) into anyllm-proxy. Backend port is DONE already (uncommitted): crates/proxy/src/tools/guardrails.rs (lsp_first/quiet_command/write_payload_cap nudges, fingerprint dedup), wired into both tool loops (tools/execution/mod.rs, server/chat_completions/stream/generic/tool_loop.rs), config via SimpleConfig.build_tool_guardrail_config (config/simple/types.rs, tool_builder.rs), env fallback FORGE_TOOL_CALL_POLICY in main_helpers/async_main/tools.rs, ToolEngineState.guardrails wired through state.rs/routes.rs, docs updated (CONFIG.md, ENV.md, configuration-and-modes.md), tests updated. Remaining verified gaps to plan/execute: (1) main_helpers/async_main/tools.rs init_tool_engine early-returns None when tool_config.has_any() is false, so FORGE_TOOL_CALL_POLICY alone (no YAML tool_execution block) never takes effect -- the target local-LLM-env-var-only use case is currently broken; fix has_any()/init gating and add a test for env-var-only init with no YAML. (2) LiteLLM YAML config format has no tool_config path at all (config/multi/loader.rs) -- document this limitation explicitly, do not build support for it now. (3) No admin UI surface exists for tool_execution config at all (admin-ui/src has zero references); optionally add a RuntimeConfig field + Settings.tsx toggle following the repo's documented 6-site RuntimeConfig-field checklist (struct + RuntimeConfigDefaults + 3 constructors + SQLite override-apply match in main.rs + delete_config_override reset in admin/routes/config.rs) -- treat as optional/lower priority than (1)/(2). (4) No CLI flag needed -- env var is this repo's existing convention for backend toggles, do not add a second mechanism. Produce a Kanban board of small, independently-completable tasks for items (1), (2), and optionally (3), plus a changelog bullet task per repo release process (CHANGELOG.md [Unreleased]).", - "history": [ - { - "action": "add", - "at": "2026-07-03T23:40:25Z", - "detail": { - "id": "EH-0001", - "title": "Make FORGE_TOOL_CALL_POLICY alone initialize the guardrail engine (no YAML)" - } - }, - { - "action": "add", - "at": "2026-07-03T23:40:34Z", - "detail": { - "id": "EH-0002", - "title": "Document that LiteLLM YAML format cannot carry tool_execution/guardrails config" - } - }, - { - "action": "add", - "at": "2026-07-03T23:40:45Z", - "detail": { - "id": "EH-0003", - "title": "Add CHANGELOG [Unreleased] bullet for opt-in tool-call guardrails" - } - }, - { - "action": "add", - "at": "2026-07-03T23:40:55Z", - "detail": { - "id": "EH-0004", - "title": "(Optional) Admin UI + RuntimeConfig toggle for guardrail mode" - } - }, - { - "action": "drop", - "at": "2026-07-03T23:47:21Z", - "detail": { - "id": "EH-0004" - } - }, - { - "action": "add", - "at": "2026-07-03T23:47:21Z", - "detail": { - "id": "EH-0005", - "title": "Backend: add tool_guardrail_mode RuntimeConfig field (6-site checklist)" - } - }, - { - "action": "add", - "at": "2026-07-03T23:47:21Z", - "detail": { - "id": "EH-0006", - "title": "Admin UI: guardrail mode toggle in Settings.tsx" - } - }, - { - "action": "move", - "at": "2026-07-04T15:50:50Z", - "detail": { - "id": "EH-0001", - "status": "doing" - } - }, - { - "action": "check", - "at": "2026-07-04T15:52:33Z", - "detail": { - "group": "bites", - "id": "EH-0001", - "index": 1 - } - }, - { - "action": "check", - "at": "2026-07-04T15:54:03Z", - "detail": { - "group": "bites", - "id": "EH-0001", - "index": 2 - } - }, - { - "action": "check", - "at": "2026-07-04T15:59:34Z", - "detail": { - "group": "bites", - "id": "EH-0001", - "index": 3 - } - }, - { - "action": "check", - "at": "2026-07-04T15:59:34Z", - "detail": { - "group": "bites", - "id": "EH-0001", - "index": 4 - } - }, - { - "action": "check", - "at": "2026-07-04T15:59:34Z", - "detail": { - "group": "bites", - "id": "EH-0001", - "index": 5 - } - }, - { - "action": "check", - "at": "2026-07-04T15:59:55Z", - "detail": { - "group": "acceptance", - "id": "EH-0001", - "index": 1 - } - }, - { - "action": "check", - "at": "2026-07-04T15:59:55Z", - "detail": { - "group": "acceptance", - "id": "EH-0001", - "index": 2 - } - }, - { - "action": "check", - "at": "2026-07-04T15:59:55Z", - "detail": { - "group": "acceptance", - "id": "EH-0001", - "index": 3 - } - }, - { - "action": "move", - "at": "2026-07-04T16:02:05Z", - "detail": { - "id": "EH-0002", - "status": "doing" - } - }, - { - "action": "check", - "at": "2026-07-04T16:02:45Z", - "detail": { - "group": "bites", - "id": "EH-0002", - "index": 1 - } - }, - { - "action": "check", - "at": "2026-07-04T16:02:54Z", - "detail": { - "group": "bites", - "id": "EH-0002", - "index": 2 - } - }, - { - "action": "check", - "at": "2026-07-04T16:04:46Z", - "detail": { - "group": "bites", - "id": "EH-0002", - "index": 3 - } - }, - { - "action": "check", - "at": "2026-07-04T16:04:46Z", - "detail": { - "group": "acceptance", - "id": "EH-0002", - "index": 1 - } - }, - { - "action": "check", - "at": "2026-07-04T16:04:46Z", - "detail": { - "group": "acceptance", - "id": "EH-0002", - "index": 2 - } - }, - { - "action": "check", - "at": "2026-07-04T16:04:46Z", - "detail": { - "group": "acceptance", - "id": "EH-0002", - "index": 3 - } - }, - { - "action": "move", - "at": "2026-07-04T16:06:49Z", - "detail": { - "id": "EH-0003", - "status": "doing" - } - }, - { - "action": "check", - "at": "2026-07-04T16:07:46Z", - "detail": { - "group": "bites", - "id": "EH-0003", - "index": 1 - } - }, - { - "action": "check", - "at": "2026-07-04T16:07:46Z", - "detail": { - "group": "acceptance", - "id": "EH-0003", - "index": 1 - } - }, - { - "action": "check", - "at": "2026-07-04T16:07:46Z", - "detail": { - "group": "acceptance", - "id": "EH-0003", - "index": 2 - } - }, - { - "action": "move", - "at": "2026-07-04T16:09:10Z", - "detail": { - "id": "EH-0005", - "status": "doing" - } - }, - { - "action": "check", - "at": "2026-07-04T16:10:35Z", - "detail": { - "group": "bites", - "id": "EH-0005", - "index": 1 - } - }, - { - "action": "check", - "at": "2026-07-04T16:13:44Z", - "detail": { - "group": "bites", - "id": "EH-0005", - "index": 2 - } - }, - { - "action": "check", - "at": "2026-07-04T16:27:09Z", - "detail": { - "group": "bites", - "id": "EH-0005", - "index": 3 - } - }, - { - "action": "check", - "at": "2026-07-04T16:27:52Z", - "detail": { - "group": "acceptance", - "id": "EH-0005", - "index": 1 - } - }, - { - "action": "check", - "at": "2026-07-04T16:27:53Z", - "detail": { - "group": "acceptance", - "id": "EH-0005", - "index": 3 - } - }, - { - "action": "check", - "at": "2026-07-04T16:30:43Z", - "detail": { - "group": "acceptance", - "id": "EH-0005", - "index": 2 - } - }, - { - "action": "move", - "at": "2026-07-04T16:34:22Z", - "detail": { - "id": "EH-0006", - "status": "doing" - } - }, - { - "action": "check", - "at": "2026-07-04T16:35:49Z", - "detail": { - "group": "bites", - "id": "EH-0006", - "index": 1 - } - }, - { - "action": "check", - "at": "2026-07-04T16:37:17Z", - "detail": { - "group": "acceptance", - "id": "EH-0006", - "index": 1 - } - }, - { - "action": "check", - "at": "2026-07-04T16:37:17Z", - "detail": { - "group": "acceptance", - "id": "EH-0006", - "index": 2 - } - }, - { - "action": "check", - "at": "2026-07-04T16:37:17Z", - "detail": { - "group": "acceptance", - "id": "EH-0006", - "index": 3 - } - } - ], - "next_id": 7, - "project": "forge-guardrails integration finish", - "schema": "eatahorse.state.v1", - "statuses": [ - "backlog", - "ready", - "doing", - "blocked", - "done", - "dropped" - ], - "tasks": { - "EH-0001": { - "acceptance": [ - { - "done": true, - "text": "New test passes: `cargo test -p anyllm_proxy forge_tool_call_policy_env_only` (or the chosen test name) exits 0." - }, - { - "done": true, - "text": "Observable: with PROXY_CONFIG unset and FORGE_TOOL_CALL_POLICY=standard, init_tool_engine returns Some and the returned ToolEngineState.guardrails.mode is not ToolGuardrailMode::Disabled (asserted directly in the test)." - }, - { - "done": true, - "text": "`cargo clippy -p anyllm_proxy -- -D warnings` reports no warnings for the changed file." - } - ], - "bites": [ - { - "done": true, - "text": "Refactor init_tool_engine so the FORGE_TOOL_CALL_POLICY resolution runs BEFORE the has_any() early return: when tool_config is None or has_any() is false, resolve the env var and, if it parses to a non-Disabled ToolGuardrailMode, proceed to build the engine (empty registry, default policy/loop_config, no MCP)" - }, - { - "done": true, - "text": "otherwise return None as today. Keep the existing YAML-precedence rule (guardrails_set_in_yaml wins over env)." - }, - { - "done": true, - "text": "Add a #[cfg(test)] module (or extend the nearest tools test) covering: (a) tool_config None + FORGE_TOOL_CALL_POLICY=standard => Some engine with guardrails.mode != Disabled" - }, - { - "done": true, - "text": "(b) env unset + no tool sections => None" - }, - { - "done": true, - "text": "(c) invalid env value => None (or Disabled) and does not panic. Acquire crate::config::ENV_TEST_LOCK before mutating the env var and restore it after." - } - ], - "completed_at": "2026-07-04T15:59:55Z", - "created_at": "2026-07-03T23:40:25Z", - "description": "The env-var-only local-LLM path is currently dead. init_tool_engine (crates/proxy/src/main_helpers/async_main/tools.rs:9) does `let tc = tool_config.filter(|tc| tc.has_any())?`; and returns None whenever there is no tool_execution/builtin/mcp section. But loader.rs sets tool_config: None when PROXY_CONFIG is unset (loader.rs:100-107) and has_any() is false for a simple YAML without a tool_execution block. So FORGE_TOOL_CALL_POLICY is never consulted in the exact scenario it targets. Fix the gating so a valid non-Disabled FORGE_TOOL_CALL_POLICY builds a ToolEngineState with an empty registry + default policy/loop_config, whether tool_config is None or present-but-empty. Preserve current behavior: unset/empty/invalid/disabled env with no YAML tool sections still yields None (or a Disabled engine that is inert).", - "dropped_at": null, - "estimate": "", - "external_ids": {}, - "id": "EH-0001", - "notes": "", - "owner": "", - "path": "tasks/done/EH-0001-make-forge-tool-call-policy-alone-initialize-the-guardrail-e.md", - "priority": "P0", - "source": "manual", - "status": "done", - "tags": [], - "title": "Make FORGE_TOOL_CALL_POLICY alone initialize the guardrail engine (no YAML)", - "updated_at": "2026-07-04T16:39:24Z" - }, - "EH-0002": { - "acceptance": [ - { - "done": true, - "text": "`grep -rin 'litellm' docs/CONFIG.md docs/codedocs/configuration-and-modes.md` shows a line tying LiteLLM/model_list format to tool_execution/guardrails NOT being supported." - }, - { - "done": true, - "text": "loader.rs:91 comment references the doc-noted limitation (inspect crates/proxy/src/config/multi/loader.rs)." - }, - { - "done": true, - "text": "No new parsing code added: `git diff --stat` shows changes limited to docs plus the loader.rs comment line." - } - ], - "bites": [ - { - "done": true, - "text": "Add an explicit note to docs/CONFIG.md (and docs/codedocs/configuration-and-modes.md where tool_execution/guardrails are described) stating: tool_execution and guardrails are only read from the simple native YAML format (top-level `models:`) or the FORGE_TOOL_CALL_POLICY env var" - }, - { - "done": true, - "text": "the LiteLLM `model_list:` format ignores them." - }, - { - "done": true, - "text": "Expand the inline comment at loader.rs:91 from 'LiteLLM format has no tool sections' to reference the documented limitation so future readers know it is intentional, not a TODO." - } - ], - "completed_at": "2026-07-04T16:04:46Z", - "created_at": "2026-07-03T23:40:34Z", - "description": "The LiteLLM model_list format has no tool_config path: loader.rs:91 hard-codes `tool_config: None` for that branch. Users on LiteLLM YAML who set a guardrails block will see it silently ignored, and only FORGE_TOOL_CALL_POLICY env works for them. Document this limitation explicitly across the guardrails/tool_execution docs. Do NOT add LiteLLM parsing support.", - "dropped_at": null, - "estimate": "", - "external_ids": {}, - "id": "EH-0002", - "notes": "", - "owner": "", - "path": "tasks/done/EH-0002-document-that-litellm-yaml-format-cannot-carry-tool-executio.md", - "priority": "P1", - "source": "manual", - "status": "done", - "tags": [], - "title": "Document that LiteLLM YAML format cannot carry tool_execution/guardrails config", - "updated_at": "2026-07-04T16:39:24Z" - }, - "EH-0003": { - "acceptance": [ - { - "done": true, - "text": "`grep -in 'guardrail' CHANGELOG.md` returns a line located between the `## [Unreleased]` and the next `## [` version header." - }, - { - "done": true, - "text": "The bullet mentions both FORGE_TOOL_CALL_POLICY and the simple-YAML tool_execution.guardrails path." - } - ], - "bites": [ - { - "done": true, - "text": "Under the `## [Unreleased]` header in CHANGELOG.md, add an `### Added` bullet describing opt-in Forge-style tool-call guardrails (lsp_first/quiet_command/write_payload_cap nudges, fingerprint dedup) configurable via simple YAML tool_execution.guardrails or the FORGE_TOOL_CALL_POLICY env var, noting the LiteLLM-format limitation." - } - ], - "completed_at": "2026-07-04T16:07:46Z", - "created_at": "2026-07-03T23:40:45Z", - "description": "Per the repo release process, every user-visible change needs an [Unreleased] bullet before release. The guardrails feature (config + FORGE_TOOL_CALL_POLICY env + nudges) is user-visible and the section is currently empty (CHANGELOG.md line ~11).", - "dropped_at": null, - "estimate": "", - "external_ids": {}, - "id": "EH-0003", - "notes": "", - "owner": "", - "path": "tasks/done/EH-0003-add-changelog-unreleased-bullet-for-opt-in-tool-call-guardra.md", - "priority": "P2", - "source": "manual", - "status": "done", - "tags": [], - "title": "Add CHANGELOG [Unreleased] bullet for opt-in tool-call guardrails", - "updated_at": "2026-07-04T16:39:24Z" - }, - "EH-0004": { - "acceptance": [ - { - "done": false, - "text": "`cargo build -p anyllm_proxy` compiles after the field is added at all constructor sites." - }, - { - "done": false, - "text": "`grep -rin 'tool_guardrail' crates/proxy/src/admin/state.rs crates/proxy/src/main.rs crates/proxy/src/admin/routes/config.rs crates/proxy/admin-ui/src/tabs/settings/Settings.tsx` returns matches in all four (confirming all non-compiler-caught sites were touched)." - }, - { - "done": false, - "text": "Headless: an admin config PUT setting the field then GET returns the new value (assert via a config-route test or curl against a running proxy). (manual residual: toggle the control in `cargo run -p anyllm_proxy -- --webui` and confirm it survives a restart.)" - } - ], - "bites": [ - { - "done": false, - "text": "Add a RuntimeConfig field (e.g. tool_guardrail_mode: String) at all 6 sites: struct + RuntimeConfigDefaults in crates/proxy/src/admin/state.rs, the 3 constructors (SharedState::new_for_test, cost/mod.rs test, main.rs), the SQLite override-apply match in main.rs, and delete_config_override reset in crates/proxy/src/admin/routes/config.rs. Make the runtime value flow into the guardrail mode actually used at request time." - }, - { - "done": false, - "text": "Add a toggle/select control to crates/proxy/admin-ui/src/tabs/settings/Settings.tsx wired to the existing admin config GET/PUT route for the new field." - } - ], - "completed_at": null, - "created_at": "2026-07-03T23:40:55Z", - "description": "No admin surface exists for tool_execution guardrails (admin-ui/src has zero references). Optionally expose a runtime-tunable guardrail mode following the documented 6-site RuntimeConfig-field checklist so it persists and resets like other runtime config. Lower priority than the P0/P1 cards; skip if scope is tight. Note the two non-compiler-caught sites (SQLite override-apply match in main.rs, delete_config_override reset in admin/routes/config.rs) that silently break persistence/reset if missed.", - "dropped_at": "2026-07-03T23:47:21Z", - "estimate": "", - "external_ids": {}, - "id": "EH-0004", - "notes": "", - "owner": "", - "path": "tasks/dropped/EH-0004-optional-admin-ui-runtimeconfig-toggle-for-guardrail-mode.md", - "priority": "P3", - "source": "manual", - "status": "dropped", - "tags": [], - "title": "(Optional) Admin UI + RuntimeConfig toggle for guardrail mode", - "updated_at": "2026-07-04T16:39:24Z" - }, - "EH-0005": { - "acceptance": [ - { - "done": true, - "text": "cargo build -p anyllm_proxy compiles after the field is added at all constructor sites" - }, - { - "done": true, - "text": "grep -rin 'tool_guardrail' crates/proxy/src/admin/state.rs crates/proxy/src/main_helpers/async_main/admin.rs crates/proxy/src/admin/routes/config.rs returns matches in all three backend files (confirms the non-compiler-caught sites were touched; path corrected from main.rs to main_helpers/async_main/admin.rs, see Notes)" - }, - { - "done": true, - "text": "Headless: a config-route test (or curl against a running proxy) does a config PUT setting tool_guardrail_mode then a GET returns the new value" - } - ], - "bites": [ - { - "done": true, - "text": "Add tool_guardrail_mode: String to the RuntimeConfig struct + RuntimeConfigDefaults in crates/proxy/src/admin/state.rs" - }, - { - "done": true, - "text": "Update the 3 constructors (SharedState::new_for_test, cost/mod.rs test, main.rs) to set the new field" - }, - { - "done": true, - "text": "Add the field to the SQLite override-apply match in main.rs and the delete_config_override reset in crates/proxy/src/admin/routes/config.rs, and make the runtime value flow into the guardrail mode used at request time" - } - ], - "completed_at": "2026-07-04T16:30:43Z", - "created_at": "2026-07-03T23:47:21Z", - "description": "Expose a runtime-tunable guardrail mode as a RuntimeConfig field so it persists/resets like other runtime config. Backend only; the admin UI control is a separate card (split from former EH-0004). Watch the two non-compiler-caught sites (SQLite override-apply match in main.rs, delete_config_override reset in admin/routes/config.rs) that silently break persistence/reset if missed.", - "dropped_at": null, - "estimate": "", - "external_ids": {}, - "id": "EH-0005", - "notes": "Field, 3 constructors, SQLite override-apply, delete-reset, GET/PUT config-route\nsupport, and runtime-mode wiring into `evaluate_tool_guardrails`\n(`tools::resolve_runtime_guardrails` + `AppState::effective_tool_guardrails`,\nconsumed by `handler.rs`, `routes/messages.rs`, and the streaming\n`tool_loop.rs`) are all done. `cargo build -p anyllm_proxy` and\n`cargo test -p anyllm_proxy` (599 passed) are clean, and\n`admin::routes::tests::put_config_tool_guardrail_mode_then_get_returns_new_value`\ncovers the PUT-then-GET round trip headlessly.\n\nAcceptance check 2 as literally worded (\"... crates/proxy/src/main.rs ...\")\ndoes not hold: `main.rs` is now a thin 167-line entry point (env/arg\nbootstrapping only) — the actual SQLite override-apply match lives in\n`crates/proxy/src/main_helpers/async_main/admin.rs::init_admin` (that's where\n`anthropic_thinking_repair`'s override-apply arm already lived pre-refactor,\nper `git grep`). I added the `tool_guardrail_mode` arm there, matching the\nother fields, not in `main.rs` itself. Leaving acceptance item 2 unchecked\nsince a literal `grep ... crates/proxy/src/main.rs` returns no match; the\nunderlying intent (both non-compiler-caught sites touched) is satisfied. If a\nhuman confirms the check should target `main_helpers/async_main/admin.rs`\ninstead, this can be marked done.\n\nResolved: confirmed `main_helpers/async_main/admin.rs` is the correct, established\nlocation for this class of override-apply arm — `anthropic_thinking_repair`'s\nown arm already lived there before this card touched the file (`git grep\nanthropic_thinking_repair crates/proxy/src/main_helpers/async_main/admin.rs`\nshows matching struct-init + match-arm lines at 108/114/149-150, same shape as\nthe new `tool_guardrail_mode` arm at 109/115/152-161). The card's description\nand acceptance-check path were written against the pre-refactor layout where\nthis logic lived in `main.rs`; `main.rs` is now a thin 167-line bootstrap\nentry point post-refactor (unrelated to this card). Updated acceptance check 2\ntext above to reference the current path and re-ran the grep against all\nthree correct files — all match. No source change was needed; this was a\nstale path reference in the acceptance-check text, not a missed\nimplementation site.", - "owner": "", - "path": "tasks/done/EH-0005-backend-add-tool-guardrail-mode-runtimeconfig-field-6-site-c.md", - "priority": "P3", - "source": "manual", - "status": "done", - "tags": [], - "title": "Backend: add tool_guardrail_mode RuntimeConfig field (6-site checklist)", - "updated_at": "2026-07-04T16:39:24Z" - }, - "EH-0006": { - "acceptance": [ - { - "done": true, - "text": "grep -rin 'tool_guardrail' crates/proxy/admin-ui/src/tabs/settings/Settings.tsx returns the new control" - }, - { - "done": true, - "text": "npm run build in crates/proxy/admin-ui compiles with the new control present" - }, - { - "done": true, - "text": "Manual: in cargo run -p anyllm_proxy -- --webui, toggling the control then restarting shows the value persisted" - } - ], - "bites": [ - { - "done": true, - "text": "Add a select/toggle control for tool_guardrail_mode to crates/proxy/admin-ui/src/tabs/settings/Settings.tsx, wired to the existing admin config GET/PUT route" - } - ], - "completed_at": "2026-07-04T16:37:17Z", - "created_at": "2026-07-03T23:47:21Z", - "description": "Add a toggle/select control for tool_guardrail_mode to the admin UI, wired to the existing admin config GET/PUT route. Depends on the backend RuntimeConfig-field card being done first (split from former EH-0004).", - "dropped_at": null, - "estimate": "", - "external_ids": {}, - "id": "EH-0006", - "notes": "Verified the \"manual\" acceptance item headlessly by driving the same admin API the UI control\ncalls (no browser available in this sandbox): started `cargo run -p anyllm_proxy -- --webui`\nagainst a scratch `ANYLLM_HOME`, fetched the admin token + CSRF token, `PUT\n/admin/api/config {\"tool_guardrail_mode\":\"standard\"}` (confirmed `disabled` -> `standard` and\n`overridden_keys` includes it), killed and restarted the process, and confirmed\n`GET /admin/api/config` still returned `tool_guardrail_mode: \"standard\"` with the override\nintact. This exercises the exact backend path the new `` in Settings.tsx invokes -(`save.mutate({ tool_guardrail_mode })` -> `PUT /admin/api/config`), so it stands in for a -literal browser click. - - diff --git a/.eatahorse-integrate-forge-guardrails-opt-in-tool-c/tasks/dropped/EH-0004-optional-admin-ui-runtimeconfig-toggle-for-guardrail-mode.md b/.eatahorse-integrate-forge-guardrails-opt-in-tool-c/tasks/dropped/EH-0004-optional-admin-ui-runtimeconfig-toggle-for-guardrail-mode.md deleted file mode 100644 index 7f1ed9b..0000000 --- a/.eatahorse-integrate-forge-guardrails-opt-in-tool-c/tasks/dropped/EH-0004-optional-admin-ui-runtimeconfig-toggle-for-guardrail-mode.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -id: "EH-0004" -title: "(Optional) Admin UI + RuntimeConfig toggle for guardrail mode" -status: "dropped" -priority: "P3" -owner: "" -tags: [] -estimate: "" -source: "manual" -path: "tasks/dropped/EH-0004-optional-admin-ui-runtimeconfig-toggle-for-guardrail-mode.md" -created_at: "2026-07-03T23:40:55Z" -updated_at: "2026-07-04T16:39:24Z" -completed_at: null -dropped_at: "2026-07-03T23:47:21Z" ---- - -# EH-0004: (Optional) Admin UI + RuntimeConfig toggle for guardrail mode - -Status: `dropped` · Priority: `P3` · Owner: `unassigned` · Estimate: `unsized` -Tags: none - -## Description -No admin surface exists for tool_execution guardrails (admin-ui/src has zero references). Optionally expose a runtime-tunable guardrail mode following the documented 6-site RuntimeConfig-field checklist so it persists and resets like other runtime config. Lower priority than the P0/P1 cards; skip if scope is tight. Note the two non-compiler-caught sites (SQLite override-apply match in main.rs, delete_config_override reset in admin/routes/config.rs) that silently break persistence/reset if missed. - -## One-bite-at-a-time plan -- [ ] Add a RuntimeConfig field (e.g. tool_guardrail_mode: String) at all 6 sites: struct + RuntimeConfigDefaults in crates/proxy/src/admin/state.rs, the 3 constructors (SharedState::new_for_test, cost/mod.rs test, main.rs), the SQLite override-apply match in main.rs, and delete_config_override reset in crates/proxy/src/admin/routes/config.rs. Make the runtime value flow into the guardrail mode actually used at request time. -- [ ] Add a toggle/select control to crates/proxy/admin-ui/src/tabs/settings/Settings.tsx wired to the existing admin config GET/PUT route for the new field. - -## Acceptance checks -- [ ] `cargo build -p anyllm_proxy` compiles after the field is added at all constructor sites. -- [ ] `grep -rin 'tool_guardrail' crates/proxy/src/admin/state.rs crates/proxy/src/main.rs crates/proxy/src/admin/routes/config.rs crates/proxy/admin-ui/src/tabs/settings/Settings.tsx` returns matches in all four (confirming all non-compiler-caught sites were touched). -- [ ] Headless: an admin config PUT setting the field then GET returns the new value (assert via a config-route test or curl against a running proxy). (manual residual: toggle the control in `cargo run -p anyllm_proxy -- --webui` and confirm it survives a restart.) - -## Notes - - - diff --git a/.gitignore b/.gitignore index 8617979..3fa2a56 100644 --- a/.gitignore +++ b/.gitignore @@ -56,3 +56,4 @@ crates/proxy/admin-ui/node_modules/ # dist/ is committed so `include_str!` works at compile time without a build step # crates/proxy/admin-ui/dist/ .synrepo/ +.eatahorse*/ \ No newline at end of file diff --git a/crates/proxy/admin-ui/dist/index.html b/crates/proxy/admin-ui/dist/index.html index 96852ed..a55a693 100644 --- a/crates/proxy/admin-ui/dist/index.html +++ b/crates/proxy/admin-ui/dist/index.html @@ -11,17 +11,17 @@ `);for(i=r=0;ri||c[r]!==l[i]){var u=` `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Ce=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Se(n):``}function Te(e,t){switch(e.tag){case 26:case 27:case 5:return Se(e.type);case 16:return Se(`Lazy`);case 13:return e.child!==t&&t!==null?Se(`Suspense Fallback`):Se(`Suspense`);case 19:return Se(`SuspenseList`);case 0:case 15:return we(e.type,!1);case 11:return we(e.type.render,!1);case 1:return we(e.type,!0);case 31:return Se(`Activity`);default:return``}}function Ee(e){try{var t=``,n=null;do t+=Te(e,n),n=e,e=e.return;while(e);return t}catch(e){return` Error generating stack: `+e.message+` -`+e.stack}}var De=Object.prototype.hasOwnProperty,Oe=t.unstable_scheduleCallback,ke=t.unstable_cancelCallback,Ae=t.unstable_shouldYield,je=t.unstable_requestPaint,Me=t.unstable_now,Ne=t.unstable_getCurrentPriorityLevel,Pe=t.unstable_ImmediatePriority,Fe=t.unstable_UserBlockingPriority,Ie=t.unstable_NormalPriority,Le=t.unstable_LowPriority,Re=t.unstable_IdlePriority,ze=t.log,Be=t.unstable_setDisableYieldValue,Ve=null,He=null;function Ue(e){if(typeof ze==`function`&&Be(e),He&&typeof He.setStrictMode==`function`)try{He.setStrictMode(Ve,e)}catch{}}var We=Math.clz32?Math.clz32:qe,Ge=Math.log,Ke=Math.LN2;function qe(e){return e>>>=0,e===0?32:31-(Ge(e)/Ke|0)|0}var Je=256,Ye=262144,Xe=4194304;function Ze(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Qe(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ze(n))):i=Ze(o):i=Ze(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ze(n))):i=Ze(o)):i=Ze(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function $e(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function et(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function tt(){var e=Xe;return Xe<<=1,!(Xe&62914560)&&(Xe=4194304),e}function nt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function rt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function it(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),hn=!1;if(mn)try{var gn={};Object.defineProperty(gn,"passive",{get:function(){hn=!0}}),window.addEventListener(`test`,gn,gn),window.removeEventListener(`test`,gn,gn)}catch{hn=!1}var _n=null,vn=null,yn=null;function bn(){if(yn)return yn;var e,t=vn,n=t.length,r,i=`value`in _n?_n.value:_n.textContent,a=i.length;for(e=0;e=Xn),$n=` `,er=!1;function tr(e,t){switch(e){case`keyup`:return Jn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function nr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var rr=!1;function ir(e,t){switch(e){case`compositionend`:return nr(t);case`keypress`:return t.which===32?(er=!0,$n):null;case`textInput`:return e=t.data,e===$n&&er?null:e;default:return null}}function ar(e,t){if(rr)return e===`compositionend`||!Yn&&tr(e,t)?(e=bn(),yn=vn=_n=null,rr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Dr(n)}}function kr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ar(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Vt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vt(e.document)}return t}function jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Mr=mn&&`documentMode`in document&&11>=document.documentMode,Nr=null,Pr=null,Fr=null,Ir=!1;function Lr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ir||Nr==null||Nr!==Vt(r)||(r=Nr,`selectionStart`in r&&jr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fr&&Er(Fr,r)||(Fr=r,r=Dd(Pr,`onSelect`),0>=o,i-=o,ki=1<<32-We(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),I&&ji(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),I&&ji(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return I&&ji(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),I&&ji(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&Aa(l)===r.type){n(e,r.sibling),c=a(r,o.props),La(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=gi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=hi(o.type,o.key,o.props,null,e.mode,c),La(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=yi(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=Aa(o),b(e,r,o,c)}if(oe(o))return h(e,r,o,c);if(re(o)){if(l=re(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Ia(o),c);if(o.$$typeof===C)return b(e,r,ia(e,o),c);Ra(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=_i(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Fa=0;var i=b(e,t,n,r);return Pa=null,i}catch(t){if(t===wa||t===Ea)throw t;var a=di(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ba=za(!0),Va=za(!1),Ha=!1;function Ua(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ga(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ka(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,G&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ci(e),si(e,null,n),t}return ii(e,r,t,n),ci(e)}function qa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ot(e,n)}}function Ja(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ya=!1;function Xa(){if(Ya){var e=ha;if(e!==null)throw e}}function Za(e,t,n,r){Ya=!1;var i=e.updateQueue;Ha=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(J&f)===f:(r&f)===f){f!==0&&f===ma&&(Ya=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=m({},d,f);break a;case 2:Ha=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Kl|=o,e.lanes=o,e.memoizedState=d}}function Qa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function $a(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=k.T,s={};k.T=s,Is(e,!1,t,n);try{var c=i(),l=k.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Fs(e,t,va(c,r),mu(e)):Fs(e,t,r,mu(e))}catch(n){Fs(e,t,{then:function(){},status:`rejected`,reason:n},mu())}finally{A.p=a,o!==null&&s.types!==null&&(o.types=s.types),k.T=o}}function Es(){}function Ds(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Os(e).queue;Ts(e,a,t,se,n===null?Es:function(){return ks(e),n(r)})}function Os(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:se},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ks(e){var t=Os(e);t.next===null&&(t=e.alternate.memoizedState),Fs(e,t.next.queue,{},mu())}function As(){return L($f)}function js(){return No().memoizedState}function Ms(){return No().memoizedState}function Ns(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=mu();e=Ga(n);var r=Ka(t,e,n);r!==null&&(gu(r,t,n),qa(r,t,n)),t={cache:ua()},e.payload=t;return}t=t.return}}function Ps(e,t,n){var r=mu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},H(e)?Ls(t,n):(n=ai(e,t,n,r),n!==null&&(gu(n,e,r),Rs(n,t,r)))}function V(e,t,n){Fs(e,t,n,mu())}function Fs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(H(e))Ls(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Tr(s,o))return ii(e,t,i,0),K===null&&ri(),!1}catch{}if(n=ai(e,t,i,r),n!==null)return gu(n,e,r),Rs(n,t,r),!0}return!1}function Is(e,t,n,r){if(r={lane:2,revertLane:fd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},H(e)){if(t)throw Error(i(479))}else t=ai(e,n,r,2),t!==null&&gu(t,e,2)}function H(e){var t=e.alternate;return e===R||t!==null&&t===R}function Ls(e,t){_o=go=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ot(e,n)}}var zs={readContext:L,use:Io,useCallback:Co,useContext:Co,useEffect:Co,useImperativeHandle:Co,useLayoutEffect:Co,useInsertionEffect:Co,useMemo:Co,useReducer:Co,useRef:Co,useState:Co,useDebugValue:Co,useDeferredValue:Co,useTransition:Co,useSyncExternalStore:Co,useId:Co,useHostTransitionStatus:Co,useFormState:Co,useActionState:Co,useOptimistic:Co,useMemoCache:Co,useCacheRefresh:Co};zs.useEffectEvent=Co;var Bs={readContext:L,use:Io,useCallback:function(e,t){return Mo().memoizedState=[e,t===void 0?null:t],e},useContext:L,useEffect:fs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),us(4194308,4,vs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return us(4194308,4,e,t)},useInsertionEffect:function(e,t){us(4,2,e,t)},useMemo:function(e,t){var n=Mo();t=t===void 0?null:t;var r=e();if(vo){Ue(!0);try{e()}finally{Ue(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Mo();if(n!==void 0){var i=n(t);if(vo){Ue(!0);try{n(t)}finally{Ue(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ps.bind(null,R,e),[r.memoizedState,e]},useRef:function(e){var t=Mo();return e={current:e},t.memoizedState=e},useState:function(e){e=Jo(e);var t=e.queue,n=V.bind(null,R,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:bs,useDeferredValue:function(e,t){return Cs(Mo(),e,t)},useTransition:function(){var e=Jo(!1);return e=Ts.bind(null,R,e.queue,!0,!1),Mo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=R,a=Mo();if(I){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),K===null)throw Error(i(349));J&127||Uo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,fs(Go.bind(null,r,o,e),[e]),r.flags|=2048,cs(9,{destroy:void 0},Wo.bind(null,r,o,n,t),null),n},useId:function(){var e=Mo(),t=K.identifierPrefix;if(I){var n=Ai,r=ki;n=(r&~(1<<32-We(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=yo++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[ft]=t,o[pt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Fd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Pc(t)}}return U(t),Fc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=me.current,Wi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ii,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ft]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Nd(e.nodeValue,n)),e||Vi(t,!0)}else e=Vd(e).createTextNode(r),e[ft]=t,t.stateNode=e}return U(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Wi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ft]=t}else Gi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;U(t),e=!1}else n=Ki(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(fo(t),t):(fo(t),null);if(t.flags&128)throw Error(i(558))}return U(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Wi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ft]=t}else Gi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;U(t),a=!1}else a=Ki(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(fo(t),t):(fo(t),null)}return fo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Lc(t,t.updateQueue),U(t),null);case 4:return _e(),e===null&&Cd(t.stateNode.containerInfo),U(t),null;case 10:return Qi(t.type),U(t),null;case 19:if(de(po),r=t.memoizedState,r===null)return U(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Rc(r,!1);else{if(Gl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=mo(e),o!==null){for(t.flags|=128,Rc(r,!1),e=o.updateQueue,t.updateQueue=e,Lc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)mi(n,e),n=n.sibling;return j(po,po.current&1|2),I&&ji(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Me()>nu&&(t.flags|=128,a=!0,Rc(r,!1),t.lanes=4194304)}else{if(!a)if(e=mo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Lc(t,e),Rc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!I)return U(t),null}else 2*Me()-r.renderingStartTime>nu&&n!==536870912&&(t.flags|=128,a=!0,Rc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(U(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Me(),e.sibling=null,n=po.current,j(po,a?n&1|2:n&1),I&&ji(t,r.treeForkCount),e);case 22:case 23:return fo(t),io(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(U(t),t.subtreeFlags&6&&(t.flags|=8192)):U(t),n=t.updateQueue,n!==null&&Lc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&de(ba),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Qi(la),U(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Bc(e,t){switch(Pi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qi(la),_e(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ye(t),null;case 31:if(t.memoizedState!==null){if(fo(t),t.alternate===null)throw Error(i(340));Gi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(fo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Gi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return de(po),null;case 4:return _e(),null;case 10:return Qi(t.type),null;case 22:case 23:return fo(t),io(),e!==null&&de(ba),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Qi(la),null;case 25:return null;default:return null}}function Vc(e,t){switch(Pi(t),t.tag){case 3:Qi(la),_e();break;case 26:case 27:case 5:ye(t);break;case 4:_e();break;case 31:t.memoizedState!==null&&fo(t);break;case 13:fo(t);break;case 19:de(po);break;case 10:Qi(t.type);break;case 22:case 23:fo(t),io(),e!==null&&de(ba);break;case 24:Qi(la)}}function Hc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){X(t,t.return,e)}}function Uc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){X(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){X(t,t.return,e)}}function Wc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{$a(t,n)}catch(t){X(e,e.return,t)}}}function Gc(e,t,n){n.props=qs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){X(e,t,n)}}function Kc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){X(e,t,n)}}function qc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){X(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){X(e,t,n)}else n.current=null}function Jc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){X(e,e.return,t)}}function Yc(e,t,n){try{var r=e.stateNode;Id(r,e.type,n,t),r[pt]=t}catch(t){X(e,e.return,t)}}function Xc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qd(e.type)||e.tag===4}function Zc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Xc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Qd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=an));else if(r!==4&&(r===27&&Qd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Qc(e,t,n),e=e.sibling;e!==null;)Qc(e,t,n),e=e.sibling}function $c(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Qd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}function el(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Fd(t,r,n),t[ft]=e,t[pt]=n}catch(t){X(e,e.return,t)}}var tl=!1,nl=!1,rl=!1,il=typeof WeakSet==`function`?WeakSet:Set,al=null;function ol(e,t){if(e=e.containerInfo,zd=cp,e=Ar(e),jr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Bd={focusedElem:e,selectionRange:n},cp=!1,al=t;al!==null;)if(t=al,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,al=e;else for(;al!==null;){switch(t=al,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Fd(o,r,n),o[ft]=e,wt(o),r=o;break a;case`link`:var s=Hf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=Or(s,h),v=Or(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,k.T=null,n=uu,uu=null;var o=ou,s=cu;if(au=0,su=ou=null,cu=0,G&6)throw Error(i(331));var c=G;if(G|=4,Fl(o.current),Dl(o,o.current,s,n),G=c,ad(0,!1),He&&typeof He.onPostCommitFiberRoot==`function`)try{He.onPostCommitFiberRoot(Ve,o)}catch{}return!0}finally{A.p=a,k.T=r,Hu(e,t)}}function Gu(e,t,n){t=xi(n,t),t=$s(e.stateNode,t,2),e=Ka(e,t,2),e!==null&&(rt(e,2),id(e))}function X(e,t,n){if(e.tag===3)Gu(e,e,n);else for(;t!==null;){if(t.tag===3){Gu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(iu===null||!iu.has(r))){e=xi(n,e),n=ec(2),r=Ka(t,n,2),r!==null&&(tc(n,r,t,e),rt(r,2),id(r));break}}t=t.return}}function Ku(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new zl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Ul=!0,i.add(n),e=qu.bind(null,e,t,n),t.then(e,e))}function qu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,K===e&&(J&n)===n&&(Gl===4||Gl===3&&(J&62914560)===J&&300>Me()-eu?!(G&2)&&Cu(e,0):Jl|=n,Xl===J&&(Xl=0)),id(e)}function Ju(e,t){t===0&&(t=tt()),e=oi(e,t),e!==null&&(rt(e,t),id(e))}function Yu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ju(e,n)}function Xu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Ju(e,n)}function Zu(e,t){return Oe(e,t)}var Qu=null,$u=null,ed=!1,td=!1,nd=!1,rd=0;function id(e){e!==$u&&e.next===null&&($u===null?Qu=$u=e:$u=$u.next=e),td=!0,ed||(ed=!0,dd())}function ad(e,t){if(!nd&&td){nd=!0;do for(var n=!1,r=Qu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-We(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ud(r,a))}else a=J,a=Qe(r,r===K?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||$e(r,a)||(n=!0,ud(r,a));r=r.next}while(n);nd=!1}}function od(){sd()}function sd(){td=ed=!1;var e=0;rd!==0&&Kd()&&(e=rd);for(var t=Me(),n=null,r=Qu;r!==null;){var i=r.next,a=cd(r,t);a===0?(r.next=null,n===null?Qu=i:n.next=i,i===null&&($u=n)):(n=r,(e!==0||a&3)&&(td=!0)),r=i}au!==0&&au!==5||ad(e,!1),rd!==0&&(rd=0)}function cd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Ld(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function Sf(e,t,n){var r=xf;if(r&&typeof t==`string`&&t){var i=Ut(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),gf.has(i)||(gf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Fd(t,`link`,e),wt(t),r.head.appendChild(t)))}}function Cf(e){vf.D(e),Sf(`dns-prefetch`,e,null)}function wf(e,t){vf.C(e,t),Sf(`preconnect`,e,t)}function Tf(e,t,n){vf.L(e,t,n);var r=xf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Ut(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Ut(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Ut(n.imageSizes)+`"]`)):i+=`[href="`+Ut(e)+`"]`;var a=i;switch(t){case`style`:a=jf(e);break;case`script`:a=Ff(e)}hf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),hf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Mf(a))||t===`script`&&r.querySelector(If(a))||(t=r.createElement(`link`),Fd(t,`link`,e),wt(t),r.head.appendChild(t)))}}function Ef(e,t){vf.m(e,t);var n=xf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Ut(r)+`"][href="`+Ut(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Ff(e)}if(!hf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),hf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(If(a)))return}r=n.createElement(`link`),Fd(r,`link`,e),wt(r),n.head.appendChild(r)}}}function Df(e,t,n){vf.S(e,t,n);var r=xf;if(r&&e){var i=Ct(r).hoistableStyles,a=jf(e);t=t||`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Mf(a)))s.loading=5;else{e=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=hf.get(a))&&zf(e,n);var c=o=r.createElement(`link`);wt(c),Fd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Rf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Of(e,t){vf.X(e,t);var n=xf;if(n&&e){var r=Ct(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=m({src:e,async:!0},t),(t=hf.get(i))&&Bf(e,t),a=n.createElement(`script`),wt(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t){vf.M(e,t);var n=xf;if(n&&e){var r=Ct(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=hf.get(i))&&Bf(e,t),a=n.createElement(`script`),wt(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t,n,r){var a=(a=me.current)?_f(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=jf(n.href),n=Ct(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=jf(n.href);var o=Ct(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Mf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),hf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},hf.set(e,n),o||Pf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Ff(n),n=Ct(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function jf(e){return`href="`+Ut(e)+`"`}function Mf(e){return`link[rel="stylesheet"][`+e+`]`}function Nf(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function Pf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Fd(t,`link`,n),wt(t),e.head.appendChild(t))}function Ff(e){return`[src="`+Ut(e)+`"]`}function If(e){return`script[async]`+e}function Lf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Ut(n.href)+`"]`);if(r)return t.instance=r,wt(r),r;var a=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),wt(r),Fd(r,`style`,a),Rf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=jf(n.href);var o=e.querySelector(Mf(a));if(o)return t.state.loading|=4,t.instance=o,wt(o),o;r=Nf(n),(a=hf.get(a))&&zf(r,a),o=(e.ownerDocument||e).createElement(`link`),wt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Fd(o,`link`,r),t.state.loading|=4,Rf(o,n.precedence,e),t.instance=o;case`script`:return o=Ff(n.src),(a=e.querySelector(If(o)))?(t.instance=a,wt(a),a):(r=n,(a=hf.get(o))&&(r=m({},n),Bf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),wt(a),Fd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Rf(r,n.precedence,e));return t.instance}function Rf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Wf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Gf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Kf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=jf(r.href),a=t.querySelector(Mf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Yf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,wt(a);return}a=t.ownerDocument||t,r=Nf(r),(i=hf.get(i))&&zf(r,i),a=a.createElement(`link`),wt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Fd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Yf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var qf=0;function Jf(e,t){return e.stylesheets&&e.count===0&&Zf(e,e.stylesheets),0qf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Yf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xf=null;function Zf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xf=new Map,t.forEach(Qf,e),Xf=null,Yf.call(e))}function Qf(e,t){if(!(t.state.loading&4)){var n=Xf.get(e);if(n)var r=n.get(null);else{n=new Map,Xf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};function y(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}var b=o((()=>{}));function x(e,t,n){y(e,t),t.set(e,n)}var S=o((()=>{b()}));function C(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}var w=o((()=>{}));function T(e,t,n){return e.set(C(e,t),n),n}var E=o((()=>{w()}));function D(e,t){return e.get(C(e,t))}var O=o((()=>{w()}));S(),E(),O();var ee,te,ne,re=new(ee=new WeakMap,te=new WeakMap,ne=new WeakMap,class extends v{constructor(){super(),x(this,ee,void 0),x(this,te,void 0),x(this,ne,void 0),T(ne,this,e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}})}onSubscribe(){D(te,this)||this.setEventListener(D(ne,this))}onUnsubscribe(){this.hasListeners()||(D(te,this)?.call(this),T(te,this,void 0))}setEventListener(e){T(ne,this,e),D(te,this)?.call(this),T(te,this,e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()}))}setFocused(e){D(ee,this)!==e&&(T(ee,this,e),this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof D(ee,this)==`boolean`?D(ee,this):globalThis.document?.visibilityState!==`hidden`}});S(),O(),E();var ie,ae,oe={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},k=new(ie=new WeakMap,ae=new WeakMap,class{constructor(){x(this,ie,oe),x(this,ae,!1)}setTimeoutProvider(e){T(ie,this,e)}setTimeout(e,t){return D(ie,this).setTimeout(e,t)}clearTimeout(e){D(ie,this).clearTimeout(e)}setInterval(e,t){return D(ie,this).setInterval(e,t)}clearInterval(e){D(ie,this).clearInterval(e)}});function A(e){setTimeout(e,0)}var se=typeof window>`u`||`Deno`in globalThis;function ce(){}function le(e,t){return typeof e==`function`?e(t):e}function ue(e){return typeof e==`number`&&e>=0&&e!==1/0}function de(e,t){return Math.max(e+(t||0)-Date.now(),0)}function j(e,t){return typeof e==`function`?e(t):e}function fe(e,t){return typeof e==`function`?e(t):e}function pe(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==he(o,t.options))return!1}else if(!_e(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function me(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(ge(t.options.mutationKey)!==ge(a))return!1}else if(!_e(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function he(e,t){return(t?.queryKeyHashFn||ge)(e)}function ge(e){return JSON.stringify(e,(e,t)=>Se(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function _e(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>_e(e[n],t[n])):!1}var ve=Object.prototype.hasOwnProperty;function ye(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=xe(e)&&xe(t);if(!r&&!(Se(e)&&Se(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l{k.setTimeout(t,e)})}function Te(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:ye(e,t)}function Ee(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function De(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Oe=Symbol();function ke(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Oe?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Ae(e,t){return typeof e==`function`?e(...t):!!e}function je(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var Me=(()=>{let e=()=>se;return{isServer(){return e()},setIsServer(t){e=t}}})();function Ne(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var Pe=A;function Fe(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Pe,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var Ie=Fe();S(),E(),O();var Le,Re,ze,Be=new(Le=new WeakMap,Re=new WeakMap,ze=new WeakMap,class extends v{constructor(){super(),x(this,Le,!0),x(this,Re,void 0),x(this,ze,void 0),T(ze,this,e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}})}onSubscribe(){D(Re,this)||this.setEventListener(D(ze,this))}onUnsubscribe(){this.hasListeners()||(D(Re,this)?.call(this),T(Re,this,void 0))}setEventListener(e){T(ze,this,e),D(Re,this)?.call(this),T(Re,this,e(this.setOnline.bind(this)))}setOnline(e){D(Le,this)!==e&&(T(Le,this,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return D(Le,this)}});function Ve(e){return Math.min(1e3*2**e,3e4)}function He(e){return(e??`online`)===`online`?Be.isOnline():!0}var Ue=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function We(e){let t=!1,n=0,r,i=Ne(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Ue(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>re.isFocused()&&(e.networkMode===`always`||Be.isOnline())&&e.canRun(),u=()=>He(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(Me.isServer()?0:3),o=e.retryDelay??Ve,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&nl()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}S(),E(),O();var Ge,Ke=(Ge=new WeakMap,class{constructor(){x(this,Ge,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ue(this.gcTime)&&T(Ge,this,k.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Me.isServer()?1/0:300*1e3))}clearGcTimeout(){D(Ge,this)&&(k.clearTimeout(D(Ge,this)),T(Ge,this,void 0))}});function qe(e,t){y(e,t),t.add(e)}var Je=o((()=>{b()}));Je(),S(),E(),O(),w();var Ye,Xe,Ze,Qe,$e,et,tt,nt,rt=(Ye=new WeakMap,Xe=new WeakMap,Ze=new WeakMap,Qe=new WeakMap,$e=new WeakMap,et=new WeakMap,tt=new WeakMap,nt=new WeakSet,class extends Ke{constructor(e){super(),qe(this,nt),x(this,Ye,void 0),x(this,Xe,void 0),x(this,Ze,void 0),x(this,Qe,void 0),x(this,$e,void 0),x(this,et,void 0),x(this,tt,void 0),T(tt,this,!1),T(et,this,e.defaultOptions),this.setOptions(e.options),this.observers=[],T(Qe,this,e.client),T(Ze,this,D(Qe,this).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,T(Ye,this,ct(this.options)),this.state=e.state??D(Ye,this),this.scheduleGc()}get meta(){return this.options.meta}get promise(){return D($e,this)?.promise}setOptions(e){if(this.options={...D(et,this),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=ct(this.options);e.data!==void 0&&(this.setState(st(e.data,e.dataUpdatedAt)),T(Ye,this,e))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&D(Ze,this).remove(this)}setData(e,t){let n=Te(this.state.data,e,this.options);return C(nt,this,at).call(this,{data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){C(nt,this,at).call(this,{type:`setState`,state:e,setStateOptions:t})}cancel(e){let t=D($e,this)?.promise;return D($e,this)?.cancel(e),t?t.then(ce).catch(ce):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return D(Ye,this)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>fe(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Oe||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>j(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!de(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),D($e,this)?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),D($e,this)?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),D(Ze,this).notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(D($e,this)&&(D(tt,this)||C(nt,this,it).call(this)?D($e,this).cancel({revert:!0}):D($e,this).cancelRetry()),this.scheduleGc()),D(Ze,this).notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||C(nt,this,at).call(this,{type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&D($e,this)?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(D($e,this))return D($e,this).continueRetry(),D($e,this).promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(T(tt,this,!0),n.signal)})},i=()=>{let e=ke(this.options,t),n=(()=>{let e={client:D(Qe,this),queryKey:this.queryKey,meta:this.meta};return r(e),e})();return T(tt,this,!1),this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:D(Qe,this),state:this.state,fetchFn:i};return r(e),e})();this.options.behavior?.onFetch(a,this),T(Xe,this,this.state),(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&C(nt,this,at).call(this,{type:`fetch`,meta:a.fetchOptions?.meta}),T($e,this,We({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Ue&&e.revert&&this.setState({...D(Xe,this),fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{C(nt,this,at).call(this,{type:`failed`,failureCount:e,error:t})},onPause:()=>{C(nt,this,at).call(this,{type:`pause`})},onContinue:()=>{C(nt,this,at).call(this,{type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{let e=await D($e,this).start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),D(Ze,this).config.onSuccess?.(e,this),D(Ze,this).config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Ue){if(e.silent)return D($e,this).promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw C(nt,this,at).call(this,{type:`error`,error:e}),D(Ze,this).config.onError?.(e,this),D(Ze,this).config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}});function it(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}function at(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...ot(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...st(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return T(Xe,this,e.manual?n:void 0),n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),Ie.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),D(Ze,this).notify({query:this,type:`updated`,action:e})})}function ot(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:He(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function st(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function ct(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}Je(),S(),E(),O(),w();var lt,M,ut,dt,ft,pt,mt,ht,gt,_t,vt,yt,bt,xt,St,N,Ct=(lt=new WeakMap,M=new WeakMap,ut=new WeakMap,dt=new WeakMap,ft=new WeakMap,pt=new WeakMap,mt=new WeakMap,ht=new WeakMap,gt=new WeakMap,_t=new WeakMap,vt=new WeakMap,yt=new WeakMap,bt=new WeakMap,xt=new WeakMap,St=new WeakMap,N=new WeakSet,class extends v{constructor(e,t){super(),qe(this,N),x(this,lt,void 0),x(this,M,void 0),x(this,ut,void 0),x(this,dt,void 0),x(this,ft,void 0),x(this,pt,void 0),x(this,mt,void 0),x(this,ht,void 0),x(this,gt,void 0),x(this,_t,void 0),x(this,vt,void 0),x(this,yt,void 0),x(this,bt,void 0),x(this,xt,void 0),x(this,St,new Set),this.options=t,T(lt,this,e),T(ht,this,null),T(mt,this,Ne()),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(D(M,this).addObserver(this),Pt(D(M,this),this.options)?C(N,this,wt).call(this):this.updateResult(),C(N,this,Ot).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ft(D(M,this),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ft(D(M,this),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,C(N,this,kt).call(this),C(N,this,At).call(this),D(M,this).removeObserver(this)}setOptions(e){let t=this.options,n=D(M,this);if(this.options=D(lt,this).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof fe(this.options.enabled,D(M,this))!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);C(N,this,jt).call(this),D(M,this).setOptions(this.options),t._defaulted&&!be(this.options,t)&&D(lt,this).getQueryCache().notify({type:`observerOptionsUpdated`,query:D(M,this),observer:this});let r=this.hasListeners();r&&It(D(M,this),n,this.options,t)&&C(N,this,wt).call(this),this.updateResult(),r&&(D(M,this)!==n||fe(this.options.enabled,D(M,this))!==fe(t.enabled,D(M,this))||j(this.options.staleTime,D(M,this))!==j(t.staleTime,D(M,this)))&&C(N,this,Tt).call(this);let i=C(N,this,Et).call(this);r&&(D(M,this)!==n||fe(this.options.enabled,D(M,this))!==fe(t.enabled,D(M,this))||i!==D(xt,this))&&C(N,this,Dt).call(this,i)}getOptimisticResult(e){let t=D(lt,this).getQueryCache().build(D(lt,this),e),n=this.createResult(t,e);return Rt(this,n)&&(T(dt,this,n),T(pt,this,this.options),T(ft,this,D(M,this).state)),n}getCurrentResult(){return D(dt,this)}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&D(mt,this).status===`pending`&&D(mt,this).reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){D(St,this).add(e)}getCurrentQuery(){return D(M,this)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=D(lt,this).defaultQueryOptions(e),n=D(lt,this).getQueryCache().build(D(lt,this),t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return C(N,this,wt).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),D(dt,this)))}createResult(e,t){let n=D(M,this),r=this.options,i=D(dt,this),a=D(ft,this),o=D(pt,this),s=e===n?D(ut,this):e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Pt(e,t),o=i&&It(e,n,t,r);(a||o)&&(l={...l,...ot(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(D(vt,this)?.state.data,D(vt,this)):t.placeholderData,e!==void 0&&(m=`success`,d=Te(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===D(gt,this))d=D(_t,this);else try{T(gt,this,t.select),d=t.select(d),d=Te(i?.data,d,t),T(_t,this,d),T(ht,this,null)}catch(e){T(ht,this,e)}D(ht,this)&&(f=D(ht,this),d=D(_t,this),p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:Lt(e,t),refetch:this.refetch,promise:D(mt,this),isEnabled:fe(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{i(T(mt,this,x.promise=Ne()))},o=D(mt,this);switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a();break}}return x}updateResult(){let e=D(dt,this),t=this.createResult(D(M,this),this.options);T(ft,this,D(M,this).state),T(pt,this,this.options),D(ft,this).data!==void 0&&T(vt,this,D(M,this)),!be(t,e)&&(T(dt,this,t),C(N,this,Mt).call(this,{listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!D(St,this).size)return!0;let r=new Set(n??D(St,this));return this.options.throwOnError&&r.add(`error`),Object.keys(D(dt,this)).some(t=>{let n=t;return D(dt,this)[n]!==e[n]&&r.has(n)})})()}))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&C(N,this,Ot).call(this)}});function wt(e){C(N,this,jt).call(this);let t=D(M,this).fetch(this.options,e);return e?.throwOnError||(t=t.catch(ce)),t}function Tt(){C(N,this,kt).call(this);let e=j(this.options.staleTime,D(M,this));if(Me.isServer()||D(dt,this).isStale||!ue(e))return;let t=de(D(dt,this).dataUpdatedAt,e)+1;T(yt,this,k.setTimeout(()=>{D(dt,this).isStale||this.updateResult()},t))}function Et(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(D(M,this)):this.options.refetchInterval)??!1}function Dt(e){C(N,this,At).call(this),T(xt,this,e),!(Me.isServer()||fe(this.options.enabled,D(M,this))===!1||!ue(D(xt,this))||D(xt,this)===0)&&T(bt,this,k.setInterval(()=>{(this.options.refetchIntervalInBackground||re.isFocused())&&C(N,this,wt).call(this)},D(xt,this)))}function Ot(){C(N,this,Tt).call(this),C(N,this,Dt).call(this,C(N,this,Et).call(this))}function kt(){D(yt,this)&&(k.clearTimeout(D(yt,this)),T(yt,this,void 0))}function At(){D(bt,this)&&(k.clearInterval(D(bt,this)),T(bt,this,void 0))}function jt(){let e=D(lt,this).getQueryCache().build(D(lt,this),this.options);if(e===D(M,this))return;let t=D(M,this);T(M,this,e),T(ut,this,e.state),this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}function Mt(e){Ie.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(D(dt,this))}),D(lt,this).getQueryCache().notify({query:D(M,this),type:`observerResultsUpdated`})})}function Nt(e,t){return fe(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&t.retryOnMount===!1)}function Pt(e,t){return Nt(e,t)||e.state.data!==void 0&&Ft(e,t,t.refetchOnMount)}function Ft(e,t,n){if(fe(t.enabled,e)!==!1&&j(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&Lt(e,t)}return!1}function It(e,t,n,r){return(e!==t||fe(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Lt(e,n)}function Lt(e,t){return fe(t.enabled,e)!==!1&&e.isStaleByTime(j(t.staleTime,e))}function Rt(e,t){return!be(e.getCurrentResult(),t)}function zt(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{je(e,()=>t.signal,()=>n=!0)},u=ke(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject();if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?De:Ee;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?Vt:Bt,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Bt(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(ct.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function Bt(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Vt(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}Je(),S(),E(),O(),w();var Ht,Ut,Wt,Gt,Kt,qt=(Ht=new WeakMap,Ut=new WeakMap,Wt=new WeakMap,Gt=new WeakMap,Kt=new WeakSet,class extends Ke{constructor(e){super(),qe(this,Kt),x(this,Ht,void 0),x(this,Ut,void 0),x(this,Wt,void 0),x(this,Gt,void 0),T(Ht,this,e.client),this.mutationId=e.mutationId,T(Wt,this,e.mutationCache),T(Ut,this,[]),this.state=e.state||Yt(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){D(Ut,this).includes(e)||(D(Ut,this).push(e),this.clearGcTimeout(),D(Wt,this).notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){T(Ut,this,D(Ut,this).filter(t=>t!==e)),this.scheduleGc(),D(Wt,this).notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){D(Ut,this).length||(this.state.status===`pending`?this.scheduleGc():D(Wt,this).remove(this))}continue(){return D(Gt,this)?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{C(Kt,this,Jt).call(this,{type:`continue`})},n={client:D(Ht,this),meta:this.options.meta,mutationKey:this.options.mutationKey};T(Gt,this,We({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{C(Kt,this,Jt).call(this,{type:`failed`,failureCount:e,error:t})},onPause:()=>{C(Kt,this,Jt).call(this,{type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>D(Wt,this).canRun(this)}));let r=this.state.status===`pending`,i=!D(Gt,this).canStart();try{if(r)t();else{C(Kt,this,Jt).call(this,{type:`pending`,variables:e,isPaused:i}),D(Wt,this).config.onMutate&&await D(Wt,this).config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&C(Kt,this,Jt).call(this,{type:`pending`,context:t,variables:e,isPaused:i})}let a=await D(Gt,this).start();return await D(Wt,this).config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await D(Wt,this).config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),C(Kt,this,Jt).call(this,{type:`success`,data:a}),a}catch(t){try{await D(Wt,this).config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await D(Wt,this).config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw C(Kt,this,Jt).call(this,{type:`error`,error:t}),t}finally{D(Wt,this).runNext(this)}}});function Jt(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),Ie.batch(()=>{D(Ut,this).forEach(t=>{t.onMutationUpdate(e)}),D(Wt,this).notify({mutation:this,type:`updated`,action:e})})}function Yt(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}S(),E(),O();var Xt,Zt,Qt,$t=(Xt=new WeakMap,Zt=new WeakMap,Qt=new WeakMap,class extends v{constructor(e={}){super(),x(this,Xt,void 0),x(this,Zt,void 0),x(this,Qt,void 0),this.config=e,T(Xt,this,new Set),T(Zt,this,new Map),T(Qt,this,0)}build(e,t,n){var r;let i=new qt({client:e,mutationCache:this,mutationId:T(Qt,this,(r=D(Qt,this),++r)),options:e.defaultMutationOptions(t),state:n});return this.add(i),i}add(e){D(Xt,this).add(e);let t=en(e);if(typeof t==`string`){let n=D(Zt,this).get(t);n?n.push(e):D(Zt,this).set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(D(Xt,this).delete(e)){let t=en(e);if(typeof t==`string`){let n=D(Zt,this).get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&D(Zt,this).delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=en(e);if(typeof t==`string`){let n=D(Zt,this).get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=en(e);return typeof t==`string`?(D(Zt,this).get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Ie.batch(()=>{D(Xt,this).forEach(e=>{this.notify({type:`removed`,mutation:e})}),D(Xt,this).clear(),D(Zt,this).clear()})}getAll(){return Array.from(D(Xt,this))}find(e){let t={exact:!0,...e};return this.getAll().find(e=>me(t,e))}findAll(e={}){return this.getAll().filter(t=>me(e,t))}notify(e){Ie.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Ie.batch(()=>Promise.all(e.map(e=>e.continue().catch(ce))))}});function en(e){return e.options.scope?.id}Je(),S(),E(),w(),O();var tn,nn,rn,an,on,sn=(tn=new WeakMap,nn=new WeakMap,rn=new WeakMap,an=new WeakMap,on=new WeakSet,class extends v{constructor(e,t){super(),qe(this,on),x(this,tn,void 0),x(this,nn,void 0),x(this,rn,void 0),x(this,an,void 0),T(tn,this,e),this.setOptions(t),this.bindMethods(),C(on,this,cn).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=D(tn,this).defaultMutationOptions(e),be(this.options,t)||D(tn,this).getMutationCache().notify({type:`observerOptionsUpdated`,mutation:D(rn,this),observer:this}),t?.mutationKey&&this.options.mutationKey&&ge(t.mutationKey)!==ge(this.options.mutationKey)?this.reset():D(rn,this)?.state.status===`pending`&&D(rn,this).setOptions(this.options)}onUnsubscribe(){this.hasListeners()||D(rn,this)?.removeObserver(this)}onMutationUpdate(e){C(on,this,cn).call(this),C(on,this,ln).call(this,e)}getCurrentResult(){return D(nn,this)}reset(){D(rn,this)?.removeObserver(this),T(rn,this,void 0),C(on,this,cn).call(this),C(on,this,ln).call(this)}mutate(e,t){return T(an,this,t),D(rn,this)?.removeObserver(this),T(rn,this,D(tn,this).getMutationCache().build(D(tn,this),this.options)),D(rn,this).addObserver(this),D(rn,this).execute(e)}});function cn(){let e=D(rn,this)?.state??Yt();T(nn,this,{...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset})}function ln(e){Ie.batch(()=>{if(D(an,this)&&this.hasListeners()){let t=D(nn,this).variables,n=D(nn,this).context,r={client:D(tn,this),meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{D(an,this).onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{D(an,this).onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{D(an,this).onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{D(an,this).onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(D(nn,this))})})}S(),E(),O();var un,dn=(un=new WeakMap,class extends v{constructor(e={}){super(),x(this,un,void 0),this.config=e,T(un,this,new Map)}build(e,t,n){let r=t.queryKey,i=t.queryHash??he(r,t),a=this.get(i);return a||(a=new rt({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){D(un,this).has(e.queryHash)||(D(un,this).set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=D(un,this).get(e.queryHash);t&&(e.destroy(),t===e&&D(un,this).delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Ie.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return D(un,this).get(e)}getAll(){return[...D(un,this).values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>pe(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>pe(e,t)):t}notify(e){Ie.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Ie.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Ie.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}});S(),E(),O();var fn,pn,mn,hn,gn,_n,vn,yn,bn=(fn=new WeakMap,pn=new WeakMap,mn=new WeakMap,hn=new WeakMap,gn=new WeakMap,_n=new WeakMap,vn=new WeakMap,yn=new WeakMap,class{constructor(e={}){x(this,fn,void 0),x(this,pn,void 0),x(this,mn,void 0),x(this,hn,void 0),x(this,gn,void 0),x(this,_n,void 0),x(this,vn,void 0),x(this,yn,void 0),T(fn,this,e.queryCache||new dn),T(pn,this,e.mutationCache||new $t),T(mn,this,e.defaultOptions||{}),T(hn,this,new Map),T(gn,this,new Map),T(_n,this,0)}mount(){var e;T(_n,this,(e=D(_n,this),e++,e)),D(_n,this)===1&&(T(vn,this,re.subscribe(async e=>{e&&(await this.resumePausedMutations(),D(fn,this).onFocus())})),T(yn,this,Be.subscribe(async e=>{e&&(await this.resumePausedMutations(),D(fn,this).onOnline())})))}unmount(){var e;T(_n,this,(e=D(_n,this),e--,e)),D(_n,this)===0&&(D(vn,this)?.call(this),T(vn,this,void 0),D(yn,this)?.call(this),T(yn,this,void 0))}isFetching(e){return D(fn,this).findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return D(pn,this).findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return D(fn,this).get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=D(fn,this).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(j(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return D(fn,this).findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=D(fn,this).get(r.queryHash)?.state.data,a=le(t,i);if(a!==void 0)return D(fn,this).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Ie.batch(()=>D(fn,this).findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return D(fn,this).get(t.queryHash)?.state}removeQueries(e){let t=D(fn,this);Ie.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=D(fn,this);return Ie.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=Ie.batch(()=>D(fn,this).findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(ce).catch(ce)}invalidateQueries(e,t={}){return Ie.batch(()=>(D(fn,this).findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ie.batch(()=>D(fn,this).findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(ce)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(ce)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=D(fn,this).build(this,t);return n.isStaleByTime(j(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ce).catch(ce)}fetchInfiniteQuery(e){return e.behavior=zt(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ce).catch(ce)}ensureInfiniteQueryData(e){return e.behavior=zt(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Be.isOnline()?D(pn,this).resumePausedMutations():Promise.resolve()}getQueryCache(){return D(fn,this)}getMutationCache(){return D(pn,this)}getDefaultOptions(){return D(mn,this)}setDefaultOptions(e){T(mn,this,e)}setQueryDefaults(e,t){D(hn,this).set(ge(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...D(hn,this).values()],n={};return t.forEach(t=>{_e(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){D(gn,this).set(ge(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...D(gn,this).values()],n={};return t.forEach(t=>{_e(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...D(mn,this).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=he(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===Oe&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...D(mn,this).mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){D(fn,this).clear(),D(pn,this).clear()}}),xn=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Sn=s(((e,t)=>{t.exports=xn()})),P=l(d(),1),F=Sn(),Cn=P.createContext(void 0),wn=e=>{let t=P.useContext(Cn);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Tn=({client:e,children:t})=>(P.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,F.jsx)(Cn.Provider,{value:e,children:t})),En=P.createContext(!1),Dn=()=>P.useContext(En);En.Provider;function On(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var kn=P.createContext(On()),An=()=>P.useContext(kn),jn=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?Ae(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Mn=e=>{P.useEffect(()=>{e.clearReset()},[e])},Nn=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||Ae(n,[e.error,r])),Pn=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},Fn=(e,t)=>e.isLoading&&e.isFetching&&!t,In=(e,t)=>e?.suspense&&t.isPending,Ln=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Rn(e,t,n){let r=Dn(),i=An(),a=wn(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash);o._optimisticResults=r?`isRestoring`:`optimistic`,Pn(o),jn(o,i,s),Mn(i);let c=!a.getQueryCache().get(o.queryHash),[l]=P.useState(()=>new t(a,o)),u=l.getOptimisticResult(o),d=!r&&e.subscribed!==!1;if(P.useSyncExternalStore(P.useCallback(e=>{let t=d?l.subscribe(Ie.batchCalls(e)):ce;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),P.useEffect(()=>{l.setOptions(o)},[o,l]),In(o,u))throw Ln(o,l,i);if(Nn({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw u.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,u),o.experimental_prefetchInRender&&!Me.isServer()&&Fn(u,r)&&(c?Ln(o,l,i):s?.promise)?.catch(ce).finally(()=>{l.updateResult()}),o.notifyOnChangeProps?u:l.trackResult(u)}function zn(e,t){return Rn(e,Ct,t)}function Bn(e,t){let n=wn(t),[r]=P.useState(()=>new sn(n,e));P.useEffect(()=>{r.setOptions(e)},[r,e]);let i=P.useSyncExternalStore(P.useCallback(e=>r.subscribe(Ie.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=P.useCallback((e,t)=>{r.mutate(e,t).catch(ce)},[r]);if(i.error&&Ae(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var Vn=l(h()),Hn=_();function Un(){return Un=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function er(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=Wn.Pop,c=null,l=u();l??(l=0,o.replaceState(Un({},o.state,{idx:l}),``));function u(){return(o.state||{idx:null}).idx}function d(){s=Wn.Pop;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=Wn.Push;let r=Zn(h.location,e,t);n&&n(r,e),l=u()+1;let d=Xn(r,l),f=h.createHref(r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=Wn.Replace;let r=Zn(h.location,e,t);n&&n(r,e),l=u();let i=Xn(r,l),d=h.createHref(r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){let t=i.location.origin===`null`?i.location.href:i.location.origin,n=typeof e==`string`?e:Qn(e);return n=n.replace(/ $/,`%20`),qn(t,`No window.location.(origin|href) available to create URL for href: `+n),new URL(n,t)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(Gn,d),c=e,()=>{i.removeEventListener(Gn,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}var tr;(function(e){e.data=`data`,e.deferred=`deferred`,e.redirect=`redirect`,e.error=`error`})(tr||(tr={}));function nr(e,t,n){return n===void 0&&(n=`/`),rr(e,t,n,!1)}function rr(e,t,n,r){let i=br((typeof t==`string`?$n(t):t).pathname||`/`,n);if(i==null)return null;let a=ir(e);or(a);let o=null,s=yr(i);for(let e=0;o==null&&e{let o={relativePath:a===void 0?e.path||``:a,caseSensitive:e.caseSensitive===!0,childrenIndex:i,route:e};o.relativePath.startsWith(`/`)&&(qn(o.relativePath.startsWith(r),`Absolute route path "`+o.relativePath+`" nested under path `+(`"`+r+`" is not valid. An absolute child route path `)+`must start with the combined path of all its parent routes.`),o.relativePath=o.relativePath.slice(r.length));let s=Ar([r,o.relativePath]),c=n.concat(o);e.children&&e.children.length>0&&(qn(e.index!==!0,`Index routes must not have child routes. Please remove `+(`all child routes from route path "`+s+`".`)),ir(e.children,t,c,s)),!(e.path==null&&!e.index)&&t.push({path:s,score:mr(s,e.index),routesMeta:c})};return e.forEach((e,t)=>{var n;if(e.path===``||!((n=e.path)!=null&&n.includes(`?`)))i(e,t);else for(let n of ar(e.path))i(e,t,n)}),t}function ar(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=ar(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function or(e){e.sort((e,t)=>e.score===t.score?hr(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var sr=/^:[\w-]+$/,cr=3,lr=2,ur=1,dr=10,fr=-2,pr=e=>e===`*`;function mr(e,t){let n=e.split(`/`),r=n.length;return n.some(pr)&&(r+=fr),t&&(r+=lr),n.filter(e=>!pr(e)).reduce((e,t)=>e+(sr.test(t)?cr:t===``?ur:dr),r)}function hr(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function gr(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e{let{paramName:r,isOptional:i}=t;if(r===`*`){let e=s[n]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let c=s[n];return i&&!c?e[r]=void 0:e[r]=(c||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function vr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Jn(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "`+e+`" will be treated as if it were `+(`"`+e.replace(/\*$/,`/*`)+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+(`please change the route path to "`+e.replace(/\*$/,`/*`)+`".`));let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:n!=null}),n?`/?([^\\/]+)?`:`/([^\\/]+)`));return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function yr(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return Jn(!1,`The URL path "`+e+`" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent `+(`encoding (`+t+`).`)),e}}function br(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}var xr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Sr=e=>xr.test(e);function Cr(e,t){t===void 0&&(t=`/`);let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?$n(e):e,a;if(n)if(Sr(n))a=n;else{if(n.includes(`//`)){let e=n;n=kr(n),Jn(!1,`Pathnames cannot have embedded double slashes - normalizing `+(e+` -> `+n))}a=n.startsWith(`/`)?wr(n.substring(1),`/`):wr(n,t)}else a=t;return{pathname:a,search:Mr(r),hash:Nr(i)}}function wr(e,t){let n=t.replace(/\/+$/,``).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Tr(e,t,n,r){return`Cannot include a '`+e+`' character in a manually specified `+("`to."+t+"` field ["+JSON.stringify(r)+`]. Please separate it out to the `)+("`to."+n+"` field. Alternatively you may provide the full path as ")+`a string in and the router will parse it for you.`}function Er(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Dr(e,t){let n=Er(e);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function Or(e,t,n,r){r===void 0&&(r=!1);let i;typeof e==`string`?i=$n(e):(i=Un({},e),qn(!i.pathname||!i.pathname.includes(`?`),Tr(`?`,`pathname`,`search`,i)),qn(!i.pathname||!i.pathname.includes(`#`),Tr(`#`,`pathname`,`hash`,i)),qn(!i.search||!i.search.includes(`#`),Tr(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=Cr(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var kr=e=>e.replace(/\/\/+/g,`/`),Ar=e=>kr(e.join(`/`)),jr=e=>e.replace(/\/+$/,``).replace(/^\/*/,`/`),Mr=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Nr=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e;function Pr(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}var Fr=[`post`,`put`,`patch`,`delete`];new Set(Fr);var Ir=[`get`,...Fr];new Set(Ir);function Lr(){return Lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),P.useCallback(function(n,i){if(i===void 0&&(i={}),!s.current)return;if(typeof n==`number`){r.go(n);return}let c=Or(n,JSON.parse(o),a,i.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Ar([t,c.pathname])),(i.replace?r.replace:r.push)(c,i.state,i)},[t,r,o,a,e])}function Xr(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=P.useContext(Br),{matches:i}=P.useContext(Hr),{pathname:a}=Kr(),o=JSON.stringify(Dr(i,r.v7_relativeSplatPath));return P.useMemo(()=>Or(e,JSON.parse(o),a,n===`path`),[e,o,a,n])}function Zr(e,t){return Qr(e,t)}function Qr(e,t,n,r){!Gr()&&qn(!1);let{navigator:i}=P.useContext(Br),{matches:a}=P.useContext(Hr),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:`/`;o&&o.route;let l=Kr(),u;if(t){let e=typeof t==`string`?$n(t):t;!(c===`/`||e.pathname?.startsWith(c))&&qn(!1),u=e}else u=l;let d=u.pathname||`/`,f=d;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);f=`/`+d.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let p=nr(e,{pathname:f}),m=ri(p&&p.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:Ar([c,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Ar([c,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),a,n,r);return t&&m?P.createElement(Vr.Provider,{value:{location:Lr({pathname:`/`,search:``,hash:``,state:null,key:`default`},u),navigationType:Wn.Pop}},m):m}function $r(){let e=ui(),t=Pr(e)?e.status+` `+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return P.createElement(P.Fragment,null,P.createElement(`h2`,null,`Unexpected Application Error!`),P.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?P.createElement(`pre`,{style:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},n):null,null)}var ei=P.createElement($r,null),ti=class extends P.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error(`React Router caught the following error during render`,e,t)}render(){return this.state.error===void 0?this.props.children:P.createElement(Hr.Provider,{value:this.props.routeContext},P.createElement(Ur.Provider,{value:this.state.error,children:this.props.component}))}};function ni(e){let{routeContext:t,match:n,children:r}=e,i=P.useContext(Rr);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),P.createElement(Hr.Provider,{value:t},r)}function ri(e,t,n,r){if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,o=n?.errors;if(o!=null){let e=a.findIndex(e=>e.route.id&&o?.[e.route.id]!==void 0);!(e>=0)&&qn(!1),a=a.slice(0,Math.min(a.length,e+1))}let s=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e=0?a.slice(0,c+1):[a[0]];break}}}return a.reduceRight((e,r,i)=>{let l,u=!1,d=null,f=null;n&&(l=o&&r.route.id?o[r.route.id]:void 0,d=r.route.errorElement||ei,s&&(c<0&&i===0?(pi(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),u=!0,f=null):c===i&&(u=!0,f=r.route.hydrateFallbackElement||null)));let p=t.concat(a.slice(0,i+1)),m=()=>{let t;return t=l?d:u?f:r.route.Component?P.createElement(r.route.Component,null):r.route.element?r.route.element:e,P.createElement(ni,{match:r,routeContext:{outlet:e,matches:p,isDataRoute:n!=null},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||i===0)?P.createElement(ti,{location:n.location,revalidation:n.revalidation,component:d,error:l,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()},null)}var ii=function(e){return e.UseBlocker=`useBlocker`,e.UseRevalidator=`useRevalidator`,e.UseNavigateStable=`useNavigate`,e}(ii||{}),ai=function(e){return e.UseBlocker=`useBlocker`,e.UseLoaderData=`useLoaderData`,e.UseActionData=`useActionData`,e.UseRouteError=`useRouteError`,e.UseNavigation=`useNavigation`,e.UseRouteLoaderData=`useRouteLoaderData`,e.UseMatches=`useMatches`,e.UseRevalidator=`useRevalidator`,e.UseNavigateStable=`useNavigate`,e.UseRouteId=`useRouteId`,e}(ai||{});function oi(e){let t=P.useContext(Rr);return!t&&qn(!1),t}function si(e){let t=P.useContext(zr);return!t&&qn(!1),t}function ci(e){let t=P.useContext(Hr);return!t&&qn(!1),t}function li(e){let t=ci(e),n=t.matches[t.matches.length-1];return!n.route.id&&qn(!1),n.route.id}function ui(){let e=P.useContext(Ur),t=si(ai.UseRouteError),n=li(ai.UseRouteError);return e===void 0?t.errors?.[n]:e}function di(){let{router:e}=oi(ii.UseNavigateStable),t=li(ai.UseNavigateStable),n=P.useRef(!1);return qr(()=>{n.current=!0}),P.useCallback(function(r,i){i===void 0&&(i={}),n.current&&(typeof r==`number`?e.navigate(r):e.navigate(r,Lr({fromRouteId:t},i)))},[e,t])}var fi={};function pi(e,t,n){!t&&!fi[e]&&(fi[e]=!0)}var mi=(e,t,n)=>(``+t+("You can use the `"+e+"` future flag to opt-in early. ")+(`For more information, see `+n+`.`),void 0);function hi(e,t){e?.v7_startTransition===void 0&&mi(`v7_startTransition`,"React Router will begin wrapping state updates in `React.startTransition` in v7",`https://reactrouter.com/v6/upgrading/future#v7_starttransition`),e?.v7_relativeSplatPath===void 0&&(!t||t.v7_relativeSplatPath===void 0)&&mi(`v7_relativeSplatPath`,`Relative route resolution within Splat routes is changing in v7`,`https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath`),t&&(t.v7_fetcherPersist===void 0&&mi(`v7_fetcherPersist`,`The persistence behavior of fetchers is changing in v7`,`https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist`),t.v7_normalizeFormMethod===void 0&&mi(`v7_normalizeFormMethod`,"Casing of `formMethod` fields is being normalized to uppercase in v7",`https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod`),t.v7_partialHydration===void 0&&mi(`v7_partialHydration`,"`RouterProvider` hydration behavior is changing in v7",`https://reactrouter.com/v6/upgrading/future#v7_partialhydration`),t.v7_skipActionErrorRevalidation===void 0&&mi(`v7_skipActionErrorRevalidation`,"The revalidation behavior after 4xx/5xx `action` responses is changing in v7",`https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation`))}function gi(e){let{to:t,replace:n,state:r,relative:i}=e;!Gr()&&qn(!1);let{future:a,static:o}=P.useContext(Br),{matches:s}=P.useContext(Hr),{pathname:c}=Kr(),l=Jr(),u=Or(t,Dr(s,a.v7_relativeSplatPath),c,i===`path`),d=JSON.stringify(u);return P.useEffect(()=>l(JSON.parse(d),{replace:n,state:r,relative:i}),[l,d,i,n,r]),null}function _i(e){qn(!1)}function vi(e){let{basename:t=`/`,children:n=null,location:r,navigationType:i=Wn.Pop,navigator:a,static:o=!1,future:s}=e;Gr()&&qn(!1);let c=t.replace(/^\/*/,`/`),l=P.useMemo(()=>({basename:c,navigator:a,static:o,future:Lr({v7_relativeSplatPath:!1},s)}),[c,s,a,o]);typeof r==`string`&&(r=$n(r));let{pathname:u=`/`,search:d=``,hash:f=``,state:p=null,key:m=`default`}=r,h=P.useMemo(()=>{let e=br(u,c);return e==null?null:{location:{pathname:e,search:d,hash:f,state:p,key:m},navigationType:i}},[c,u,d,f,p,m,i]);return h==null?null:P.createElement(Br.Provider,{value:l},P.createElement(Vr.Provider,{children:n,value:h}))}function yi(e){let{children:t,location:n}=e;return Zr(xi(t),n)}var bi=function(e){return e[e.pending=0]=`pending`,e[e.success=1]=`success`,e[e.error=2]=`error`,e}(bi||{});new Promise(()=>{}),P.Component;function xi(e,t){t===void 0&&(t=[]);let n=[];return P.Children.forEach(e,(e,r)=>{if(!P.isValidElement(e))return;let i=[...t,r];if(e.type===P.Fragment){n.push.apply(n,xi(e.props.children,i));return}e.type!==_i&&qn(!1),!(!e.props.index||!e.props.children)&&qn(!1);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=xi(e.props.children,i)),n.push(a)}),n}function Si(){return Si=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function Di(e,t){let n=Ei(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var Oi=[`onClick`,`relative`,`reloadDocument`,`replace`,`state`,`target`,`to`,`preventScrollReset`,`viewTransition`],ki=[`aria-current`,`caseSensitive`,`className`,`end`,`style`,`to`,`viewTransition`,`children`],Ai=`6`;try{window.__reactRouterVersion=Ai}catch{}var ji=P.createContext({isTransitioning:!1}),Mi=P.startTransition;function Ni(e){let{basename:t,children:n,future:r,window:i}=e,a=P.useRef();a.current??(a.current=Kn({window:i,v5Compat:!0}));let o=a.current,[s,c]=P.useState({action:o.action,location:o.location}),{v7_startTransition:l}=r||{},u=P.useCallback(e=>{l&&Mi?Mi(()=>c(e)):c(e)},[c,l]);return P.useLayoutEffect(()=>o.listen(u),[o,u]),P.useEffect(()=>hi(r),[r]),P.createElement(vi,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o,future:r})}var Pi=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Fi=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ii=P.forwardRef(function(e,t){let{onClick:n,relative:r,reloadDocument:i,replace:a,state:o,target:s,to:c,preventScrollReset:l,viewTransition:u}=e,d=Ci(e,Oi),{basename:f}=P.useContext(Br),p,m=!1;if(typeof c==`string`&&Fi.test(c)&&(p=c,Pi))try{let e=new URL(window.location.href),t=c.startsWith(`//`)?new URL(e.protocol+c):new URL(c),n=br(t.pathname,f);t.origin===e.origin&&n!=null?c=n+t.search+t.hash:m=!0}catch{}let h=Wr(c,{relative:r}),g=Bi(c,{replace:a,state:o,target:s,preventScrollReset:l,relative:r,viewTransition:u});function _(e){n&&n(e),e.defaultPrevented||g(e)}return P.createElement(`a`,Si({},d,{href:p||h,onClick:m||i?n:_,ref:t,target:s}))}),Li=P.forwardRef(function(e,t){let{"aria-current":n=`page`,caseSensitive:r=!1,className:i=``,end:a=!1,style:o,to:s,viewTransition:c,children:l}=e,u=Ci(e,ki),d=Xr(s,{relative:u.relative}),f=Kr(),p=P.useContext(zr),{navigator:m,basename:h}=P.useContext(Br),g=p!=null&&Hi(d)&&c===!0,_=m.encodeLocation?m.encodeLocation(d).pathname:d.pathname,v=f.pathname,y=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;r||(v=v.toLowerCase(),y=y?y.toLowerCase():null,_=_.toLowerCase()),y&&h&&(y=br(y,h)||y);let b=_!==`/`&&_.endsWith(`/`)?_.length-1:_.length,x=v===_||!a&&v.startsWith(_)&&v.charAt(b)===`/`,S=y!=null&&(y===_||!a&&y.startsWith(_)&&y.charAt(_.length)===`/`),C={isActive:x,isPending:S,isTransitioning:g},w=x?n:void 0,T;T=typeof i==`function`?i(C):[i,x?`active`:null,S?`pending`:null,g?`transitioning`:null].filter(Boolean).join(` `);let E=typeof o==`function`?o(C):o;return P.createElement(Ii,Si({},u,{"aria-current":w,className:T,ref:t,style:E,to:s,viewTransition:c}),typeof l==`function`?l(C):l)}),I;(function(e){e.UseScrollRestoration=`useScrollRestoration`,e.UseSubmit=`useSubmit`,e.UseSubmitFetcher=`useSubmitFetcher`,e.UseFetcher=`useFetcher`,e.useViewTransitionState=`useViewTransitionState`})(I||(I={}));var Ri;(function(e){e.UseFetcher=`useFetcher`,e.UseFetchers=`useFetchers`,e.UseScrollRestoration=`useScrollRestoration`})(Ri||(Ri={}));function zi(e){let t=P.useContext(Rr);return!t&&qn(!1),t}function Bi(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o,viewTransition:s}=t===void 0?{}:t,c=Jr(),l=Kr(),u=Xr(e,{relative:o});return P.useCallback(t=>{Ti(t,n)&&(t.preventDefault(),c(e,{replace:r===void 0?Qn(l)===Qn(u):r,state:i,preventScrollReset:a,relative:o,viewTransition:s}))},[l,c,u,r,i,n,e,a,o,s])}function Vi(e){let t=P.useRef(Ei(e)),n=P.useRef(!1),r=Kr(),i=P.useMemo(()=>Di(r.search,n.current?null:t.current),[r.search]),a=Jr();return[i,P.useCallback((e,t)=>{let r=Ei(typeof e==`function`?e(i):e);n.current=!0,a(`?`+r,t)},[a,i])]}function Hi(e,t){t===void 0&&(t={});let n=P.useContext(ji);n??qn(!1);let{basename:r}=zi(I.useViewTransitionState),i=Xr(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=br(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=br(n.nextLocation.pathname,r)||n.nextLocation.pathname;return _r(i.pathname,o)!=null||_r(i.pathname,a)!=null}var Ui=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},Wi=(e=>e?Ui(e):Ui),Gi=e=>e;function Ki(e,t=Gi){let n=P.useSyncExternalStore(e.subscribe,P.useCallback(()=>t(e.getState()),[e,t]),P.useCallback(()=>t(e.getInitialState()),[e,t]));return P.useDebugValue(n),n}var qi=e=>{let t=Wi(e),n=e=>Ki(t,e);return Object.assign(n,t),n},Ji=(e=>e?qi(e):qi),Yi=`anyllm_admin_token`;function Xi(){try{let e=new URLSearchParams(window.location.search),t=e.get(`token`);if(!t)return null;e.delete(`token`);let n=e.toString(),r=window.location.pathname+(n?`?${n}`:``)+window.location.hash;return window.history.replaceState(null,``,r),t}catch{return null}}function Zi(){let e=Xi();if(e)return Qi(e),e;try{return window.sessionStorage.getItem(Yi)}catch{return null}}function Qi(e){try{window.sessionStorage.setItem(Yi,e)}catch{}}function $i(){try{window.sessionStorage.removeItem(Yi)}catch{}}var ea=Ji(e=>({token:Zi(),login(t){Qi(t),e({token:t})},logout(){$i(),e({token:null})}})),ta=Ji(e=>({status:`disconnected`,lastEvent:null,setStatus:t=>e({status:t}),pushEvent:t=>e({lastEvent:t})})),na=3e4,ra=1e3,L=null,ia=null,aa=0,oa=!1;function sa(){oa=!1,!(L&&(L.readyState===WebSocket.OPEN||L.readyState===WebSocket.CONNECTING))&&la()}function ca(){oa=!0,ia&&clearTimeout(ia),L?.close(),L=null,ta.getState().setStatus(`disconnected`)}function la(){if(oa)return;let e=ea.getState().token;if(!e)return;ta.getState().setStatus(`connecting`);let t=location.protocol===`https:`?`wss:`:`ws:`;L=new WebSocket(`${t}//${location.host}/admin/ws`),L.onopen=()=>{L.send(JSON.stringify({token:e}))},L.onmessage=e=>{let t;try{t=JSON.parse(e.data)}catch{return}if(typeof t==`object`&&t&&`status`in t&&t.status===`authenticated`){aa=0,ta.getState().setStatus(`connected`);return}typeof t==`object`&&t&&`type`in t&&ta.getState().pushEvent(t)},L.onclose=()=>{if(oa)return;ta.getState().setStatus(`disconnected`);let e=Math.min(ra*2**aa,na);aa++,ia=setTimeout(la,e)},L.onerror=()=>{L?.close()}}var ua=5,da=4e3,fa=1,pa=Ji(e=>({toasts:[],push({variant:t,message:n,ttlMs:r}){let i=fa++,a=r===void 0?t===`error`?null:da:r;return e(e=>{let r=[...e.toasts,{id:i,variant:t,message:n,ttlMs:a}];return{toasts:r.length>ua?r.slice(-5):r}}),i},dismiss(t){e(e=>({toasts:e.toasts.filter(e=>e.id!==t)}))},clear(){e({toasts:[]})}}));function ma(e){return pa.getState().push(e)}function ha(){let e=Promise.resolve();return function(t){let n=e.then(t,t);return e=n.catch(()=>void 0),n}}var ga=ha();async function _a(e,t){let n=await e(`/admin/csrf-token`,{headers:{Authorization:`Bearer ${t()}`}});if(!n.ok)throw Error(`Failed to fetch CSRF token`);let r=await n.json();if(typeof r.csrf_token!=`string`)throw Error(`Failed to fetch CSRF token`);return r.csrf_token}function va(e,t,n){return{Authorization:`Bearer ${t}`,"X-CSRF-Token":e,...n?{"Content-Type":n}:{}}}function ya(e){return e.status===204||e.headers.get(`content-length`)===`0`}async function ba(e,t,n,r,i){let a=async a=>i.fetchImpl(t,{method:e,headers:va(a,i.getToken(),r),body:n}),o=await _a(i.fetchImpl,i.getToken),s=await a(o);if(s.status===403&&(o=await _a(i.fetchImpl,i.getToken),s=await a(o)),await i.handleAuthAndErrors(s),!ya(s))return s.json()}function xa(e){"@babel/helpers - typeof";return xa=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},xa(e)}var Sa=o((()=>{}));function Ca(e,t){if(xa(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(xa(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var wa=o((()=>{Sa()}));function Ta(e){var t=Ca(e,`string`);return xa(t)==`symbol`?t:t+``}var Ea=o((()=>{Sa(),wa()}));function Da(e,t,n){return(t=Ta(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}o((()=>{Ea()}))();function Oa(){return ea.getState().token??``}var ka=class extends Error{constructor(e){super(`Rate limited. Retry in ${e}s.`),Da(this,`retryAfterSeconds`,void 0),this.name=`RateLimitError`,this.retryAfterSeconds=e}};function Aa(e){let t=e.headers.get(`retry-after`);if(!t)return 1;let n=Number(t);if(Number.isFinite(n)&&n>0)return Math.ceil(n);let r=Date.parse(t);return Number.isNaN(r)?1:Math.max(1,Math.ceil((r-Date.now())/1e3))}async function ja(e){if(e.status===401)throw ea.getState().logout(),Error(`Unauthorized`);if(e.status===429){let t=Aa(e);throw ma({variant:`warn`,message:`Admin API rate-limited. Retry in ${t}s.`,ttlMs:t*1e3}),new ka(t)}if(!e.ok){let t=await e.text().catch(()=>e.statusText);throw Error(t||`HTTP ${e.status}`)}}async function Ma(e,t){let n=await fetch(e,{...t,headers:{Authorization:`Bearer ${Oa()}`,...t?.headers??{}}});return await ja(n),n.json()}async function Na(e,t,n,r){return ga(()=>ba(e,t,n,r,{fetchImpl:(e,t)=>fetch(e,t),getToken:Oa,handleAuthAndErrors:ja}))}function Pa(e,t,n){return Na(e,t,n===void 0?void 0:JSON.stringify(n),n===void 0?void 0:`application/json`)}function Fa(e,t){return Na(`POST`,e,t)}function Ia(e=!0){return zn({queryKey:[`status`],queryFn:()=>Ma(`/admin/api/status`),enabled:e,staleTime:1/0})}function La(){return zn({queryKey:[`metrics`],queryFn:()=>Ma(`/admin/api/metrics`),refetchInterval:5e3,staleTime:0})}function Ra(e,t){return zn({queryKey:[`observability`,e,t],queryFn:()=>Ma(`/admin/api/observability/overview?window=${e}&backend=${encodeURIComponent(t)}`),refetchInterval:3e4,staleTime:0})}function za(e){let t=new URLSearchParams;return t.set(`limit`,String(e.page_size)),t.set(`offset`,String((e.page-1)*e.page_size)),e.backend&&t.set(`backend`,e.backend),e.status&&t.set(`status`,e.status),e.since&&t.set(`since`,e.since),e.until&&t.set(`until`,e.until),e.model&&t.set(`model`,e.model),zn({queryKey:[`requests`,e],queryFn:()=>Ma(`/admin/api/requests?${t}`),staleTime:1/0})}function Ba(){return zn({queryKey:[`keys`],queryFn:()=>Ma(`/admin/api/keys`).then(e=>e.keys),staleTime:1/0})}function Va(){let e=wn();return Bn({mutationFn:e=>Pa(`POST`,`/admin/api/keys`,e),onSuccess:()=>{e.invalidateQueries({queryKey:[`keys`]})}})}function Ha(){let e=wn();return Bn({mutationFn:({id:e,body:t})=>Pa(`PUT`,`/admin/api/keys/${e}`,t),onSuccess:()=>{e.invalidateQueries({queryKey:[`keys`]})}})}function Ua(){let e=wn();return Bn({mutationFn:e=>Pa(`DELETE`,`/admin/api/keys/${e}`),onSuccess:()=>{e.invalidateQueries({queryKey:[`keys`]})}})}function Wa(){return zn({queryKey:[`backends`],queryFn:()=>Ma(`/admin/api/backends`).then(e=>e.backends),staleTime:1/0})}function Ga(){return zn({queryKey:[`config`],queryFn:()=>Promise.all([Ma(`/admin/api/config`),Ma(`/admin/api/config/overrides`)]).then(([e,t])=>({...e,entries:t.overrides??[],env:{}})),staleTime:1/0})}function Ka(){let e=wn();return Bn({mutationFn:e=>Pa(`PUT`,`/admin/api/config`,e),onSuccess:()=>{e.invalidateQueries({queryKey:[`config`]})}})}function qa(){let e=wn();return Bn({mutationFn:e=>Pa(`DELETE`,`/admin/api/config/overrides/${encodeURIComponent(e)}`),onSuccess:()=>{e.invalidateQueries({queryKey:[`config`]})}})}function Ja(){return zn({queryKey:[`env`],queryFn:()=>Ma(`/admin/api/env`),staleTime:1/0})}function Ya(){return zn({queryKey:[`models`],queryFn:()=>Ma(`/admin/api/models`),staleTime:1/0})}function Xa(){let e=wn();return Bn({mutationFn:e=>Pa(`POST`,`/admin/api/models`,e),onSuccess:()=>{e.invalidateQueries({queryKey:[`models`]})}})}function Za(){let e=wn();return Bn({mutationFn:e=>Pa(`DELETE`,`/admin/api/models/${encodeURIComponent(e)}`),onSuccess:()=>{e.invalidateQueries({queryKey:[`models`]})}})}function Qa(){return Bn({mutationFn:e=>Pa(`POST`,`/admin/api/models/discover`,e)})}function $a(e){return zn({queryKey:[`audit`,e],queryFn:()=>Ma(`/admin/api/audit?limit=${e.page_size}&offset=${(e.page-1)*e.page_size}`),staleTime:1/0})}function eo(e){return zn({queryKey:[`traffic`,e],queryFn:()=>Ma(`/admin/api/traffic?window=${e}`),refetchInterval:3e4,staleTime:0})}function to(){return zn({queryKey:[`uptime`],queryFn:()=>Ma(`/admin/api/uptime`),refetchInterval:3e4,staleTime:0})}function no(){return Bn({mutationFn:e=>{let t=new FormData;return t.append(`file`,e),Fa(`/admin/api/env/import`,t)}})}function ro(){return zn({queryKey:[`catalog-providers`],queryFn:()=>Ma(`/admin/api/catalog/providers`).then(e=>e.providers),staleTime:1/0})}function io(){return zn({queryKey:[`managed-backends`],queryFn:()=>Ma(`/admin/api/backends/managed`),staleTime:1/0})}function ao(){let e=wn();return Bn({mutationFn:e=>Pa(`POST`,`/admin/api/backends/managed`,e),onSuccess:()=>{e.invalidateQueries({queryKey:[`managed-backends`]})}})}function oo(){let e=wn();return Bn({mutationFn:({name:e,data:t})=>Pa(`PUT`,`/admin/api/backends/managed/${e}`,t),onSuccess:()=>{e.invalidateQueries({queryKey:[`managed-backends`]})}})}function so(){let e=wn();return Bn({mutationFn:e=>Pa(`DELETE`,`/admin/api/backends/managed/${e}`),onSuccess:()=>{e.invalidateQueries({queryKey:[`managed-backends`]})}})}function co(){return zn({queryKey:[`routes`],queryFn:()=>Ma(`/admin/api/routes`),staleTime:1/0})}function lo(){let e=wn();return Bn({mutationFn:e=>Pa(`POST`,`/admin/api/routes`,e),onSuccess:()=>{e.invalidateQueries({queryKey:[`routes`]})}})}function uo(){let e=wn();return Bn({mutationFn:e=>Pa(`DELETE`,`/admin/api/routes/${e}`),onSuccess:()=>{e.invalidateQueries({queryKey:[`routes`]})}})}function fo(e){return zn({queryKey:[`route-providers`,e],queryFn:()=>Ma(`/admin/api/routes/${e}/providers`),enabled:!!e,staleTime:1/0})}function po(){let e=wn();return Bn({mutationFn:({routeId:e,data:t})=>Pa(`POST`,`/admin/api/routes/${e}/providers`,t),onSuccess:(t,{routeId:n})=>{e.invalidateQueries({queryKey:[`route-providers`,n]}),e.invalidateQueries({queryKey:[`routes`]})}})}function mo(){let e=wn();return Bn({mutationFn:({routeId:e,providerId:t,data:n})=>Pa(`PUT`,`/admin/api/routes/${e}/providers/${t}`,n),onSuccess:(t,{routeId:n})=>{e.invalidateQueries({queryKey:[`route-providers`,n]})}})}function ho(){let e=wn();return Bn({mutationFn:({routeId:e,providerId:t})=>Pa(`DELETE`,`/admin/api/routes/${e}/providers/${t}`),onSuccess:(t,{routeId:n})=>{e.invalidateQueries({queryKey:[`route-providers`,n]}),e.invalidateQueries({queryKey:[`routes`]})}})}function R(){let e=wn();return Bn({mutationFn:({routeId:e,data:t})=>Pa(`PUT`,`/admin/api/routes/${e}/providers/reorder`,t),onSuccess:(t,{routeId:n})=>{e.invalidateQueries({queryKey:[`route-providers`,n]}),e.invalidateQueries({queryKey:[`routes`]})}})}async function z(){let e=ea.getState().token??``,t=await fetch(`/admin/api/env/export`,{headers:{Authorization:`Bearer ${e}`}});if(!t.ok)throw Error(`Export failed: HTTP ${t.status}`);let n=await t.blob(),r=URL.createObjectURL(n),i=document.createElement(`a`);i.href=r,i.download=`.anyllm.env`,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(r)}function B(...e){let t=[],n=e=>{e&&(typeof e==`string`||typeof e==`number`?t.push(String(e)):Array.isArray(e)&&e.forEach(n))};return e.forEach(n),t.join(` `)}var go=(0,P.forwardRef)(({glyph:e=`✦`,solid:t,static:n,className:r,...i},a)=>(0,F.jsx)(`span`,{ref:a,"aria-hidden":`true`,className:B(`pui-sparkle`,!n&&`pui-sparkle--blink`,t&&`pui-sparkle--solid`,r),...i,children:e}));go.displayName=`Sparkle`;var _o=(0,P.forwardRef)(({as:e,static:t,className:n,children:r,...i},a)=>(0,F.jsx)(e??`span`,{ref:a,className:B(`pui-gradient-text`,!t&&`pui-gradient-text--animate`,n),...i,children:r}));_o.displayName=`GradientText`;var vo=(0,P.forwardRef)(({color:e,static:t,className:n,style:r,...i},a)=>(0,F.jsx)(`span`,{ref:a,"aria-hidden":`true`,className:B(`pui-dot`,!t&&`pui-dot--pulse`,n),style:e?{...r,background:e,color:e}:r,...i}));vo.displayName=`StatusDot`;var yo=new Set([`flash1`,`flash2`,`flash3`,`glow1`,`glow2`,`glow3`]),bo=(0,P.forwardRef)(({text:e,animation:t=`wave`,color:n=`glow1`,className:r,style:i,...a},o)=>{let s=yo.has(n),c=s?`pui-quest--${n}`:void 0,l=s?void 0:{color:n};if(t===`wave`){let t=[...e];return(0,F.jsx)(`span`,{ref:o,className:B(`pui-quest`,`pui-quest--wave`,c,r),style:{...l,...i},...a,children:t.map((e,t)=>(0,F.jsx)(`span`,{className:`pui-quest__char`,style:{animationDelay:`${-(t+1)*50}ms`},children:e===` `?`\xA0`:e},t))})}let u=t===`scroll`?`pui-quest__scroll`:`pui-quest__slide`;return(0,F.jsx)(`span`,{ref:o,className:B(`pui-quest`,`pui-quest--${t}`,c,r),style:{...l,...i},...a,children:(0,F.jsx)(`span`,{className:u,children:e})})});bo.displayName=`QuestText`;function xo({variant:e=`glow`,size:t=`md`,sparkle:n,loading:r,block:i,as:a,className:o,children:s,disabled:c,...l},u){let d=a??`button`;return(0,F.jsxs)(d,{ref:u,className:B(`pui-btn`,`pui-btn--${e}`,t!==`md`&&`pui-btn--${t}`,i&&`pui-btn--block`,o),disabled:d===`button`?c||r:void 0,"aria-busy":r||void 0,...l,children:[r?(0,F.jsx)(`span`,{className:`pui-btn__spinner`,"aria-hidden":!0}):null,(0,F.jsx)(`span`,{children:s}),n?(0,F.jsx)(go,{}):null]})}var So=(0,P.forwardRef)(xo),Co=(0,P.forwardRef)(({hideSparkle:e,trailing:t,className:n,children:r,...i},a)=>(0,F.jsxs)(`div`,{ref:a,className:B(`pui-sticky-banner`,n),...i,children:[!e&&(0,F.jsx)(go,{}),(0,F.jsx)(`span`,{children:r}),t]}));Co.displayName=`StickyBanner`;var wo=(0,P.forwardRef)(({icon:e,statusColor:t,className:n,children:r,...i},a)=>(0,F.jsxs)(`span`,{ref:a,className:B(`pui-eyebrow`,n),...i,children:[e===!1?null:e??(0,F.jsx)(vo,{color:t}),(0,F.jsx)(`span`,{children:r})]}));wo.displayName=`EyebrowPill`;function To({words:e,typeMs:t=70,deleteMs:n=32,holdMs:r=1500,loop:i=!0,onWordReached:a}){let[o,s]=(0,P.useState)(``),[c,l]=(0,P.useState)(0),[u,d]=(0,P.useState)(!1),[f,p]=(0,P.useState)(!1),m=(0,P.useRef)({word:o,index:c,isDeleting:u});return m.current={word:o,index:c,isDeleting:u},(0,P.useEffect)(()=>{let o=null,c=!1;if(!e.length)return;let u=()=>{if(c)return;let{word:f,index:h,isDeleting:g}=m.current,_=e[h],v=g?_.slice(0,f.length-1):_.slice(0,f.length+1);if(s(v),!g&&v===_){if(a?.(_,h),!i&&h===e.length-1){p(!0);return}o=setTimeout(()=>{c||(d(!0),o=setTimeout(u,n))},r);return}g&&v===``&&(d(!1),l(t=>(t+1)%e.length)),o=setTimeout(u,g?n:t)};return o=setTimeout(u,t),()=>{c=!0,o&&clearTimeout(o)}},[]),{word:o,index:c,isDeleting:u,isComplete:f}}var Eo=(0,P.forwardRef)(({words:e,typeMs:t,deleteMs:n,holdMs:r,loop:i,onWordReached:a,hideCursor:o,cursor:s,renderWord:c,className:l,...u},d)=>{let{word:f,index:p}=To({words:e,typeMs:t,deleteMs:n,holdMs:r,loop:i,onWordReached:a});return(0,F.jsxs)(`span`,{ref:d,className:B(`pui-rotator`,l),...u,children:[c?c(f,p):f,!o&&(0,F.jsx)(`span`,{"aria-hidden":`true`,className:B(`pui-rotator__cursor`,s===void 0&&`pui-rotator__cursor--block`,`pui-rotator__cursor--blink`),children:s})]})});Eo.displayName=`Rotator`;var Do=(0,P.forwardRef)(({words:e,intervalMs:t=2200,transitionMs:n=500,direction:r=`up`,gradient:i,className:a,style:o,...s},c)=>{let[l,u]=(0,P.useState)(0);(0,P.useEffect)(()=>{if(!e.length)return;let n=setInterval(()=>u(t=>(t+1)%e.length),t);return()=>clearInterval(n)},[t,e.length]);let d={...o,"--pui-roll-ms":`${n}ms`},f=(l-1+e.length)%e.length;return(0,F.jsxs)(`span`,{ref:c,className:B(`pui-roll`,r===`down`&&`pui-roll--down`,i&&`pui-roll--gradient`,a),style:d,...s,children:[(0,F.jsx)(`span`,{className:`pui-roll__sizer`,"aria-hidden":`true`,children:e[l]}),e.map((e,t)=>(0,F.jsx)(`span`,{className:B(`pui-roll__word`,t===l&&`pui-roll__word--active`,t===f&&l!==f&&`pui-roll__word--past`),"aria-hidden":t===l?void 0:`true`,children:e},t))]})});Do.displayName=`WordRoll`;var Oo=(0,P.forwardRef)(({placeholder:e=`Describe what you want to build…`,defaultValue:t,value:n,onChange:r,onSubmit:i,leading:a,ctaLabel:o=`Generate`,hideCta:s,className:c,...l},u)=>{let d=n!==void 0,[f,p]=(0,P.useState)(t??``),m=d?n:f;return(0,F.jsxs)(`form`,{ref:u,className:B(`pui-prompt`,c),onSubmit:e=>{e.preventDefault(),i?.(m)},...l,children:[a===!1?null:(0,F.jsx)(`span`,{className:`pui-prompt__icon`,children:a??(0,F.jsx)(go,{})}),(0,F.jsx)(`input`,{className:`pui-prompt__input`,type:`text`,placeholder:e,value:m,onChange:e=>{let t=e.target.value;d||p(t),r?.(t)},autoComplete:`off`}),!s&&(0,F.jsx)(So,{type:`submit`,variant:`glow`,sparkle:!0,children:o})]})});Oo.displayName=`PromptHero`;var ko=[`GPT-5 Turbo Vision`,`Claude Opus 4.7`,`Gemini 3 Pro`],Ao=(0,P.forwardRef)(({value:e,defaultValue:t=``,onChange:n,onSubmit:r,placeholder:i=`Build me a…`,rows:a=3,models:o=ko,model:s,defaultModel:c,onModelChange:l,onAddContext:u,onVoice:d,hideAddContext:f,hideModel:p,hideVoice:m,hideSend:h,submitOnCmdEnter:g=!0,toolbarExtras:_,className:v,...y},b)=>{let x=e!==void 0,[S,C]=(0,P.useState)(t),w=x?e:S,T=s!==void 0,[E,D]=(0,P.useState)(c??o[0]??``),O=T?s:E,[ee,te]=(0,P.useState)(!1),ne=(0,P.useRef)(null);(0,P.useEffect)(()=>{if(!ee)return;let e=e=>{var t;(t=ne.current)!=null&&t.contains(e.target)||te(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[ee]);let re=e=>{x||C(e),n?.(e)},ie=e=>{T||D(e),l?.(e),te(!1)},ae=e=>{e?.preventDefault(),r?.(w,{model:O})},oe=e=>{g&&e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),ae())};return(0,F.jsxs)(`form`,{ref:b,className:B(`pui-promptbox`,v),onSubmit:ae,...y,children:[(0,F.jsx)(`textarea`,{className:`pui-promptbox__textarea`,value:w,onChange:e=>re(e.target.value),onKeyDown:oe,placeholder:i,rows:a}),(0,F.jsxs)(`div`,{className:`pui-promptbox__toolbar`,children:[!f&&(0,F.jsx)(`button`,{type:`button`,className:`pui-promptbox__iconbtn`,onClick:u,title:`Add context`,"aria-label":`Add context`,children:(0,F.jsx)(jo,{})}),!p&&o.length>0&&(0,F.jsxs)(`div`,{className:`pui-promptbox__model-wrap`,ref:ne,children:[(0,F.jsxs)(`button`,{type:`button`,className:`pui-promptbox__model`,onClick:()=>te(e=>!e),"aria-expanded":ee,"aria-haspopup":`menu`,children:[(0,F.jsx)(`span`,{children:O}),(0,F.jsx)(Mo,{})]}),ee&&(0,F.jsx)(`div`,{className:`pui-promptbox__menu`,role:`menu`,children:o.map(e=>(0,F.jsxs)(`button`,{type:`button`,className:B(`pui-promptbox__menu-item`,e===O&&`pui-promptbox__menu-item--active`),onClick:()=>ie(e),role:`menuitemradio`,"aria-checked":e===O,children:[(0,F.jsx)(`span`,{children:e}),e===O&&(0,F.jsx)(Fo,{})]},e))})]}),(0,F.jsx)(`div`,{className:`pui-promptbox__spacer`}),_,!m&&(0,F.jsx)(`button`,{type:`button`,className:`pui-promptbox__iconbtn`,onClick:d,title:`Voice mode`,"aria-label":`Voice mode`,children:(0,F.jsx)(No,{})}),!h&&(0,F.jsx)(`button`,{type:`submit`,className:`pui-promptbox__iconbtn pui-promptbox__send`,title:`Send`,"aria-label":`Send`,children:(0,F.jsx)(Po,{})})]})]})});Ao.displayName=`Prompt`;function jo(){return(0,F.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.2`,strokeLinecap:`round`,"aria-hidden":`true`,children:(0,F.jsx)(`path`,{d:`M12 5v14M5 12h14`})})}function Mo(){return(0,F.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`10`,height:`10`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,F.jsx)(`polyline`,{points:`6 9 12 15 18 9`})})}function No(){return(0,F.jsxs)(`svg`,{viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.9`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,F.jsx)(`rect`,{x:`9`,y:`2`,width:`6`,height:`12`,rx:`3`}),(0,F.jsx)(`path`,{d:`M19 10a7 7 0 0 1-14 0`}),(0,F.jsx)(`line`,{x1:`12`,y1:`19`,x2:`12`,y2:`22`})]})}function Po(){return(0,F.jsxs)(`svg`,{viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.4`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,F.jsx)(`line`,{x1:`12`,y1:`19`,x2:`12`,y2:`5`}),(0,F.jsx)(`polyline`,{points:`5 12 12 5 19 12`})]})}function Fo(){return(0,F.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`12`,height:`12`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.4`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,F.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})}var Io=` .\`'",:;Il!i><~+_-?][}{1)(|/tfjrxnuvczXYUJCLQ0OZmwqpdbkhao*#MW&8%B@$`,Lo=[`#a78bfa`,`#ec4899`,`#67e8f9`,`#fbbf24`];function Ro(e,t,n={}){let{cols:r,rows:i,fontSize:a=11,fontFamily:o=`JetBrains Mono, ui-monospace, monospace`,charRamp:s=Io,colorful:c=!1,palette:l,baseOpacity:u=1,reactive:d=!0,rippleStrength:f=1.4,rippleRadius:p=6,spotlightOpacity:m,spotlightRadius:h=8,frameMs:g=50}=n,_=(0,P.useMemo)(()=>l??(c?Lo:null),[l,c]);(0,P.useEffect)(()=>{let n=e.current,c=t.current;if(!n||!c)return;let l=n.getContext(`2d`);if(!l)return;let v=0,y=0,b=0,x=0,S=0,C=0,w=new Float32Array,T=1,E={x:-9999,y:-9999},D=()=>{w=new Float32Array(b*x);for(let e=0;e{let e=c.getBoundingClientRect();e.width===0||e.height===0||(T=Math.min(window.devicePixelRatio||1,2),n.width=Math.max(1,Math.floor(e.width*T)),n.height=Math.max(1,Math.floor(e.height*T)),l.setTransform(T,0,0,T,0,0),l.font=`${a}px ${o}`,l.textBaseline=`top`,S=l.measureText(`M`).width||a*.6,C=a*1.15,b=r??Math.max(1,Math.floor(e.width/S)),x=i??Math.max(1,Math.floor(e.height/C)),r!==void 0&&(S=e.width/b),i!==void 0&&(C=e.height/x),D())},ee=e=>{if(e-y=r.left-24&&E.x<=r.right+24&&E.y>=r.top-24&&E.y<=r.bottom+24;l.clearRect(0,0,r.width,r.height);let c=s.length-1,T=typeof m==`number`&&m!==u,D=h*h*2;for(let e=0;e1&&(te=1)}if(te<=.01)continue;let ne=`#c8c8d4`;if(_&&_.length){let r=(n*.1+e*.07+t*.12)%_.length;ne=_[Math.floor(Math.abs(r))%_.length]}l.globalAlpha=te,l.fillStyle=ne,l.fillText(ee,n*S,e*C)}l.globalAlpha=1,v=requestAnimationFrame(ee)},te=e=>{E.x=e.clientX,E.y=e.clientY},ne=new ResizeObserver(O);return ne.observe(c),O(),d&&window.addEventListener(`mousemove`,te,{passive:!0}),v=requestAnimationFrame(ee),()=>{cancelAnimationFrame(v),ne.disconnect(),d&&window.removeEventListener(`mousemove`,te)}},[e,t,r,i,a,o,s,_,u,d,f,p,m,h,g])}var zo=(0,P.forwardRef)(({variant:e=`panel`,cols:t,rows:n,fontSize:r,fontFamily:i,charRamp:a,colorful:o,palette:s,baseOpacity:c,reactive:l,rippleStrength:u,rippleRadius:d,spotlightOpacity:f,spotlightRadius:p,frameMs:m,className:h,...g},_)=>{let v=(0,P.useRef)(null),y=(0,P.useRef)(null);return Ro(y,v,{cols:t,rows:n,fontSize:r,fontFamily:i,charRamp:a,colorful:o,palette:s,baseOpacity:c,reactive:l,rippleStrength:u,rippleRadius:d,spotlightOpacity:f,spotlightRadius:p,frameMs:m}),(0,F.jsx)(`div`,{ref:e=>{v.current=e,typeof _==`function`?_(e):_&&(_.current=e)},className:B(`pui-ascii`,e===`panel`&&`pui-ascii--panel`,h),"aria-hidden":`true`,...g,children:(0,F.jsx)(`canvas`,{ref:y})})});zo.displayName=`AsciiHero`;var Bo=`circle(0px at -9999px -9999px)`,Vo=(0,P.forwardRef)(({text_default:e,text_reveal:t,pattern:n=`0 1 0 1 `,pattern_size_default:r=14,pattern_size_reveal:i=22,scopeSize:a=320,fontSize:o,fontFamily:s,className:c,style:l,...u},d)=>{let f=(0,P.useRef)(null),p=(0,P.useRef)(null);(0,P.useEffect)(()=>{let e=f.current,t=p.current;if(!e||!t)return;let n=a/2,r=0,i=0,o=0,s=!1,c=()=>{if(r=0,!s)return;s=!1;let e=`circle(${n}px at ${i}px ${o}px)`;t.style.clipPath=e,t.style.webkitClipPath=e},l=t=>{let n=e.getBoundingClientRect();i=t.clientX-n.left,o=t.clientY-n.top,s=!0,r||(r=requestAnimationFrame(c))},u=()=>{r&&(cancelAnimationFrame(r),r=0,s=!1),t.style.clipPath=Bo,t.style.webkitClipPath=Bo};return e.addEventListener(`pointermove`,l),e.addEventListener(`pointerleave`,u),e.addEventListener(`pointercancel`,u),()=>{e.removeEventListener(`pointermove`,l),e.removeEventListener(`pointerleave`,u),e.removeEventListener(`pointercancel`,u),r&&cancelAnimationFrame(r)}},[a]);let m=e=>{f.current=e,typeof d==`function`?d(e):d&&(d.current=e)},h=(0,P.useMemo)(()=>n.repeat(40),[n]),g=(0,P.useMemo)(()=>Array.from({length:40},(e,t)=>t),[]),_=e=>(0,F.jsx)(`div`,{className:`pui-goldeneye__pattern`,style:{fontSize:`${e}px`},children:g.map(e=>(0,F.jsx)(`div`,{className:`pui-goldeneye__pattern-row`,children:h},e))}),v={...s?{"--pui-goldeneye-font":s}:{},...o==null?{}:{"--pui-goldeneye-headline-size":typeof o==`number`?`${o}px`:o}};return(0,F.jsxs)(`div`,{ref:m,className:B(`pui-goldeneye`,c),style:{...v,...l},...u,children:[(0,F.jsxs)(`div`,{className:`pui-goldeneye__base`,children:[_(r),(0,F.jsx)(`div`,{className:`pui-goldeneye__headline`,children:e})]}),(0,F.jsxs)(`div`,{ref:p,className:`pui-goldeneye__scope`,"aria-hidden":`true`,style:{clipPath:Bo,WebkitClipPath:Bo},children:[_(i),(0,F.jsx)(`div`,{className:`pui-goldeneye__headline`,children:t})]})]})});Vo.displayName=`Goldeneye`;var Ho=[{color:`rgba(124,58,237,0.45)`,x:20,y:30,size:60},{color:`rgba(236,72,153,0.35)`,x:80,y:25,size:50},{color:`rgba(6,182,212,0.30)`,x:50,y:80,size:50}],Uo=(0,P.forwardRef)(({blobs:e=Ho,blur:t=50,static:n,animated:r,repulsion:i=.18,className:a,style:o,...s},c)=>{let l=(0,P.useRef)([]);(0,P.useEffect)(()=>{if(!r)return;let t=e.map(e=>({x:e.x,y:e.y,homeX:e.x,homeY:e.y,size:e.size??50,vx:(Math.random()-.5)*.06,vy:(Math.random()-.5)*.06})),n=0,a=()=>{for(let e=0;e.001){let e=(l-c)/l*i;n.vx+=o/c*e,n.vy+=s/c*e}}n.vx+=(Math.random()-.5)*.012,n.vy+=(Math.random()-.5)*.012,n.x+=n.vx,n.y+=n.vy,n.x<-10&&(n.x=-10,n.vx=Math.abs(n.vx)*.6),n.x>110&&(n.x=110,n.vx=-Math.abs(n.vx)*.6),n.y<-10&&(n.y=-10,n.vy=Math.abs(n.vy)*.6),n.y>110&&(n.y=110,n.vy=-Math.abs(n.vy)*.6);let r=l.current[e];r&&(r.style.left=`${n.x}%`,r.style.top=`${n.y}%`)}n=requestAnimationFrame(a)};return n=requestAnimationFrame(a),()=>cancelAnimationFrame(n)},[r,e,i]);let u={...o,filter:`blur(${t}px) saturate(140%)`};return(0,F.jsx)(`div`,{ref:c,"aria-hidden":`true`,className:B(`pui-aurora`,!n&&!r&&`pui-aurora--drift`,a),style:u,...s,children:e.map((e,t)=>{let n=e.size??50;return(0,F.jsx)(`div`,{ref:e=>{l.current[t]=e},className:`pui-aurora__blob`,style:{position:`absolute`,left:`${e.x}%`,top:`${e.y}%`,width:`${n}%`,height:`${n}%`,background:`radial-gradient(circle at center, ${e.color} 0%, transparent 70%)`,transform:`translate(-50%, -50%)`,pointerEvents:`none`,borderRadius:`50%`}},t)})})});Uo.displayName=`Aurora`;var Wo=(0,P.forwardRef)(({density:e=70,speed:t=.4,linkDistance:n=140,colors:r=[`#a78bfa`,`#f0abfc`,`#67e8f9`],linkColor:i=`#7c3aed`,hoverDistance:a=200,hoverGravity:o=.005,hoverBrighten:s=.8,baseOpacity:c=.45,overscan:l=80,className:u,...d},f)=>{let p=(0,P.useRef)(null),m=(0,P.useRef)(null);return(0,P.useEffect)(()=>{let u=p.current,d=m.current,f=d.getContext(`2d`);if(!f)return;let h=0,g=0,_=1,v={x:-9999,y:-9999},y=0,b=[],x=()=>{let n=-l,i=h+l,a=-l,o=g+l;b=Array.from({length:e},()=>({x:n+Math.random()*(i-n),y:a+Math.random()*(o-a),vx:(Math.random()-.5)*t*2,vy:(Math.random()-.5)*t*2,r:1+Math.random()*1.6,color:r[Math.floor(Math.random()*r.length)]}))},S=()=>{let e=u.getBoundingClientRect();_=Math.min(window.devicePixelRatio||1,2),h=e.width,g=e.height,d.width=h*_,d.height=g*_,d.style.width=`${h}px`,d.style.height=`${g}px`,f.setTransform(_,0,0,_,0,0),x()},C=()=>{f.clearRect(0,0,h,g);let e=-l,t=h+l,r=-l,u=g+l,d=v.x>-9e3;for(let n of b)if(n.x+=n.vx,n.y+=n.vy,(n.xt)&&(n.vx*=-1),(n.yu)&&(n.vy*=-1),a>0&&o>0&&d){let e=v.x-n.x,t=v.y-n.y,r=Math.hypot(e,t);if(r{if(!d||a<=0||s<=0)return 0;let n=Math.hypot(v.x-e,v.y-t);return n>=a?0:(1-n/a)*s};f.lineWidth=1;for(let e=0;e{let t=u.getBoundingClientRect();v.x=e.clientX-t.left,v.y=e.clientY-t.top},T=()=>{v.x=-9999,v.y=-9999},E=new ResizeObserver(S);return E.observe(u),S(),u.addEventListener(`mousemove`,w),u.addEventListener(`mouseleave`,T),y=requestAnimationFrame(C),()=>{cancelAnimationFrame(y),E.disconnect(),u.removeEventListener(`mousemove`,w),u.removeEventListener(`mouseleave`,T)}},[e,t,n,a,o,s,c,l,r,i]),(0,F.jsx)(`div`,{ref:e=>{p.current=e,typeof f==`function`?f(e):f&&(f.current=e)},"aria-hidden":`true`,className:B(`pui-node-graph`,u),...d,children:(0,F.jsx)(`canvas`,{ref:m})})});Wo.displayName=`NodeGraphBackground`;function Go(e,t){if(e.startsWith(`#`)){let n,r,i;return e.length===4?(n=parseInt(e[1]+e[1],16),r=parseInt(e[2]+e[2],16),i=parseInt(e[3]+e[3],16)):(n=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),i=parseInt(e.slice(5,7),16)),`rgba(${n},${r},${i},${t})`}return e}var Ko=(0,P.forwardRef)(({count:e=18,glyphs:t=[`✦`,`✧`,`✶`,`✺`,`✹`,`·`],durationS:n=[8,18],sizeRange:r=[8,20],className:i,...a},o)=>{let s=(0,P.useMemo)(()=>Array.from({length:e},()=>({glyph:t[Math.floor(Math.random()*t.length)],left:Math.random()*100,duration:n[0]+Math.random()*(n[1]-n[0]),delay:Math.random()*n[1],size:r[0]+Math.random()*(r[1]-r[0]),opacity:.4+Math.random()*.5})),[e,t,n,r]);return(0,F.jsx)(`div`,{ref:o,"aria-hidden":`true`,className:B(`pui-sparkle-field`,i),...a,children:s.map((e,t)=>(0,F.jsx)(`span`,{className:`pui-sparkle-field__item`,style:{left:`${e.left}%`,fontSize:`${e.size}px`,"--pui-sparkle-peak":e.opacity.toFixed(2),animationDuration:`${e.duration}s`,animationDelay:`${e.delay}s`},children:e.glyph},t))})});Ko.displayName=`FloatingSparkles`;var qo=(0,P.forwardRef)(({breathing:e,glowOnHover:t=!0,className:n,children:r,...i},a)=>(0,F.jsx)(`article`,{ref:a,className:B(`pui-glass-card`,e&&`pui-glass-card--breathing`,t&&`pui-glass-card--glow-hover`,n),...i,children:r}));qo.displayName=`GlassCard`;var Jo=(0,P.forwardRef)(({className:e,...t},n)=>(0,F.jsx)(`div`,{ref:n,className:B(`pui-glass-card__icon`,e),...t}));Jo.displayName=`GlassCard.Icon`;var Yo=(0,P.forwardRef)(({className:e,...t},n)=>(0,F.jsx)(`h3`,{ref:n,className:B(`pui-glass-card__title`,e),...t}));Yo.displayName=`GlassCard.Title`;var Xo=(0,P.forwardRef)(({className:e,...t},n)=>(0,F.jsx)(`p`,{ref:n,className:B(`pui-glass-card__body`,e),...t}));Xo.displayName=`GlassCard.Body`;var Zo=(0,P.forwardRef)(({className:e,children:t,...n},r)=>(0,F.jsxs)(`a`,{ref:r,className:B(`pui-glass-card__link`,e),...n,children:[(0,F.jsx)(`span`,{children:t}),(0,F.jsx)(`span`,{className:`pui-arrow`,children:`→`})]}));Zo.displayName=`GlassCard.Link`;var Qo=Object.assign(qo,{Icon:Jo,Title:Yo,Body:Xo,Link:Zo}),$o=(0,P.forwardRef)(({filename:e,tokens:t,loop:n=!0,charMs:r=[14,42],thinkingLabel:i=`AI is writing…`,className:a,children:o,...s},c)=>(0,F.jsx)(`div`,{ref:c,"data-theme":`dark`,className:B(`pui-ide`,a),...s,children:o??(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(es,{filename:e,thinking:i}),(0,F.jsx)(ts,{tokens:t??[],loop:n,charMs:r})]})}));$o.displayName=`MockIDE`;var es=(0,P.forwardRef)(({filename:e,thinking:t,className:n,children:r,...i},a)=>(0,F.jsxs)(`div`,{ref:a,className:B(`pui-ide__chrome`,n),...i,children:[(0,F.jsx)(`span`,{className:`pui-ide__dot pui-ide__dot--red`}),(0,F.jsx)(`span`,{className:`pui-ide__dot pui-ide__dot--yellow`}),(0,F.jsx)(`span`,{className:`pui-ide__dot pui-ide__dot--green`}),e&&(0,F.jsx)(`span`,{className:`pui-ide__tab`,children:e}),r,t!==!1&&(0,F.jsxs)(`span`,{className:`pui-ide__thinking`,children:[(0,F.jsx)(`span`,{className:`pui-spinner`}),(0,F.jsx)(`span`,{children:t})]})]}));es.displayName=`MockIDE.Chrome`;var ts=(0,P.forwardRef)(({tokens:e,loop:t=!0,charMs:n=[14,42],className:r,...i},a)=>{let o=(0,P.useRef)(null),s=a??o,[c,l]=(0,P.useState)(0);return(0,P.useEffect)(()=>{let r=s.current;if(!r||!e.length)return;let i=!1,a=null,o=0,c=0,u=``,d=e=>e.replace(/&/g,`&`).replace(//g,`>`),f=()=>{if(i)return;if(o>=e.length){t&&(a=setTimeout(()=>{o=0,c=0,r.innerHTML=u,l(e=>e+1),f()},3e3));return}let s=e[o];if(c+=1,c>s.c.length){o+=1,c=0,f();return}let p=``;for(let t=0;t${d(n.c)}`:d(n.c)}let m=s.c.slice(0,c);p+=s.cls?`${d(m)}`:d(m),p+=u,r.innerHTML=p;let[h,g]=n,_=h+Math.random()*(g-h)+(m.endsWith(` -`)?120:0);a=setTimeout(f,_)};return r.innerHTML=u,f(),()=>{i=!0,a&&clearTimeout(a)}},[e,t,n,s,c]),(0,F.jsx)(`pre`,{ref:s,className:B(`pui-ide__body`,r),...i})});ts.displayName=`MockIDE.Body`,Object.assign($o,{Chrome:es,Body:ts});var ns=(0,P.forwardRef)(({role:e,agent:t,thinking:n,icon:r,className:i,children:a,...o},s)=>(0,F.jsxs)(`div`,{ref:s,className:B(`pui-bubble`,e===`user`?`pui-bubble--user`:`pui-bubble--ai`,i),...o,children:[e===`ai`&&(t||n!==!1||r!==!1)&&(0,F.jsxs)(`div`,{className:`pui-bubble__meta`,children:[r===!1?null:r??(0,F.jsx)(go,{}),t&&(0,F.jsx)(`span`,{children:t}),n!==!1&&(0,F.jsxs)(`span`,{className:`pui-bubble__thinking-pill`,children:[(0,F.jsx)(`span`,{className:`pui-spinner pui-spinner--sm`}),(0,F.jsx)(`span`,{children:n??`thinking…`})]})]}),(0,F.jsx)(`div`,{className:`pui-bubble__stream`,children:a})]}));ns.displayName=`ChatBubble`;var rs=e=>e.split(/(\s+)/);function is({text:e,speedMs:t=[18,80],tokenize:n=rs,loop:r=!1,loopDelayMs:i=6e3,onComplete:a}){let[o,s]=(0,P.useState)(``),[c,l]=(0,P.useState)(!1),u=(0,P.useRef)(a);return u.current=a,(0,P.useEffect)(()=>{let a=!1,o=null,c=n(e),d=()=>Array.isArray(t)?t[0]+Math.random()*(t[1]-t[0]):t,f=()=>{let e=0,t=``,n=()=>{var p;if(!a){if(e>=c.length){l(!0),(p=u.current)==null||p.call(u),r&&(o=setTimeout(()=>{a||(l(!1),s(``),f())},i));return}t+=c[e],e+=1,s(t),o=setTimeout(n,d())}};n()};return f(),()=>{a=!0,o&&clearTimeout(o)}},[]),{output:o,isStreaming:!c,isComplete:c}}var as=(0,P.forwardRef)(({text:e,speedMs:t,tokenize:n,loop:r,loopDelayMs:i,onComplete:a,hideCaret:o,className:s,...c},l)=>{let{output:u,isStreaming:d}=is({text:e,speedMs:t,tokenize:n,loop:r,loopDelayMs:i,onComplete:a});return(0,F.jsxs)(`span`,{ref:l,className:B(s),...c,children:[u,!o&&d&&(0,F.jsx)(`span`,{className:`pui-bubble__stream-caret`})]})});as.displayName=`TokenStream`;var os=[`·`,`✢`,`✳`,`✶`,`✻`,`✽`],ss=`Accomplishing.Actioning.Actualizing.Architecting.Baking.Beaming.Befuddling.Billowing.Blanching.Bloviating.Boogieing.Boondoggling.Booping.Bootstrapping.Brewing.Bunning.Burrowing.Calculating.Canoodling.Caramelizing.Cascading.Catapulting.Cerebrating.Channeling.Channelling.Choreographing.Churning.Clauding.Coalescing.Cogitating.Combobulating.Composing.Computing.Concocting.Considering.Contemplating.Cooking.Crafting.Creating.Crunching.Crystallizing.Cultivating.Deciphering.Deliberating.Determining.Dilly-dallying.Discombobulating.Doing.Doodling.Drizzling.Ebbing.Effecting.Elucidating.Embellishing.Enchanting.Envisioning.Evaporating.Fermenting.Fiddle-faddling.Finagling.Flambéing.Flibbertigibbeting.Flowing.Flummoxing.Fluttering.Forging.Forming.Frolicking.Frosting.Gallivanting.Galloping.Garnishing.Generating.Gesticulating.Germinating.Gitifying.Grooving.Gusting.Harmonizing.Hashing.Hatching.Herding.Honking.Hullaballooing.Hyperspacing.Ideating.Imagining.Improvising.Incubating.Inferring.Infusing.Ionizing.Jitterbugging.Julienning.Kneading.Leavening.Levitating.Lollygagging.Manifesting.Marinating.Meandering.Metamorphosing.Misting.Moonwalking.Moseying.Mulling.Mustering.Musing.Nebulizing.Nesting.Newspapering.Noodling.Nucleating.Orbiting.Orchestrating.Osmosing.Perambulating.Percolating.Perusing.Philosophising.Photosynthesizing.Pollinating.Pondering.Pontificating.Pouncing.Precipitating.Prestidigitating.Processing.Proofing.Propagating.Puttering.Puzzling.Quantumizing.Razzle-dazzling.Razzmatazzing.Recombobulating.Reticulating.Roosting.Ruminating.Sautéing.Scampering.Schlepping.Scurrying.Seasoning.Shenaniganing.Shimmying.Simmering.Skedaddling.Sketching.Slithering.Smooshing.Sock-hopping.Spelunking.Spinning.Sprouting.Stewing.Sublimating.Swirling.Swooping.Symbioting.Synthesizing.Tempering.Thinking.Thundering.Tinkering.Tomfoolering.Topsy-turvying.Transfiguring.Transmuting.Twisting.Undulating.Unfurling.Unravelling.Vibing.Waddling.Wandering.Warping.Whatchamacalliting.Whirlpooling.Whirring.Whisking.Wibbling.Working.Wrangling.Zesting.Zigzagging`.split(`.`);function cs(e){return e[Math.floor(Math.random()*e.length)]}var ls=(0,P.forwardRef)(({verbs:e=ss,glyphs:t=os,glyphInterval:n=250,verbInterval:r,ellipsis:i=`…`,info:a,glyphColor:o,className:s,...c},l)=>{let[u,d]=(0,P.useState)(0),[f,p]=(0,P.useState)(()=>e.length?cs(e):``);(0,P.useEffect)(()=>{if(!t.length)return;let e=setInterval(()=>{d(e=>(e+1)%t.length)},n);return()=>clearInterval(e)},[n,t.length]),(0,P.useEffect)(()=>{if(r==null||!e.length)return;let t=setInterval(()=>{p(cs(e))},r);return()=>clearInterval(t)},[e,r]);let m=f;return(0,F.jsxs)(`span`,{ref:l,className:B(`pui-wibble`,s),...c,children:[(0,F.jsx)(`span`,{className:`pui-wibble__glyph`,"aria-hidden":`true`,style:o?{color:o}:void 0,children:t[u]??``}),(0,F.jsxs)(`span`,{className:`pui-wibble__verb`,children:[m,i]}),a!=null&&a!==!1&&(0,F.jsxs)(`span`,{className:`pui-wibble__info`,children:[`(`,a,`)`]})]})});ls.displayName=`WibblingSpinner`;var us=(0,P.forwardRef)(({label:e=`Ask AI`,open:t,defaultOpen:n,onOpenChange:r,popover:i,className:a,onClick:o,...s},c)=>{let l=t!==void 0,[u,d]=(0,P.useState)(n??!1),f=l?!!t:u,p=()=>{let e=!f;l||d(e),r?.(e)},m=()=>{l||d(!1),r?.(!1)};return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`button`,{ref:c,className:B(`pui-fab`,a),onClick:e=>{o?.(e),p()},"aria-expanded":f,...s,children:[(0,F.jsx)(go,{}),(0,F.jsx)(`span`,{children:e})]}),f&&(0,F.jsx)(`div`,{role:`dialog`,className:`pui-fab-popover`,children:(0,F.jsx)(ds.Provider,{value:m,children:i})})]})});us.displayName=`ChatFAB`;var ds=(0,P.createContext)(()=>{}),fs=(0,P.forwardRef)(({onClose:e,className:t,children:n,...r},i)=>{let a=(0,P.useContext)(ds);return(0,F.jsxs)(`div`,{ref:i,className:B(`pui-fab-popover__header`,t),...r,children:[(0,F.jsx)(go,{}),(0,F.jsx)(`span`,{children:n}),(0,F.jsx)(`button`,{type:`button`,"aria-label":`Close`,className:`pui-fab-popover__close`,onClick:e??a,children:`×`})]})});fs.displayName=`ChatFAB.Header`;var ps=(0,P.forwardRef)(({className:e,...t},n)=>(0,F.jsx)(`div`,{ref:n,className:B(`pui-fab-popover__body`,e),...t}));ps.displayName=`ChatFAB.Body`,Object.assign(us,{Header:fs,Body:ps});var ms=(0,P.forwardRef)(({logos:e,speed:t=40,gap:n=56,fade:r=!0,pauseOnHover:i,className:a,style:o,...s},c)=>{let l={...o??{},"--pui-marquee-speed":`${t}s`,"--pui-marquee-gap":`${n}px`},u=(e,t)=>e.kind===`img`?(0,F.jsx)(`span`,{className:`pui-marquee__item`,children:(0,F.jsx)(`img`,{src:e.src,alt:e.alt??``})},`a${t}`):(0,F.jsx)(`span`,{className:`pui-marquee__item`,children:e.node},e.key??`b${t}`);return(0,F.jsx)(`div`,{ref:c,className:B(`pui-marquee`,r&&`pui-marquee--fade`,i&&`pui-marquee--paused-on-hover`,a),style:l,"aria-label":`Trusted by`,...s,children:(0,F.jsxs)(`div`,{className:`pui-marquee__track`,children:[e.map(u),e.map((t,n)=>u(t,n+e.length))]})})});ms.displayName=`LogoMarquee`;var hs=(0,P.forwardRef)(({heading:e,logos:t,className:n,...r},i)=>(0,F.jsxs)(`div`,{ref:i,className:B(`pui-logo-row`,n),...r,children:[e&&(0,F.jsx)(`p`,{className:`pui-logo-row__heading`,children:e}),(0,F.jsx)(`div`,{className:`pui-logo-row__items`,children:t.map((e,t)=>e.kind===`img`?(0,F.jsx)(`img`,{src:e.src,alt:e.alt??``},t):(0,F.jsx)(`span`,{className:`pui-logo-row__text`,children:e.node},e.key??t))})]}));hs.displayName=`LogoRow`;var gs=(0,P.forwardRef)(({rows:e,intensity:t=240,startDirection:n=`left`,gap:r=12,fade:i=!0,gradient:a=!1,static:o,className:s,style:c,...l},u)=>{let d=(0,P.useRef)(null);(0,P.useEffect)(()=>{let e=d.current;if(!e||o||window.matchMedia?.call(window,`(prefers-reduced-motion: reduce)`).matches)return;let n=0,r=()=>{n=0;let r=e.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight,a=(i-r.top)/(i+r.height),o=(Math.min(1,Math.max(0,a))-.5)*t;e.style.setProperty(`--pui-slip`,`${o}px`)},i=()=>{n||(n=requestAnimationFrame(r))};return r(),window.addEventListener(`scroll`,i,{passive:!0}),window.addEventListener(`resize`,i,{passive:!0}),()=>{n&&cancelAnimationFrame(n),window.removeEventListener(`scroll`,i),window.removeEventListener(`resize`,i)}},[t,o]);let f=e=>{d.current=e,typeof u==`function`?u(e):u&&(u.current=e)},p=n===`left`?-1:1,m={...c??{},"--pui-slip-gap":`${r}px`};return(0,F.jsx)(`div`,{ref:f,className:B(`pui-slippy`,i&&`pui-slippy--fade`,s),style:m,"aria-label":`Featured terms`,...l,children:e.map((e,t)=>(0,F.jsx)(`div`,{className:`pui-slippy__row`,style:{"--pui-slip-dir":t%2==0?p:-p},children:e.map((e,n)=>{let r=typeof e==`string`?{label:e}:e;return(0,F.jsx)(`span`,{className:B(`pui-slippy__word`,(a||typeof e==`object`&&e.gradient)&&`pui-slippy__word--gradient`),children:r.label},typeof e==`object`&&e.key||`${t}-${n}`)})},t))})});gs.displayName=`SlippyWords`;function _s({target:e,durationMs:t=1800,from:n=0,ease:r=e=>1-(1-e)**3}){let[i,a]=(0,P.useState)(n);return(0,P.useEffect)(()=>{let i=0,o=performance.now(),s=c=>{let l=Math.min(1,(c-o)/t);a(Math.floor(n+(e-n)*r(l))),l<1&&(i=requestAnimationFrame(s))};return i=requestAnimationFrame(s),()=>cancelAnimationFrame(i)},[]),i}var vs=(0,P.forwardRef)(({target:e,durationMs:t,from:n,ease:r,format:i=e=>e.toLocaleString(),className:a,...o},s)=>{let c=_s({target:e,durationMs:t,from:n,ease:r});return(0,F.jsx)(`span`,{ref:s,className:B(`pui-stat`,a),...o,children:i(c)})});vs.displayName=`StatCounter`;var ys=(0,P.forwardRef)(({icon:e,iconNode:t,title:n,subtitle:r,className:i,...a},o)=>(0,F.jsxs)(`a`,{ref:o,className:B(`pui-community`,i),...a,children:[t??(e&&(0,F.jsx)(`img`,{className:`pui-community__icon`,src:e,alt:``})),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`div`,{className:`pui-community__top`,children:n}),(0,F.jsx)(`div`,{className:`pui-community__bottom`,children:r})]})]}));ys.displayName=`CommunityBadge`;var bs=(0,P.forwardRef)(({featured:e,className:t,...n},r)=>(0,F.jsx)(`article`,{ref:r,className:B(`pui-price`,e&&`pui-price--featured`,t),...n}));bs.displayName=`PricingCard`;var xs=(0,P.forwardRef)(({hideSparkle:e,className:t,children:n,...r},i)=>(0,F.jsxs)(`div`,{ref:i,className:B(`pui-price__flag`,t),...r,children:[!e&&(0,F.jsx)(go,{solid:!0}),(0,F.jsx)(`span`,{children:n})]}));xs.displayName=`PricingCard.Flag`;var Ss=(0,P.forwardRef)(({className:e,...t},n)=>(0,F.jsx)(`div`,{ref:n,className:B(`pui-price__tier`,e),...t}));Ss.displayName=`PricingCard.Tier`;var Cs=(0,P.forwardRef)(({unit:e,className:t,children:n,...r},i)=>(0,F.jsxs)(`div`,{ref:i,className:B(`pui-price__amount`,t),...r,children:[n,e&&(0,F.jsx)(`span`,{className:`pui-price__amount-unit`,children:e})]}));Cs.displayName=`PricingCard.Amount`;var ws=(0,P.forwardRef)(({className:e,...t},n)=>(0,F.jsx)(`p`,{ref:n,className:B(`pui-price__blurb`,e),...t}));ws.displayName=`PricingCard.Blurb`;var Ts=(0,P.forwardRef)(({className:e,...t},n)=>(0,F.jsx)(`ul`,{ref:n,className:B(`pui-price__features`,e),...t}));Ts.displayName=`PricingCard.Features`;var Es=(0,P.forwardRef)(({className:e,children:t,...n},r)=>(0,F.jsx)(`a`,{ref:r,className:B(`pui-btn pui-btn--glow pui-btn--block`,e),...n,children:(0,F.jsx)(`span`,{children:t})}));Es.displayName=`PricingCard.CTA`,Object.assign(bs,{Flag:xs,Tier:Ss,Amount:Cs,Blurb:ws,Features:Ts,CTA:Es});var Ds=(0,P.forwardRef)(({before:e,after:t,brand:n,beforeLabel:r=`Before`,afterLabel:i=`After`,className:a,children:o,...s},c)=>(0,F.jsx)(`div`,{ref:c,className:B(`pui-ba`,a),...s,children:o??(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Os,{label:r,children:(0,F.jsx)(`ul`,{children:(e??[]).map((e,t)=>(0,F.jsx)(`li`,{children:e},t))})}),(0,F.jsx)(As,{brand:n}),(0,F.jsx)(ks,{label:i,children:(0,F.jsx)(`ul`,{children:(t??[]).map((e,t)=>(0,F.jsx)(`li`,{children:e},t))})})]})}));Ds.displayName=`BeforeAfter`;var Os=(0,P.forwardRef)(({label:e=`Before`,className:t,children:n,...r},i)=>(0,F.jsxs)(`div`,{ref:i,className:B(`pui-ba__panel pui-ba__panel--before`,t),...r,children:[(0,F.jsx)(`div`,{className:`pui-ba__tag`,children:e}),n]}));Os.displayName=`BeforeAfter.Before`;var ks=(0,P.forwardRef)(({label:e=`After`,className:t,children:n,...r},i)=>(0,F.jsxs)(`div`,{ref:i,className:B(`pui-ba__panel pui-ba__panel--after`,t),...r,children:[(0,F.jsx)(`div`,{className:`pui-ba__tag`,children:e}),n]}));ks.displayName=`BeforeAfter.After`;var As=(0,P.forwardRef)(({brand:e,className:t,...n},r)=>(0,F.jsxs)(`div`,{ref:r,className:B(`pui-ba__arrow`,t),...n,children:[(0,F.jsx)(go,{}),e?(0,F.jsxs)(`span`,{children:[`with `,e]}):(0,F.jsx)(`span`,{children:`after`}),(0,F.jsx)(`span`,{children:`→`})]}));As.displayName=`BeforeAfter.Arrow`,Object.assign(Ds,{Before:Os,After:ks,Arrow:As});var js=(0,P.forwardRef)(({placeholder:e=`you@startup.ai`,defaultValue:t=``,ctaLabel:n=`Notify me`,leading:r,footnote:i,onSubmit:a,className:o,...s},c)=>{let[l,u]=(0,P.useState)(t);return(0,F.jsxs)(`div`,{className:B(`pui-waitlist-wrap`,o),children:[(0,F.jsxs)(`form`,{ref:c,className:`pui-waitlist`,onSubmit:e=>{e.preventDefault(),a?.(l)},...s,children:[r===!1?null:(0,F.jsx)(`span`,{className:`pui-waitlist__icon`,"aria-hidden":`true`,children:r??(0,F.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`,width:`18`,height:`18`,children:[(0,F.jsx)(`rect`,{x:`3`,y:`5`,width:`18`,height:`14`,rx:`2`}),(0,F.jsx)(`path`,{d:`M3 7l9 6 9-6`})]})}),(0,F.jsx)(`input`,{className:`pui-waitlist__input`,type:`email`,placeholder:e,value:l,onChange:e=>u(e.target.value)}),(0,F.jsx)(So,{type:`submit`,variant:`solid`,children:n})]}),i&&(0,F.jsx)(`div`,{className:`pui-waitlist__footnote`,children:i})]})});js.displayName=`WaitlistForm`;function Ms({open:e,defaultOpen:t=!1,onOpenChange:n,timer:r=0,title:i,children:a,closeLabel:o=`Maybe later`,closeOnEscape:s=!1,closeOnBackdrop:c=!1,container:l,className:u}){let d=e!==void 0,[f,p]=(0,P.useState)(t),m=d?e:f,h=e=>{d||p(e),n?.(e)};if((0,P.useEffect)(()=>{if(r<=0||m)return;let e=setTimeout(()=>h(!0),r);return()=>clearTimeout(e)},[]),(0,P.useEffect)(()=>{if(!m||!s)return;let e=e=>{e.key===`Escape`&&(e.preventDefault(),h(!1))};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[m,s]),(0,P.useEffect)(()=>{if(!m)return;let e=e=>{e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||[`[`,`]`,`j`,`k`,`ArrowLeft`,`ArrowRight`].includes(e.key)&&e.stopPropagation()};return document.addEventListener(`keydown`,e,{capture:!0}),()=>document.removeEventListener(`keydown`,e,{capture:!0})},[m]),(0,P.useEffect)(()=>{if(!m)return;let e=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=e}},[m]),!m)return null;let g=l??(typeof document<`u`?document.body:null);return g?(0,Vn.createPortal)((0,F.jsxs)(`div`,{className:`pui-popover-overlay`,role:`dialog`,"aria-modal":`true`,children:[(0,F.jsx)(`div`,{className:`pui-popover-backdrop`,"aria-hidden":`true`,onClick:c?()=>h(!1):void 0}),(0,F.jsxs)(`div`,{className:B(`pui-popover`,u),children:[i&&(0,F.jsx)(`div`,{className:`pui-popover__title`,children:i}),(0,F.jsx)(`div`,{className:`pui-popover__body`,children:a}),o!==!1&&(0,F.jsx)(`button`,{type:`button`,className:`pui-popover__dismiss`,onClick:()=>h(!1),children:o})]})]}),g):null}Ms.displayName=`Popover`;var Ns={primary:`wave`,secondary:`ghost`,danger:`ghost`,icon:`ghost`},Ps={sm:`sm`,md:`md`};function V({tone:e=`secondary`,size:t=`md`,loading:n=!1,block:r=!1,className:i,children:a,disabled:o,...s}){return(0,F.jsx)(So,{variant:Ns[e],size:Ps[t],loading:n,block:r,className:[`admin-button`,`admin-button-${e}`,i].filter(Boolean).join(` `),disabled:o||n,...s,children:a})}var Fs={ok:`var(--ok)`,warn:`var(--warn)`,err:`var(--err)`,dim:`var(--text-3)`};function Is({status:e,pulse:t}){return(0,F.jsx)(vo,{color:Fs[e],static:!t,className:`admin-status-dot`})}function H({children:e,className:t,breathing:n=!1,glowOnHover:r=!1,...i}){return(0,F.jsx)(Qo,{breathing:n,glowOnHover:r,className:[`admin-surface`,t].filter(Boolean).join(` `),...i,children:e})}function Ls({label:e=`Loading`,info:t,className:n}){return(0,F.jsx)(ls,{verbs:[e],glyphs:[`.`,`o`,`O`,`o`],glyphInterval:220,ellipsis:`...`,info:t,glyphColor:`var(--accent)`,className:[`admin-loading`,n].filter(Boolean).join(` `)})}function Rs({value:e,precision:t=0,durationMs:n=450,className:r,format:i}){let a=10**t,o=Math.round(e*a),s=(0,P.useRef)(o),c=s.current;return(0,P.useEffect)(()=>{s.current=o},[o]),(0,F.jsx)(vs,{target:o,from:c,durationMs:n,className:r,format:e=>{let t=e/a;return i?i(t):t.toLocaleString()}},o)}function zs(){let e=ea(e=>e.login),[t,n]=(0,P.useState)(``),[r,i]=(0,P.useState)(!1);async function a(t){t.preventDefault();let r=t.currentTarget.elements.namedItem(`token`).value.trim();if(r){i(!0),n(``);try{if(!(await fetch(`/admin/api/metrics`,{headers:{Authorization:`Bearer ${r}`}})).ok)throw Error(`Invalid token`);e(r)}catch{n(`Invalid token`)}finally{i(!1)}}}return(0,F.jsxs)(`div`,{className:`login-overlay`,children:[(0,F.jsx)(Wo,{density:24,speed:.16,linkDistance:110,hoverDistance:120,hoverGravity:.002,baseOpacity:.18,colors:[`#e8a030`,`#4caf6e`,`#5aa9e6`],linkColor:`#e8a030`,className:`login-node-bg`}),(0,F.jsxs)(H,{className:`login-card`,glowOnHover:!0,breathing:!0,children:[(0,F.jsxs)(`div`,{className:`login-title`,children:[(0,F.jsx)(`span`,{className:`prompt`,children:`>\xA0`}),`proxy admin`]}),(0,F.jsxs)(`form`,{onSubmit:a,children:[(0,F.jsx)(`input`,{type:`password`,name:`token`,placeholder:`Admin token`,autoComplete:`current-password`,autoFocus:!0}),(0,F.jsx)(V,{type:`submit`,tone:`primary`,loading:r,block:!0,children:`Sign in`})]}),(0,F.jsx)(`div`,{className:`login-error`,children:t})]})]})}var Bs=[{label:`Overview`,items:[{to:`/dashboard`,label:`Dashboard`},{to:`/requests`,label:`Request Log`},{to:`/traffic`,label:`Traffic`}]},{label:`Configure`,items:[{to:`/providers`,label:`Providers`},{to:`/routes`,label:`Routes`},{to:`/models`,label:`Models`},{to:`/backends`,label:`Backends`}]},{label:`Access`,items:[{to:`/keys`,label:`API Keys`},{to:`/audit`,label:`Audit Log`}]},{label:`System`,items:[{to:`/settings`,label:`Settings`},{to:`/uptime`,label:`Uptime`}]}];function Vs(){let e=ea(e=>e.logout),t=ta(e=>e.status);return(0,F.jsxs)(`aside`,{className:`sidebar`,children:[(0,F.jsx)(`div`,{className:`sidebar-brand`,children:`anyllm`}),(0,F.jsx)(`div`,{className:`sidebar-scroll`,children:Bs.map(e=>(0,F.jsxs)(`div`,{className:`sidebar-group`,children:[(0,F.jsx)(`div`,{className:`sidebar-group-label`,children:e.label}),e.items.map(e=>(0,F.jsx)(Li,{to:e.to,className:({isActive:e})=>`sidebar-item${e?` active`:``}`,children:e.label},e.to))]},e.label))}),(0,F.jsxs)(`div`,{className:`sidebar-footer`,children:[(0,F.jsx)(`span`,{className:`ws-status ${t===`connected`?`connected`:`disconnected`}`,children:t===`connected`?`Live`:`Offline`}),(0,F.jsx)(V,{size:`sm`,onClick:e,children:`Sign out`})]})]})}function Hs(){let e=pa(e=>e.toasts);return e.length===0?null:(0,F.jsx)(`div`,{className:`toast-stack`,role:`region`,"aria-label":`Notifications`,children:e.map(e=>(0,F.jsx)(Us,{toast:e},e.id))})}function Us({toast:e}){let t=pa(e=>e.dismiss);return(0,P.useEffect)(()=>{if(e.ttlMs==null)return;let n=window.setTimeout(()=>t(e.id),e.ttlMs);return()=>window.clearTimeout(n)},[e.id,e.ttlMs,t]),(0,F.jsxs)(`div`,{className:`toast toast-${e.variant}`,role:`status`,children:[(0,F.jsx)(`div`,{className:`toast-message`,children:e.message}),(0,F.jsx)(`button`,{type:`button`,className:`toast-close`,"aria-label":`Dismiss`,onClick:()=>t(e.id),children:`×`})]})}function Ws({req:e}){return(0,F.jsxs)(`div`,{className:`feed-detail`,children:[(0,F.jsx)(`span`,{className:`label`,children:`Request ID`}),(0,F.jsx)(`span`,{className:`val`,children:e.request_id}),(0,F.jsx)(`span`,{className:`label`,children:`Backend`}),(0,F.jsx)(`span`,{className:`val`,children:e.backend}),(0,F.jsx)(`span`,{className:`label`,children:`Model (req)`}),(0,F.jsx)(`span`,{className:`val`,children:e.model_requested??`—`}),(0,F.jsx)(`span`,{className:`label`,children:`Model (mapped)`}),(0,F.jsx)(`span`,{className:`val`,children:e.model_mapped??`—`}),(0,F.jsx)(`span`,{className:`label`,children:`Latency`}),(0,F.jsxs)(`span`,{className:`val`,children:[e.latency_ms,` ms`]}),(0,F.jsx)(`span`,{className:`label`,children:`Tokens in/out`}),(0,F.jsxs)(`span`,{className:`val`,children:[e.input_tokens??`—`,` / `,e.output_tokens??`—`]}),(0,F.jsx)(`span`,{className:`label`,children:`Cost`}),(0,F.jsx)(`span`,{className:`val`,children:e.cost_usd==null?`—`:`$${e.cost_usd.toFixed(6)}`}),e.error_message&&(0,F.jsx)(`div`,{className:`error-msg`,children:e.error_message})]})}function Gs(e){return e<300?`status-2xx`:e<500?`status-4xx`:`status-5xx`}function Ks({req:e}){let[t,n]=(0,P.useState)(!1);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`feed-row`,onClick:()=>n(e=>!e),children:[(0,F.jsx)(`span`,{className:`mono dim`,children:e.timestamp.slice(11,19)}),(0,F.jsx)(`span`,{className:`mono ${Gs(e.status_code)}`,children:e.status_code}),(0,F.jsxs)(`span`,{className:`mono`,children:[e.latency_ms,`ms`]}),(0,F.jsxs)(`span`,{className:`mono`,style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:[e.model_requested??e.backend,e.is_streaming&&(0,F.jsx)(`span`,{className:`streaming-badge`,children:`stream`})]}),(0,F.jsx)(`span`,{className:`mono dim`,children:e.input_tokens??`—`}),(0,F.jsx)(`span`,{className:`mono dim`,children:e.output_tokens??`—`}),(0,F.jsx)(`span`,{className:`mono dim`,children:e.cost_usd==null?`—`:`$${e.cost_usd.toFixed(5)}`})]}),t&&(0,F.jsx)(Ws,{req:e})]})}var qs=200;function Js({initial:e}){let[t,n]=(0,P.useState)(e??[]),[r,i]=(0,P.useState)(!1),a=(0,P.useRef)(r);a.current=r;let o=ta(e=>e.lastEvent);return(0,P.useEffect)(()=>{!o||o.type!==`request_completed`||a.current||n(e=>[o.data,...e].slice(0,qs))},[o]),(0,F.jsxs)(`div`,{children:[(0,F.jsxs)(`div`,{className:`section-header`,children:[(0,F.jsx)(`span`,{className:`section-label`,children:`Live Feed`}),(0,F.jsx)(V,{size:`sm`,tone:r?`primary`:`secondary`,onClick:()=>i(e=>!e),children:r?`Resume`:`Pause`})]}),(0,F.jsxs)(`div`,{className:`feed`,children:[(0,F.jsxs)(`div`,{className:`feed-header`,children:[(0,F.jsx)(`span`,{children:`Time`}),(0,F.jsx)(`span`,{children:`Status`}),(0,F.jsx)(`span`,{children:`Latency`}),(0,F.jsx)(`span`,{children:`Model`}),(0,F.jsx)(`span`,{children:`In`}),(0,F.jsx)(`span`,{children:`Out`}),(0,F.jsx)(`span`,{children:`Cost`})]}),t.length===0?(0,F.jsx)(`div`,{className:`empty`,children:`Waiting for requests…`}):t.map(e=>(0,F.jsx)(Ks,{req:e},e.request_id))]})]})}function Ys({series:e,gridColor:t=`var(--border-sub)`,height:n=130}){let r=n,i={top:8,right:8,bottom:0,left:0},a=600-i.left-i.right,o=r-i.top-i.bottom,s=e.flatMap(e=>e.data),c=Math.max(...s,1),l=Math.max(...e.map(e=>e.data.length),2);function u(e){return i.left+e/(l-1)*a}function d(e){return i.top+o-e/c*o}let f=Array.from({length:4},(e,t)=>i.top+t/3*o);return(0,F.jsxs)(`svg`,{className:`chart-svg`,viewBox:`0 0 600 ${r}`,preserveAspectRatio:`none`,style:{height:n},children:[f.map((e,n)=>(0,F.jsx)(`line`,{className:`chart-grid-line`,x1:i.left,y1:e,x2:600-i.right,y2:e,stroke:t},n)),e.map((e,t)=>{if(e.data.length<2)return null;let n=e.data.map((e,t)=>`${u(t)},${d(e)}`).join(` `);return(0,F.jsxs)(`g`,{children:[(0,F.jsx)(`polygon`,{className:`chart-area`,points:[`${u(0)},${i.top+o}`,...e.data.map((e,t)=>`${u(t)},${d(e)}`),`${u(e.data.length-1)},${i.top+o}`].join(` `),fill:e.color}),(0,F.jsx)(`polyline`,{className:`chart-line${e.secondary?` secondary`:``}`,points:n,stroke:e.color})]},t)})]})}function Xs({loading:e,error:t,empty:n,message:r}){return e?(0,F.jsx)(`div`,{className:`empty`,children:(0,F.jsx)(Ls,{})}):t?(0,F.jsx)(`div`,{className:`empty error`,children:t}):n?(0,F.jsx)(`div`,{className:`empty`,children:r??`No data`}):null}function Zs(){let[e,t]=(0,P.useState)(6),[n,r]=(0,P.useState)(``),{data:i}=Wa(),{data:a,isLoading:o,error:s}=Ra(e,n),c=a?[{label:`Requests`,color:`#e8a030`,data:a.series.map(e=>e.requests)},{label:`Errors`,color:`#e05252`,data:a.series.map(e=>e.errors),secondary:!0}]:[],l=a?[{label:`Input`,color:`#4caf6e`,data:a.series.map(e=>e.input_tokens)},{label:`Output`,color:`#6eb5c0`,data:a.series.map(e=>e.output_tokens),secondary:!0}]:[],u=a?[{label:`Cost`,color:`#c87dd4`,data:a.series.map(e=>e.cost_usd)}]:[];return(0,F.jsxs)(`div`,{children:[(0,F.jsxs)(`div`,{className:`operator-controls`,children:[(0,F.jsx)(`span`,{className:`section-label`,style:{marginBottom:0},children:`Operator View`}),(0,F.jsxs)(`div`,{className:`form-row`,style:{flexWrap:`wrap`,gap:6,marginTop:0},children:[(0,F.jsxs)(`select`,{value:e,onChange:e=>t(Number(e.target.value)),children:[(0,F.jsx)(`option`,{value:1,children:`Last 1 hour`}),(0,F.jsx)(`option`,{value:6,children:`Last 6 hours`}),(0,F.jsx)(`option`,{value:24,children:`Last 24 hours`})]}),(0,F.jsxs)(`select`,{value:n,onChange:e=>r(e.target.value),children:[(0,F.jsx)(`option`,{value:``,children:`All backends`}),i?.map(e=>(0,F.jsx)(`option`,{value:e.name,children:e.name},e.name))]})]})]}),a&&(0,F.jsxs)(`div`,{className:`stats-row`,children:[(0,F.jsxs)(H,{className:`stat`,children:[(0,F.jsx)(`div`,{className:`stat-label`,children:`Input Tokens`}),(0,F.jsx)(`div`,{className:`stat-value`,children:(0,F.jsx)(Rs,{value:a.total_input_tokens})})]}),(0,F.jsxs)(H,{className:`stat`,children:[(0,F.jsx)(`div`,{className:`stat-label`,children:`Output Tokens`}),(0,F.jsx)(`div`,{className:`stat-value`,children:(0,F.jsx)(Rs,{value:a.total_output_tokens})})]}),(0,F.jsxs)(H,{className:`stat`,children:[(0,F.jsx)(`div`,{className:`stat-label`,children:`Window Failures`}),(0,F.jsx)(`div`,{className:`stat-value`,children:(0,F.jsx)(Rs,{value:a.total_errors})})]}),(0,F.jsxs)(H,{className:`stat`,children:[(0,F.jsx)(`div`,{className:`stat-label`,children:`Window Cost`}),(0,F.jsx)(`div`,{className:`stat-value`,children:(0,F.jsx)(Rs,{value:a.total_cost_usd,precision:2,format:e=>`$${e.toFixed(2)}`})})]})]}),(0,F.jsx)(Xs,{loading:o,error:s?.message}),a&&(0,F.jsxs)(`div`,{className:`operator-grid`,children:[(0,F.jsxs)(H,{className:`chart-card`,children:[(0,F.jsxs)(`div`,{className:`chart-header`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`div`,{className:`chart-title`,children:`Request Volume`}),(0,F.jsx)(`div`,{className:`chart-subtitle`,children:`Rolling request count and errors`})]}),(0,F.jsx)(`div`,{className:`chart-value`,children:a.total_requests})]}),(0,F.jsx)(Ys,{series:c})]}),(0,F.jsxs)(H,{className:`chart-card`,children:[(0,F.jsxs)(`div`,{className:`chart-header`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`div`,{className:`chart-title`,children:`Tokens`}),(0,F.jsx)(`div`,{className:`chart-subtitle`,children:`Input and output usage`})]}),(0,F.jsx)(`div`,{className:`chart-value`,children:(a.total_input_tokens+a.total_output_tokens).toLocaleString()})]}),(0,F.jsx)(Ys,{series:l})]}),(0,F.jsxs)(H,{className:`chart-card`,children:[(0,F.jsxs)(`div`,{className:`chart-header`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`div`,{className:`chart-title`,children:`Estimated Cost`}),(0,F.jsx)(`div`,{className:`chart-subtitle`,children:`USD by minute bucket`})]}),(0,F.jsxs)(`div`,{className:`chart-value`,children:[`$`,a.total_cost_usd.toFixed(4)]})]}),(0,F.jsx)(Ys,{series:u})]})]})]})}function Qs(){let{data:e}=La();return(0,F.jsxs)(`div`,{children:[(0,F.jsxs)(`div`,{className:`stats-row`,children:[(0,F.jsxs)(H,{className:`stat`,children:[(0,F.jsx)(`div`,{className:`stat-label`,children:`Requests/min`}),(0,F.jsx)(`div`,{className:`stat-value`,children:e?(0,F.jsx)(Rs,{value:e.requests_per_minute,precision:1,format:e=>e.toFixed(1)}):`—`})]}),(0,F.jsxs)(H,{className:`stat`,children:[(0,F.jsx)(`div`,{className:`stat-label`,children:`Error Rate`}),(0,F.jsx)(`div`,{className:`stat-value`,children:e?(0,F.jsx)(Rs,{value:e.error_rate*100,precision:1,format:e=>`${e.toFixed(1)}%`}):`—`})]}),(0,F.jsxs)(H,{className:`stat`,children:[(0,F.jsx)(`div`,{className:`stat-label`,children:`P50 Latency`}),(0,F.jsx)(`div`,{className:`stat-value`,children:e?(0,F.jsx)(Rs,{value:e.p50_latency_ms??0,format:e=>`${Math.round(e)}ms`}):`—`})]}),(0,F.jsxs)(H,{className:`stat`,children:[(0,F.jsx)(`div`,{className:`stat-label`,children:`P95 Latency`}),(0,F.jsx)(`div`,{className:`stat-value`,children:e?(0,F.jsx)(Rs,{value:e.p95_latency_ms??0,format:e=>`${Math.round(e)}ms`}):`—`})]}),(0,F.jsxs)(H,{className:`stat`,children:[(0,F.jsx)(`div`,{className:`stat-label`,children:`Total Requests`}),(0,F.jsx)(`div`,{className:`stat-value`,children:(0,F.jsx)(Rs,{value:e?.total_requests??0})})]})]}),(0,F.jsxs)(`div`,{className:`stats-row`,style:{marginBottom:16},children:[(0,F.jsxs)(H,{className:`stat`,children:[(0,F.jsx)(`div`,{className:`stat-label`,children:`Streams Started`}),(0,F.jsx)(`div`,{className:`stat-value`,children:(0,F.jsx)(Rs,{value:e?.streams_started??0})})]}),(0,F.jsxs)(H,{className:`stat`,children:[(0,F.jsx)(`div`,{className:`stat-label`,children:`Completed`}),(0,F.jsx)(`div`,{className:`stat-value ok`,children:(0,F.jsx)(Rs,{value:e?.streams_completed??0})})]}),(0,F.jsxs)(H,{className:`stat`,children:[(0,F.jsx)(`div`,{className:`stat-label`,children:`Failed`}),(0,F.jsx)(`div`,{className:`stat-value`,style:{color:`var(--err)`},children:(0,F.jsx)(Rs,{value:e?.streams_failed??0})})]}),(0,F.jsxs)(H,{className:`stat`,children:[(0,F.jsx)(`div`,{className:`stat-label`,children:`Client Disconnects`}),(0,F.jsx)(`div`,{className:`stat-value`,style:{color:`var(--warn)`},children:(0,F.jsx)(Rs,{value:e?.streams_client_disconnected??0})})]})]}),(e?.pxpipe_compressed_total??0)>0&&(0,F.jsxs)(`div`,{className:`stats-row`,style:{marginBottom:16},children:[(0,F.jsxs)(H,{className:`stat`,children:[(0,F.jsx)(`div`,{className:`stat-label`,children:`Image-Compressed Requests`}),(0,F.jsx)(`div`,{className:`stat-value`,children:(0,F.jsx)(Rs,{value:e?.pxpipe_compressed_total??0})})]}),(0,F.jsxs)(H,{className:`stat`,children:[(0,F.jsx)(`div`,{className:`stat-label`,children:`Images Emitted`}),(0,F.jsx)(`div`,{className:`stat-value`,children:(0,F.jsx)(Rs,{value:e?.pxpipe_images_total??0})})]}),(0,F.jsxs)(H,{className:`stat`,children:[(0,F.jsx)(`div`,{className:`stat-label`,children:`Chars Imaged`}),(0,F.jsx)(`div`,{className:`stat-value`,children:(0,F.jsx)(Rs,{value:e?.pxpipe_imaged_chars_total??0})})]})]}),(0,F.jsx)(Zs,{}),(0,F.jsx)(`div`,{style:{marginTop:16},children:(0,F.jsx)(Js,{})})]})}function $s({page:e,hasMore:t,onPrev:n,onNext:r}){return(0,F.jsxs)(`div`,{className:`pagination`,children:[(0,F.jsx)(V,{size:`sm`,onClick:n,disabled:e<=1,children:`Prev`}),(0,F.jsxs)(`span`,{children:[`Page `,e]}),(0,F.jsx)(V,{size:`sm`,onClick:r,disabled:!t,children:`Next`})]})}function ec({query:e,children:t,empty:n,loading:r,errorTitle:i=`Failed to load`,skeletonRows:a=3}){return e.isLoading&&e.data===void 0?(0,F.jsx)(F.Fragment,{children:r??(0,F.jsx)(tc,{count:a})}):e.isError?(0,F.jsxs)(`div`,{className:`async-error`,role:`alert`,children:[(0,F.jsx)(`div`,{className:`async-error-title`,children:i}),(0,F.jsx)(`div`,{className:`async-error-message`,children:e.error instanceof Error?e.error.message:String(e.error)}),(0,F.jsx)(V,{type:`button`,onClick:()=>{e.refetch()},disabled:e.isFetching,loading:e.isFetching,children:`Retry`})]}):e.data===void 0?null:n&&n.when(e.data)?(0,F.jsx)(F.Fragment,{children:n.render()}):(0,F.jsx)(F.Fragment,{children:t(e.data)})}function tc({count:e}){return(0,F.jsx)(`div`,{className:`skeleton-stack`,"aria-hidden":`true`,children:Array.from({length:e},(e,t)=>(0,F.jsx)(`div`,{className:`skeleton skeleton-row`},t))})}function nc(){let[e,t]=Vi(),n=Math.max(1,Number(e.get(`page`)??`1`)||1),r=e.get(`backend`)??``,i=e.get(`status`)??``;function a(n,r,i){let a=new URLSearchParams(e);r?a.set(n,r):a.delete(n),i?.resetPage&&a.delete(`page`),t(a,{replace:!0})}function o(r){let i=new URLSearchParams(e),a=r(n);a<=1?i.delete(`page`):i.set(`page`,String(a)),t(i,{replace:!0})}let s=za({page:n,page_size:50,backend:r,status:i}),{data:c}=Wa();return(0,F.jsxs)(`div`,{children:[(0,F.jsxs)(`div`,{className:`section-header`,children:[(0,F.jsx)(`span`,{className:`section-label`,children:`Request Log`}),(0,F.jsxs)(`div`,{className:`form-row`,style:{marginTop:0},children:[(0,F.jsxs)(`select`,{name:`requestlog-backend`,value:r,onChange:e=>a(`backend`,e.target.value,{resetPage:!0}),children:[(0,F.jsx)(`option`,{value:``,children:`All backends`}),c?.map(e=>(0,F.jsx)(`option`,{value:e.name,children:e.name},e.name))]}),(0,F.jsxs)(`select`,{name:`requestlog-status`,value:i,onChange:e=>a(`status`,e.target.value,{resetPage:!0}),children:[(0,F.jsx)(`option`,{value:``,children:`All status`}),(0,F.jsx)(`option`,{value:`ok`,children:`2xx`}),(0,F.jsx)(`option`,{value:`error`,children:`4xx/5xx`})]})]})]}),(0,F.jsx)(ec,{query:s,errorTitle:`Failed to load request log`,empty:{when:e=>e.requests.length===0&&n===1,render:()=>(0,F.jsxs)(`div`,{className:`empty-cta`,children:[(0,F.jsx)(`div`,{className:`empty-cta-title`,children:`No requests logged`}),(0,F.jsx)(`div`,{className:`empty-cta-body`,children:`Send a request through the proxy and it will appear here. Only proxied traffic is logged; admin API calls are in the Audit tab.`})]})},children:e=>(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`feed`,children:[(0,F.jsxs)(`div`,{className:`feed-header`,children:[(0,F.jsx)(`span`,{children:`Time`}),(0,F.jsx)(`span`,{children:`Status`}),(0,F.jsx)(`span`,{children:`Latency`}),(0,F.jsx)(`span`,{children:`Model`}),(0,F.jsx)(`span`,{children:`In`}),(0,F.jsx)(`span`,{children:`Out`}),(0,F.jsx)(`span`,{children:`Cost`})]}),e.requests.map(e=>(0,F.jsx)(Ks,{req:e},e.request_id))]}),(0,F.jsx)($s,{page:n,hasMore:e.has_more,onPrev:()=>o(e=>Math.max(1,e-1)),onNext:()=>o(e=>e+1)})]})})]})}var rc=[`a[href]`,`button:not([disabled])`,`textarea:not([disabled])`,`input:not([disabled])`,`select:not([disabled])`,`[tabindex]:not([tabindex="-1"])`].join(`,`);function ic({open:e,onClose:t,title:n,size:r=`md`,children:i,footer:a,dismissable:o=!0}){let s=(0,P.useRef)(null),c=(0,P.useRef)(null);return(0,P.useEffect)(()=>{if(!e)return;c.current=document.activeElement??null;let t=s.current;return t&&(t.querySelector(rc)??t).focus(),()=>{c.current?.focus?.()}},[e]),(0,P.useEffect)(()=>{if(!e)return;let t=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=t}},[e]),(0,P.useEffect)(()=>{if(!e)return;let n=e=>{if(e.key===`Escape`&&o){e.stopPropagation(),t();return}if(e.key!==`Tab`)return;let n=s.current;if(!n)return;let r=Array.from(n.querySelectorAll(rc)).filter(e=>!e.hasAttribute(`data-focus-skip`));if(r.length===0){e.preventDefault();return}let i=r[0],a=r[r.length-1],c=document.activeElement;e.shiftKey&&c===i?(e.preventDefault(),a.focus()):!e.shiftKey&&c===a&&(e.preventDefault(),i.focus())};return document.addEventListener(`keydown`,n),()=>document.removeEventListener(`keydown`,n)},[e,o,t]),e?(0,Vn.createPortal)((0,F.jsx)(`div`,{className:`modal-backdrop-v2`,onClick:()=>{o&&t()},children:(0,F.jsxs)(`div`,{ref:s,className:`modal-v2 modal-${r}`,role:`dialog`,"aria-modal":`true`,"aria-label":n,tabIndex:-1,onClick:e=>e.stopPropagation(),children:[(0,F.jsxs)(`div`,{className:`modal-header`,children:[(0,F.jsx)(`div`,{className:`modal-title`,children:n}),(0,F.jsx)(`button`,{type:`button`,className:`modal-close`,"aria-label":`Close`,onClick:t,disabled:!o,children:`×`})]}),(0,F.jsx)(`div`,{className:`modal-body`,children:i}),a!=null&&(0,F.jsx)(`div`,{className:`modal-footer`,children:a})]})}),document.body):null}function ac({open:e,onClose:t,onConfirm:n,title:r,message:i,confirmLabel:a=`Delete`,cancelLabel:o=`Cancel`,variant:s=`danger`}){let[c,l]=(0,P.useState)(!1),[u,d]=(0,P.useState)(null),f=async()=>{l(!0),d(null);try{await n(),t()}catch(e){d(e instanceof Error?e.message:String(e))}finally{l(!1)}},p=()=>{c||(d(null),t())};return(0,F.jsxs)(ic,{open:e,onClose:p,title:r,size:`sm`,dismissable:!c,footer:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(V,{type:`button`,onClick:p,disabled:c,children:o}),(0,F.jsx)(V,{type:`button`,tone:s===`danger`?`danger`:`primary`,onClick:f,disabled:c,loading:c,children:a})]}),children:[(0,F.jsx)(`div`,{className:`confirm-message`,children:i}),u&&(0,F.jsx)(`div`,{className:`confirm-error`,role:`alert`,children:u})]})}var oc=function(e){return typeof window<`u`?matchMedia&&matchMedia(`(prefers-color-scheme: ${e})`):{matches:!1}},sc,cc=(0,P.createContext)({appearance:`light`,setAppearance:function(){},isDarkMode:!1,themeMode:`light`,setThemeMode:function(){},browserPrefers:(sc=oc(`dark`))!=null&&sc.matches?`dark`:`light`}),lc=function(){return(0,P.useContext)(cc)},uc=(e,t)=>{if(t)return`row`;switch(e){case`horizontal`:return`row`;case`horizontal-reverse`:return`row-reverse`;case`vertical`:default:return`column`;case`vertical-reverse`:return`column-reverse`}},dc=e=>{if(e)return[`space-between`,`space-around`,`space-evenly`].includes(e)},fc=(e,t)=>uc(e,t)===`row`,pc=e=>typeof e==`number`?`${e}px`:e,mc=(0,P.memo)(({visible:e,flex:t,gap:n,direction:r,horizontal:i,align:a,justify:o,distribution:s,height:c,width:l,allowShrink:u,padding:d,paddingInline:f,paddingBlock:p,prefixCls:m,as:h=`div`,className:g,style:_,children:v,wrap:y,ref:b,...x})=>{let S=o||s,C=fc(r,i)&&!l&&dc(S)?`100%`:pc(l),w={...t===void 0?{}:{"--lobe-flex":String(t)},...r||i?{"--lobe-flex-direction":uc(r,i)}:{},...y===void 0?{}:{"--lobe-flex-wrap":y},...S===void 0?{}:{"--lobe-flex-justify":S},...a===void 0?{}:{"--lobe-flex-align":a},...C===void 0?{}:{"--lobe-flex-width":C},...c===void 0?{}:{"--lobe-flex-height":pc(c)},...d===void 0?{}:{"--lobe-flex-padding":pc(d)},...f===void 0?{}:{"--lobe-flex-padding-inline":pc(f)},...p===void 0?{}:{"--lobe-flex-padding-block":pc(p)},...n===void 0?{}:{"--lobe-flex-gap":pc(n)},...u?{minWidth:0}:{},..._},T=`lobe-flex`,E=[T,e===!1?`${T}--hidden`:void 0,m?`${m}-flex`:void 0,g].filter(Boolean).join(` `);return(0,F.jsx)(h,{ref:b,...x,className:E,style:w,children:v})}),hc=({children:e,ref:t,...n})=>(0,F.jsx)(mc,{...n,align:`center`,justify:`center`,ref:t,children:e});function gc(e){return Array.from(e.match(_c)??[])}var _c,vc=o((()=>{_c=/\p{Lu}?\p{Ll}+|[0-9]+|\p{Lu}+(?!\p{Ll})|\p{Emoji_Presentation}|\p{Extended_Pictographic}|\p{L}+/gu}));function yc(e){return gc(e).map(e=>e.toLowerCase()).join(`-`)}o((()=>{vc()}))();var bc=function(e){var t=(0,P.useId)(),n=`lobe-icons-${yc(e)}-${t}`;return(0,P.useMemo)(function(){return{fill:`url(#${n})`,id:n}},[e])},xc=function(e,t){var n=(0,P.useId)();return(0,P.useMemo)(function(){return Array.from({length:t},function(t,r){var i=`lobe-icons-${yc(e)}-${r}-${n}`;return{fill:`url(#${i})`,id:i}})},[e,t,n])},Sc=`Gemini`,Cc=`#fff`,wc=`#fff`,Tc=.8;function Ec(e){"@babel/helpers - typeof";return Ec=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ec(e)}var Dc=[`size`,`style`];function Oc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kc(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zc(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var Bc=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=U(e,Dc),a=Nc(xc(Sc,3),3),o=a[0],s=a[1],c=a[2];return(0,F.jsxs)(`svg`,kc(kc({height:n,style:kc({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:Sc}),(0,F.jsx)(`path`,{d:`M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z`,fill:`#3186FF`}),(0,F.jsx)(`path`,{d:`M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z`,fill:o.fill}),(0,F.jsx)(`path`,{d:`M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z`,fill:s.fill}),(0,F.jsx)(`path`,{d:`M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z`,fill:c.fill}),(0,F.jsxs)(`defs`,{children:[(0,F.jsxs)(`linearGradient`,{gradientUnits:`userSpaceOnUse`,id:o.id,x1:`7`,x2:`11`,y1:`15.5`,y2:`12`,children:[(0,F.jsx)(`stop`,{stopColor:`#08B962`}),(0,F.jsx)(`stop`,{offset:`1`,stopColor:`#08B962`,stopOpacity:`0`})]}),(0,F.jsxs)(`linearGradient`,{gradientUnits:`userSpaceOnUse`,id:s.id,x1:`8`,x2:`11.5`,y1:`5.5`,y2:`11`,children:[(0,F.jsx)(`stop`,{stopColor:`#F94543`}),(0,F.jsx)(`stop`,{offset:`1`,stopColor:`#F94543`,stopOpacity:`0`})]}),(0,F.jsxs)(`linearGradient`,{gradientUnits:`userSpaceOnUse`,id:c.id,x1:`3.5`,x2:`17.5`,y1:`13.5`,y2:`12`,children:[(0,F.jsx)(`stop`,{stopColor:`#FABC12`}),(0,F.jsx)(`stop`,{offset:`.46`,stopColor:`#FABC12`,stopOpacity:`0`})]})]})]}))});function Vc(e){"@babel/helpers - typeof";return Vc=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Vc(e)}function Hc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Uc(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pl(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var ml=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=fl(e,sl);return(0,F.jsxs)(`svg`,W(W({fill:`currentColor`,fillRule:`evenodd`,height:n,style:W({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:Yc}),(0,F.jsx)(`path`,{d:`M9.205 8.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357 1.356-.523 2.117-.523 2.854 0 4.662 2.212 4.662 4.566 0 .167 0 .357-.024.547l-4.71-2.759a.797.797 0 00-.856 0l-5.97 3.473zm10.609 8.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473 1.95-1.118a.433.433 0 01.476 0l4.543 2.617c1.309.76 2.189 2.378 2.189 3.948 0 1.808-1.07 3.473-2.76 4.163zM7.802 12.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545 1.95-4.472 4.591-4.472 1 0 1.927.333 2.712.928L8.23 5.067c-.285.166-.428.404-.428.737v6.898zM12 15.128l-2.795-1.57v-3.33L12 8.658l2.795 1.57v3.33L12 15.128zm1.796 7.23c-1 0-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974 1.142c.167.095.238.238.238.428v5.233c0 2.545-1.974 4.472-4.614 4.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482 4.482 0 014.21 6.327v5.423c0 .333.143.571.428.738l5.947 3.449-1.95 1.118a.432.432 0 01-.476 0zm-.262 3.9c-2.688 0-4.662-2.021-4.662-4.519 0-.19.024-.38.047-.57l4.686 2.71c.286.167.571.167.856 0l5.97-3.448v2.26c0 .19-.07.333-.237.428l-4.543 2.616c-.619.357-1.356.523-2.117.523zm5.899 2.83a5.947 5.947 0 005.827-4.756C22.287 18.339 24 15.84 24 13.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498 0-3.401-2.759-5.947-5.946-5.947-.642 0-1.26.095-1.88.31A5.962 5.962 0 0010.205 0a5.947 5.947 0 00-5.827 4.757C1.713 5.447 0 7.945 0 10.49c0 1.666.713 3.283 1.998 4.448-.119.5-.19 1-.19 1.499 0 3.401 2.759 5.946 5.946 5.946.642 0 1.26-.095 1.88-.309a5.96 5.96 0 004.162 1.713z`})]}))});function hl(e){"@babel/helpers - typeof";return hl=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},hl(e)}var gl=[`type`];function _l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vl(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Cl(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var wl=(0,P.memo)(function(e){var t=e.type,n=t===void 0?`normal`:t,r=Sl(e,gl);return(0,F.jsx)($,vl({Icon:ml,"aria-label":Yc,background:(0,P.useMemo)(function(){switch(n){case`gpt3`:return Zc;case`gpt4`:return Qc;case`gpt5`:return $c;case`o3`:case`o1`:return el;case`oss`:return tl;case`platform`:return nl;default:return rl}},[n]),color:il,iconMultiple:al},r))}),Tl=`Qwen`,El=`#615ced`,Dl=`#fff`,Ol=.75;function kl(e){"@babel/helpers - typeof";return kl=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},kl(e)}var Al=[`size`,`style`];function jl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ml(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ll(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var Rl=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=Il(e,Al);return(0,F.jsxs)(`svg`,Ml(Ml({fill:`currentColor`,fillRule:`evenodd`,height:n,style:Ml({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:Tl}),(0,F.jsx)(`path`,{d:`M12.604 1.34c.393.69.784 1.382 1.174 2.075a.18.18 0 00.157.091h5.552c.174 0 .322.11.446.327l1.454 2.57c.19.337.24.478.024.837-.26.43-.513.864-.76 1.3l-.367.658c-.106.196-.223.28-.04.512l2.652 4.637c.172.301.111.494-.043.77-.437.785-.882 1.564-1.335 2.34-.159.272-.352.375-.68.37-.777-.016-1.552-.01-2.327.016a.099.099 0 00-.081.05 575.097 575.097 0 01-2.705 4.74c-.169.293-.38.363-.725.364-.997.003-2.002.004-3.017.002a.537.537 0 01-.465-.271l-1.335-2.323a.09.09 0 00-.083-.049H4.982c-.285.03-.553-.001-.805-.092l-1.603-2.77a.543.543 0 01-.002-.54l1.207-2.12a.198.198 0 000-.197 550.951 550.951 0 01-1.875-3.272l-.79-1.395c-.16-.31-.173-.496.095-.965.465-.813.927-1.625 1.387-2.436.132-.234.304-.334.584-.335a338.3 338.3 0 012.589-.001.124.124 0 00.107-.063l2.806-4.895a.488.488 0 01.422-.246c.524-.001 1.053 0 1.583-.006L11.704 1c.341-.003.724.032.9.34zm-3.432.403a.06.06 0 00-.052.03L6.254 6.788a.157.157 0 01-.135.078H3.253c-.056 0-.07.025-.041.074l5.81 10.156c.025.042.013.062-.034.063l-2.795.015a.218.218 0 00-.2.116l-1.32 2.31c-.044.078-.021.118.068.118l5.716.008c.046 0 .08.02.104.061l1.403 2.454c.046.081.092.082.139 0l5.006-8.76.783-1.382a.055.055 0 01.096 0l1.424 2.53a.122.122 0 00.107.062l2.763-.02a.04.04 0 00.035-.02.041.041 0 000-.04l-2.9-5.086a.108.108 0 010-.113l.293-.507 1.12-1.977c.024-.041.012-.062-.035-.062H9.2c-.059 0-.073-.026-.043-.077l1.434-2.505a.107.107 0 000-.114L9.225 1.774a.06.06 0 00-.053-.031zm6.29 8.02c.046 0 .058.02.034.06l-.832 1.465-2.613 4.585a.056.056 0 01-.05.029.058.058 0 01-.05-.029L8.498 9.841c-.02-.034-.01-.052.028-.054l.216-.012 6.722-.012z`})]}))});function zl(e){"@babel/helpers - typeof";return zl=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},zl(e)}function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eu(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var tu=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=$l(e,ql);return(0,F.jsxs)(`svg`,Yl(Yl({fill:`currentColor`,fillRule:`evenodd`,height:n,style:Yl({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:Hl}),(0,F.jsx)(`path`,{d:`M6.47 17l-.367-1.189H2.718L2.35 17H0l3.398-9.789h2.026L8.864 17H6.47zm-2.052-6.993l-1.17 4.028H5.56l-1.142-4.028zm4.707-2.796h2.23V17h-2.23V7.211zM11.955 15c.1-.483.277-.946.524-1.37.214-.359.482-.68.795-.951.32-.273.658-.52 1.013-.741.28-.168.54-.33.781-.483.222-.14.433-.296.632-.468.172-.148.317-.325.428-.525.107-.199.16-.423.157-.65 0-.392-.104-.674-.313-.846a1.176 1.176 0 00-.775-.259 1.207 1.207 0 00-.863.329c-.231.219-.347.585-.347 1.098H11.8a3.387 3.387 0 01.224-1.245c.146-.377.371-.716.66-.993.306-.29.667-.514 1.06-.657A4.04 4.04 0 0115.183 7c.42-.002.84.057 1.244.175.376.107.73.287 1.04.531.305.246.55.562.714.923.185.419.275.875.265 1.335.005.39-.084.774-.259 1.12-.167.328-.38.63-.632.894-.246.259-.517.49-.808.693-.29.2-.554.37-.789.51-.326.224-.596.417-.809.58a3.872 3.872 0 00-.51.455 1.229 1.229 0 00-.265.434 1.633 1.633 0 00-.074.517h4.078V17h-6.606a9.24 9.24 0 01.183-2zM18.8 8.93a5.05 5.05 0 001.135-.105c.25-.049.484-.156.686-.314.163-.139.28-.324.34-.532.068-.25.1-.51.095-.77H23V17h-2.243v-6.475H18.8V8.93z`})]}))}),nu=`Anthropic`,ru=`#F1F0E8`,iu=`#141413`,au=.75;function ou(e){"@babel/helpers - typeof";return ou=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ou(e)}var su=[`size`,`style`];function cu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lu(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mu(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var hu=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=pu(e,su);return(0,F.jsxs)(`svg`,lu(lu({fill:`currentColor`,fillRule:`evenodd`,height:n,style:lu({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:nu}),(0,F.jsx)(`path`,{d:`M13.827 3.52h3.603L24 20h-3.603l-6.57-16.48zm-7.258 0h3.767L16.906 20h-3.674l-1.343-3.461H5.017l-1.344 3.46H0L6.57 3.522zm4.132 9.959L8.453 7.687 6.205 13.48H10.7z`})]}))});function gu(e){"@babel/helpers - typeof";return gu=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},gu(e)}function _u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vu(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Iu(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var Lu=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=Fu(e,ku);return(0,F.jsxs)(`svg`,ju(ju({fill:`currentColor`,fillRule:`evenodd`,height:n,style:ju({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:wu}),(0,F.jsx)(`path`,{d:`M10.595 1.5a3.695 3.695 0 00-3.444 2.355L0 22.26h5.432l5.629-14.486h.002a.96.96 0 011.782 0h.75V4.835h-1.393L13.498 1.5h-2.902z`}),(0,F.jsx)(`path`,{d:`M7.151 3.855a3.695 3.695 0 013.26-2.35l-.002-.005H13.405c1.524 0 2.893.936 3.444 2.355L24 22.26h-5.525L11.54 4.413a2.528 2.528 0 00-4.609.006l.22-.564z`})]}))});function Ru(e){"@babel/helpers - typeof";return Ru=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ru(e)}function zu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Bu(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nd(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var rd=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=td(e,Yu);return(0,F.jsxs)(`svg`,Zu(Zu({fill:`currentColor`,fillRule:`evenodd`,height:n,style:Zu({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:`AWS`}),(0,F.jsx)(`path`,{d:`M6.763 11.212c0 .296.032.535.088.71.064.176.144.368.256.576.04.063.056.127.056.183 0 .08-.048.16-.152.24l-.503.335a.383.383 0 01-.208.072c-.08 0-.16-.04-.239-.112a2.47 2.47 0 01-.287-.375 6.18 6.18 0 01-.248-.471c-.622.734-1.405 1.101-2.347 1.101-.67 0-1.205-.191-1.596-.574-.39-.384-.59-.894-.59-1.533 0-.678.24-1.23.726-1.644.487-.415 1.133-.623 1.955-.623.272 0 .551.024.846.064.296.04.6.104.918.176v-.583c0-.607-.127-1.03-.375-1.277-.255-.248-.686-.367-1.3-.367-.28 0-.568.031-.863.103-.295.072-.583.16-.862.272a2.4 2.4 0 01-.28.104.488.488 0 01-.127.023c-.112 0-.168-.08-.168-.247v-.391c0-.128.016-.224.056-.28a.597.597 0 01.224-.167 4.577 4.577 0 011.005-.36 4.84 4.84 0 011.246-.151c.95 0 1.644.216 2.091.647.44.43.662 1.085.662 1.963v2.586h.016zm-3.24 1.214c.263 0 .534-.048.822-.144a1.78 1.78 0 00.758-.51 1.27 1.27 0 00.272-.512c.047-.191.08-.423.08-.694v-.335a6.66 6.66 0 00-.735-.136 6.02 6.02 0 00-.75-.048c-.535 0-.926.104-1.19.32-.263.215-.39.518-.39.917 0 .375.095.655.295.846.191.2.47.296.838.296zm6.41.862c-.144 0-.24-.024-.304-.08-.064-.048-.12-.16-.168-.311L7.586 6.726a1.398 1.398 0 01-.072-.32c0-.128.064-.2.191-.2h.783c.151 0 .255.025.31.08.065.048.113.16.16.312l1.342 5.284 1.245-5.284c.04-.16.088-.264.151-.312a.549.549 0 01.32-.08h.638c.152 0 .256.025.32.08.063.048.12.16.151.312l1.261 5.348 1.381-5.348c.048-.16.104-.264.16-.312a.52.52 0 01.311-.08h.743c.127 0 .2.065.2.2 0 .04-.009.08-.017.128a1.137 1.137 0 01-.056.2l-1.923 6.17c-.048.16-.104.263-.168.311a.51.51 0 01-.303.08h-.687c-.15 0-.255-.024-.32-.08-.063-.056-.119-.16-.15-.32L12.32 7.747l-1.23 5.14c-.04.16-.087.264-.15.32-.065.056-.177.08-.32.08l-.686.001zm10.256.215c-.415 0-.83-.048-1.229-.143-.399-.096-.71-.2-.918-.32-.128-.071-.215-.151-.247-.223a.563.563 0 01-.048-.224v-.407c0-.167.064-.247.183-.247.048 0 .096.008.144.024.048.016.12.048.2.08.271.12.566.215.878.279.32.064.63.096.95.096.502 0 .894-.088 1.165-.264a.86.86 0 00.415-.758.777.777 0 00-.215-.559c-.144-.151-.416-.287-.807-.415l-1.157-.36c-.583-.183-1.014-.454-1.277-.813a1.902 1.902 0 01-.4-1.158c0-.335.073-.63.216-.886.144-.255.335-.479.575-.654.24-.184.51-.32.83-.415.32-.096.655-.136 1.006-.136.175 0 .36.008.535.032.183.024.35.056.518.088.16.04.312.08.455.127.144.048.256.096.336.144a.69.69 0 01.24.2.43.43 0 01.071.263v.375c0 .168-.064.256-.184.256a.83.83 0 01-.303-.096 3.652 3.652 0 00-1.532-.311c-.455 0-.815.071-1.062.223-.248.152-.375.383-.375.71 0 .224.08.416.24.567.16.152.454.304.877.44l1.134.358c.574.184.99.44 1.237.767.247.327.367.702.367 1.117 0 .343-.072.655-.207.926a2.157 2.157 0 01-.583.703c-.248.2-.543.343-.886.447-.36.111-.734.167-1.142.167z`}),(0,F.jsx)(`path`,{d:`M.378 15.475c3.384 1.963 7.56 3.153 11.877 3.153 2.914 0 6.114-.607 9.06-1.852.44-.2.814.287.383.607-2.626 1.94-6.442 2.969-9.722 2.969-4.598 0-8.74-1.7-11.87-4.526-.247-.223-.024-.527.272-.351zm23.531-.2c.287.36-.08 2.826-1.485 4.007-.215.184-.423.088-.327-.151l.175-.439c.343-.88.802-2.198.52-2.555-.336-.43-2.22-.207-3.074-.103-.255.032-.295-.192-.063-.36 1.5-1.053 3.967-.75 4.254-.399z`,fill:`#F90`})]}))});function id(e){"@babel/helpers - typeof";return id=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},id(e)}function ad(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function od(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Cd(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var wd=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=Sd(e,_d);return(0,F.jsxs)(`svg`,yd(yd({fill:`currentColor`,fillRule:`evenodd`,height:n,style:yd({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:fd}),(0,F.jsx)(`path`,{clipRule:`evenodd`,d:`M8.128 14.099c.592 0 1.77-.033 3.398-.703 1.897-.781 5.672-2.2 8.395-3.656 1.905-1.018 2.74-2.366 2.74-4.18A4.56 4.56 0 0018.1 1H7.549A6.55 6.55 0 001 7.55c0 3.617 2.745 6.549 7.128 6.549z`}),(0,F.jsx)(`path`,{clipRule:`evenodd`,d:`M9.912 18.61a4.387 4.387 0 012.705-4.052l3.323-1.38c3.361-1.394 7.06 1.076 7.06 4.715a5.104 5.104 0 01-5.105 5.104l-3.597-.001a4.386 4.386 0 01-4.386-4.387z`}),(0,F.jsx)(`path`,{d:`M4.776 14.962A3.775 3.775 0 001 18.738v.489a3.776 3.776 0 007.551 0v-.49a3.775 3.775 0 00-3.775-3.775z`})]}))});function Td(e){"@babel/helpers - typeof";return Td=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Td(e)}function Ed(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Dd(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Wd(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var Gd=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=Ud(e,Ld);return(0,F.jsxs)(`svg`,zd(zd({fill:`currentColor`,fillRule:`evenodd`,height:n,style:zd({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:Nd}),(0,F.jsx)(`path`,{d:`M21.821 9.894l-9.81 5.595L1.505 9.511 1 9.787v4.34l11.01 6.256 9.811-5.574v2.297l-9.81 5.596-10.506-5.979L1 17v.745L12.01 24 23 17.745v-4.34l-.505-.277-10.484 5.957-9.832-5.574v-2.298l9.832 5.574L23 10.532V6.255l-.547-.319-10.442 5.936-9.327-5.276 9.327-5.298 7.663 4.362.673-.383v-.532L12.011 0 1 6.255v.681l11.01 6.255 9.811-5.595z`})]}))});function Kd(e){"@babel/helpers - typeof";return Kd=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Kd(e)}function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jd(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pf(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var mf=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=ff(e,of);return(0,F.jsxs)(`svg`,cf(cf({fill:`currentColor`,fillRule:`evenodd`,height:n,style:cf({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:ef}),(0,F.jsx)(`path`,{d:`M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 01-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 00-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 01-.465.137 9.597 9.597 0 00-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 001.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 011.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 01.415-.287.302.302 0 01.2.288.306.306 0 01-.31.307.303.303 0 01-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 01-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 01.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 01-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z`})]}))});function hf(e){"@babel/helpers - typeof";return hf=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},hf(e)}function gf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _f(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ff(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var If=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=Pf(e,Of);return(0,F.jsxs)(`svg`,Af(Af({fill:`currentColor`,fillRule:`evenodd`,height:n,style:Af({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:Cf}),(0,F.jsx)(`path`,{clipRule:`evenodd`,d:`M14.8 5l-2.801 6.795L9.195 5H7.397l3.072 7.428a1.64 1.64 0 003.038.002L16.598 5H14.8zm1.196 10.352l5.124-5.244-.699-1.669-5.596 5.739a1.664 1.664 0 00-.343 1.807 1.642 1.642 0 001.516 1.012L16 17l8-.02-.699-1.669-7.303.041h-.002zM2.88 10.104l.699-1.669 5.596 5.739c.468.479.603 1.189.343 1.807a1.643 1.643 0 01-1.516 1.012l-8-.018-.002.002.699-1.669 7.303.042-5.122-5.246z`})]}))});function Lf(e){"@babel/helpers - typeof";return Lf=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Lf(e)}function Rf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zf(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rp(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var ip=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=np(e,Xf);return(0,F.jsxs)(`svg`,Qf(Qf({height:n,style:Qf({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:Gf}),(0,F.jsx)(`path`,{d:`M23 12.245c0-.905-.075-1.565-.236-2.25h-10.54v4.083h6.186c-.124 1.014-.797 2.542-2.294 3.569l-.021.136 3.332 2.53.23.022C21.779 18.417 23 15.593 23 12.245z`,fill:`#4285F4`}),(0,F.jsx)(`path`,{d:`M12.225 23c3.03 0 5.574-.978 7.433-2.665l-3.542-2.688c-.948.648-2.22 1.1-3.891 1.1a6.745 6.745 0 01-6.386-4.572l-.132.011-3.465 2.628-.045.124C4.043 20.531 7.835 23 12.225 23z`,fill:`#34A853`}),(0,F.jsx)(`path`,{d:`M5.84 14.175A6.65 6.65 0 015.463 12c0-.758.138-1.491.361-2.175l-.006-.147-3.508-2.67-.115.054A10.831 10.831 0 001 12c0 1.772.436 3.447 1.197 4.938l3.642-2.763z`,fill:`#FBBC05`}),(0,F.jsx)(`path`,{d:`M12.225 5.253c2.108 0 3.529.892 4.34 1.638l3.167-3.031C17.787 2.088 15.255 1 12.225 1 7.834 1 4.043 3.469 2.197 7.062l3.63 2.763a6.77 6.77 0 016.398-4.572z`,fill:`#EB4335`})]}))});function ap(e){"@babel/helpers - typeof";return ap=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ap(e)}function op(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sp(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wp(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var Tp=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=Cp(e,_p);return(0,F.jsxs)(`svg`,yp(yp({fill:`currentColor`,fillRule:`evenodd`,height:n,style:yp({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:`IBM`}),(0,F.jsx)(`path`,{clipRule:`evenodd`,d:`M24 16.333V17h-3.158v-.667H24zm-7.579 0V17h-3.158v-.667h3.158zm2.464 0L18.63 17l-.25-.667h.504zm-7.075 0a2.528 2.528 0 01-1.717.667h-5.04v-.667h6.757zm-7.389 0V17H0v-.667h4.421zm12-1.333v.667h-3.158V15h3.158zm2.958 0l-.246.667h-1L17.885 15h1.494zm-6.937 0c-.057.237-.148.46-.265.667H5.053V15h7.39zm-8.02 0v.667H0V15h4.421zM24 15v.667h-3.158V15H24zm-1.263-1.333v.666h-1.895v-.666h1.895zm-6.316 0v.666h-1.895v-.666h1.895zm3.453 0l-.248.666h-1.989l-.25-.666h2.487zm-7.52 0c.056.212.088.435.088.666h-2.337v-.666h2.249zm-4.143 0v.666H6.316v-.666H8.21zm-5.053 0v.666H1.263v-.666h1.895zm19.579-1.334V13h-1.895v-.667h1.895zm-6.316 0V13h-1.895v-.667h1.895zm3.948 0l-.247.667h-2.987l-.245-.667h3.48zm-8.792 0c.218.188.405.414.55.667H6.315v-.667h5.26zm-8.42 0V13H1.264v-.667h1.895zM18.456 11l.177.539.176-.539h3.929v.667h-1.895v-.613l-.215.613H16.63l-.209-.613v.613h-1.895V11h3.929zM3.158 11v.667H1.263V11h1.895zm8.968 0a2.555 2.555 0 01-.55.667h-5.26V11h5.81zm10.61-1.333v.666h-3.709l.224-.666h3.486zm-4.722 0l.224.666h-3.712v-.666h3.488zm-5.572 0c0 .23-.032.454-.088.666h-2.249v-.666h2.337zm-4.231 0v.666H6.316v-.666H8.21zm-5.053 0v.666H1.263v-.666h1.895zm14.419-1.334l.22.667h-4.534v-.667h4.314zm6.423 0V9h-4.536l.229-.667H24zm-11.823 0c.117.206.208.43.265.667h-7.39v-.667h7.125zm-7.756 0V9H0v-.667h4.421zM17.133 7l.224.667h-4.094V7h3.87zM24 7v.667h-4.089L20.13 7H24zM10.093 7c.662 0 1.264.253 1.717.667H5.053V7h5.04zM4.42 7v.667H0V7h4.421z`})]}))});function Ep(e){"@babel/helpers - typeof";return Ep=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ep(e)}function Dp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Op(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Kp(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var qp=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=Gp(e,zp);return(0,F.jsxs)(`svg`,Vp(Vp({fill:`currentColor`,fillRule:`evenodd`,height:n,style:Vp({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:Pp}),(0,F.jsx)(`path`,{d:`M6.608 21.416a4.608 4.608 0 100-9.217 4.608 4.608 0 000 9.217zM20.894 2.015c.614 0 1.106.492 1.106 1.106v9.002c0 5.13-4.148 9.309-9.217 9.37v-9.355l-.03-9.032c0-.614.491-1.106 1.106-1.106h7.158l-.123.015z`})]}))});function Jp(e){"@babel/helpers - typeof";return Jp=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Jp(e)}function Yp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xp(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mm(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var hm=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=pm(e,sm);return(0,F.jsxs)(`svg`,lm(lm({fill:`currentColor`,fillRule:`evenodd`,height:n,style:lm({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:nm}),(0,F.jsx)(`path`,{d:`M6.897 4c1.915 0 3.516.932 5.43 3.376l.282-.373c.19-.246.383-.484.58-.71l.313-.35C14.588 4.788 15.792 4 17.225 4c1.273 0 2.469.557 3.491 1.516l.218.213c1.73 1.765 2.917 4.71 3.053 8.026l.011.392.002.25c0 1.501-.28 2.759-.818 3.7l-.14.23-.108.153c-.301.42-.664.758-1.086 1.009l-.265.142-.087.04a3.493 3.493 0 01-.302.118 4.117 4.117 0 01-1.33.208c-.524 0-.996-.067-1.438-.215-.614-.204-1.163-.56-1.726-1.116l-.227-.235c-.753-.812-1.534-1.976-2.493-3.586l-1.43-2.41-.544-.895-1.766 3.13-.343.592C7.597 19.156 6.227 20 4.356 20c-1.21 0-2.205-.42-2.936-1.182l-.168-.184c-.484-.573-.837-1.311-1.043-2.189l-.067-.32a8.69 8.69 0 01-.136-1.288L0 14.468c.002-.745.06-1.49.174-2.23l.1-.573c.298-1.53.828-2.958 1.536-4.157l.209-.34c1.177-1.83 2.789-3.053 4.615-3.16L6.897 4zm-.033 2.615l-.201.01c-.83.083-1.606.673-2.252 1.577l-.138.199-.01.018c-.67 1.017-1.185 2.378-1.456 3.845l-.004.022a12.591 12.591 0 00-.207 2.254l.002.188c.004.18.017.36.04.54l.043.291c.092.503.257.908.486 1.208l.117.137c.303.323.698.492 1.17.492 1.1 0 1.796-.676 3.696-3.641l2.175-3.4.454-.701-.139-.198C9.11 7.3 8.084 6.616 6.864 6.616zm10.196-.552l-.176.007c-.635.048-1.223.359-1.82.933l-.196.198c-.439.462-.887 1.064-1.367 1.807l.266.398c.18.274.362.56.55.858l.293.475 1.396 2.335.695 1.114c.583.926 1.03 1.6 1.408 2.082l.213.262c.282.326.529.54.777.673l.102.05c.227.1.457.138.718.138.176.002.35-.023.518-.073.338-.104.61-.32.813-.637l.095-.163.077-.162c.194-.459.29-1.06.29-1.785l-.006-.449c-.08-2.871-.938-5.372-2.2-6.798l-.176-.189c-.67-.683-1.444-1.074-2.27-1.074z`})]}))});function gm(e){"@babel/helpers - typeof";return gm=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},gm(e)}function _m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vm(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Im(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var Lm=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=Fm(e,km);return(0,F.jsxs)(`svg`,jm(jm({fill:`currentColor`,fillRule:`evenodd`,height:n,style:jm({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:wm}),(0,F.jsx)(`path`,{d:`M16.278 2c1.156 0 2.093.927 2.093 2.07v12.501a.74.74 0 00.744.709.74.74 0 00.743-.709V9.099a2.06 2.06 0 012.071-2.049A2.06 2.06 0 0124 9.1v6.561a.649.649 0 01-.652.645.649.649 0 01-.653-.645V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v7.472a2.037 2.037 0 01-2.048 2.026 2.037 2.037 0 01-2.048-2.026v-12.5a.785.785 0 00-.788-.753.785.785 0 00-.789.752l-.001 15.904A2.037 2.037 0 0113.441 22a2.037 2.037 0 01-2.048-2.026V18.04c0-.356.292-.645.652-.645.36 0 .652.289.652.645v1.934c0 .263.142.506.372.638.23.131.514.131.744 0a.734.734 0 00.372-.638V4.07c0-1.143.937-2.07 2.093-2.07zm-5.674 0c1.156 0 2.093.927 2.093 2.07v11.523a.648.648 0 01-.652.645.648.648 0 01-.652-.645V4.07a.785.785 0 00-.789-.78.785.785 0 00-.789.78v14.013a2.06 2.06 0 01-2.07 2.048 2.06 2.06 0 01-2.071-2.048V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v3.8a2.06 2.06 0 01-2.071 2.049A2.06 2.06 0 010 12.9v-1.378c0-.357.292-.646.652-.646.36 0 .653.29.653.646V12.9c0 .418.343.757.766.757s.766-.339.766-.757V9.099a2.06 2.06 0 012.07-2.048 2.06 2.06 0 012.071 2.048v8.984c0 .419.343.758.767.758.423 0 .766-.339.766-.758V4.07c0-1.143.937-2.07 2.093-2.07z`})]}))});function Rm(e){"@babel/helpers - typeof";return Rm=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Rm(e)}function zm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Bm(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ih(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var ah=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=rh(e,Zm);return(0,F.jsxs)(`svg`,$m($m({fill:`currentColor`,fillRule:`evenodd`,height:n,style:$m({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:Km}),(0,F.jsx)(`path`,{clipRule:`evenodd`,d:`M3.428 3.4h3.429v3.428h3.429v3.429h-.002 3.431V6.828h3.427V3.4h3.43v13.714H24v3.429H13.714v-3.428h-3.428v-3.429h-3.43v3.428h3.43v3.429H0v-3.429h3.428V3.4zm10.286 13.715h3.428v-3.429h-3.427v3.429z`})]}))});function oh(e){"@babel/helpers - typeof";return oh=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},oh(e)}function sh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ch(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Eh(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var Dh=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=Th(e,yh);return(0,F.jsxs)(`svg`,xh(xh({fill:`currentColor`,fillRule:`evenodd`,height:n,style:xh({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:mh}),(0,F.jsx)(`path`,{d:`M1.052 16.916l9.539 2.552a21.007 21.007 0 00.06 2.033l5.956 1.593a11.997 11.997 0 01-5.586.865l-.18-.016-.044-.004-.084-.009-.094-.01a11.605 11.605 0 01-.157-.02l-.107-.014-.11-.016a11.962 11.962 0 01-.32-.051l-.042-.008-.075-.013-.107-.02-.07-.015-.093-.019-.075-.016-.095-.02-.097-.023-.094-.022-.068-.017-.088-.022-.09-.024-.095-.025-.082-.023-.109-.03-.062-.02-.084-.025-.093-.028-.105-.034-.058-.019-.08-.026-.09-.031-.066-.024a6.293 6.293 0 01-.044-.015l-.068-.025-.101-.037-.057-.022-.08-.03-.087-.035-.088-.035-.079-.032-.095-.04-.063-.028-.063-.027a5.655 5.655 0 01-.041-.018l-.066-.03-.103-.047-.052-.024-.096-.046-.062-.03-.084-.04-.086-.044-.093-.047-.052-.027-.103-.055-.057-.03-.058-.032a6.49 6.49 0 01-.046-.026l-.094-.053-.06-.034-.051-.03-.072-.041-.082-.05-.093-.056-.052-.032-.084-.053-.061-.039-.079-.05-.07-.047-.053-.035a7.785 7.785 0 01-.054-.036l-.044-.03-.044-.03a6.066 6.066 0 01-.04-.028l-.057-.04-.076-.054-.069-.05-.074-.054-.056-.042-.076-.057-.076-.059-.086-.067-.045-.035-.064-.052-.074-.06-.089-.073-.046-.039-.046-.039a7.516 7.516 0 01-.043-.037l-.045-.04-.061-.053-.07-.062-.068-.06-.062-.058-.067-.062-.053-.05-.088-.084a13.28 13.28 0 01-.099-.097l-.029-.028-.041-.042-.069-.07-.05-.051-.05-.053a6.457 6.457 0 01-.168-.179l-.08-.088-.062-.07-.071-.08-.042-.049-.053-.062-.058-.068-.046-.056a7.175 7.175 0 01-.027-.033l-.045-.055-.066-.082-.041-.052-.05-.064-.02-.025a11.99 11.99 0 01-1.44-2.402zm-1.02-5.794l11.353 3.037a20.468 20.468 0 00-.469 2.011l10.817 2.894a12.076 12.076 0 01-1.845 2.005L.657 15.923l-.016-.046-.035-.104a11.965 11.965 0 01-.05-.153l-.007-.023a11.896 11.896 0 01-.207-.741l-.03-.126-.018-.08-.021-.097-.018-.081-.018-.09-.017-.084-.018-.094c-.026-.141-.05-.283-.071-.426l-.017-.118-.011-.083-.013-.102a12.01 12.01 0 01-.019-.161l-.005-.047a12.12 12.12 0 01-.034-2.145zm1.593-5.15l11.948 3.196c-.368.605-.705 1.231-1.01 1.875l11.295 3.022c-.142.82-.368 1.612-.668 2.365l-11.55-3.09L.124 10.26l.015-.1.008-.049.01-.067.015-.087.018-.098c.026-.148.056-.295.088-.442l.028-.124.02-.085.024-.097c.022-.09.045-.18.07-.268l.028-.102.023-.083.03-.1.025-.082.03-.096.026-.082.031-.095a11.896 11.896 0 011.01-2.232zm4.442-4.4L17.352 4.59a20.77 20.77 0 00-1.688 1.721l7.823 2.093c.267.852.442 1.744.513 2.665L2.106 5.213l.045-.065.027-.04.04-.055.046-.065.055-.076.054-.072.064-.086.05-.065.057-.073.055-.07.06-.074.055-.069.065-.077.054-.066.066-.077.053-.06.072-.082.053-.06.067-.074.054-.058.073-.078.058-.06.063-.067.168-.17.1-.098.059-.056.076-.071a12.084 12.084 0 012.272-1.677zM12.017 0h.097l.082.001.069.001.054.002.068.002.046.001.076.003.047.002.06.003.054.002.087.005.105.007.144.011.088.007.044.004.077.008.082.008.047.005.102.012.05.006.108.014.081.01.042.006.065.01.207.032.07.012.065.011.14.026.092.018.11.022.046.01.075.016.041.01L14.7.3l.042.01.065.015.049.012.071.017.096.024.112.03.113.03.113.032.05.015.07.02.078.024.073.023.05.016.05.016.076.025.099.033.102.036.048.017.064.023.093.034.11.041.116.045.1.04.047.02.06.024.041.018.063.026.04.018.057.025.11.048.1.046.074.035.075.036.06.028.092.046.091.045.102.052.053.028.049.026.046.024.06.033.041.022.052.029.088.05.106.06.087.051.057.034.053.032.096.059.088.055.098.062.036.024.064.041.084.056.04.027.062.042.062.043.023.017c.054.037.108.075.161.114l.083.06.065.048.056.043.086.065.082.064.04.03.05.041.086.069.079.065.085.071c.712.6 1.353 1.283 1.909 2.031L7.222.994l.062-.027.065-.028.081-.034.086-.035c.113-.045.227-.09.341-.131l.096-.035.093-.033.084-.03.096-.031c.087-.03.176-.058.264-.085l.091-.027.086-.025.102-.03.085-.023.1-.026L9.04.37l.09-.023.091-.022.095-.022.09-.02.098-.021.091-.02.095-.018.092-.018.1-.018.091-.016.098-.017.092-.014.097-.015.092-.013.102-.013.091-.012.105-.012.09-.01.105-.01c.093-.01.186-.018.28-.024l.106-.008.09-.005.11-.006.093-.004.1-.004.097-.002.099-.002.197-.002z`})]}))});function Oh(e){"@babel/helpers - typeof";return Oh=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Oh(e)}function kh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ah(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Jh(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var Yh=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=qh(e,Vh);return(0,F.jsxs)(`svg`,Uh(Uh({fill:`currentColor`,fillRule:`evenodd`,height:n,style:Uh({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:Ih}),(0,F.jsx)(`path`,{d:`M7.941 2c.23 0 .452.073.638.21.186.136.325.328.397.55l.593 1.814c.073.221.212.413.397.55.186.136.409.21.638.21h2.791c.23 0 .452-.074.638-.21a1.11 1.11 0 00.397-.55l.594-1.815a1.11 1.11 0 01.397-.55c.185-.136.408-.209.637-.209h1.7c.23 0 .453.073.639.21.185.136.324.328.397.55l.652 1.994c.118.361.41.635.77.728l2.957.752c.236.06.446.199.596.394.15.195.23.436.231.684v9.376c0 .248-.081.488-.231.684a1.09 1.09 0 01-.595.394l-2.957.752a1.086 1.086 0 00-.477.263 1.114 1.114 0 00-.293.465l-.653 1.994a1.11 1.11 0 01-.396.55c-.186.136-.41.21-.638.21h-1.702c-.229 0-.452-.073-.637-.21a1.11 1.11 0 01-.397-.55l-.364-1.11a1.131 1.131 0 01.15-1.002 1.074 1.074 0 01.885-.462h2.85c.29 0 .567-.116.772-.325.204-.208.32-.49.32-.785V6.444c0-.294-.116-.577-.32-.785a1.08 1.08 0 00-.771-.326h-3.273c-.29 0-.567.117-.772.326-.204.208-.32.49-.32.785v7.778c0 .295-.114.578-.319.786a1.08 1.08 0 01-.771.325h-2.182a1.08 1.08 0 01-.771-.325 1.122 1.122 0 01-.32-.786V6.444c0-.294-.115-.577-.32-.785a1.081 1.081 0 00-.77-.326H5.454c-.29 0-.567.117-.772.326-.204.208-.32.49-.32.785v11.112c0 .294.116.577.32.785.205.209.482.326.772.326h2.85a1.075 1.075 0 01.885.461 1.122 1.122 0 01.15 1.001l-.364 1.112a1.11 1.11 0 01-.397.55c-.185.136-.408.209-.637.209H6.24c-.229 0-.452-.073-.638-.21a1.11 1.11 0 01-.397-.55l-.652-1.994a1.114 1.114 0 00-.294-.465 1.086 1.086 0 00-.477-.263l-2.956-.752a1.09 1.09 0 01-.595-.394A1.124 1.124 0 010 16.688V7.312c0-.248.081-.489.231-.684.15-.195.36-.334.595-.394l2.957-.753c.178-.045.342-.136.477-.263.134-.127.235-.287.293-.464l.653-1.995a1.11 1.11 0 01.397-.55C5.788 2.075 6.01 2 6.24 2h1.701z`})]}))});function Xh(e){"@babel/helpers - typeof";return Xh=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Xh(e)}function Zh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qh(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gg(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var _g=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=hg(e,lg);return(0,F.jsxs)(`svg`,dg(dg({fill:`none`,height:n,style:dg({flex:`none`,lineHeight:1},r),viewBox:`0 0 33 32`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:ig}),(0,F.jsx)(`path`,{d:`m17.865 23.28 1.533 1.543c.07.07.092.175.055.267l-2.398 6.118A1.24 1.24 0 0 1 15.9 32c-.51 0-.969-.315-1.155-.793l-3.451-8.804-5.582 5.617a.246.246 0 0 1-.35 0l-1.407-1.415a.25.25 0 0 1 0-.352l6.89-6.932a1.3 1.3 0 0 1 .834-.398 1.25 1.25 0 0 1 1.232.79l2.992 7.63 1.557-3.977a.248.248 0 0 1 .408-.085zm8.224-19.3-5.583 5.617-3.45-8.805a1.24 1.24 0 0 0-1.43-.762c-.414.092-.744.407-.899.805l-2.38 6.072a.25.25 0 0 0 .055.267l1.533 1.543c.127.127.34.082.407-.085L15.9 4.655l2.991 7.629a1.24 1.24 0 0 0 2.035.425l6.922-6.965a.25.25 0 0 0 0-.352L26.44 3.977a.246.246 0 0 0-.35 0zM8.578 17.566l-3.953-1.567 7.582-3.01c.49-.195.815-.685.785-1.24a1.3 1.3 0 0 0-.395-.84l-6.886-6.93a.246.246 0 0 0-.35 0L3.954 5.395a.25.25 0 0 0 0 .353l5.583 5.617-8.75 3.472a1.25 1.25 0 0 0 0 2.325l6.079 2.412a.24.24 0 0 0 .266-.055l1.533-1.542a.25.25 0 0 0-.085-.41zm22.434-2.73-6.08-2.412a.24.24 0 0 0-.265.055l-1.533 1.542a.25.25 0 0 0 .084.41L27.172 16l-7.583 3.01a1.255 1.255 0 0 0-.785 1.24c.018.317.172.614.395.84l6.89 6.931a.246.246 0 0 0 .35 0l1.406-1.415a.25.25 0 0 0 0-.352l-5.582-5.617 8.75-3.472a1.25 1.25 0 0 0 0-2.325z`,fill:`currentColor`})]}))});function vg(e){"@babel/helpers - typeof";return vg=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},vg(e)}function yg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bg(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Rg(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var zg=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=Lg(e,jg);return(0,F.jsxs)(`svg`,Ng(Ng({fill:`currentColor`,fillRule:`evenodd`,height:n,style:Ng({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:Eg}),(0,F.jsx)(`path`,{d:`M10.212 8.976V7.62c.127-.01.256-.017.388-.021 3.596-.117 5.957 3.184 5.957 3.184s-2.548 3.647-5.282 3.647a3.227 3.227 0 01-1.063-.175v-4.109c1.4.174 1.681.812 2.523 2.258l1.873-1.627a4.905 4.905 0 00-3.67-1.846 6.594 6.594 0 00-.729.044m0-4.476v2.025c.13-.01.259-.019.388-.024 5.002-.174 8.261 4.226 8.261 4.226s-3.743 4.69-7.643 4.69c-.338 0-.675-.031-1.007-.092v1.25c.278.038.558.057.838.057 3.629 0 6.253-1.91 8.794-4.169.421.347 2.146 1.193 2.501 1.564-2.416 2.083-8.048 3.763-11.24 3.763-.308 0-.603-.02-.894-.048V19.5H24v-15H10.21zm0 9.756v1.068c-3.356-.616-4.287-4.21-4.287-4.21a7.173 7.173 0 014.287-2.138v1.172h-.005a3.182 3.182 0 00-2.502 1.178s.615 2.276 2.507 2.931m-5.961-3.3c1.436-1.935 3.604-3.148 5.961-3.336V6.523C5.81 6.887 2 10.723 2 10.723s2.158 6.427 8.21 7.015v-1.166C5.77 16 4.25 10.958 4.25 10.958h-.002z`})]}))});function Bg(e){"@babel/helpers - typeof";return Bg=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Bg(e)}function Vg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Hg(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function o_(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var s_=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=a_(e,$g);return(0,F.jsxs)(`svg`,t_(t_({fill:`currentColor`,fillRule:`evenodd`,height:n,style:t_({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:Jg}),(0,F.jsx)(`path`,{d:`M16.804 1.957l7.22 4.105v.087L16.73 10.21l.017-2.117-.821-.03c-1.059-.028-1.611.002-2.268.11-1.064.175-2.038.577-3.147 1.352L8.345 11.03c-.284.195-.495.336-.68.455l-.515.322-.397.234.385.23.53.338c.476.314 1.17.796 2.701 1.866 1.11.775 2.083 1.177 3.147 1.352l.3.045c.694.091 1.375.094 2.825.033l.022-2.159 7.22 4.105v.087L16.589 22l.014-1.862-.635.022c-1.386.042-2.137.002-3.138-.162-1.694-.28-3.26-.926-4.881-2.059l-2.158-1.5a21.997 21.997 0 00-.755-.498l-.467-.28a55.927 55.927 0 00-.76-.43C2.908 14.73.563 14.116 0 14.116V9.888l.14.004c.564-.007 2.91-.622 3.809-1.124l1.016-.58.438-.274c.428-.28 1.072-.726 2.686-1.853 1.621-1.133 3.186-1.78 4.881-2.059 1.152-.19 1.974-.213 3.814-.138l.02-1.907z`})]}))});function c_(e){"@babel/helpers - typeof";return c_=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},c_(e)}function l_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u_(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function O_(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var k_=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=D_(e,x_);return(0,F.jsxs)(`svg`,C_(C_({height:n,style:C_({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:g_}),(0,F.jsx)(`path`,{d:`M12 22.926c.928 0 1.679-.752 1.679-1.68V6.696h-3.358v14.552c0 .927.751 1.679 1.679 1.679z`,fill:`#F9AB00`}),(0,F.jsx)(`path`,{d:`M18.69 12.005A5.819 5.819 0 0012 10.904l7.188 7.188c.296.296.807.179.933-.22a5.815 5.815 0 00-1.431-5.867z`,fill:`#5BB974`}),(0,F.jsx)(`path`,{d:`M5.31 12.005A5.819 5.819 0 0112 10.904l-7.188 7.188a.562.562 0 01-.933-.22 5.815 5.815 0 011.431-5.867z`,fill:`#129EAF`}),(0,F.jsx)(`path`,{d:`M18.157 6.426c-2.86 0-5.288 1.875-6.157 4.478h11.367a.629.629 0 00.565-.908c-1.08-2.12-3.26-3.57-5.775-3.57z`,fill:`#AF5CF7`}),(0,F.jsx)(`path`,{d:`M13.188 3.384c-2.023 2.024-2.414 5.064-1.188 7.52l8.038-8.039a.629.629 0 00-.242-1.042c-2.264-.735-4.83-.217-6.608 1.561z`,fill:`#FF8BCB`}),(0,F.jsx)(`path`,{d:`M10.812 3.384c2.023 2.024 2.414 5.064 1.188 7.52L3.962 2.865a.629.629 0 01.242-1.042c2.264-.735 4.83-.217 6.608 1.561z`,fill:`#FA7B17`}),(0,F.jsx)(`path`,{d:`M5.843 6.426c2.86 0 5.288 1.875 6.157 4.478H.633a.629.629 0 01-.565-.908c1.08-2.12 3.26-3.57 5.775-3.57z`,fill:`#4285F4`})]}))});function A_(e){"@babel/helpers - typeof";return A_=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},A_(e)}function j_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function M_(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function X_(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var Z_=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=Y_(e,U_);return(0,F.jsxs)(`svg`,G_(G_({fill:`currentColor`,fillRule:`evenodd`,height:n,style:G_({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:R_}),(0,F.jsx)(`path`,{d:`M19.785 0v7.272H22.5V17.62h-2.935V24l-7.037-6.194v6.145h-1.091v-6.152L4.392 24v-6.465H1.5V7.188h2.884V0l7.053 6.494V.19h1.09v6.49L19.786 0zm-7.257 9.044v7.319l5.946 5.234V14.44l-5.946-5.397zm-1.099-.08l-5.946 5.398v7.235l5.946-5.234V8.965zm8.136 7.58h1.844V8.349H13.46l6.105 5.54v2.655zm-8.982-8.28H2.59v8.195h1.8v-2.576l6.192-5.62zM5.475 2.476v4.71h5.115l-5.115-4.71zm13.219 0l-5.115 4.71h5.115v-4.71z`})]}))});function Q_(e){"@babel/helpers - typeof";return Q_=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Q_(e)}function $_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ev(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vv(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var yv=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=_v(e,dv);return(0,F.jsxs)(`svg`,pv(pv({fill:`currentColor`,fillRule:`evenodd`,height:n,style:pv({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:ov}),(0,F.jsx)(`path`,{d:`M11.615 0l6.237 6.107c2.382 2.338 2.823 3.743 3.161 6.15-1.197-1.732-1.776-2.02-4.504-2.772C12.48 8.374 11.095 5.933 11.615 0z`}),(0,F.jsx)(`path`,{d:`M9.32 2.122C4.771 6.367 2 9.182 2 13.08c0 5.76 4.288 9.788 9.745 9.918 5.457.13 9.441-5.284 9.095-8.403-.347-3.118-4.418-3.81-4.418-3.81 1.69 3.16-.13 8.098-4.894 8.098-5.154 0-6.8-6.02-4.2-9.008.82 1.617 1.879 2.563 2.674 3.273.717.64 1.219 1.09 1.136 1.664-.173 1.213-1.385.866-1.385.866.346.607 3.6 1.473 4.59-1.342.613-1.741-.423-2.789-1.714-4.096-1.632-1.651-3.672-3.717-3.31-8.118z`})]}))});function bv(e){"@babel/helpers - typeof";return bv=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},bv(e)}function xv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sv(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Bv(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var Vv=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=zv(e,Nv);return(0,F.jsxs)(`svg`,Fv(Fv({fill:`currentColor`,fillRule:`evenodd`,height:n,style:Fv({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:Ov}),(0,F.jsx)(`path`,{d:`M7.223 21c4.252 0 7.018-2.22 7.018-5.56 0-2.59-1.682-4.236-4.69-4.918l-1.93-.571c-1.694-.375-2.683-.825-2.45-1.975.194-.957.773-1.497 2.122-1.497 4.285 0 5.873 1.497 5.873 1.497v-3.6S11.62 3 7.293 3C3.213 3 1 5.07 1 8.273c0 2.59 1.534 4.097 4.645 4.812l.334.083c.473.144 1.112.335 1.916.572 1.59.375 1.999.773 1.999 1.966 0 1.09-1.15 1.71-2.67 1.71C2.841 17.416 1 15.231 1 15.231v3.989S2.152 21 7.223 21z`}),(0,F.jsx)(`path`,{d:`M20.374 20.73c1.505 0 2.626-1.073 2.626-2.526 0-1.484-1.089-2.526-2.626-2.526-1.505 0-2.594 1.042-2.594 2.526 0 1.484 1.089 2.526 2.594 2.526z`})]}))});function Hv(e){"@babel/helpers - typeof";return Hv=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Hv(e)}function Uv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wv(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sy(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var cy=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=oy(e,ey);return(0,F.jsxs)(`svg`,ny(ny({fill:`currentColor`,fillRule:`evenodd`,height:n,style:ny({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:`V0`}),(0,F.jsx)(`path`,{clipRule:`evenodd`,d:`M14.252 8.25h5.624c.088 0 .176.006.26.018l-5.87 5.87a1.889 1.889 0 01-.019-.265V8.25h-2.25v5.623a4.124 4.124 0 004.125 4.125h5.624v-2.25h-5.624c-.09 0-.179-.006-.265-.018l5.874-5.875a1.9 1.9 0 01.02.27v5.623H24v-5.624A4.124 4.124 0 0019.876 6h-5.624v2.25zM0 7.5v.006l7.686 9.788c.924 1.176 2.813.523 2.813-.973V7.5H8.25v6.87L2.856 7.5H0z`})]}))});function ly(e){"@babel/helpers - typeof";return ly=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ly(e)}function uy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dy(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ky(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var Ay=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=Oy(e,Sy);return(0,F.jsxs)(`svg`,wy(wy({fill:`currentColor`,fillRule:`evenodd`,height:n,style:wy({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:_y}),(0,F.jsx)(`path`,{d:`M11.995 20.216a1.892 1.892 0 100 3.785 1.892 1.892 0 000-3.785zm0 2.806a.927.927 0 11.927-.914.914.914 0 01-.927.914z`}),(0,F.jsx)(`path`,{clipRule:`evenodd`,d:`M21.687 14.144c.237.038.452.16.605.344a.978.978 0 01-.18 1.3l-8.24 6.082a1.892 1.892 0 00-1.147-1.508l8.28-6.08a.991.991 0 01.682-.138z`}),(0,F.jsx)(`path`,{clipRule:`evenodd`,d:`M10.122 21.842l-8.217-6.066a.952.952 0 01-.206-1.287.978.978 0 011.287-.206l8.28 6.08a1.893 1.893 0 00-1.144 1.479z`}),(0,F.jsx)(`path`,{d:`M4.273 4.475a.978.978 0 01-.965-.965V1.09a.978.978 0 111.943 0v2.42a.978.978 0 01-.978.965zM4.247 13.034a.978.978 0 100-1.956.978.978 0 000 1.956zM4.247 10.19a.978.978 0 100-1.956.978.978 0 000 1.956zM4.247 7.332a.978.978 0 100-1.956.978.978 0 000 1.956z`}),(0,F.jsx)(`path`,{d:`M19.718 7.307a.978.978 0 01-.965-.979v-2.42a.965.965 0 011.93 0v2.42a.964.964 0 01-.965.979zM19.743 13.047a.978.978 0 100-1.956.978.978 0 000 1.956zM19.743 10.151a.978.978 0 100-1.956.978.978 0 000 1.956zM19.743 2.068a.978.978 0 100-1.956.978.978 0 000 1.956z`}),(0,F.jsx)(`path`,{d:`M11.995 15.917a.978.978 0 01-.965-.965v-2.459a.978.978 0 011.943 0v2.433a.976.976 0 01-.978.991zM11.995 18.762a.978.978 0 100-1.956.978.978 0 000 1.956zM11.995 10.64a.978.978 0 100-1.956.978.978 0 000 1.956zM11.995 7.783a.978.978 0 100-1.956.978.978 0 000 1.956z`}),(0,F.jsx)(`path`,{d:`M15.856 10.177a.978.978 0 01-.965-.965v-2.42a.977.977 0 011.702-.763.979.979 0 01.241.763v2.42a.978.978 0 01-.978.965zM15.869 4.913a.978.978 0 100-1.956.978.978 0 000 1.956zM15.869 15.853a.978.978 0 100-1.956.978.978 0 000 1.956zM15.869 12.996a.978.978 0 100-1.956.978.978 0 000 1.956z`}),(0,F.jsx)(`path`,{d:`M8.121 15.853a.978.978 0 100-1.956.978.978 0 000 1.956zM8.121 7.783a.978.978 0 100-1.956.978.978 0 000 1.956zM8.121 4.913a.978.978 0 100-1.957.978.978 0 000 1.957zM8.134 12.996a.978.978 0 01-.978-.94V9.611a.965.965 0 011.93 0v2.445a.966.966 0 01-.952.94z`})]}))});function jy(e){"@babel/helpers - typeof";return jy=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},jy(e)}function My(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ny(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zy(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var Qy=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=Xy(e,Wy);return(0,F.jsxs)(`svg`,Ky(Ky({fill:`currentColor`,fillRule:`evenodd`,height:n,style:Ky({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:zy}),(0,F.jsx)(`path`,{d:`M5.407 0v.066a.974.974 0 00-.048.245c-.011.11-.016.208-.016.295 0 .339.043.715.128 1.13.097.405.274.912.531 1.524l7.125 16.366L20.011 3.39c.161-.404.333-.846.515-1.327.182-.48.273-.966.273-1.458a1.406 1.406 0 00-.096-.54V0H24v.066c-.204.207-.45.578-.74 1.114-.29.535-.606 1.195-.949 1.982L13.095 24h-1.287L3.075 3.965c-.204-.47-.418-.923-.644-1.36-.214-.437-.418-.83-.61-1.18-.194-.36-.365-.66-.515-.9A5.666 5.666 0 001 .064V0h4.407z`})]}))});function $y(e){"@babel/helpers - typeof";return $y=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},$y(e)}function eb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tb(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yb(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var bb=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=vb(e,fb);return(0,F.jsxs)(`svg`,mb(mb({fill:`currentColor`,fillRule:`evenodd`,height:n,style:mb({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:sb}),(0,F.jsx)(`path`,{d:`M.958 15.936a.459.459 0 01.459.44v2.729a.46.46 0 01-.918 0v-2.729a.459.459 0 01.459-.44zm4.814-2.035a.46.46 0 01.553.45v4.754a.458.458 0 11-.918 0V15.48L3.74 17.202a.462.462 0 01-.655.016.462.462 0 01-.065-.082L.628 14.67a.459.459 0 01.658-.637l2.124 2.187 2.127-2.188a.46.46 0 01.235-.13zm2.068.004a.46.46 0 01.458.445v4.755a.46.46 0 01-.458.458.459.459 0 01-.458-.458V14.35a.459.459 0 01.458-.445zm1.973 2.014a.46.46 0 01.46.457v2.729a.46.46 0 01-.784.324.46.46 0 01-.134-.324v-2.729a.46.46 0 01.458-.458zm.002-2.045a.458.458 0 01.328.157l2.127 2.19 2.125-2.19a.459.459 0 01.784.318v4.756a.46.46 0 01-.455.458.46.46 0 01-.458-.458V15.48l-1.667 1.723a.46.46 0 01-.65.008l-.005-.005c0-.002-.002-.002-.004-.003l-2.455-2.534a.46.46 0 01-.008-.667.461.461 0 01.338-.128zm6.797 1.206a.46.46 0 01.53.651A1.966 1.966 0 0019.81 18.4a.462.462 0 01.623.18.46.46 0 01-.181.624 2.863 2.863 0 01-1.38.353l-.142-.004a2.88 2.88 0 01-2.393-4.263.461.461 0 01.274-.21zm.864-.931a2.884 2.884 0 013.915 3.914.46.46 0 01-.402.24l-.057-.004a.458.458 0 01-.164-.055.46.46 0 01-.182-.622 1.967 1.967 0 00-2.669-2.67.459.459 0 11-.441-.803zM9.59 6.368c1.481 0 1.696 1.202 1.696 1.654v2.648h-.917v-.432c-.26.346-.792.535-1.36.535-.133 0-1.289-.03-1.384-1.136-.082-.932.675-1.61 2.053-1.61h.691c0-.563-.367-.886-.983-.886-.44.013-.864.174-1.2.458l-.36-.664c.484-.379 1.012-.567 1.764-.567zm4.427.1c1.263 0 2.082.97 2.083 2.15 0 1.181-.824 2.154-2.083 2.154-1.26 0-2.084-.972-2.084-2.152 0-1.18.82-2.153 2.084-2.153zm6.801.015c.68 0 1.202.465 1.197 1.548v2.642H21.1V8.29c0-.312-.002-.98-.63-.98s-.628.667-.628.838v2.524h-.89V8.148c0-.17-.001-.838-.63-.838-.628 0-.628.668-.628.98v2.383h-.917v-4.03h.917V7a1.22 1.22 0 01.947-.516c.398 0 .76.193.982.686a1.321 1.321 0 011.195-.686zm-18.093.872l1.457-1.772H5.32L3.311 8.07l2.14 2.602H4.24L2.725 8.796 1.21 10.672H0L2.138 8.07.13 5.583h1.138l1.458 1.772zm4.149 3.317h-.916V6.644h.916v4.028zm16.99 0h-.916V6.644h.916v4.028zM9.925 8.71c-1.055 0-1.359.412-1.326.742.032.329.324.537.757.537a1.013 1.013 0 001.014-.968l.002-.31h-.447zM14.018 7.3c-.663 0-1.184.487-1.184 1.32 0 .832.52 1.32 1.184 1.32.662 0 1.182-.49 1.182-1.32 0-.832-.52-1.32-1.182-1.32zM6.417 5.001a.568.568 0 01.587.582.588.588 0 01-1.175 0A.57.57 0 016.417 5zm16.991 0a.57.57 0 01.592.582.588.588 0 01-1.174 0 .57.57 0 01.357-.542.572.572 0 01.225-.04z`})]}))});function xb(e){"@babel/helpers - typeof";return xb=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},xb(e)}function Sb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Cb(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vb(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var Hb=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=Bb(e,Pb);return(0,F.jsxs)(`svg`,Ib(Ib({fill:`currentColor`,fillRule:`evenodd`,height:n,style:Ib({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:kb}),(0,F.jsx)(`path`,{d:`M12.105 2L9.927 4.953H.653L2.83 2h9.276zM23.254 19.048L21.078 22h-9.242l2.174-2.952h9.244zM24 2L9.264 22H0L14.736 2H24z`})]}))});function Ub(e){"@babel/helpers - typeof";return Ub=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ub(e)}function Wb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Gb(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lx(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var ux=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=cx(e,nx);return(0,F.jsxs)(`svg`,ix(ix({fill:`currentColor`,fillRule:`evenodd`,height:n,style:ix({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:Zb}),(0,F.jsx)(`path`,{d:`M2.373 4.301L1 7.663a4.608 4.608 0 012.602 2.602c.976 2.422-.18 5.169-2.566 6.145L2.41 19.77c2.096-.867 3.723-2.494 4.554-4.59A8.346 8.346 0 002.374 4.3zM5.916 21.072L8.084 24c1.049-.759 1.988-1.699 2.783-2.71l-2.819-2.242a11.324 11.324 0 01-2.132 2.024zM14.157 12.036c0-4.699-2.277-9.144-6.073-11.928L5.916 3.036c2.891 2.096 4.59 5.458 4.626 9.036A14.81 14.81 0 0016.578 24l2.133-2.928c-2.856-2.132-4.554-5.458-4.554-9.036zM18.82 2.964L16.722 0a14.601 14.601 0 00-2.964 2.82l2.82 2.24a11.256 11.256 0 012.24-2.096zM21.277 14.06c-1.12-2.421-.036-5.313 2.386-6.433l-1.518-3.29a8.457 8.457 0 00-4.193 4.265c-1.916 4.265 0 9.29 4.301 11.17l1.482-3.29a4.862 4.862 0 01-2.458-2.422z`})]}))});function dx(e){"@babel/helpers - typeof";return dx=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},dx(e)}function fx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function px(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jx(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var Mx=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=Ax(e,wx);return(0,F.jsxs)(`svg`,Ex(Ex({fill:`currentColor`,fillRule:`evenodd`,height:n,style:Ex({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:yx}),(0,F.jsx)(`path`,{d:`M17.583 12.344L14.606 17.5H20.6c.22 0 .424-.117.535-.308l2.799-4.848h-6.351zM23.934 11.656l-2.799-4.848A.616.616 0 0020.6 6.5h-5.994l2.977 5.156h6.35zM8.653 6.5h5.953l-2.997-5.191A.616.616 0 0011.074 1H5.476l3.176 5.5zM4.881 1.343L2.083 6.191a.618.618 0 000 .617l2.997 5.191 2.976-5.156-3.175-5.5zM8.057 17.155L5.081 12l-2.998 5.192a.618.618 0 000 .617l2.798 4.848 3.175-5.5h.001zM5.476 23h5.598c.22 0 .424-.117.535-.308l2.997-5.192H8.653L5.477 23z`})]}))});function Nx(e){"@babel/helpers - typeof";return Nx=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Nx(e)}function Px(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fx(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function aS(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var oS=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=iS(e,Kx),a=Qx(xc(Vx,3),3),o=a[0],s=a[1],c=a[2];return(0,F.jsxs)(`svg`,Jx(Jx({height:n,style:Jx({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:Vx}),(0,F.jsx)(`path`,{d:`M7.242 1.613A1.11 1.11 0 018.295.857h6.977L8.03 22.316a1.11 1.11 0 01-1.052.755h-5.43a1.11 1.11 0 01-1.053-1.466L7.242 1.613z`,fill:o.fill}),(0,F.jsx)(`path`,{d:`M18.397 15.296H7.4a.51.51 0 00-.347.882l7.066 6.595c.206.192.477.298.758.298h6.226l-2.706-7.775z`,fill:`#0078D4`}),(0,F.jsx)(`path`,{d:`M15.272.857H7.497L0 23.071h7.775l1.596-4.73 5.068 4.73h6.665l-2.707-7.775h-7.998L15.272.857z`,fill:s.fill}),(0,F.jsx)(`path`,{d:`M17.193 1.613a1.11 1.11 0 00-1.052-.756h-7.81.035c.477 0 .9.304 1.052.756l6.748 19.992a1.11 1.11 0 01-1.052 1.466h-.12 7.895a1.11 1.11 0 001.052-1.466L17.193 1.613z`,fill:c.fill}),(0,F.jsxs)(`defs`,{children:[(0,F.jsxs)(`linearGradient`,{gradientUnits:`userSpaceOnUse`,id:o.id,x1:`8.247`,x2:`1.002`,y1:`1.626`,y2:`23.03`,children:[(0,F.jsx)(`stop`,{stopColor:`#114A8B`}),(0,F.jsx)(`stop`,{offset:`1`,stopColor:`#0669BC`})]}),(0,F.jsxs)(`linearGradient`,{gradientUnits:`userSpaceOnUse`,id:s.id,x1:`14.042`,x2:`12.324`,y1:`15.302`,y2:`15.888`,children:[(0,F.jsx)(`stop`,{stopOpacity:`.3`}),(0,F.jsx)(`stop`,{offset:`.071`,stopOpacity:`.2`}),(0,F.jsx)(`stop`,{offset:`.321`,stopOpacity:`.1`}),(0,F.jsx)(`stop`,{offset:`.623`,stopOpacity:`.05`}),(0,F.jsx)(`stop`,{offset:`1`,stopOpacity:`0`})]}),(0,F.jsxs)(`linearGradient`,{gradientUnits:`userSpaceOnUse`,id:c.id,x1:`12.841`,x2:`20.793`,y1:`1.626`,y2:`22.814`,children:[(0,F.jsx)(`stop`,{stopColor:`#3CCBF4`}),(0,F.jsx)(`stop`,{offset:`1`,stopColor:`#2892DF`})]})]})]}))});function sS(e){"@babel/helpers - typeof";return sS=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},sS(e)}function cS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lS(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function NS(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var PS=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=MS(e,bS),a=ES(xc(hS,3),3),o=a[0],s=a[1],c=a[2];return(0,F.jsxs)(`svg`,SS(SS({height:n,style:SS({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:hS}),(0,F.jsx)(`path`,{clipRule:`evenodd`,d:`M16.233 0c.713 0 1.345.551 1.572 1.329.227.778 1.555 5.59 1.555 5.59v9.562h-4.813L14.645 0h1.588z`,fill:o.fill,fillRule:`evenodd`}),(0,F.jsx)(`path`,{d:`M23.298 7.47c0-.34-.275-.6-.6-.6h-2.835a3.617 3.617 0 00-3.614 3.615v5.996h3.436a3.617 3.617 0 003.613-3.614V7.47z`,fill:s.fill}),(0,F.jsx)(`path`,{clipRule:`evenodd`,d:`M16.233 0a.982.982 0 00-.989.989l-.097 18.198A4.814 4.814 0 0110.334 24H1.6a.597.597 0 01-.567-.794l7-19.981A4.819 4.819 0 0112.57 0h3.679-.016z`,fill:c.fill,fillRule:`evenodd`}),(0,F.jsxs)(`defs`,{children:[(0,F.jsxs)(`linearGradient`,{gradientUnits:`userSpaceOnUse`,id:o.id,x1:`18.242`,x2:`14.191`,y1:`16.837`,y2:`.616`,children:[(0,F.jsx)(`stop`,{stopColor:`#712575`}),(0,F.jsx)(`stop`,{offset:`.09`,stopColor:`#9A2884`}),(0,F.jsx)(`stop`,{offset:`.18`,stopColor:`#BF2C92`}),(0,F.jsx)(`stop`,{offset:`.27`,stopColor:`#DA2E9C`}),(0,F.jsx)(`stop`,{offset:`.34`,stopColor:`#EB30A2`}),(0,F.jsx)(`stop`,{offset:`.4`,stopColor:`#F131A5`}),(0,F.jsx)(`stop`,{offset:`.5`,stopColor:`#EC30A3`}),(0,F.jsx)(`stop`,{offset:`.61`,stopColor:`#DF2F9E`}),(0,F.jsx)(`stop`,{offset:`.72`,stopColor:`#C92D96`}),(0,F.jsx)(`stop`,{offset:`.83`,stopColor:`#AA2A8A`}),(0,F.jsx)(`stop`,{offset:`.95`,stopColor:`#83267C`}),(0,F.jsx)(`stop`,{offset:`1`,stopColor:`#712575`})]}),(0,F.jsxs)(`linearGradient`,{gradientUnits:`userSpaceOnUse`,id:s.id,x1:`19.782`,x2:`19.782`,y1:`.34`,y2:`23.222`,children:[(0,F.jsx)(`stop`,{stopColor:`#DA7ED0`}),(0,F.jsx)(`stop`,{offset:`.08`,stopColor:`#B17BD5`}),(0,F.jsx)(`stop`,{offset:`.19`,stopColor:`#8778DB`}),(0,F.jsx)(`stop`,{offset:`.3`,stopColor:`#6276E1`}),(0,F.jsx)(`stop`,{offset:`.41`,stopColor:`#4574E5`}),(0,F.jsx)(`stop`,{offset:`.54`,stopColor:`#2E72E8`}),(0,F.jsx)(`stop`,{offset:`.67`,stopColor:`#1D71EB`}),(0,F.jsx)(`stop`,{offset:`.81`,stopColor:`#1471EC`}),(0,F.jsx)(`stop`,{offset:`1`,stopColor:`#1171ED`})]}),(0,F.jsxs)(`linearGradient`,{gradientUnits:`userSpaceOnUse`,id:c.id,x1:`18.404`,x2:`3.236`,y1:`.859`,y2:`25.183`,children:[(0,F.jsx)(`stop`,{stopColor:`#DA7ED0`}),(0,F.jsx)(`stop`,{offset:`.05`,stopColor:`#B77BD4`}),(0,F.jsx)(`stop`,{offset:`.11`,stopColor:`#9079DA`}),(0,F.jsx)(`stop`,{offset:`.18`,stopColor:`#6E77DF`}),(0,F.jsx)(`stop`,{offset:`.25`,stopColor:`#5175E3`}),(0,F.jsx)(`stop`,{offset:`.33`,stopColor:`#3973E7`}),(0,F.jsx)(`stop`,{offset:`.42`,stopColor:`#2772E9`}),(0,F.jsx)(`stop`,{offset:`.54`,stopColor:`#1A71EB`}),(0,F.jsx)(`stop`,{offset:`.68`,stopColor:`#1371EC`}),(0,F.jsx)(`stop`,{offset:`1`,stopColor:`#1171ED`})]})]})]}))});function FS(e){"@babel/helpers - typeof";return FS=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},FS(e)}function IS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function LS(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tC(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var nC=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=eC(e,JS);return(0,F.jsxs)(`svg`,XS(XS({fill:`currentColor`,fillRule:`evenodd`,height:n,style:XS({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:US}),(0,F.jsx)(`path`,{d:`M8.859 11.735c1.017-1.71 4.059-3.083 6.202.286 1.579 2.284 4.284 4.397 4.284 4.397s2.027 1.601.73 4.684c-1.24 2.956-5.64 1.607-6.005 1.49l-.024-.009s-1.746-.568-3.776-.112c-2.026.458-3.773.286-3.773.286l-.045-.001c-.328-.01-2.38-.187-3.001-2.968-.675-3.028 2.365-4.687 2.592-4.968.226-.288 1.802-1.37 2.816-3.085zm.986 1.738v2.032h-1.64s-1.64.138-2.213 2.014c-.2 1.252.177 1.99.242 2.148.067.157.596 1.073 1.927 1.342h3.078v-7.514l-1.394-.022zm3.588 2.191l-1.44.024v3.956s.064.985 1.44 1.344h3.541v-5.3h-1.528v3.979h-1.46s-.466-.068-.553-.447v-3.556zM9.82 16.715v3.06H8.58s-.863-.045-1.126-1.049c-.136-.445.02-.959.088-1.16.063-.203.353-.671.951-.85H9.82zm9.525-9.036c2.086 0 2.646 2.06 2.646 2.742 0 .688.284 3.597-2.309 3.655-2.595.057-2.704-1.77-2.704-3.08 0-1.374.277-3.317 2.367-3.317zM4.24 6.08c1.523-.135 2.645 1.55 2.762 2.513.07.625.393 3.486-1.975 4-2.364.515-3.244-2.249-2.984-3.544 0 0 .28-2.797 2.197-2.969zm8.847-1.483c.14-1.31 1.69-3.316 2.931-3.028 1.236.285 2.367 1.944 2.137 3.37-.224 1.428-1.345 3.313-3.095 3.082-1.748-.226-2.143-1.823-1.973-3.424zM9.425 1c1.307 0 2.364 1.519 2.364 3.398 0 1.879-1.057 3.4-2.364 3.4s-2.367-1.521-2.367-3.4C7.058 2.518 8.118 1 9.425 1z`})]}))});function rC(e){"@babel/helpers - typeof";return rC=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},rC(e)}function iC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function aC(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function CC(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var wC=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=SC(e,gC);return(0,F.jsxs)(`svg`,vC(vC({fill:`currentColor`,fillRule:`evenodd`,height:n,style:vC({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:dC}),(0,F.jsx)(`path`,{d:`M2.316 4.8h14.682v4.8H7.31a.302.302 0 00-.308.3v4.2c0 .171.14.3.308.3h9.688v4.8h-4.686a.302.302 0 00-.308.3v4.2c0 .171.141.3.308.3h4.378a.297.297 0 00.308-.3v-4.5h4.694a.302.302 0 00.308-.3v-4.2c0-.171-.14-.3-.308-.3h-4.694V9.6h4.694A.302.302 0 0022 9.3V5.1c0-.171-.14-.3-.308-.3h-4.694V.3c0-.171-.14-.3-.308-.3H2.316A.31.31 0 002 .3v4.2c0 .171.14.3.316.3z`})]}))});function TC(e){"@babel/helpers - typeof";return TC=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},TC(e)}function EC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function DC(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function GC(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var KC=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=WC(e,RC);return(0,F.jsxs)(`svg`,BC(BC({fill:`currentColor`,fillRule:`evenodd`,height:n,style:BC({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:NC}),(0,F.jsx)(`path`,{d:`M13.05 15.513h3.08c.214 0 .389.177.389.394v1.82a1.704 1.704 0 011.296 1.661c0 .943-.755 1.708-1.685 1.708-.931 0-1.686-.765-1.686-1.708 0-.807.554-1.484 1.297-1.662v-1.425h-2.69v4.663a.395.395 0 01-.188.338l-2.69 1.641a.385.385 0 01-.405-.002l-4.926-3.086a.395.395 0 01-.185-.336V16.3L2.196 14.87A.395.395 0 012 14.555L2 14.528V9.406c0-.14.073-.27.192-.34l2.465-1.462V4.448c0-.129.062-.249.165-.322l.021-.014L9.77 1.058a.385.385 0 01.407 0l2.69 1.675a.395.395 0 01.185.336V7.6h3.856V5.683a1.704 1.704 0 01-1.296-1.662c0-.943.755-1.708 1.685-1.708.931 0 1.685.765 1.685 1.708 0 .807-.553 1.484-1.296 1.662v2.311a.391.391 0 01-.389.394h-4.245v1.806h6.624a1.69 1.69 0 011.64-1.313c.93 0 1.685.764 1.685 1.707 0 .943-.754 1.708-1.685 1.708a1.69 1.69 0 01-1.64-1.314H13.05v1.937h4.953l.915 1.18a1.66 1.66 0 01.84-.227c.931 0 1.685.764 1.685 1.707 0 .943-.754 1.708-1.685 1.708-.93 0-1.685-.765-1.685-1.708 0-.346.102-.668.276-.937l-.724-.935H13.05v1.806zM9.973 1.856L7.93 3.122V6.09h-.778V3.604L5.435 4.669v2.945l2.11 1.36L9.712 7.61V5.334h.778V7.83c0 .136-.07.263-.184.335L7.963 9.638v2.081l1.422 1.009-.446.646-1.406-.998-1.53 1.005-.423-.66 1.605-1.055v-1.99L5.038 8.29l-2.26 1.34v1.676l1.972-1.189.398.677-2.37 1.429V14.3l2.166 1.258 2.27-1.368.397.677-2.176 1.311V19.3l1.876 1.175 2.365-1.426.398.678-2.017 1.216 1.918 1.201 2.298-1.403v-5.78l-4.758 2.893-.4-.675 5.158-3.136V3.289L9.972 1.856zM16.13 18.47a.913.913 0 00-.908.92c0 .507.406.918.908.918a.913.913 0 00.907-.919.913.913 0 00-.907-.92zm3.63-3.81a.913.913 0 00-.908.92c0 .508.406.92.907.92a.913.913 0 00.908-.92.913.913 0 00-.908-.92zm1.555-4.99a.913.913 0 00-.908.92c0 .507.407.918.908.918a.913.913 0 00.907-.919.913.913 0 00-.907-.92zM17.296 3.1a.913.913 0 00-.907.92c0 .508.406.92.907.92a.913.913 0 00.908-.92.913.913 0 00-.908-.92z`})]}))});function qC(e){"@babel/helpers - typeof";return qC=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},qC(e)}function JC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function YC(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pw(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var mw=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=fw(e,ow);return(0,F.jsxs)(`svg`,cw(cw({fill:`currentColor`,fillRule:`evenodd`,height:n,style:cw({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:tw}),(0,F.jsx)(`path`,{d:`M17.113 10.248H14.56l-2.553-3.616-7.963 11.27h2.558l5.405-7.654h2.552l-5.404 7.653h2.565l5.392-7.653L24 20 19.97 20v-2.091l-2.857-4.044-2.842 4.037V20H0L12.008 3l5.105 7.249z`})]}))});function hw(e){"@babel/helpers - typeof";return hw=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},hw(e)}function gw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _w(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Fw(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var Iw=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=Pw(e,Ow);return(0,F.jsxs)(`svg`,Aw(Aw({fill:`currentColor`,fillRule:`evenodd`,height:n,style:Aw({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:Cw}),(0,F.jsx)(`path`,{clipRule:`evenodd`,d:`M14.121 2.701a9.299 9.299 0 000 18.598V22.7c-5.91 0-10.7-4.791-10.7-10.701S8.21 1.299 14.12 1.299V2.7zm4.752 3.677A7.353 7.353 0 109.42 17.643l-.901 1.074a8.754 8.754 0 01-1.08-12.334 8.755 8.755 0 0112.335-1.08l-.901 1.075zm-2.255.844a5.407 5.407 0 00-5.048 9.563l-.656 1.24a6.81 6.81 0 016.358-12.043l-.654 1.24zM14.12 8.539a3.46 3.46 0 100 6.922v1.402a4.863 4.863 0 010-9.726v1.402z`}),(0,F.jsx)(`path`,{d:`M15.407 10.836a2.24 2.24 0 00-.51-.409 1.084 1.084 0 00-.544-.152c-.255 0-.483.047-.684.14a1.58 1.58 0 00-.84.912c-.074.203-.11.416-.11.631 0 .218.036.43.11.631a1.594 1.594 0 00.84.913c.2.093.43.14.684.14.216 0 .417-.046.602-.135.188-.09.35-.225.475-.392l.928 1.006c-.14.14-.3.261-.482.363a3.367 3.367 0 01-1.083.38c-.17.026-.317.04-.44.04a3.315 3.315 0 01-1.182-.21 2.825 2.825 0 01-.961-.597 2.816 2.816 0 01-.644-.929 2.987 2.987 0 01-.238-1.21c0-.444.08-.847.238-1.21.15-.35.368-.666.643-.929.278-.261.605-.464.962-.596a3.315 3.315 0 011.182-.21c.355 0 .712.068 1.072.204.361.138.685.36.944.649l-.962.97z`})]}))});function Lw(e){"@babel/helpers - typeof";return Lw=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Lw(e)}function Rw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zw(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rT(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var iT=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=nT(e,Xw);return(0,F.jsxs)(`svg`,Qw(Qw({fill:`currentColor`,fillRule:`evenodd`,height:n,style:Qw({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:Gw}),(0,F.jsx)(`path`,{d:`M16.493 17.4c.135-.52.08-.983-.161-1.338-.215-.328-.592-.519-1.05-.519l-8.663-.109a.148.148 0 01-.135-.082c-.027-.054-.027-.109-.027-.163.027-.082.108-.164.189-.164l8.744-.11c1.05-.054 2.153-.9 2.556-1.937l.511-1.31c.027-.055.027-.11.027-.164C17.92 8.91 15.66 7 12.942 7c-2.503 0-4.628 1.638-5.381 3.903a2.432 2.432 0 00-1.803-.491c-1.21.109-2.153 1.092-2.287 2.32-.027.328 0 .628.054.9C1.56 13.688 0 15.326 0 17.319c0 .19.027.355.027.545 0 .082.08.137.161.137h15.983c.08 0 .188-.055.215-.164l.107-.437`}),(0,F.jsx)(`path`,{d:`M19.238 11.75h-.242c-.054 0-.108.054-.135.109l-.35 1.2c-.134.52-.08.983.162 1.338.215.328.592.518 1.05.518l1.855.11c.054 0 .108.027.135.082.027.054.027.109.027.163-.027.082-.108.164-.188.164l-1.91.11c-1.05.054-2.153.9-2.557 1.937l-.134.355c-.027.055.026.137.107.137h6.592c.081 0 .162-.055.162-.137.107-.41.188-.846.188-1.31-.027-2.62-2.153-4.777-4.762-4.777`})]}))});function aT(e){"@babel/helpers - typeof";return aT=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},aT(e)}function oT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sT(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function TT(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var ET=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=wT(e,vT),a=bc(pT),o=a.id,s=a.fill;return(0,F.jsxs)(`svg`,bT(bT({height:n,style:bT({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:pT}),(0,F.jsx)(`path`,{d:`M12 0L4.583 6.583c-3.23 2.869-3.23 7.965 0 10.834L12 24l7.417-6.583c3.23-2.869 3.23-7.965 0-10.834L12 0z`,fill:s}),(0,F.jsx)(`defs`,{children:(0,F.jsxs)(`linearGradient`,{gradientUnits:`userSpaceOnUse`,id:o,x1:`18.919`,x2:`4.853`,y1:`5.595`,y2:`18.301`,children:[(0,F.jsx)(`stop`,{stopColor:`#F4BF45`}),(0,F.jsx)(`stop`,{offset:`.35`,stopColor:`#E48047`}),(0,F.jsx)(`stop`,{offset:`.69`,stopColor:`#C73361`}),(0,F.jsx)(`stop`,{offset:`1`,stopColor:`#A42F5F`})]})})]}))});function DT(e){"@babel/helpers - typeof";return DT=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},DT(e)}function OT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kT(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qT(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var JT=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=KT(e,BT);return(0,F.jsxs)(`svg`,HT(HT({height:n,style:HT({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:FT}),(0,F.jsx)(`path`,{d:`M3.294 7.821A2.297 2.297 0 011 5.527a2.297 2.297 0 012.294-2.295A2.297 2.297 0 015.59 5.527 2.297 2.297 0 013.294 7.82zm0-3.688a1.396 1.396 0 000 2.79 1.396 1.396 0 000-2.79zM3.294 14.293A2.297 2.297 0 011 11.998a2.297 2.297 0 012.294-2.294 2.297 2.297 0 012.295 2.294 2.297 2.297 0 01-2.295 2.295zm0-3.688a1.395 1.395 0 000 2.788 1.395 1.395 0 100-2.788zM3.294 20.761A2.297 2.297 0 011 18.467a2.297 2.297 0 012.294-2.295 2.297 2.297 0 012.295 2.295 2.297 2.297 0 01-2.295 2.294zm0-3.688a1.396 1.396 0 000 2.79 1.396 1.396 0 000-2.79zM20.738 7.821a2.297 2.297 0 01-2.295-2.294 2.297 2.297 0 012.294-2.295 2.297 2.297 0 012.295 2.295 2.297 2.297 0 01-2.294 2.294zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.626-1.395-1.395-1.395zM20.738 14.293a2.297 2.297 0 01-2.295-2.295 2.297 2.297 0 012.294-2.294 2.297 2.297 0 012.295 2.294 2.297 2.297 0 01-2.294 2.295zm0-3.688c-.769 0-1.395.625-1.395 1.393a1.396 1.396 0 002.79 0c0-.77-.626-1.393-1.395-1.393zM20.738 20.761a2.297 2.297 0 01-2.295-2.294 2.297 2.297 0 012.294-2.295 2.297 2.297 0 012.295 2.295 2.297 2.297 0 01-2.294 2.294zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.626-1.395-1.395-1.395zM12.016 11.057a2.297 2.297 0 01-2.294-2.294 2.297 2.297 0 012.294-2.295 2.297 2.297 0 012.295 2.295 2.297 2.297 0 01-2.295 2.294zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.625-1.395-1.395-1.395zM12.017 4.589a2.297 2.297 0 01-2.295-2.295A2.297 2.297 0 0112.017 0a2.297 2.297 0 012.294 2.294 2.297 2.297 0 01-2.294 2.295zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.626-1.395-1.395-1.395zM12.017 17.529a2.297 2.297 0 01-2.295-2.295 2.297 2.297 0 012.295-2.294 2.297 2.297 0 012.294 2.294 2.297 2.297 0 01-2.294 2.295zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.626-1.395-1.395-1.395zM12.016 24a2.297 2.297 0 01-2.294-2.295 2.297 2.297 0 012.294-2.294 2.297 2.297 0 012.295 2.294A2.297 2.297 0 0112.016 24zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.625-1.395-1.395-1.395z`,fill:`#2A3275`}),(0,F.jsx)(`path`,{d:`M8.363 8.222a.742.742 0 01-.277-.053l-1.494-.596a.75.75 0 11.557-1.392l1.493.595a.75.75 0 01-.278 1.446h-.001zM8.363 14.566a.743.743 0 01-.277-.053l-1.494-.595a.75.75 0 11.557-1.393l1.493.596a.75.75 0 01-.278 1.445h-.001zM17.124 11.397a.741.741 0 01-.277-.054l-1.493-.595a.75.75 0 11.555-1.392l1.493.595a.75.75 0 01-.278 1.446zM17.124 5.05a.744.744 0 01-.277-.054L15.354 4.4a.75.75 0 01.555-1.392l1.493.596a.75.75 0 01-.278 1.445zM17.124 17.739a.743.743 0 01-.277-.053l-1.494-.596a.75.75 0 11.556-1.392l1.493.596a.75.75 0 01-.278 1.445zM6.91 17.966a.75.75 0 01-.279-1.445l1.494-.595a.749.749 0 11.556 1.392l-1.493.595a.743.743 0 01-.277.053H6.91zM6.91 11.66a.75.75 0 01-.279-1.446l1.494-.595a.75.75 0 01.556 1.392l-1.493.595a.743.743 0 01-.277.053H6.91zM6.91 5.033a.75.75 0 01-.279-1.446l1.494-.595a.75.75 0 01.556 1.392l-1.493.596a.744.744 0 01-.277.053H6.91zM8.363 21.364a.743.743 0 01-.277-.053l-1.494-.596a.75.75 0 01.555-1.392l1.494.595a.75.75 0 01-.278 1.446zM15.63 8.223a.75.75 0 01-.278-1.447l1.494-.595a.75.75 0 01.556 1.393l-1.494.595a.744.744 0 01-.276.054h-.002zM15.63 14.567a.75.75 0 01-.278-1.446l1.494-.596a.75.75 0 01.556 1.394l-1.494.595a.743.743 0 01-.276.053h-.002zM15.63 21.363a.749.749 0 01-.278-1.445l1.494-.595a.75.75 0 11.555 1.392l-1.494.595a.741.741 0 01-.277.053z`,fill:`#5699DB`})]}))});function YT(e){"@babel/helpers - typeof";return YT=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},YT(e)}function XT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ZT(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mE(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var hE=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=pE(e,sE);return(0,F.jsxs)(`svg`,lE(lE({fill:`currentColor`,fillRule:`evenodd`,height:n,style:lE({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:`Exa`}),(0,F.jsx)(`path`,{clipRule:`evenodd`,d:`M3 0h19v1.791L13.892 12 22 22.209V24H3V0zm9.62 10.348l6.589-8.557H6.03l6.59 8.557zM5.138 3.935v7.17h5.52l-5.52-7.17zm5.52 8.96h-5.52v7.17l5.52-7.17zM6.03 22.21l6.59-8.557 6.589 8.557H6.03z`})]}))});function gE(e){"@babel/helpers - typeof";return gE=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},gE(e)}function _E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vE(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function FE(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var IE=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=PE(e,OE);return(0,F.jsxs)(`svg`,AE(AE({fill:`currentColor`,fillRule:`evenodd`,height:n,style:AE({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:`Fal`}),(0,F.jsx)(`path`,{clipRule:`evenodd`,d:`M15.477 0c.415 0 .749.338.788.752a7.775 7.775 0 006.985 6.984c.413.04.752.373.752.788v6.952c0 .415-.338.748-.752.788a7.775 7.775 0 00-6.985 6.984c-.04.414-.373.752-.788.752H8.525c-.416 0-.749-.338-.789-.752a7.775 7.775 0 00-6.984-6.984c-.414-.04-.752-.373-.752-.788V8.524c0-.415.338-.748.752-.788A7.775 7.775 0 007.736.752C7.776.338 8.11 0 8.526 0h6.95zM4.819 11.98a7.226 7.226 0 007.223 7.23 7.226 7.226 0 007.223-7.23c0-3.994-3.234-7.23-7.223-7.23a7.227 7.227 0 00-7.223 7.23z`})]}))});function LE(e){"@babel/helpers - typeof";return LE=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},LE(e)}function RE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zE(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rD(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var iD=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=nD(e,XE);return(0,F.jsxs)(`svg`,QE(QE({fill:`currentColor`,fillRule:`evenodd`,height:n,style:QE({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:GE}),(0,F.jsx)(`path`,{d:`M22.724 3.088C21.527 2.376 19.91 2 18.044 2c-2.854 0-6 .877-8.826 2.403l-.02-.007-.004.021c-.855.464-1.684.981-2.462 1.558C2.147 9.376.863 13.412 1.947 15.57.76 17.542.03 19.583 0 22c2.28-4.233 3.648-7.663 11.076-13.438-2.122.443-5.79 2.545-8.258 5.735-.233-1.866 1.28-4.879 4.65-7.379.428-.316.871-.612 1.324-.893-.354 1.071-.24.805-.975 2.307 1.086-1.001 1.8-1.62 2.873-3.335a18.995 18.995 0 014.276-1.465c-.238.767-.69 2.067-1.302 3.095 0 0 1.553-.324 2.837-.25-.701.753-1.333 1.569-1.973 2.403-.876 1.142-1.782 2.322-2.943 3.421-.14.133-.273.253-.408.377-1.784-.167-2.961.483-4.065 1.63.87-.395 2.04-.72 2.772-.524-1.35 1.073-3.477 2.487-5.224 2.37-.332.492-.353.507-.717 1.1 2.835.688 6.395-2.118 8.49-4.103 1.229-1.164 2.165-2.383 3.07-3.56 1.862-2.427 3.471-4.523 7.04-5.32L24 3.846l-1.276-.758z`})]}))});function aD(e){"@babel/helpers - typeof";return aD=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},aD(e)}function oD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sD(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ED(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var DD=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=TD(e,yD);return(0,F.jsxs)(`svg`,xD(xD({fill:`currentColor`,fillRule:`evenodd`,height:n,style:xD({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:pD}),(0,F.jsx)(`path`,{d:`M3.675 7.386A3.684 3.684 0 007.35 3.693 3.684 3.684 0 003.675 0 3.684 3.684 0 000 3.693a3.684 3.684 0 003.675 3.693zm0 16.614a3.683 3.683 0 003.675-3.693 3.684 3.684 0 00-3.675-3.693A3.683 3.683 0 000 20.307 3.684 3.684 0 003.675 24z`}),(0,F.jsx)(`path`,{d:`M10.338 7.2a8.002 8.002 0 011.146-.114h2.037a2.14 2.14 0 002.136-2.139V2.44c0-1.179-.96-2.139-2.136-2.139h-2.484a2.14 2.14 0 00-2.136 2.14l-.08 1.487a8.001 8.001 0 01-.12.9 5.2 5.2 0 01-.487 1.38s-.327.627-.753 1.068a5 5 0 01-.327.306l-.219.18a4.4 4.4 0 01-1.779.786c-.285.06-.939.066-1.206.072H2.433c-1.179 0-2.136.96-2.136 2.148v2.5c0 1.187.96 2.147 2.136 2.147h2.544a2.15 2.15 0 002.136-2.148v-1.794c-.02-.62.021-1.773.567-2.547.34-.48.88-.906.972-.98a3.58 3.58 0 01.798-.487c.087-.039.36-.147.885-.246V7.2h.003z`}),(0,F.jsx)(`path`,{d:`M21.897.3H19.28c-1.146 0-2.07.927-2.07 2.073V4.14s0 1.227-.3 2.14c-.321.905-1.131 1.727-1.944 2.027-.951.348-2.064.3-2.631.3h-1.59a2.07 2.07 0 00-2.064 2.073v2.634c0 1.146.924 2.073 2.064 2.073h2.622a2.07 2.07 0 002.064-2.073l.02-1.1c-.011-.409.028-1.249.226-1.86.072-.229.219-.649.552-1.108.24-.327.474-.534.71-.753.433-.387.799-.612.9-.666.22-.132.6-.36 1.138-.528.48-.147.84-.174 1.452-.213.36-.027.858-.039 1.458-.006 1.146 0 2.07-.927 2.07-2.073V2.373A2.07 2.07 0 0021.888.3h.009z`})]}))});function OD(e){"@babel/helpers - typeof";return OD=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},OD(e)}function kD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function AD(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function JD(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var YD=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=qD(e,VD);return(0,F.jsxs)(`svg`,UD(UD({fill:`currentColor`,fillRule:`evenodd`,height:n,style:UD({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:ID}),(0,F.jsx)(`path`,{d:`M12 0c6.63 0 12 5.276 12 11.79-.001 5.067-3.29 9.567-8.175 11.187-.6.118-.825-.25-.825-.56 0-.398.015-1.665.015-3.242 0-1.105-.375-1.813-.81-2.181 2.67-.295 5.475-1.297 5.475-5.822 0-1.297-.465-2.344-1.23-3.169.12-.295.54-1.503-.12-3.125 0 0-1.005-.324-3.3 1.209a11.32 11.32 0 00-3-.398c-1.02 0-2.04.133-3 .398-2.295-1.518-3.3-1.209-3.3-1.209-.66 1.622-.24 2.83-.12 3.125-.765.825-1.23 1.887-1.23 3.169 0 4.51 2.79 5.527 5.46 5.822-.345.294-.66.81-.765 1.577-.69.31-2.415.81-3.495-.973-.225-.354-.9-1.223-1.845-1.209-1.005.015-.405.56.015.781.51.28 1.095 1.327 1.23 1.666.24.663 1.02 1.93 4.035 1.385 0 .988.015 1.916.015 2.196 0 .31-.225.664-.825.56C3.303 21.374-.003 16.867 0 11.791 0 5.276 5.37 0 12 0z`})]}))});function XD(e){"@babel/helpers - typeof";return XD=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},XD(e)}function ZD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function QD(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gO(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var _O=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=hO(e,lO);return(0,F.jsxs)(`svg`,dO(dO({fill:`currentColor`,fillRule:`evenodd`,height:n,style:dO({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:iO}),(0,F.jsx)(`path`,{d:`M12.036 2c-3.853-.035-7 3-7.036 6.781-.035 3.782 3.055 6.872 6.908 6.907h2.42v-2.566h-2.292c-2.407.028-4.38-1.866-4.408-4.23-.029-2.362 1.901-4.298 4.308-4.326h.1c2.407 0 4.358 1.915 4.365 4.278v6.305c0 2.342-1.944 4.25-4.323 4.279a4.375 4.375 0 01-3.033-1.252l-1.851 1.818A7 7 0 0012.029 22h.092c3.803-.056 6.858-3.083 6.879-6.816v-6.5C18.907 4.963 15.817 2 12.036 2z`})]}))});function vO(e){"@babel/helpers - typeof";return vO=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},vO(e)}function yO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bO(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function RO(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var zO=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=LO(e,jO);return(0,F.jsxs)(`svg`,NO(NO({height:n,style:NO({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:EO}),(0,F.jsx)(`path`,{d:`M2.25 11.535c0-3.407 1.847-6.554 4.844-8.258a9.822 9.822 0 019.687 0c2.997 1.704 4.844 4.851 4.844 8.258 0 5.266-4.337 9.535-9.687 9.535S2.25 16.8 2.25 11.535z`,fill:`#FF9D0B`}),(0,F.jsx)(`path`,{d:`M11.938 20.086c4.797 0 8.687-3.829 8.687-8.551 0-4.722-3.89-8.55-8.687-8.55-4.798 0-8.688 3.828-8.688 8.55 0 4.722 3.89 8.55 8.688 8.55z`,fill:`#FFD21E`}),(0,F.jsx)(`path`,{d:`M11.875 15.113c2.457 0 3.25-2.156 3.25-3.263 0-.576-.393-.394-1.023-.089-.582.283-1.365.675-2.224.675-1.798 0-3.25-1.693-3.25-.586 0 1.107.79 3.263 3.25 3.263h-.003z`,fill:`#FF323D`}),(0,F.jsx)(`path`,{d:`M14.76 9.21c.32.108.445.753.767.585.447-.233.707-.708.659-1.204a1.235 1.235 0 00-.879-1.059 1.262 1.262 0 00-1.33.394c-.322.384-.377.92-.14 1.36.153.283.638-.177.925-.079l-.002.003zm-5.887 0c-.32.108-.448.753-.768.585a1.226 1.226 0 01-.658-1.204c.048-.495.395-.913.878-1.059a1.262 1.262 0 011.33.394c.322.384.377.92.14 1.36-.152.283-.64-.177-.925-.079l.003.003zm1.12 5.34a2.166 2.166 0 011.325-1.106c.07-.02.144.06.219.171l.192.306c.069.1.139.175.209.175.074 0 .15-.074.223-.172l.205-.302c.08-.11.157-.188.234-.165.537.168.986.536 1.25 1.026.932-.724 1.275-1.905 1.275-2.633 0-.508-.306-.426-.81-.19l-.616.296c-.52.24-1.148.48-1.824.48-.676 0-1.302-.24-1.823-.48l-.589-.283c-.52-.248-.838-.342-.838.177 0 .703.32 1.831 1.187 2.56l.18.14z`,fill:`#3A3B45`}),(0,F.jsx)(`path`,{d:`M17.812 10.366a.806.806 0 00.813-.8c0-.441-.364-.8-.813-.8a.806.806 0 00-.812.8c0 .442.364.8.812.8zm-11.624 0a.806.806 0 00.812-.8c0-.441-.364-.8-.812-.8a.806.806 0 00-.813.8c0 .442.364.8.813.8zM4.515 13.073c-.405 0-.765.162-1.017.46a1.455 1.455 0 00-.333.925 1.801 1.801 0 00-.485-.074c-.387 0-.737.146-.985.409a1.41 1.41 0 00-.2 1.722 1.302 1.302 0 00-.447.694c-.06.222-.12.69.2 1.166a1.267 1.267 0 00-.093 1.236c.238.533.81.958 1.89 1.405l.24.096c.768.3 1.473.492 1.478.494.89.243 1.808.375 2.732.394 1.465 0 2.513-.443 3.115-1.314.93-1.342.842-2.575-.274-3.763l-.151-.154c-.692-.684-1.155-1.69-1.25-1.912-.195-.655-.71-1.383-1.562-1.383-.46.007-.889.233-1.15.605-.25-.31-.495-.553-.715-.694a1.87 1.87 0 00-.993-.312zm14.97 0c.405 0 .767.162 1.017.46.216.262.333.588.333.925.158-.047.322-.071.487-.074.388 0 .738.146.985.409a1.41 1.41 0 01.2 1.722c.22.178.377.422.445.694.06.222.12.69-.2 1.166.244.37.279.836.093 1.236-.238.533-.81.958-1.889 1.405l-.239.096c-.77.3-1.475.492-1.48.494-.89.243-1.808.375-2.732.394-1.465 0-2.513-.443-3.115-1.314-.93-1.342-.842-2.575.274-3.763l.151-.154c.695-.684 1.157-1.69 1.252-1.912.195-.655.708-1.383 1.56-1.383.46.007.889.233 1.15.605.25-.31.495-.553.718-.694.244-.162.523-.265.814-.3l.176-.012z`,fill:`#FF9D0B`}),(0,F.jsx)(`path`,{d:`M9.785 20.132c.688-.994.638-1.74-.305-2.667-.945-.928-1.495-2.288-1.495-2.288s-.205-.788-.672-.714c-.468.074-.81 1.25.17 1.971.977.721-.195 1.21-.573.534-.375-.677-1.405-2.416-1.94-2.751-.532-.332-.907-.148-.782.541.125.687 2.357 2.35 2.14 2.707-.218.362-.983-.42-.983-.42S2.953 14.9 2.43 15.46c-.52.558.398 1.026 1.7 1.803 1.308.778 1.41.985 1.225 1.28-.187.295-3.07-2.1-3.34-1.083-.27 1.011 2.943 1.304 2.745 2.006-.2.7-2.265-1.324-2.685-.537-.425.79 2.913 1.718 2.94 1.725 1.075.276 3.813.859 4.77-.522zm4.432 0c-.687-.994-.64-1.74.305-2.667.943-.928 1.493-2.288 1.493-2.288s.205-.788.675-.714c.465.074.807 1.25-.17 1.971-.98.721.195 1.21.57.534.377-.677 1.407-2.416 1.94-2.751.532-.332.91-.148.782.541-.125.687-2.355 2.35-2.137 2.707.215.362.98-.42.98-.42S21.05 14.9 21.57 15.46c.52.558-.395 1.026-1.7 1.803-1.308.778-1.408.985-1.225 1.28.187.295 3.07-2.1 3.34-1.083.27 1.011-2.94 1.304-2.743 2.006.2.7 2.263-1.324 2.685-.537.423.79-2.912 1.718-2.94 1.725-1.077.276-3.815.859-4.77-.522z`,fill:`#FFD21E`})]}))});function BO(e){"@babel/helpers - typeof";return BO=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},BO(e)}function VO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function HO(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ok(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var sk=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=ak(e,$O);return(0,F.jsxs)(`svg`,tk(tk({fill:`currentColor`,fillRule:`evenodd`,height:n,style:tk({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:JO}),(0,F.jsx)(`path`,{d:`M.193 19.503a2.413 2.413 0 00-.186.925c0 1.317 1.112 2.518 2.95 3.437a1.337 1.337 0 001.838-.738l2.049-4.93c.359-.857.642-1.745.846-2.652-3.795.637-6.656 2.092-7.448 3.872l-.032.076-.017.01zm7.49-11.047a15.981 15.981 0 00-.846-2.653L4.79.873a1.34 1.34 0 00-1.84-.738C1.112 1.054 0 2.256 0 3.573c0 .317.064.631.186.924v.01l.032.077c.81 1.78 3.67 3.234 7.466 3.872zM21.049.136c1.838.918 2.95 2.12 2.95 3.436a2.454 2.454 0 01-.196.925l-.027.063c-.785 1.792-3.653 3.254-7.46 3.896.204-.907.487-1.795.846-2.653L19.21.873a1.337 1.337 0 011.839-.738zm-4.722 15.409c.201.906.48 1.793.837 2.65l2.048 4.932a1.338 1.338 0 001.838.738c1.839-.92 2.951-2.12 2.951-3.437a2.446 2.446 0 00-.186-.925l-.027-.062c-.782-1.792-3.66-3.256-7.46-3.896zm-.129-6.04c2.695-.415 4.935-1.223 6.48-2.278L22.24 8.28a9.755 9.755 0 000 7.437l.435 1.048c-1.547-1.055-3.787-1.855-6.479-2.275l-.07-.01A27.196 27.196 0 0012 14.172c-1.377-.002-2.752.1-4.114.307l-.071.01c-2.693.413-4.933 1.222-6.48 2.277l.437-1.05a9.755 9.755 0 000-7.437l-.437-1.052c1.54 1.06 3.78 1.863 6.473 2.278l.071.01c2.734.407 5.513.407 8.246 0l.071-.01z`})]}))});function ck(e){"@babel/helpers - typeof";return ck=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ck(e)}function lk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uk(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ok(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var kk=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=Dk(e,xk);return(0,F.jsxs)(`svg`,Ck(Ck({fill:`currentColor`,fillRule:`evenodd`,height:n,style:Ck({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:gk}),(0,F.jsx)(`path`,{d:`M20.713 6.655c-.414-1.426-1.748-2.472-3.357-2.472a3.62 3.62 0 00-1.7.423C14.62 3.046 12.804 2 10.735 2 7.77 2 5.31 4.16 4.943 6.944 2.138 7.39 0 9.728 0 12.58c0 3.14 2.62 5.68 5.862 5.68 1.61 0 3.08-.646 4.138-1.671.276-.267.529-.557.736-.89a5.02 5.02 0 01-.713.845 8.998 8.998 0 00-1.77 5.39V22a16.682 16.682 0 018.666-2.717h.046c3.035 0 5.633-1.871 6.621-4.499A6.599 6.599 0 0024 12.445c0-2.427-1.31-4.565-3.287-5.79zM6.966 12.869a.836.836 0 01-.851.824.81.81 0 01-.805-.824v-2.183a.81.81 0 01.805-.824c.46 0 .85.379.85.824v2.183zm3.011 1.069a.86.86 0 01-.874.846.86.86 0 01-.873-.846v-4.9a.86.86 0 01.873-.846.86.86 0 01.874.846v4.9zm3.104-1.047c0 .445-.414.824-.874.824s-.85-.379-.85-.824v-2.227c0-.446.367-.824.85-.824.46 0 .873.378.873.824v2.227zm3.149 1.069a.86.86 0 01-.874.846.86.86 0 01-.873-.846v-4.9a.86.86 0 01.873-.846.86.86 0 01.874.846v4.9zm3.08-1.091a.836.836 0 01-.85.824.81.81 0 01-.805-.824v-2.183a.81.81 0 01.805-.824c.46 0 .85.379.85.824v2.183z`})]}))});function Ak(e){"@babel/helpers - typeof";return Ak=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ak(e)}function jk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Mk(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xk(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var Zk=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=Yk(e,Uk);return(0,F.jsxs)(`svg`,Gk(Gk({fill:`currentColor`,fillRule:`evenodd`,height:n,style:Gk({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:Rk}),(0,F.jsx)(`path`,{d:`M2 2h20v20H2V2zm1.768 18.237h16.459V3.761H3.768v16.476zm3.515-14.91l3.479 6.176-3.871 7.154h2.493l2.58-4.883 2.747 4.883h2.54L9.82 5.324l-2.538.002z`})]}))});function Qk(e){"@babel/helpers - typeof";return Qk=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Qk(e)}function $k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eA(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var yA=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=_A(e,dA);return(0,F.jsxs)(`svg`,pA(pA({fill:`currentColor`,fillRule:`evenodd`,height:n,style:pA({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:oA}),(0,F.jsx)(`path`,{d:`M2.84 2a1.273 1.273 0 100 2.547h14.107a1.273 1.273 0 100-2.547H2.84zM7.935 5.33a1.273 1.273 0 000 2.548H22.04a1.274 1.274 0 000-2.547H7.935zM3.624 9.935c0-.704.57-1.274 1.274-1.274h14.106a1.274 1.274 0 010 2.547H4.898c-.703 0-1.274-.57-1.274-1.273zM1.273 12.188a1.273 1.273 0 100 2.547H15.38a1.274 1.274 0 000-2.547H1.273zM3.624 16.792c0-.704.57-1.274 1.274-1.274h14.106a1.273 1.273 0 110 2.547H4.898c-.703 0-1.274-.57-1.274-1.273zM13.029 18.849a1.273 1.273 0 100 2.547h9.698a1.273 1.273 0 100-2.547h-9.698z`,fillOpacity:`.3`}),(0,F.jsx)(`path`,{d:`M2.84 2a1.273 1.273 0 100 2.547h10.287a1.274 1.274 0 000-2.547H2.84zM7.935 5.33a1.273 1.273 0 000 2.548H18.22a1.274 1.274 0 000-2.547H7.935zM3.624 9.935c0-.704.57-1.274 1.274-1.274h10.286a1.273 1.273 0 010 2.547H4.898c-.703 0-1.274-.57-1.274-1.273zM1.273 12.188a1.273 1.273 0 100 2.547H11.56a1.274 1.274 0 000-2.547H1.273zM3.624 16.792c0-.704.57-1.274 1.274-1.274h10.286a1.273 1.273 0 110 2.547H4.898c-.703 0-1.274-.57-1.274-1.273zM13.029 18.849a1.273 1.273 0 100 2.547h5.78a1.273 1.273 0 100-2.547h-5.78z`})]}))});function bA(e){"@babel/helpers - typeof";return bA=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},bA(e)}function xA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function SA(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function BA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var VA=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=zA(e,NA);return(0,F.jsxs)(`svg`,FA(FA({fill:`currentColor`,fillRule:`evenodd`,height:n,style:FA({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:OA}),(0,F.jsx)(`path`,{d:`M10.033 5.807L0 18.193h10.792l4.636-5.724-5.395-6.662zm.651 5.421l-.651 2.553-.652-2.553-2.538.926 3.19-3.938 3.19 3.938-2.539-.926zM18.107 10.918l-5.893 7.275H24l-5.893-7.275zm0 4.683l-.383-1.499-1.49.544 1.873-2.313 1.873 2.313-1.49-.544-.383 1.5z`})]}))});function HA(e){"@babel/helpers - typeof";return HA=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},HA(e)}function UA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function WA(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cj(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var lj=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=sj(e,tj);return(0,F.jsxs)(`svg`,rj(rj({fill:`currentColor`,fillRule:`evenodd`,height:n,style:rj({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:XA}),(0,F.jsx)(`path`,{d:`M20 2.306v16.797s4-.242 4-4.815V2.306h-4zM4 22.001V5.204s-4 .242-4 4.816V22h4z`}),(0,F.jsx)(`path`,{d:`M16.318 16.51L11.286 4.94c-.824-1.872-2.168-2.926-4.077-2.926-1.908 0-3.211 1.54-3.211 3.19 0 0 2.405-.333 3.68 2.593l5.036 11.57c.821 1.87 2.168 2.926 4.075 2.926 1.905 0 3.211-1.541 3.211-3.19 0 0-2.406.333-3.682-2.594z`})]}))});function uj(e){"@babel/helpers - typeof";return uj=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},uj(e)}function dj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fj(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Aj(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var jj=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=kj(e,Cj);return(0,F.jsxs)(`svg`,Tj(Tj({fill:`currentColor`,fillRule:`evenodd`,height:n,style:Tj({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:vj}),(0,F.jsx)(`path`,{clipRule:`evenodd`,d:`M9.167 4.17v5.665L0 19.003h9.167v-5.666l5.666 5.666H24L9.167 4.17z`})]}))});function Mj(e){"@babel/helpers - typeof";return Mj=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Mj(e)}function Nj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pj(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Qj(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var $j=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=Zj(e,Gj);return(0,F.jsxs)(`svg`,qj(qj({fill:`currentColor`,fillRule:`evenodd`,height:n,style:qj({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:Bj}),(0,F.jsx)(`path`,{d:`M7.905 1.09c.216.085.411.225.588.41.295.306.544.744.734 1.263.191.522.315 1.1.362 1.68a5.054 5.054 0 012.049-.636l.051-.004c.87-.07 1.73.087 2.48.474.101.053.2.11.297.17.05-.569.172-1.134.36-1.644.19-.52.439-.957.733-1.264a1.67 1.67 0 01.589-.41c.257-.1.53-.118.796-.042.401.114.745.368 1.016.737.248.337.434.769.561 1.287.23.934.27 2.163.115 3.645l.053.04.026.019c.757.576 1.284 1.397 1.563 2.35.435 1.487.216 3.155-.534 4.088l-.018.021.002.003c.417.762.67 1.567.724 2.4l.002.03c.064 1.065-.2 2.137-.814 3.19l-.007.01.01.024c.472 1.157.62 2.322.438 3.486l-.006.039a.651.651 0 01-.747.536.648.648 0 01-.54-.742c.167-1.033.01-2.069-.48-3.123a.643.643 0 01.04-.617l.004-.006c.604-.924.854-1.83.8-2.72-.046-.779-.325-1.544-.8-2.273a.644.644 0 01.18-.886l.009-.006c.243-.159.467-.565.58-1.12a4.229 4.229 0 00-.095-1.974c-.205-.7-.58-1.284-1.105-1.683-.595-.454-1.383-.673-2.38-.61a.653.653 0 01-.632-.371c-.314-.665-.772-1.141-1.343-1.436a3.288 3.288 0 00-1.772-.332c-1.245.099-2.343.801-2.67 1.686a.652.652 0 01-.61.425c-1.067.002-1.893.252-2.497.703-.522.39-.878.935-1.066 1.588a4.07 4.07 0 00-.068 1.886c.112.558.331 1.02.582 1.269l.008.007c.212.207.257.53.109.785-.36.622-.629 1.549-.673 2.44-.05 1.018.186 1.902.719 2.536l.016.019a.643.643 0 01.095.69c-.576 1.236-.753 2.252-.562 3.052a.652.652 0 01-1.269.298c-.243-1.018-.078-2.184.473-3.498l.014-.035-.008-.012a4.339 4.339 0 01-.598-1.309l-.005-.019a5.764 5.764 0 01-.177-1.785c.044-.91.278-1.842.622-2.59l.012-.026-.002-.002c-.293-.418-.51-.953-.63-1.545l-.005-.024a5.352 5.352 0 01.093-2.49c.262-.915.777-1.701 1.536-2.269.06-.045.123-.09.186-.132-.159-1.493-.119-2.73.112-3.67.127-.518.314-.95.562-1.287.27-.368.614-.622 1.015-.737.266-.076.54-.059.797.042zm4.116 9.09c.936 0 1.8.313 2.446.855.63.527 1.005 1.235 1.005 1.94 0 .888-.406 1.58-1.133 2.022-.62.375-1.451.557-2.403.557-1.009 0-1.871-.259-2.493-.734-.617-.47-.963-1.13-.963-1.845 0-.707.398-1.417 1.056-1.946.668-.537 1.55-.849 2.485-.849zm0 .896a3.07 3.07 0 00-1.916.65c-.461.37-.722.835-.722 1.25 0 .428.21.829.61 1.134.455.347 1.124.548 1.943.548.799 0 1.473-.147 1.932-.426.463-.28.7-.686.7-1.257 0-.423-.246-.89-.683-1.256-.484-.405-1.14-.643-1.864-.643zm.662 1.21l.004.004c.12.151.095.37-.056.49l-.292.23v.446a.375.375 0 01-.376.373.375.375 0 01-.376-.373v-.46l-.271-.218a.347.347 0 01-.052-.49.353.353 0 01.494-.051l.215.172.22-.174a.353.353 0 01.49.051zm-5.04-1.919c.478 0 .867.39.867.871a.87.87 0 01-.868.871.87.87 0 01-.867-.87.87.87 0 01.867-.872zm8.706 0c.48 0 .868.39.868.871a.87.87 0 01-.868.871.87.87 0 01-.867-.87.87.87 0 01.867-.872zM7.44 2.3l-.003.002a.659.659 0 00-.285.238l-.005.006c-.138.189-.258.467-.348.832-.17.692-.216 1.631-.124 2.782.43-.128.899-.208 1.404-.237l.01-.001.019-.034c.046-.082.095-.161.148-.239.123-.771.022-1.692-.253-2.444-.134-.364-.297-.65-.453-.813a.628.628 0 00-.107-.09L7.44 2.3zm9.174.04l-.002.001a.628.628 0 00-.107.09c-.156.163-.32.45-.453.814-.29.794-.387 1.776-.23 2.572l.058.097.008.014h.03a5.184 5.184 0 011.466.212c.086-1.124.038-2.043-.128-2.722-.09-.365-.21-.643-.349-.832l-.004-.006a.659.659 0 00-.285-.239h-.004z`})]}))});function eM(e){"@babel/helpers - typeof";return eM=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},eM(e)}function tM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nM(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bM(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var xM=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=yM(e,pM);return(0,F.jsxs)(`svg`,hM(hM({fill:`currentColor`,fillRule:`evenodd`,height:n,style:hM({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:cM}),(0,F.jsx)(`path`,{d:`M22 10.552v2.26h-7.932V22H11.54V10.552H22zM22 2v2.264H4.528V22H2V2h20zm0 4.276V8.54H9.296V22H6.768V6.276H22z`})]}))});function SM(e){"@babel/helpers - typeof";return SM=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},SM(e)}function CM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wM(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function HM(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var UM=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=VM(e,FM);return(0,F.jsxs)(`svg`,LM(LM({fill:`currentColor`,fillRule:`evenodd`,height:n,style:LM({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:AM}),(0,F.jsx)(`path`,{d:`M23 23h-1.223V8.028c0-3.118-2.568-5.806-5.744-5.806H8.027c-3.176 0-5.744 2.565-5.744 5.686 0 3.119 2.568 5.684 5.744 5.684h.794c1.346 0 2.445 1.1 2.445 2.444 0 1.346-1.1 2.446-2.445 2.446H1v-1.223h7.761c.671 0 1.223-.551 1.223-1.16 0-.67-.552-1.16-1.223-1.16h-.794C4.177 14.872 1 11.756 1 7.909 1 4.058 4.176 1 8.027 1h8.066C19.88 1 23 4.239 23 8.028V23z`}),(0,F.jsx)(`path`,{d:`M8.884 12.672c1.71.06 3.361 1.588 3.361 3.422 0 1.833-1.528 3.421-3.421 3.421H1v1.223h7.761c2.568 0 4.705-2.077 4.705-4.644 0-.672-.123-1.283-.43-1.894-.245-.551-.67-1.1-1.099-1.528-.489-.429-1.039-.734-1.65-.977-.525-.175-1.048-.193-1.594-.212-.218-.008-.441-.016-.669-.034-.428 0-1.406-.245-1.956-.61a3.369 3.369 0 01-1.223-1.406c-.183-.489-.305-.977-.305-1.528A3.417 3.417 0 017.96 4.482h8.066c1.895 0 3.422 1.65 3.422 3.483v15.032h1.223V8.027c0-2.568-2.077-4.768-4.645-4.768h-8c-2.568 0-4.705 2.077-4.705 4.646 0 .67.123 1.282.43 1.894a4.45 4.45 0 001.099 1.528c.429.428 1.039.734 1.588.976.306.123.611.183.976.246.857.06 1.406.123 1.466.123h.003z`}),(0,F.jsx)(`path`,{d:`M1 23h7.761v-.003c3.85 0 7.03-3.116 7.09-7.026 0-3.79-3.117-6.906-6.967-6.906H8.09c-.672 0-1.222-.552-1.222-1.16 0-.608.487-1.16 1.159-1.16h8.069c.608 0 1.159.611 1.159 1.283v14.97h1.223V8.024c0-1.345-1.1-2.505-2.445-2.505H7.967a2.451 2.451 0 00-2.445 2.445 2.45 2.45 0 002.445 2.445h.794c3.176 0 5.744 2.568 5.744 5.684s-2.568 5.684-5.744 5.684H1V23z`})]}))});function WM(e){"@babel/helpers - typeof";return WM=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},WM(e)}function GM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function KM(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var dN=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=lN(e,rN);return(0,F.jsxs)(`svg`,aN(aN({fill:`currentColor`,fillRule:`evenodd`,height:n,style:aN({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:QM}),(0,F.jsx)(`path`,{clipRule:`evenodd`,d:`M22.956 6.521H12.522c-.577 0-1.044.468-1.044 1.044v3.13c0 .577-.466 1.044-1.043 1.044H1.044c-.577 0-1.044.467-1.044 1.044v4.174C0 17.533.467 18 1.044 18h10.434c.577 0 1.044-.467 1.044-1.043v-3.13c0-.578.466-1.044 1.043-1.044h9.391c.577 0 1.044-.467 1.044-1.044V7.565c0-.576-.467-1.044-1.044-1.044z`})]}))});function fN(e){"@babel/helpers - typeof";return fN=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},fN(e)}function pN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mN(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function MN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var NN=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=jN(e,TN);return(0,F.jsxs)(`svg`,DN(DN({fill:`currentColor`,fillRule:`evenodd`,height:n,style:DN({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:bN}),(0,F.jsx)(`path`,{clipRule:`evenodd`,d:`M23.252 10.365l-2.843 1.636 2.843 1.631a1.47 1.47 0 01.697.903 1.492 1.492 0 01-.15 1.135c-.202.342-.53.591-.912.693a1.498 1.498 0 01-1.132-.15l-5.09-2.924a1.473 1.473 0 01-.68-.851 1.446 1.446 0 01-.068-.485 1.5 1.5 0 01.745-1.248l5.09-2.921a1.496 1.496 0 012.044.547 1.479 1.479 0 01-.544 2.034zm-2.692 7.927l-5.087-2.92a1.477 1.477 0 00-.867-.195 1.478 1.478 0 00-.982.468c-.257.276-.4.639-.403 1.017v5.847A1.49 1.49 0 0014.718 24c.828 0 1.497-.668 1.497-1.491v-3.27l2.849 1.636a1.493 1.493 0 002.044-.544 1.49 1.49 0 00-.548-2.04zm-5.87-5.719l-2.116 2.102a.42.42 0 01-.265.112h-.621a.427.427 0 01-.265-.112l-2.115-2.102a.42.42 0 01-.11-.262v-.62a.43.43 0 01.11-.265l2.114-2.102a.426.426 0 01.264-.11h.623a.422.422 0 01.265.11l2.116 2.102a.43.43 0 01.109.265v.62a.428.428 0 01-.11.262zM13 11.99a.442.442 0 00-.113-.266l-.612-.607a.431.431 0 00-.266-.11h-.024a.426.426 0 00-.264.11l-.612.607a.436.436 0 00-.107.266v.024c0 .085.047.202.107.262l.612.61c.061.06.179.11.264.11h.024a.434.434 0 00.266-.11l.612-.61a.429.429 0 00.112-.262v-.024zM3.436 5.704l5.089 2.924c.274.157.578.219.868.195.375-.026.726-.194.983-.47.256-.275.4-.64.403-1.017V1.489C10.78.667 10.11 0 9.284 0c-.829 0-1.498.667-1.498 1.49v3.27l-2.85-1.639a1.496 1.496 0 00-2.045.546 1.489 1.489 0 00.546 2.037zm11.17 3.119c.29.024.594-.038.866-.195l5.087-2.923a1.474 1.474 0 00.697-.903 1.496 1.496 0 00-.149-1.135 1.496 1.496 0 00-2.044-.545L16.215 4.76V1.489C16.215.667 15.546 0 14.718 0c-.83 0-1.497.667-1.497 1.49v5.845a1.491 1.491 0 001.385 1.487zm-5.213 6.354a1.479 1.479 0 00-.868.194l-5.089 2.92a1.476 1.476 0 00-.696.905 1.498 1.498 0 00.148 1.135 1.496 1.496 0 002.044.543l2.851-1.636v3.27c0 .825.67 1.491 1.498 1.491.826 0 1.496-.667 1.496-1.49v-5.847a1.5 1.5 0 00-.401-1.017 1.477 1.477 0 00-.982-.468zm-1.38-2.74c.05-.156.072-.32.068-.484a1.497 1.497 0 00-.751-1.248l-5.084-2.92a1.499 1.499 0 00-2.045.547 1.481 1.481 0 00.549 2.034l2.841 1.636L.75 13.633a1.47 1.47 0 00-.698.903 1.492 1.492 0 00.15 1.135c.202.343.53.592.912.693.382.102.789.048 1.132-.15l5.086-2.924c.345-.195.577-.505.684-.852z`})]}))});function PN(e){"@babel/helpers - typeof";return PN=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},PN(e)}function FN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function IN(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eP(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var tP=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=$N(e,qN);return(0,F.jsxs)(`svg`,YN(YN({height:n,style:YN({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:HN}),(0,F.jsx)(`path`,{d:`M23.197 4.503A6 6 0 0015 2.307a5.973 5.973 0 00-2.995 4.933l5.996.008v.515h-5.996c.039.937.298 1.87.8 2.74a6 6 0 1010.39-6z`,fill:`#EF2CC1`}),(0,F.jsx)(`path`,{d:`M.805 4.5A6 6 0 003 12.697a5.972 5.972 0 005.77.127L5.779 7.627l.446-.257 2.997 5.192A6 6 0 10.804 4.5z`,fill:`#CAAEF5`}),(0,F.jsx)(`path`,{d:`M12 23.894a6 6 0 005.999-6c0-2.13-1.1-3.996-2.775-5.06l-3.005 5.189-.444-.258 2.997-5.192A6 6 0 1012 23.894z`,fill:`#FC4C02`})]}))});function nP(e){"@babel/helpers - typeof";return nP=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},nP(e)}function rP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function iP(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function SP(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var CP=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=xP(e,hP);return(0,F.jsxs)(`svg`,_P(_P({fill:`currentColor`,fillRule:`evenodd`,height:n,style:_P({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:uP}),(0,F.jsx)(`path`,{d:`M12 0l12 20.785H0L12 0z`})]}))});function wP(e){"@babel/helpers - typeof";return wP=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},wP(e)}function TP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function EP(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function WP(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var GP=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=UP(e,LP);return(0,F.jsxs)(`svg`,zP(zP({height:n,style:zP({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:MP}),(0,F.jsx)(`path`,{d:`M0 4.973h9.324V23L0 4.973z`,fill:`#FDB515`}),(0,F.jsx)(`path`,{d:`M13.986 4.351L22.378 0l-6.216 23H9.324l4.662-18.649z`,fill:`#30A2FF`})]}))});function KP(e){"@babel/helpers - typeof";return KP=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},KP(e)}function qP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function JP(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fF(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var pF=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=dF(e,aF);return(0,F.jsxs)(`svg`,sF(sF({height:n,style:sF({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:eF}),(0,F.jsx)(`path`,{d:`M19.44 10.153l-2.936 11.586a.215.215 0 00.214.261h5.87a.215.215 0 00.214-.261l-2.95-11.586a.214.214 0 00-.412 0zM3.28 12.778l-2.275 8.96A.214.214 0 001.22 22h4.532a.212.212 0 00.214-.165.214.214 0 000-.097l-2.276-8.96a.214.214 0 00-.41 0z`,fill:`#00E5E5`}),(0,F.jsx)(`path`,{d:`M7.29 5.359L3.148 21.738a.215.215 0 00.203.261h8.29a.214.214 0 00.215-.261L7.7 5.358a.214.214 0 00-.41 0z`,fill:`#006EFF`}),(0,F.jsx)(`path`,{d:`M14.44.15a.214.214 0 00-.41 0L8.366 21.739a.214.214 0 00.214.261H19.9a.216.216 0 00.171-.078.214.214 0 00.044-.183L14.439.15z`,fill:`#006EFF`}),(0,F.jsx)(`path`,{d:`M10.278 7.741L6.685 21.736a.214.214 0 00.214.264h7.17a.215.215 0 00.214-.264L10.688 7.741a.214.214 0 00-.41 0z`,fill:`#00E5E5`})]}))});function mF(e){"@babel/helpers - typeof";return mF=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},mF(e)}function hF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gF(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function PF(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var FF=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=NF(e,DF);return(0,F.jsxs)(`svg`,kF(kF({fill:`currentColor`,fillRule:`evenodd`,height:n,style:kF({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:SF}),(0,F.jsx)(`path`,{d:`M6.469 8.776L16.512 23h-4.464L2.005 8.776H6.47zm-.004 7.9l2.233 3.164L6.467 23H2l4.465-6.324zM22 2.582V23h-3.659V7.764L22 2.582zM22 1l-9.952 14.095-2.233-3.163L17.533 1H22z`})]}))});function IF(e){"@babel/helpers - typeof";return IF=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},IF(e)}function LF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function RF(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nI(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var rI=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=tI(e,YF);return(0,F.jsxs)(`svg`,ZF(ZF({fill:`currentColor`,fillRule:`evenodd`,height:n,style:ZF({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:WF}),(0,F.jsx)(`path`,{d:`M5.223 9.692c.652 1.795 1.925 3.376 3.396 4.573 1.482 1.229 3.254 2.17 5.122 2.653a9.99 9.99 0 002.033.302c1.302.05 2.713-.206 3.758-1.04 1.297-1.036 1.651-2.625 1.318-4.21-.209-.993-.641-1.93-1.205-2.787a10.284 10.284 0 00-.366-.525.008.008 0 01.005-.007h.004c.002 0 .004 0 .006.002l.394.405a17.227 17.227 0 012.484 3.262c.579.993 1.023 2.046 1.255 3.144.369 1.747.07 3.546-1.306 4.777-.724.648-1.655 1.041-2.59 1.235-1.297.267-2.649.228-3.965.007-.669-.112-1.315-.26-1.937-.443-2.576-.756-5.012-2.051-7.143-3.677a20.968 20.968 0 01-3.484-3.296C1.949 12.813 1.046 11.396.487 9.853.12 8.845-.087 7.725.035 6.663c.267-2.306 1.98-3.654 4.174-4.06 1.265-.234 2.594-.186 3.879.037a17.71 17.71 0 013.978 1.192v.004a.006.006 0 01-.004.004h-.004a8.907 8.907 0 00-2.869-.29c-.807.048-1.666.263-2.357.656-1.034.588-1.67 1.463-1.907 2.625a4.567 4.567 0 00-.069 1.1c.025.58.163 1.198.367 1.761z`}),(0,F.jsx)(`path`,{d:`M18.02 7.235a.05.05 0 01-.007.03c-.461.916-.923 1.832-1.386 2.747-.424.837-.745 1.437-.965 1.8a17.877 17.877 0 01-2.98 3.707.027.027 0 01-.03.005 12.678 12.678 0 01-4.205-2.777c-.14-.14-.28-.288-.42-.447a.024.024 0 01-.005-.013c0-.005 0-.01.003-.014a17.718 17.718 0 011.68-2.379 18.27 18.27 0 012.7-2.606c.408-.32 1.39-1.094 2.95-2.323L21.652.002a.008.008 0 01.01 0 .01.01 0 01.004.005.01.01 0 010 .006l-3.648 7.222z`}),(0,F.jsx)(`path`,{d:`M2.027 24c.002 0 .004 0 .005-.002l5.843-4.58a.02.02 0 00.008-.017.02.02 0 00-.01-.016 26.743 26.743 0 01-2.584-1.842h-.006a.014.014 0 00-.005.002.012.012 0 00-.004.005L2.02 23.987a.01.01 0 000 .006c0 .002 0 .004.002.005a.009.009 0 00.006.002z`})]}))});function iI(e){"@babel/helpers - typeof";return iI=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},iI(e)}function aI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oI(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wI(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var TI=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=CI(e,_I);return(0,F.jsxs)(`svg`,yI(yI({fill:`currentColor`,fillRule:`evenodd`,height:n,style:yI({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:fI}),(0,F.jsx)(`path`,{d:`M11.991 23.503a.24.24 0 00-.244.248.24.24 0 00.244.249.24.24 0 00.245-.249.24.24 0 00-.22-.247l-.025-.001zM9.671 5.365a1.697 1.697 0 011.099 2.132l-.071.172-.016.04-.018.054c-.07.16-.104.32-.104.498-.035.71.47 1.279 1.186 1.314h.366c1.309.053 2.338 1.173 2.286 2.523-.052 1.332-1.152 2.38-2.478 2.327h-.174c-.715.018-1.274.64-1.239 1.368 0 .124.018.23.053.337.209.373.54.658.96.8.75.23 1.517-.125 1.9-.782l.018-.035c.402-.64 1.17-.96 1.92-.711.854.284 1.378 1.226 1.099 2.167a1.661 1.661 0 01-2.077 1.102 1.711 1.711 0 01-.907-.711l-.017-.035c-.2-.323-.463-.58-.851-.711l-.056-.018a1.646 1.646 0 00-1.954.746 1.66 1.66 0 01-1.065.764 1.677 1.677 0 01-1.989-1.279c-.209-.906.332-1.83 1.257-2.043a1.51 1.51 0 01.296-.035h.018c.68-.071 1.151-.622 1.116-1.333a1.307 1.307 0 00-.227-.693 2.515 2.515 0 01-.366-1.403 2.39 2.39 0 01.366-1.208c.14-.195.21-.444.227-.693.018-.71-.506-1.261-1.186-1.332l-.07-.018a1.43 1.43 0 01-.299-.07l-.05-.019a1.7 1.7 0 01-1.047-2.114 1.68 1.68 0 012.094-1.101zm-5.575 10.11c.26-.264.639-.367.994-.27.355.096.633.379.728.74.095.362-.007.748-.267 1.013-.402.41-1.053.41-1.455 0a1.062 1.062 0 010-1.482zm14.845-.294c.359-.09.738.024.992.297.254.274.344.665.237 1.025-.107.36-.396.634-.756.718-.551.128-1.1-.22-1.23-.781a1.05 1.05 0 01.757-1.26zm-.064-4.39c.314.32.49.753.49 1.206 0 .452-.176.886-.49 1.206-.315.32-.74.5-1.185.5-.444 0-.87-.18-1.184-.5a1.727 1.727 0 010-2.412 1.654 1.654 0 012.369 0zm-11.243.163c.364.484.447 1.128.218 1.691a1.665 1.665 0 01-2.188.923c-.855-.36-1.26-1.358-.907-2.228a1.68 1.68 0 011.33-1.038c.593-.08 1.183.169 1.547.652zm11.545-4.221c.368 0 .708.2.892.524.184.324.184.724 0 1.048a1.026 1.026 0 01-.892.524c-.568 0-1.03-.47-1.03-1.048 0-.579.462-1.048 1.03-1.048zm-14.358 0c.368 0 .707.2.891.524.184.324.184.724 0 1.048a1.026 1.026 0 01-.891.524c-.569 0-1.03-.47-1.03-1.048 0-.579.461-1.048 1.03-1.048zm10.031-1.475c.925 0 1.675.764 1.675 1.706s-.75 1.705-1.675 1.705-1.674-.763-1.674-1.705c0-.942.75-1.706 1.674-1.706zm-2.626-.684c.362-.082.653-.356.761-.718a1.062 1.062 0 00-.238-1.028 1.017 1.017 0 00-.996-.294c-.547.14-.881.7-.752 1.257.13.558.675.907 1.225.783zm0 16.876c.359-.087.644-.36.75-.72a1.062 1.062 0 00-.237-1.019 1.018 1.018 0 00-.985-.301 1.037 1.037 0 00-.762.717c-.108.361-.017.754.239 1.028.245.263.606.377.953.305l.043-.01zM17.19 3.5a.631.631 0 00.628-.64c0-.355-.279-.64-.628-.64a.631.631 0 00-.628.64c0 .355.28.64.628.64zm-10.38 0a.631.631 0 00.628-.64c0-.355-.28-.64-.628-.64a.631.631 0 00-.628.64c0 .355.279.64.628.64zm-5.182 7.852a.631.631 0 00-.628.64c0 .354.28.639.628.639a.63.63 0 00.627-.606l.001-.034a.62.62 0 00-.628-.64zm5.182 9.13a.631.631 0 00-.628.64c0 .355.279.64.628.64a.631.631 0 00.628-.64c0-.355-.28-.64-.628-.64zm10.38.018a.631.631 0 00-.628.64c0 .355.28.64.628.64a.631.631 0 00.628-.64c0-.355-.279-.64-.628-.64zm5.182-9.148a.631.631 0 00-.628.64c0 .354.279.639.628.639a.631.631 0 00.628-.64c0-.355-.28-.64-.628-.64zm-.384-4.992a.24.24 0 00.244-.249.24.24 0 00-.244-.249.24.24 0 00-.244.249c0 .142.122.249.244.249zM11.991.497a.24.24 0 00.245-.248A.24.24 0 0011.99 0a.24.24 0 00-.244.249c0 .133.108.236.223.247l.021.001zM2.011 6.36a.24.24 0 00.245-.249.24.24 0 00-.244-.249.24.24 0 00-.244.249.24.24 0 00.244.249zm0 11.263a.24.24 0 00-.243.248.24.24 0 00.244.249.24.24 0 00.244-.249.252.252 0 00-.244-.248zm19.995-.018a.24.24 0 00-.245.248.24.24 0 00.245.25.24.24 0 00.244-.25.252.252 0 00-.244-.248z`})]}))});function EI(e){"@babel/helpers - typeof";return EI=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},EI(e)}function DI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function OI(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KI(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var qI=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=GI(e,zI);return(0,F.jsxs)(`svg`,VI(VI({fill:`currentColor`,fillRule:`evenodd`,height:n,style:VI({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:PI}),(0,F.jsx)(`path`,{d:`M5 0h5v24H5V0zM14 0h5v24h-5V0z`})]}))});function JI(e){"@babel/helpers - typeof";return JI=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},JI(e)}function YI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function XI(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mL(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var hL=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=pL(e,sL);return(0,F.jsxs)(`svg`,lL(lL({fill:`currentColor`,fillRule:`evenodd`,height:n,style:lL({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:nL}),(0,F.jsx)(`path`,{d:`M11.823 22.145c.127.192.217.402.276.627.099.336.037.713-.377.725-.279.028-.506-.126-.54-.397-.066-.39.105-.75.299-1.083l.011-.018c.025-.037.057-.073.095-.078h.008c.074-.007.159.122.228.224zm1.596-1.247c.75.31.95 1.246-.084 1.256h-.015c-.52.017-.906-.472-.587-.92.15-.212.417-.42.686-.336zm-3.989-.594c.256.033.512.1.762.16l.037.011c.21.058.458.11.55.297.26.585-.47 1.093-.976 1.103h-.028v-.001c-.413.01-.809-.126-.942-.535-.11-.28-.085-.603.128-.827l.014-.015c.117-.124.282-.212.455-.193zm6.094.237v.014c-.004.302-.148.608-.42.751-.186.093-.417-.01-.588-.15-.171-.147-.283-.356-.382-.568l-.04-.087c-.193-.405.088-.552.405-.627l.04-.01c.058-.012.116-.022.173-.032l.042-.008c.578-.105.792.15.77.717zM2.827 2.991c1.15.86 2.286 1.734 3.376 2.67 2.476 2.166 3.346 5.568 3.452 8.766.048 1.103.108 2.205.199 3.306l.004.04c.019.182.078.563.25.522l.007-.003c.057-.04.086-.123.109-.192.114-.336.194-.693.323-1.026.09-.216.204-.344.377-.411.3-.12.702-.062.87.246.037.05.073.123.11.202l.036.078.02.044.015.03.013.026.013.026c.1.189.223.344.42.264.117-.059.221-.19.319-.283.2-.22.505-.292.713-.053.524.616.5 1.486 0 2.106-.451.585-1.182.7-1.862.586l-.054-.01c-.972-.162-1.555-.96-2.015-1.779l-.03-.055a141.48 141.48 0 00-1.583-2.577l-.03-.045c-.116-.165-.264-.35-.43-.445-.07-.015-.006.127.009.173.467 1.253 1.07 2.425 1.961 3.427l.011.02c.086.168-.045.122-.19.041l-.016-.01-.027-.015-.019-.011a3.561 3.561 0 01-.126-.082l-.075-.05a4.532 4.532 0 01-.78-.67c-.772-.87-1.42-1.838-2.054-2.816l-.375-.58-.165-.255a32.793 32.793 0 00-1.11-1.623c-.415-.567-.89-1.092-1.298-1.666-.774-1.071-1.251-2.312-1.519-3.61-.137-.56-.297-1.114-.438-1.672l-.06-.24c-.094-.38-.166-.784-.129-1.173.083-.894.815-1.97 1.778-1.222zm18.27 14.434c-1.048 1.176-3.299 2.527-4.609 2.154l.002-.002c.014-.019.125-.043.177-.055.838-.192 1.555-.639 2.285-1.058.556-.295 1.048-.682 1.525-1.1l.04-.032c.106-.089.223-.18.352-.214.226-.053.428.11.228.307zM2.012 11.4c1.647.403 2.589 1.718 3.455 3.08l.108.17.226.358c.25.398.502.79.77 1.155.213.305.442.598.666.894.048.058.115.21.05.216h-.011c-.051 0-.127-.062-.172-.106a41.465 41.465 0 01-.727-.698l-.24-.236a26.247 26.247 0 00-1.103-1.032c-.165-.079-.093.137-.027.238.187.286.463.497.695.747.353.352.711.7 1.094 1.018.805.66 1.68 1.232 2.534 1.832l.056.042c.099.074.211.172.205.28-.005.288-1.397.287-1.663.275H7.92c-1.797-.073-3.27-1.012-4.66-2.055l-.138-.105-.097-.073a68.65 68.65 0 01-.287-.22l-.501-.387c-.286-.224-.573-.443-.848-.681C.464 15.3.032 14.098.01 12.882c-.117-1.32.826-1.809 2.003-1.482zm20.708.695l.064.014c.369.078.673.288.899.618.253.37.387.827.28 1.26-.266.87-.806 1.621-1.446 2.26-.15.147-.309.283-.47.418-.178.135-.345.331-.571.376-.19.034-.402-.135-.597-.129-.158 0-.29.092-.41.193-.806.767-1.78 1.286-2.772 1.765l-.186.089-.186.089-.248.117-.017.007c-.189.076-.786.402-.87.234l-.004-.007c-.034-.07.03-.211.091-.298.968-1.244 1.618-2.666 2.246-4.097l.213-.486.255-.576.123-.26c.19-.4.397-.807.726-1.098.77-.65 1.924-.691 2.88-.49zM21.197 4.78c.161.335.22.69.327 1.054.022.084.04.171.04.257v.012a.977.977 0 01-.027.217l-.073.3a7.983 7.983 0 01-.331 1.104c-.32.797-.632 1.597-.942 2.399l-.373.962c-.688 1.776-1.381 3.551-2.15 5.292-.453.953-1.084 1.814-1.791 2.59-.197.227-.453.404-.777.323-.51-.124-.59-.456-.416-.918.187-.546.42-1.08.567-1.636.286-1.186.382-2.408.2-3.628-.094-.72-.458-.813-.943-1.199a.586.586 0 01-.207-.52c.034-.337.158-.684.264-1.01l.015-.046c.353-1.092 1.013-2.015 1.707-2.912l.08-.103.08-.103.162-.206c.12-.154.241-.308.36-.463.222-.296.529-.5.84-.688.48-.32.792-.816 1.258-1.146.566-.437 1.708-.666 2.13.068zM11.21 18.728c.007.54.965.728.996.052v-.013c.037-.614-.95-.599-.996-.04zm-5.78-.884h-.002c.8.623 1.737 1.182 2.757 1.33 0-.02-.09-.059-.123-.076-.876-.411-1.752-.862-2.632-1.254zM.76 14.145l.009.02c.88 1.917 2.523 3.067 4.354 3.903l.055.026.001-.001-.253-.159-.152-.095-.1-.064-.096-.06c-1.466-.93-2.883-1.934-3.767-3.51l-.049-.088c-.048-.083-.047-.07-.002.028zm14.154-1.55c.293.401.325.933.331 1.411v.013a7.8 7.8 0 01-.267 1.831c-.028.081-.05.171-.074.261l-.011.042-.012.04c-.052.18-.122.351-.274.444-.317.166-.444-.222-.414-.482.028-1 .078-2.002.128-3 .016-.199.013-.403.06-.6.02-.077.055-.143.106-.173.163-.077.33.093.427.212zm1.373-9.036c.609.393.956 1.003 1.052 1.716l.005.034a.666.666 0 01-.184.569c-2.37 2.286-3.416 5.563-3.605 8.805l-.026.204c-.045.34-.094.68-.165 1.014-.09.377-.438.46-.66.124-.112-.17-.122-.388-.138-.587a98.335 98.335 0 01-.098-1.872c-.044-.646.108-.898.588-1.298.259-.263.3-.595.232-.955l-.022-.102c-.077-.352-.167-.715-.4-.996-.362-.432-1.06-.554-1.495-.158-.556.515-.644 1.344-.361 2.021l.01.025c.232.546.445 1.108.533 1.695l.009.061c.064.427.05.867-.01 1.293l-.013.096c-.026.193-.042.423-.163.554-.089.1-.257.129-.389.082-.173-.055-.201-.263-.203-.427-.002-.637-.154-1.246-.32-1.852l-.084-.304a17.057 17.057 0 01-.174-.669l-.22-.949c-.2-.87-.396-1.742-.565-2.62-.504-1.985.138-3.798 1.852-4.934.37-.228.792-.434 1.236-.434.573-.004 1.156.34 1.4.88.082.188.093.394.086.597V5.2c-.031.816-.071 1.633-.11 2.45l-.02.412-.013.274c-.023.458-.042.915-.036 1.374.003.113-.005.24.016.347.01.047.023.07.037.06l.003-.001-.002-.002c.028-.024.05-.149.054-.208.019-.184.038-.369.054-.553.102-1.29.162-2.582.28-3.87.075-.899.953-2.621 2.03-1.925zM1.84 3.237c-.33.095-.365.509-.32.804l.02.167c.045.39.099.78.187 1.16l.054.224c.05.203.093.407.078.617-.03.253-.088.499-.007.746.177.7.449 1.363.78 1.999l.014.02c.107.15.073-.046.033-.135l-.195-.482c-.065-.16-.13-.321-.19-.483l-.082-.217c-.165-.446-.307-.895-.203-1.38.082-.268.08-.537-.037-.796-.228-.605-.363-1.25-.23-1.89.23-.935 1.874.88 2.082 1.23.205.29.379.614.512.948.257.655.505 1.304.743 1.964.849 2.276 1.312 4.665 1.713 7.065l.001.001a1.37 1.37 0 00-.011-.274l-.002-.012c-.07-.573-.135-1.15-.209-1.722-.245-2.102-.837-4.132-1.562-6.113l-.037-.103a6.717 6.717 0 00-1.063-1.937l-.023-.027C3.506 4.15 2.44 3.075 1.84 3.237zm5.688 10.665c.119.666.373.617.964.656h.013c.317.03.503-.115.559-.422l.003-.019c.146-.84-.385-1.915-1.262-2.068-.781-.079-.347 1.417-.277 1.853zm.67-1.185c.214.21.4.555.353.899l-.003.011c-.066.216-.397.167-.52.054a.392.392 0 01-.088-.172c-.07-.245-.134-.507-.127-.764.023-.264.264-.158.385-.028zm4.026-2.251c.4.147.491.734.273 1.078-.328.499-1.009.373-.966-.299v-.015c.006-.369.274-.886.693-.764zm7.163-5.23v.01c-.014.173.01.355.028.529.148 1.259.17 2.518-.015 3.775-.04.28-.093.555-.15.832-.024.175-.108.41-.094.571l.002.002c.01.009.036-.032.063-.101.054-.14.092-.3.126-.448.364-1.723.499-3.504.304-5.255-.075-.246-.25-.12-.264.085zm-.962.684c.271.565.321 1.175.35 1.784l.011.278c.008.172.016.342.03.511h.001c.14-.862.114-1.766-.35-2.544l-.02-.035c-.053-.084-.064-.09-.022.006zm2.225-.994c-.021.01-.02.095-.024.133-.027.705-.073 1.37-.086 2.033h.001l.054-.243c.124-.57.231-1.16.103-1.79l-.009-.036c-.01-.04-.023-.09-.039-.097zm-12.524-2.2c.281.257.521.567.68.917.282.646-.196 1.064-.811 1.063h-.032c-.55.015-1.096-.403-1.18-.955l-.002-.02c-.11-.691.705-1.576 1.345-1.005zm5.76-1.494l.007.012c.094.15.17.315.247.475l.017.036c.064.136.131.253.098.395l-.002.01v.001l-.017.064c-.037.139-.087.302-.187.404-.227.264-.684.22-.867-.073l-.009-.015c-.239-.394-.148-1.039.19-1.344.147-.133.41-.141.523.035zM20.337.5c.96.022.681 1.21-.15 1.16a.568.568 0 01-.493-.65c.035-.33.279-.505.61-.51h.033z`})]}))});function gL(e){"@babel/helpers - typeof";return gL=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},gL(e)}function _L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vL(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function IL(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var LL=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=FL(e,kL);return(0,F.jsxs)(`svg`,jL(jL({fill:`currentColor`,fillRule:`evenodd`,height:n,style:jL({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:wL}),(0,F.jsx)(`path`,{d:`M19.667 8.275c0-4.57-4.15-8.275-9.27-8.275-1.774 0-3.213 3.705-3.213 8.275 0 1.143.09 2.233.253 3.224H4.29L1 23h9.4v-6.447c5.117 0 9.266-3.707 9.266-8.275l.001-.002zm-9.27-6.76c.93 0 1.682 3.028 1.682 6.76 0 3.733-.752 6.76-1.681 6.76-.93 0-1.681-3.027-1.681-6.76 0-3.732.752-6.76 1.68-6.76z`}),(0,F.jsx)(`path`,{d:`M19.848 16.552h-9.44L14.028 23h9.438l-3.618-6.448z`})]}))});function RL(e){"@babel/helpers - typeof";return RL=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},RL(e)}function zL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function BL(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iR(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var aR=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=rR(e,ZL);return(0,F.jsxs)(`svg`,$L($L({fill:`currentColor`,fillRule:`evenodd`,height:n,style:$L({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:KL}),(0,F.jsx)(`path`,{d:`M17.86 22.992c-2.669.245-4.887-2.876-6.597-4.454C10.398 24.759 1 24.177 1 17.86V6.15c0-.921.244-1.861.733-2.65C2.635 1.977 4.383.98 6.15 1h11.71c6.316 0 6.918 9.398.677 10.243l2.97 2.951c3.252 3.064.808 8.929-3.646 8.797zm-1.428-3.721c1.842 1.898 4.774-1.034 2.876-2.876l-5.132-5.132H11.3v2.876l4.436 4.436.696.696zM4.12 17.842c-.037 2.632 4.117 2.632 4.06 0V6.132c.038-1.316-1.353-2.35-2.612-1.955-.057.019-.113.037-.15.056-.79.301-1.335 1.09-1.317 1.936v11.673h.02zm13.74-9.68c2.632.037 2.632-4.098 0-4.06h-6.973c.526 1.109.395 2.857.413 4.06h6.56z`})]}))});function oR(e){"@babel/helpers - typeof";return oR=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},oR(e)}function sR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cR(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ER(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var DR=(0,P.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=TR(e,yR);return(0,F.jsxs)(`svg`,xR(xR({height:n,style:xR({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,F.jsx)(`title`,{children:mR}),(0,F.jsx)(`path`,{d:`M9.1.503l2.824 4.47a1.078 1.078 0 01-.911 1.655H9.858v6.692h-1.67V0c.35 0 .7.168.912.503z`,fill:`#8FBCFA`}),(0,F.jsx)(`path`,{d:`M4.453 4.974L7.277.503A1.07 1.07 0 018.189 0v13.32a2.633 2.633 0 00-1.67.48V6.628H5.364c-.85 0-1.366-.936-.912-1.654z`,fill:`#468BFF`}),(0,F.jsx)(`path`,{d:`M17.041 17.74h-7.028c.423-.457.67-1.049.7-1.67h12.956c0 .35-.168.7-.502.912l-4.472 2.823a1.078 1.078 0 01-1.654-.911v-1.155z`,fill:`#FDBB11`}),(0,F.jsx)(`path`,{d:`M18.695 12.334l4.47 2.824c.336.212.503.562.503.912H10.713a2.65 2.65 0 00-.493-1.67h6.822v-1.154c0-.85.935-1.366 1.653-.912z`,fill:`#F6D785`}),(0,F.jsx)(`path`,{d:`M4.394 19.605L.316 23.683a1.07 1.07 0 001 .29l5.158-1.165A1.078 1.078 0 007 20.994l-.816-.816 3.073-3.074a1.61 1.61 0 000-2.276l-.042-.043-4.82 4.82z`,fill:`#FF9A9D`}),(0,F.jsx)(`path`,{d:`M3.822 17.817l3.073-3.074a1.61 1.61 0 012.277 0l.042.043-4.818 4.819-4.08 4.079a1.07 1.07 0 01-.289-1l1.165-5.158A1.078 1.078 0 013.006 17l.816.817z`,fill:`#FE363B`})]}))});function OR(e){"@babel/helpers - typeof";return OR=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},OR(e)}function kR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function AR(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function GR(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var $=(0,P.memo)(function(e){var t=e.shape,n=t===void 0?`circle`:t,r=e.color,i=r===void 0?`#fff`:r,a=e.background,o=e.size,s=e.style,c=e.iconMultiple,l=c===void 0?.75:c,u=e.Icon,d=e.iconStyle,f=e.iconClassName,p=WR(e,RR),m=lc().isDarkMode;return(0,F.jsx)(hc,BR(BR({flex:`none`,style:BR({background:a,borderRadius:n===`circle`?`50%`:Math.floor(o*.1),boxShadow:IR(m,a),color:i,height:o,width:o},s)},p),{},{children:u&&(0,F.jsx)(u,{className:f,color:i,size:o,style:BR({transform:`scale(${l})`},d)})}))});function KR(e){"@babel/helpers - typeof";return KR=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},KR(e)}function qR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function JR(e){for(var t=1;t0?e.env_vars[0]:null,{protocol:r,auth:i,default_base_url:a}=e;return r===`openai_compat`&&i===`bearer`?(t.push({name:`api_key`,label:`API Key`,type:`password`,required:!0,group:`auth`,...n?{hint:`or set ${n} env var`}:{}}),t.push({name:`api_base`,label:`API Base URL`,type:`url`,required:!1,group:`endpoint`,...a?{placeholder:a}:{}})):r===`openai_compat`&&i===`none`?t.push({name:`api_base`,label:`API Base URL`,type:`url`,required:!1,group:`endpoint`,...a?{placeholder:a}:{}}):r===`azure_openai`&&i===`azure_api_key`?(t.push({name:`api_key`,label:`Azure API Key`,type:`password`,required:!0,group:`auth`}),t.push({name:`api_base`,label:`Endpoint URL`,type:`url`,required:!0,placeholder:`https://.openai.azure.com`,group:`endpoint`}),t.push({name:`deployment`,label:`Deployment Name`,type:`text`,required:!0,group:`endpoint`}),t.push({name:`api_version`,label:`API Version`,type:`text`,required:!0,placeholder:`2024-08-01-preview`,group:`endpoint`})):r===`vertex_ai`&&i===`google_api_key`?(t.push({name:`api_key`,label:`API Key`,type:`password`,required:!0,group:`auth`}),t.push({name:`project`,label:`GCP Project ID`,type:`text`,required:!0,group:`endpoint`}),t.push({name:`region`,label:`GCP Region`,type:`text`,required:!0,placeholder:`us-central1`,group:`endpoint`})):r===`bedrock_native`&&i===`aws_sigv4`?(t.push({name:`aws_access_key_id`,label:`AWS Access Key ID`,type:`text`,required:!0,group:`auth`}),t.push({name:`aws_secret_access_key`,label:`AWS Secret Access Key`,type:`password`,required:!0,group:`auth`}),t.push({name:`aws_session_token`,label:`AWS Session Token`,type:`password`,required:!1,group:`auth`}),t.push({name:`region`,label:`AWS Region`,type:`text`,required:!0,placeholder:`us-east-1`,group:`endpoint`})):(r===`gemini_openai`||r===`gemini_native`)&&i===`google_api_key`||r===`anthropic_native`&&i===`bearer`?t.push({name:`api_key`,label:`API Key`,type:`password`,required:!0,group:`auth`,...n?{hint:`or set ${n} env var`}:{}}):(i.includes(`bearer`)&&t.push({name:`api_key`,label:`API Key`,type:`password`,required:!0,group:`auth`}),(i===`none`||i.includes(`bearer`))&&t.push({name:`api_base`,label:`API Base URL`,type:`url`,required:!1,group:`endpoint`,...a?{placeholder:a}:{}})),t.push({name:`rpm`,label:`Rate Limit (req/min)`,type:`number`,required:!1,group:`limits`,hint:`Stored for reference; not enforced on managed backends`}),t.push({name:`tpm`,label:`Token Limit (tokens/min)`,type:`number`,required:!1,group:`limits`,hint:`Stored for reference; not enforced on managed backends`}),t}function iz({initial:e,onSuccess:t,onCancel:n}){let r=!!e,{data:i=[]}=ro(),a=ao(),o=oo(),[s,c]=(0,P.useState)(e?.name??``),[l,u]=(0,P.useState)(e?.provider_id??``),[d,f]=(0,P.useState)(()=>{if(!e)return{};let t={};for(let n of[`api_base`,`deployment`,`api_version`,`project`,`region`])e[n]!=null&&(t[n]=e[n]);return e.rpm!=null&&(t.rpm=String(e.rpm)),e.tpm!=null&&(t.tpm=String(e.tpm)),t}),[p,m]=(0,P.useState)(null);(0,P.useEffect)(()=>{i.length>0&&!l&&u(e?.provider_id??i[0].id)},[i.length]);let h=i.find(e=>e.id===l)??(i.length>0?i[0]:void 0),g=h?rz(h):[],_=g.filter(e=>e.group===`auth`),v=g.filter(e=>e.group===`endpoint`),y=g.filter(e=>e.group===`limits`);function b(e){return d[e]??``}function x(e,t){f(n=>({...n,[e]:t}))}function S(t){return!r||!e?!1:t===`api_key`?e.api_key_set:t===`aws_secret_access_key`||t===`aws_access_key_id`?e.aws_creds_set:!1}function C(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!==``))}function w(n){n.preventDefault(),m(null);let i=C(d);if(r&&e)o.mutate({name:e.name,data:i},{onSuccess:()=>t(),onError:e=>m(e.message)});else{if(!s){m(`Name is required`);return}a.mutate({name:s,provider_id:l,...i},{onSuccess:()=>t(),onError:e=>m(e.message)})}}let T=a.isPending||o.isPending;function E(e){let t=b(e.name),n=S(e.name),r=e.type===`url`?`text`:e.type;return(0,F.jsxs)(`div`,{style:{marginBottom:10},children:[(0,F.jsxs)(`div`,{style:{fontSize:12,color:`var(--text-2)`,marginBottom:3},children:[e.label,e.required&&(0,F.jsx)(`span`,{style:{color:`var(--err)`,marginLeft:2},children:`*`})]}),(0,F.jsx)(`input`,{type:r,value:t,placeholder:n?`••••••••`:e.placeholder,onChange:t=>x(e.name,t.target.value),style:{width:`100%`}}),e.hint&&(0,F.jsx)(`div`,{style:{fontSize:11,color:`var(--text-2)`,marginTop:3},children:e.hint})]},e.name)}return(0,F.jsxs)(`form`,{onSubmit:w,style:{padding:`12px`,background:`var(--bg-raised)`,border:`1px solid var(--border)`,borderRadius:`var(--rm)`,marginBottom:14},children:[(0,F.jsx)(`div`,{style:{fontWeight:600,marginBottom:12,fontSize:13},children:r?`Edit backend: ${e.name}`:`Add managed backend`}),(0,F.jsxs)(`div`,{style:{marginBottom:10},children:[(0,F.jsxs)(`div`,{style:{fontSize:12,color:`var(--text-2)`,marginBottom:3},children:[`Provider`,(0,F.jsx)(`span`,{style:{color:`var(--err)`,marginLeft:2},children:`*`})]}),(0,F.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8},children:[l&&(0,F.jsx)(nz,{id:l,size:18,style:{flexShrink:0}}),(0,F.jsxs)(`select`,{value:l,onChange:e=>{u(e.target.value),f({})},disabled:r,style:{flex:1},children:[i.length===0&&(0,F.jsx)(`option`,{value:``,children:`Loading providers…`}),[`implemented`,`wired`,`stub`].map(e=>{let t=i.filter(t=>t.status===e);return t.length===0?null:(0,F.jsx)(`optgroup`,{label:e.charAt(0).toUpperCase()+e.slice(1),children:t.map(e=>(0,F.jsx)(`option`,{value:e.id,children:e.display_name},e.id))},e)})]})]})]}),(0,F.jsxs)(`div`,{style:{marginBottom:10},children:[(0,F.jsxs)(`div`,{style:{fontSize:12,color:`var(--text-2)`,marginBottom:3},children:[`Name`,(0,F.jsx)(`span`,{style:{color:`var(--err)`,marginLeft:2},children:`*`})]}),(0,F.jsx)(`input`,{type:`text`,value:s,onChange:e=>c(e.target.value),required:!0,pattern:`[a-zA-Z0-9_\\-]+`,placeholder:`my-backend`,disabled:r,style:{width:`100%`}}),!r&&(0,F.jsx)(`div`,{style:{fontSize:11,color:`var(--text-2)`,marginTop:3},children:`Letters, numbers, underscores, hyphens only`})]}),_.length>0&&(0,F.jsxs)(`div`,{style:{marginBottom:4},children:[(0,F.jsx)(`div`,{className:`section-label`,style:{marginBottom:6},children:`Authentication`}),_.map(E)]}),v.length>0&&(0,F.jsxs)(`div`,{style:{marginBottom:4},children:[(0,F.jsx)(`div`,{className:`section-label`,style:{marginBottom:6},children:`Endpoint`}),v.map(E)]}),y.length>0&&(0,F.jsxs)(`details`,{style:{marginBottom:10},children:[(0,F.jsx)(`summary`,{style:{fontSize:11,color:`var(--text-2)`,cursor:`pointer`,textTransform:`uppercase`,letterSpacing:`0.07em`,fontWeight:500,marginBottom:6},children:`Rate Limits`}),(0,F.jsx)(`div`,{style:{marginTop:8},children:y.map(E)})]}),p&&(0,F.jsx)(`div`,{style:{marginBottom:10,padding:`6px 10px`,background:`var(--err-dim)`,borderLeft:`3px solid var(--err)`,borderRadius:`var(--r)`,fontSize:12},children:p}),(0,F.jsxs)(`div`,{style:{display:`flex`,gap:8},children:[(0,F.jsx)(V,{type:`submit`,tone:`primary`,size:`sm`,loading:T,children:r?`Save changes`:`Create backend`}),(0,F.jsx)(V,{type:`button`,size:`sm`,onClick:n,disabled:T,children:`Cancel`})]})]})}function az(){let{data:e,isLoading:t,error:n}=io(),{data:r=[]}=ro(),i=so(),[a,o]=(0,P.useState)({mode:`none`}),[s,c]=(0,P.useState)(null),l=(0,P.useMemo)(()=>Object.fromEntries(r.map(e=>[e.id,e.display_name])),[r]);function u(e){return l[e]??e}function d(){return s?i.mutateAsync(s.name).then(()=>void 0):Promise.resolve()}return(0,F.jsxs)(`div`,{style:{marginBottom:24},children:[(0,F.jsxs)(`div`,{className:`section-header`,children:[(0,F.jsx)(`div`,{className:`section-label`,style:{margin:0},children:`Managed Backends`}),(0,F.jsx)(V,{tone:`primary`,size:`sm`,onClick:()=>o({mode:`create`}),children:`Add Backend`})]}),(0,F.jsx)(`div`,{style:{fontSize:12,color:`var(--text-2)`,marginBottom:10},children:`Configure provider credentials and backend settings at runtime.`}),a.mode===`create`&&(0,F.jsx)(iz,{onSuccess:()=>o({mode:`none`}),onCancel:()=>o({mode:`none`})}),a.mode===`edit`&&(0,F.jsx)(iz,{initial:a.backend,onSuccess:()=>o({mode:`none`}),onCancel:()=>o({mode:`none`})}),(0,F.jsx)(Xs,{loading:t,error:n?.message}),e&&e.backends.length===0&&(0,F.jsx)(`div`,{style:{padding:`20px 0`,color:`var(--text-2)`,fontSize:13},children:`No managed backends yet. Add one to configure provider credentials at runtime.`}),e&&e.backends.length>0&&(0,F.jsxs)(`table`,{className:`route-table`,children:[(0,F.jsx)(`thead`,{children:(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`th`,{children:`Name`}),(0,F.jsx)(`th`,{children:`Provider`}),(0,F.jsx)(`th`,{children:`Credentials`}),(0,F.jsx)(`th`,{children:`Base URL`}),(0,F.jsx)(`th`,{})]})}),(0,F.jsx)(`tbody`,{children:e.backends.map(e=>(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`td`,{className:`mono`,children:e.name}),(0,F.jsxs)(`td`,{className:`dim`,style:{whiteSpace:`nowrap`},children:[(0,F.jsx)(nz,{id:e.provider_id,size:16,style:{marginRight:6,verticalAlign:`middle`,opacity:.8}}),u(e.provider_id)]}),(0,F.jsxs)(`td`,{children:[e.api_key_set&&(0,F.jsx)(`span`,{className:`badge badge-active`,style:{marginRight:4},children:`Key set`}),!e.api_key_set&&!e.aws_creds_set&&(0,F.jsx)(`span`,{className:`badge badge-revoked`,children:`No key`}),e.aws_creds_set&&(0,F.jsx)(`span`,{className:`badge badge-active`,children:`AWS creds set`})]}),(0,F.jsx)(`td`,{className:`dim mono`,style:{fontSize:11},children:e.api_base??`—`}),(0,F.jsx)(`td`,{children:(0,F.jsxs)(`div`,{style:{display:`flex`,gap:6},children:[(0,F.jsx)(V,{size:`sm`,onClick:()=>{a.mode===`edit`&&a.backend.id===e.id?o({mode:`none`}):o({mode:`edit`,backend:e})},children:`Edit`}),(0,F.jsx)(V,{tone:`danger`,size:`sm`,onClick:()=>c(e),disabled:i.isPending&&i.variables===e.name,children:`Delete`})]})})]},e.id))})]}),(0,F.jsx)(ac,{open:s!==null,onClose:()=>c(null),onConfirm:d,title:`Delete managed backend?`,message:(0,F.jsxs)(F.Fragment,{children:[`Delete backend `,(0,F.jsx)(`span`,{className:`mono`,children:s?.name}),`? Stored credentials will be removed. Routes still referencing it will fail until reconfigured.`]})})]})}var oz=`env_import_pending_restart`;function sz(){return sessionStorage.getItem(oz)===`1`}function cz({configured:e=!0}){let{data:t,isLoading:n,error:r}=Ga(),{data:i}=Ja(),a=Ka(),o=qa(),s=no(),c=(0,P.useRef)(null),[l,u]=(0,P.useState)({}),[d,f]=(0,P.useState)(null),[p,m]=(0,P.useState)(null),[h,g]=(0,P.useState)(null),[_,v]=(0,P.useState)(sz),[y,b]=(0,P.useState)(null);function x(){if(!y)return Promise.resolve();let e=y;return o.mutateAsync(e).then(()=>void 0)}function S(e,t){a.mutate({[e]:l[e]??t})}function C(e,t){a.mutate({[e]:t})}function w(){return(t?.pxpipe_models??``).split(`,`).map(e=>e.trim()).filter(Boolean)}function T(e){let t=e.toLowerCase();return w().some(e=>t.includes(e.toLowerCase()))}function E(e,t){let n=w(),r=t?T(e)?n:[...n,e]:n.filter(t=>!e.toLowerCase().includes(t.toLowerCase()));a.mutate({pxpipe_models:r.join(`,`)})}function D(e){let t=e.target.files?.[0];t&&(f(null),m(null),s.mutate(t,{onSuccess(e){f(e),sessionStorage.setItem(oz,`1`),v(!0)},onError(e){try{let t=JSON.parse(e.message);if(t.hard_errors){m(t);return}}catch{}m({hard_errors:[e.message],warnings:[]})}}),c.current&&(c.current.value=``))}async function O(){g(null);try{await z()}catch(e){g(e instanceof Error?e.message:String(e))}}function ee(){sessionStorage.removeItem(oz),v(!1)}return(0,F.jsxs)(`div`,{children:[(0,F.jsx)(az,{}),!e&&(0,F.jsxs)(`div`,{style:{marginBottom:20,padding:`12px 16px`,border:`1px solid var(--border)`,borderLeft:`3px solid var(--warn)`,borderRadius:`var(--r)`,fontSize:13},children:[(0,F.jsx)(`div`,{style:{fontWeight:600,marginBottom:8},children:`No proxy configuration found — nothing to forward requests to.`}),(0,F.jsxs)(`div`,{style:{marginBottom:10},children:[`The proxy needs a backend endpoint (where to forward) and a listen port (where to accept). LISTEN_PORT defaults to 3000. Create a `,(0,F.jsx)(`span`,{className:`mono`,children:`.anyllm.env`}),` and import it below, or pass it at startup: `,(0,F.jsx)(`span`,{className:`mono`,children:`anyllm-proxy --webui --env-file .anyllm.env`})]}),(0,F.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`1fr 1fr 1fr`,gap:10},children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`div`,{style:{fontWeight:600,marginBottom:4,fontSize:12},children:`OpenAI`}),(0,F.jsx)(`pre`,{style:{margin:0,padding:`6px 10px`,background:`var(--surface-2)`,borderRadius:`var(--r)`,fontSize:11,overflowX:`auto`},children:`OPENAI_API_KEY=sk-... +`+e.stack}}var De=Object.prototype.hasOwnProperty,Oe=t.unstable_scheduleCallback,ke=t.unstable_cancelCallback,Ae=t.unstable_shouldYield,je=t.unstable_requestPaint,Me=t.unstable_now,Ne=t.unstable_getCurrentPriorityLevel,Pe=t.unstable_ImmediatePriority,Fe=t.unstable_UserBlockingPriority,Ie=t.unstable_NormalPriority,Le=t.unstable_LowPriority,Re=t.unstable_IdlePriority,ze=t.log,Be=t.unstable_setDisableYieldValue,Ve=null,He=null;function Ue(e){if(typeof ze==`function`&&Be(e),He&&typeof He.setStrictMode==`function`)try{He.setStrictMode(Ve,e)}catch{}}var We=Math.clz32?Math.clz32:qe,Ge=Math.log,Ke=Math.LN2;function qe(e){return e>>>=0,e===0?32:31-(Ge(e)/Ke|0)|0}var Je=256,Ye=262144,Xe=4194304;function Ze(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Qe(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ze(n))):i=Ze(o):i=Ze(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ze(n))):i=Ze(o)):i=Ze(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function $e(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function et(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function tt(){var e=Xe;return Xe<<=1,!(Xe&62914560)&&(Xe=4194304),e}function nt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function rt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function it(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),hn=!1;if(mn)try{var gn={};Object.defineProperty(gn,"passive",{get:function(){hn=!0}}),window.addEventListener(`test`,gn,gn),window.removeEventListener(`test`,gn,gn)}catch{hn=!1}var _n=null,vn=null,yn=null;function bn(){if(yn)return yn;var e,t=vn,n=t.length,r,i=`value`in _n?_n.value:_n.textContent,a=i.length;for(e=0;e=Xn),$n=` `,er=!1;function tr(e,t){switch(e){case`keyup`:return Jn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function nr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var rr=!1;function ir(e,t){switch(e){case`compositionend`:return nr(t);case`keypress`:return t.which===32?(er=!0,$n):null;case`textInput`:return e=t.data,e===$n&&er?null:e;default:return null}}function ar(e,t){if(rr)return e===`compositionend`||!Yn&&tr(e,t)?(e=bn(),yn=vn=_n=null,rr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Dr(n)}}function kr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ar(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Vt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vt(e.document)}return t}function jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Mr=mn&&`documentMode`in document&&11>=document.documentMode,Nr=null,Pr=null,Fr=null,Ir=!1;function Lr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ir||Nr==null||Nr!==Vt(r)||(r=Nr,`selectionStart`in r&&jr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fr&&Er(Fr,r)||(Fr=r,r=Dd(Pr,`onSelect`),0>=o,i-=o,ki=1<<32-We(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),L&&ji(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),L&&ji(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return L&&ji(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),L&&ji(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&ka(l)===r.type){n(e,r.sibling),c=a(r,o.props),Ia(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=gi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=hi(o.type,o.key,o.props,null,e.mode,c),Ia(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=yi(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=ka(o),b(e,r,o,c)}if(oe(o))return h(e,r,o,c);if(re(o)){if(l=re(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Fa(o),c);if(o.$$typeof===C)return b(e,r,ra(e,o),c);La(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=_i(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Pa=0;var i=b(e,t,n,r);return Na=null,i}catch(t){if(t===Ca||t===Ta)throw t;var a=di(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var za=Ra(!0),Ba=Ra(!1),Va=!1;function Ha(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ua(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Wa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ga(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,G&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ci(e),si(e,null,n),t}return ii(e,r,t,n),ci(e)}function Ka(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ot(e,n)}}function qa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ja=!1;function Ya(){if(Ja){var e=ma;if(e!==null)throw e}}function Xa(e,t,n,r){Ja=!1;var i=e.updateQueue;Va=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(J&f)===f:(r&f)===f){f!==0&&f===pa&&(Ja=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=m({},d,f);break a;case 2:Va=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Kl|=o,e.lanes=o,e.memoizedState=d}}function Za(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Qa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=k.T,s={};k.T=s,Fs(e,!1,t,n);try{var c=i(),l=k.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ps(e,t,_a(c,r),mu(e)):Ps(e,t,r,mu(e))}catch(n){Ps(e,t,{then:function(){},status:`rejected`,reason:n},mu())}finally{A.p=a,o!==null&&s.types!==null&&(o.types=s.types),k.T=o}}function Ts(){}function Es(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Ds(e).queue;ws(e,a,t,se,n===null?Ts:function(){return Os(e),n(r)})}function Ds(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lo,lastRenderedState:se},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Os(e){var t=Ds(e);t.next===null&&(t=e.alternate.memoizedState),Ps(e,t.next.queue,{},mu())}function ks(){return R($f)}function As(){return Mo().memoizedState}function js(){return Mo().memoizedState}function Ms(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=mu();e=Wa(n);var r=Ga(t,e,n);r!==null&&(gu(r,t,n),Ka(r,t,n)),t={cache:la()},e.payload=t;return}t=t.return}}function Ns(e,t,n){var r=mu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},U(e)?Is(t,n):(n=ai(e,t,n,r),n!==null&&(gu(n,e,r),Ls(n,t,r)))}function H(e,t,n){Ps(e,t,n,mu())}function Ps(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(U(e))Is(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Tr(s,o))return ii(e,t,i,0),K===null&&ri(),!1}catch{}if(n=ai(e,t,i,r),n!==null)return gu(n,e,r),Ls(n,t,r),!0}return!1}function Fs(e,t,n,r){if(r={lane:2,revertLane:fd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},U(e)){if(t)throw Error(i(479))}else t=ai(e,n,r,2),t!==null&&gu(t,e,2)}function U(e){var t=e.alternate;return e===z||t!==null&&t===z}function Is(e,t){go=ho=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ls(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ot(e,n)}}var Rs={readContext:R,use:Fo,useCallback:So,useContext:So,useEffect:So,useImperativeHandle:So,useLayoutEffect:So,useInsertionEffect:So,useMemo:So,useReducer:So,useRef:So,useState:So,useDebugValue:So,useDeferredValue:So,useTransition:So,useSyncExternalStore:So,useId:So,useHostTransitionStatus:So,useFormState:So,useActionState:So,useOptimistic:So,useMemoCache:So,useCacheRefresh:So};Rs.useEffectEvent=So;var zs={readContext:R,use:Fo,useCallback:function(e,t){return jo().memoizedState=[e,t===void 0?null:t],e},useContext:R,useEffect:ds,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ls(4194308,4,_s.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ls(4194308,4,e,t)},useInsertionEffect:function(e,t){ls(4,2,e,t)},useMemo:function(e,t){var n=jo();t=t===void 0?null:t;var r=e();if(_o){Ue(!0);try{e()}finally{Ue(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=jo();if(n!==void 0){var i=n(t);if(_o){Ue(!0);try{n(t)}finally{Ue(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ns.bind(null,z,e),[r.memoizedState,e]},useRef:function(e){var t=jo();return e={current:e},t.memoizedState=e},useState:function(e){e=qo(e);var t=e.queue,n=H.bind(null,z,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ys,useDeferredValue:function(e,t){return Ss(jo(),e,t)},useTransition:function(){var e=qo(!1);return e=ws.bind(null,z,e.queue,!0,!1),jo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=z,a=jo();if(L){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),K===null)throw Error(i(349));J&127||Ho(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ds(Wo.bind(null,r,o,e),[e]),r.flags|=2048,ss(9,{destroy:void 0},Uo.bind(null,r,o,n,t),null),n},useId:function(){var e=jo(),t=K.identifierPrefix;if(L){var n=Ai,r=ki;n=(r&~(1<<32-We(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=vo++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[ft]=t,o[pt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Fd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Nc(t)}}return W(t),Pc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Nc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=me.current,Ui(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ii,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ft]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Nd(e.nodeValue,n)),e||Bi(t,!0)}else e=Vd(e).createTextNode(r),e[ft]=t,t.stateNode=e}return W(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ui(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ft]=t}else Wi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;W(t),e=!1}else n=Gi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(uo(t),t):(uo(t),null);if(t.flags&128)throw Error(i(558))}return W(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ui(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ft]=t}else Wi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;W(t),a=!1}else a=Gi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(uo(t),t):(uo(t),null)}return uo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ic(t,t.updateQueue),W(t),null);case 4:return _e(),e===null&&Cd(t.stateNode.containerInfo),W(t),null;case 10:return Zi(t.type),W(t),null;case 19:if(de(fo),r=t.memoizedState,r===null)return W(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Lc(r,!1);else{if(Gl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=po(e),o!==null){for(t.flags|=128,Lc(r,!1),e=o.updateQueue,t.updateQueue=e,Ic(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)mi(n,e),n=n.sibling;return j(fo,fo.current&1|2),L&&ji(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Me()>nu&&(t.flags|=128,a=!0,Lc(r,!1),t.lanes=4194304)}else{if(!a)if(e=po(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Ic(t,e),Lc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!L)return W(t),null}else 2*Me()-r.renderingStartTime>nu&&n!==536870912&&(t.flags|=128,a=!0,Lc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(W(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Me(),e.sibling=null,n=fo.current,j(fo,a?n&1|2:n&1),L&&ji(t,r.treeForkCount),e);case 22:case 23:return uo(t),ro(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(W(t),t.subtreeFlags&6&&(t.flags|=8192)):W(t),n=t.updateQueue,n!==null&&Ic(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&de(ya),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Zi(ca),W(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function zc(e,t){switch(Pi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zi(ca),_e(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ye(t),null;case 31:if(t.memoizedState!==null){if(uo(t),t.alternate===null)throw Error(i(340));Wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(uo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return de(fo),null;case 4:return _e(),null;case 10:return Zi(t.type),null;case 22:case 23:return uo(t),ro(),e!==null&&de(ya),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Zi(ca),null;case 25:return null;default:return null}}function Bc(e,t){switch(Pi(t),t.tag){case 3:Zi(ca),_e();break;case 26:case 27:case 5:ye(t);break;case 4:_e();break;case 31:t.memoizedState!==null&&uo(t);break;case 13:uo(t);break;case 19:de(fo);break;case 10:Zi(t.type);break;case 22:case 23:uo(t),ro(),e!==null&&de(ya);break;case 24:Zi(ca)}}function Vc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){X(t,t.return,e)}}function Hc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){X(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){X(t,t.return,e)}}function Uc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Qa(t,n)}catch(t){X(e,e.return,t)}}}function Wc(e,t,n){n.props=Ks(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){X(e,t,n)}}function Gc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){X(e,t,n)}}function Kc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){X(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){X(e,t,n)}else n.current=null}function qc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){X(e,e.return,t)}}function Jc(e,t,n){try{var r=e.stateNode;Id(r,e.type,n,t),r[pt]=t}catch(t){X(e,e.return,t)}}function Yc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qd(e.type)||e.tag===4}function Xc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Yc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Qd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Zc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=an));else if(r!==4&&(r===27&&Qd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}function Qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Qd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Qc(e,t,n),e=e.sibling;e!==null;)Qc(e,t,n),e=e.sibling}function $c(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Fd(t,r,n),t[ft]=e,t[pt]=n}catch(t){X(e,e.return,t)}}var el=!1,tl=!1,nl=!1,rl=typeof WeakSet==`function`?WeakSet:Set,il=null;function al(e,t){if(e=e.containerInfo,zd=cp,e=Ar(e),jr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Bd={focusedElem:e,selectionRange:n},cp=!1,il=t;il!==null;)if(t=il,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,il=e;else for(;il!==null;){switch(t=il,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Fd(o,r,n),o[ft]=e,wt(o),r=o;break a;case`link`:var s=Hf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=Or(s,h),v=Or(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,k.T=null,n=uu,uu=null;var o=ou,s=cu;if(au=0,su=ou=null,cu=0,G&6)throw Error(i(331));var c=G;if(G|=4,Fl(o.current),Dl(o,o.current,s,n),G=c,ad(0,!1),He&&typeof He.onPostCommitFiberRoot==`function`)try{He.onPostCommitFiberRoot(Ve,o)}catch{}return!0}finally{A.p=a,k.T=r,Hu(e,t)}}function Gu(e,t,n){t=xi(n,t),t=Qs(e.stateNode,t,2),e=Ga(e,t,2),e!==null&&(rt(e,2),id(e))}function X(e,t,n){if(e.tag===3)Gu(e,e,n);else for(;t!==null;){if(t.tag===3){Gu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(iu===null||!iu.has(r))){e=xi(n,e),n=$s(2),r=Ga(t,n,2),r!==null&&(ec(n,r,t,e),rt(r,2),id(r));break}}t=t.return}}function Ku(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new zl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Ul=!0,i.add(n),e=qu.bind(null,e,t,n),t.then(e,e))}function qu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,K===e&&(J&n)===n&&(Gl===4||Gl===3&&(J&62914560)===J&&300>Me()-eu?!(G&2)&&Cu(e,0):Jl|=n,Xl===J&&(Xl=0)),id(e)}function Ju(e,t){t===0&&(t=tt()),e=oi(e,t),e!==null&&(rt(e,t),id(e))}function Yu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ju(e,n)}function Xu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Ju(e,n)}function Zu(e,t){return Oe(e,t)}var Qu=null,$u=null,ed=!1,td=!1,nd=!1,rd=0;function id(e){e!==$u&&e.next===null&&($u===null?Qu=$u=e:$u=$u.next=e),td=!0,ed||(ed=!0,dd())}function ad(e,t){if(!nd&&td){nd=!0;do for(var n=!1,r=Qu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-We(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ud(r,a))}else a=J,a=Qe(r,r===K?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||$e(r,a)||(n=!0,ud(r,a));r=r.next}while(n);nd=!1}}function od(){sd()}function sd(){td=ed=!1;var e=0;rd!==0&&Kd()&&(e=rd);for(var t=Me(),n=null,r=Qu;r!==null;){var i=r.next,a=cd(r,t);a===0?(r.next=null,n===null?Qu=i:n.next=i,i===null&&($u=n)):(n=r,(e!==0||a&3)&&(td=!0)),r=i}au!==0&&au!==5||ad(e,!1),rd!==0&&(rd=0)}function cd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Ld(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function Sf(e,t,n){var r=xf;if(r&&typeof t==`string`&&t){var i=Ut(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),gf.has(i)||(gf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Fd(t,`link`,e),wt(t),r.head.appendChild(t)))}}function Cf(e){vf.D(e),Sf(`dns-prefetch`,e,null)}function wf(e,t){vf.C(e,t),Sf(`preconnect`,e,t)}function Tf(e,t,n){vf.L(e,t,n);var r=xf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Ut(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Ut(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Ut(n.imageSizes)+`"]`)):i+=`[href="`+Ut(e)+`"]`;var a=i;switch(t){case`style`:a=jf(e);break;case`script`:a=Ff(e)}hf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),hf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Mf(a))||t===`script`&&r.querySelector(If(a))||(t=r.createElement(`link`),Fd(t,`link`,e),wt(t),r.head.appendChild(t)))}}function Ef(e,t){vf.m(e,t);var n=xf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Ut(r)+`"][href="`+Ut(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Ff(e)}if(!hf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),hf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(If(a)))return}r=n.createElement(`link`),Fd(r,`link`,e),wt(r),n.head.appendChild(r)}}}function Df(e,t,n){vf.S(e,t,n);var r=xf;if(r&&e){var i=Ct(r).hoistableStyles,a=jf(e);t=t||`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Mf(a)))s.loading=5;else{e=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=hf.get(a))&&zf(e,n);var c=o=r.createElement(`link`);wt(c),Fd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Rf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Of(e,t){vf.X(e,t);var n=xf;if(n&&e){var r=Ct(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=m({src:e,async:!0},t),(t=hf.get(i))&&Bf(e,t),a=n.createElement(`script`),wt(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t){vf.M(e,t);var n=xf;if(n&&e){var r=Ct(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=hf.get(i))&&Bf(e,t),a=n.createElement(`script`),wt(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t,n,r){var a=(a=me.current)?_f(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=jf(n.href),n=Ct(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=jf(n.href);var o=Ct(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Mf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),hf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},hf.set(e,n),o||Pf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Ff(n),n=Ct(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function jf(e){return`href="`+Ut(e)+`"`}function Mf(e){return`link[rel="stylesheet"][`+e+`]`}function Nf(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function Pf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Fd(t,`link`,n),wt(t),e.head.appendChild(t))}function Ff(e){return`[src="`+Ut(e)+`"]`}function If(e){return`script[async]`+e}function Lf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Ut(n.href)+`"]`);if(r)return t.instance=r,wt(r),r;var a=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),wt(r),Fd(r,`style`,a),Rf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=jf(n.href);var o=e.querySelector(Mf(a));if(o)return t.state.loading|=4,t.instance=o,wt(o),o;r=Nf(n),(a=hf.get(a))&&zf(r,a),o=(e.ownerDocument||e).createElement(`link`),wt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Fd(o,`link`,r),t.state.loading|=4,Rf(o,n.precedence,e),t.instance=o;case`script`:return o=Ff(n.src),(a=e.querySelector(If(o)))?(t.instance=a,wt(a),a):(r=n,(a=hf.get(o))&&(r=m({},n),Bf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),wt(a),Fd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Rf(r,n.precedence,e));return t.instance}function Rf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Wf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Gf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Kf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=jf(r.href),a=t.querySelector(Mf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Yf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,wt(a);return}a=t.ownerDocument||t,r=Nf(r),(i=hf.get(i))&&zf(r,i),a=a.createElement(`link`),wt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Fd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Yf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var qf=0;function Jf(e,t){return e.stylesheets&&e.count===0&&Zf(e,e.stylesheets),0qf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Yf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xf=null;function Zf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xf=new Map,t.forEach(Qf,e),Xf=null,Yf.call(e))}function Qf(e,t){if(!(t.state.loading&4)){var n=Xf.get(e);if(n)var r=n.get(null);else{n=new Map,Xf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};function y(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}var b=o((()=>{}));function x(e,t,n){y(e,t),t.set(e,n)}var S=o((()=>{b()}));function C(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}var w=o((()=>{}));function T(e,t,n){return e.set(C(e,t),n),n}var E=o((()=>{w()}));function D(e,t){return e.get(C(e,t))}var O=o((()=>{w()}));S(),E(),O();var ee,te,ne,re=new(ee=new WeakMap,te=new WeakMap,ne=new WeakMap,class extends v{constructor(){super(),x(this,ee,void 0),x(this,te,void 0),x(this,ne,void 0),T(ne,this,e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}})}onSubscribe(){D(te,this)||this.setEventListener(D(ne,this))}onUnsubscribe(){this.hasListeners()||(D(te,this)?.call(this),T(te,this,void 0))}setEventListener(e){T(ne,this,e),D(te,this)?.call(this),T(te,this,e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()}))}setFocused(e){D(ee,this)!==e&&(T(ee,this,e),this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof D(ee,this)==`boolean`?D(ee,this):globalThis.document?.visibilityState!==`hidden`}});S(),O(),E();var ie,ae,oe={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},k=new(ie=new WeakMap,ae=new WeakMap,class{constructor(){x(this,ie,oe),x(this,ae,!1)}setTimeoutProvider(e){T(ie,this,e)}setTimeout(e,t){return D(ie,this).setTimeout(e,t)}clearTimeout(e){D(ie,this).clearTimeout(e)}setInterval(e,t){return D(ie,this).setInterval(e,t)}clearInterval(e){D(ie,this).clearInterval(e)}});function A(e){setTimeout(e,0)}var se=typeof window>`u`||`Deno`in globalThis;function ce(){}function le(e,t){return typeof e==`function`?e(t):e}function ue(e){return typeof e==`number`&&e>=0&&e!==1/0}function de(e,t){return Math.max(e+(t||0)-Date.now(),0)}function j(e,t){return typeof e==`function`?e(t):e}function fe(e,t){return typeof e==`function`?e(t):e}function pe(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==he(o,t.options))return!1}else if(!_e(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function me(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(ge(t.options.mutationKey)!==ge(a))return!1}else if(!_e(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function he(e,t){return(t?.queryKeyHashFn||ge)(e)}function ge(e){return JSON.stringify(e,(e,t)=>Se(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function _e(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>_e(e[n],t[n])):!1}var ve=Object.prototype.hasOwnProperty;function ye(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=xe(e)&&xe(t);if(!r&&!(Se(e)&&Se(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l{k.setTimeout(t,e)})}function Te(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:ye(e,t)}function Ee(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function De(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Oe=Symbol();function ke(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Oe?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Ae(e,t){return typeof e==`function`?e(...t):!!e}function je(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var Me=(()=>{let e=()=>se;return{isServer(){return e()},setIsServer(t){e=t}}})();function Ne(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var Pe=A;function Fe(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Pe,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var Ie=Fe();S(),E(),O();var Le,Re,ze,Be=new(Le=new WeakMap,Re=new WeakMap,ze=new WeakMap,class extends v{constructor(){super(),x(this,Le,!0),x(this,Re,void 0),x(this,ze,void 0),T(ze,this,e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}})}onSubscribe(){D(Re,this)||this.setEventListener(D(ze,this))}onUnsubscribe(){this.hasListeners()||(D(Re,this)?.call(this),T(Re,this,void 0))}setEventListener(e){T(ze,this,e),D(Re,this)?.call(this),T(Re,this,e(this.setOnline.bind(this)))}setOnline(e){D(Le,this)!==e&&(T(Le,this,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return D(Le,this)}});function Ve(e){return Math.min(1e3*2**e,3e4)}function He(e){return(e??`online`)===`online`?Be.isOnline():!0}var Ue=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function We(e){let t=!1,n=0,r,i=Ne(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Ue(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>re.isFocused()&&(e.networkMode===`always`||Be.isOnline())&&e.canRun(),u=()=>He(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(Me.isServer()?0:3),o=e.retryDelay??Ve,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&nl()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}S(),E(),O();var Ge,Ke=(Ge=new WeakMap,class{constructor(){x(this,Ge,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ue(this.gcTime)&&T(Ge,this,k.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Me.isServer()?1/0:300*1e3))}clearGcTimeout(){D(Ge,this)&&(k.clearTimeout(D(Ge,this)),T(Ge,this,void 0))}});function qe(e,t){y(e,t),t.add(e)}var Je=o((()=>{b()}));Je(),S(),E(),O(),w();var Ye,Xe,Ze,Qe,$e,et,tt,nt,rt=(Ye=new WeakMap,Xe=new WeakMap,Ze=new WeakMap,Qe=new WeakMap,$e=new WeakMap,et=new WeakMap,tt=new WeakMap,nt=new WeakSet,class extends Ke{constructor(e){super(),qe(this,nt),x(this,Ye,void 0),x(this,Xe,void 0),x(this,Ze,void 0),x(this,Qe,void 0),x(this,$e,void 0),x(this,et,void 0),x(this,tt,void 0),T(tt,this,!1),T(et,this,e.defaultOptions),this.setOptions(e.options),this.observers=[],T(Qe,this,e.client),T(Ze,this,D(Qe,this).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,T(Ye,this,ct(this.options)),this.state=e.state??D(Ye,this),this.scheduleGc()}get meta(){return this.options.meta}get promise(){return D($e,this)?.promise}setOptions(e){if(this.options={...D(et,this),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=ct(this.options);e.data!==void 0&&(this.setState(st(e.data,e.dataUpdatedAt)),T(Ye,this,e))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&D(Ze,this).remove(this)}setData(e,t){let n=Te(this.state.data,e,this.options);return C(nt,this,at).call(this,{data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){C(nt,this,at).call(this,{type:`setState`,state:e,setStateOptions:t})}cancel(e){let t=D($e,this)?.promise;return D($e,this)?.cancel(e),t?t.then(ce).catch(ce):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return D(Ye,this)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>fe(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Oe||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>j(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!de(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),D($e,this)?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),D($e,this)?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),D(Ze,this).notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(D($e,this)&&(D(tt,this)||C(nt,this,it).call(this)?D($e,this).cancel({revert:!0}):D($e,this).cancelRetry()),this.scheduleGc()),D(Ze,this).notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||C(nt,this,at).call(this,{type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&D($e,this)?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(D($e,this))return D($e,this).continueRetry(),D($e,this).promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(T(tt,this,!0),n.signal)})},i=()=>{let e=ke(this.options,t),n=(()=>{let e={client:D(Qe,this),queryKey:this.queryKey,meta:this.meta};return r(e),e})();return T(tt,this,!1),this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:D(Qe,this),state:this.state,fetchFn:i};return r(e),e})();this.options.behavior?.onFetch(a,this),T(Xe,this,this.state),(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&C(nt,this,at).call(this,{type:`fetch`,meta:a.fetchOptions?.meta}),T($e,this,We({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Ue&&e.revert&&this.setState({...D(Xe,this),fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{C(nt,this,at).call(this,{type:`failed`,failureCount:e,error:t})},onPause:()=>{C(nt,this,at).call(this,{type:`pause`})},onContinue:()=>{C(nt,this,at).call(this,{type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{let e=await D($e,this).start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),D(Ze,this).config.onSuccess?.(e,this),D(Ze,this).config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Ue){if(e.silent)return D($e,this).promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw C(nt,this,at).call(this,{type:`error`,error:e}),D(Ze,this).config.onError?.(e,this),D(Ze,this).config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}});function it(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}function at(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...ot(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...st(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return T(Xe,this,e.manual?n:void 0),n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),Ie.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),D(Ze,this).notify({query:this,type:`updated`,action:e})})}function ot(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:He(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function st(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function ct(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}Je(),S(),E(),O(),w();var lt,M,ut,dt,ft,pt,mt,ht,gt,_t,vt,yt,bt,xt,St,N,Ct=(lt=new WeakMap,M=new WeakMap,ut=new WeakMap,dt=new WeakMap,ft=new WeakMap,pt=new WeakMap,mt=new WeakMap,ht=new WeakMap,gt=new WeakMap,_t=new WeakMap,vt=new WeakMap,yt=new WeakMap,bt=new WeakMap,xt=new WeakMap,St=new WeakMap,N=new WeakSet,class extends v{constructor(e,t){super(),qe(this,N),x(this,lt,void 0),x(this,M,void 0),x(this,ut,void 0),x(this,dt,void 0),x(this,ft,void 0),x(this,pt,void 0),x(this,mt,void 0),x(this,ht,void 0),x(this,gt,void 0),x(this,_t,void 0),x(this,vt,void 0),x(this,yt,void 0),x(this,bt,void 0),x(this,xt,void 0),x(this,St,new Set),this.options=t,T(lt,this,e),T(ht,this,null),T(mt,this,Ne()),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(D(M,this).addObserver(this),Pt(D(M,this),this.options)?C(N,this,wt).call(this):this.updateResult(),C(N,this,Ot).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ft(D(M,this),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ft(D(M,this),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,C(N,this,kt).call(this),C(N,this,At).call(this),D(M,this).removeObserver(this)}setOptions(e){let t=this.options,n=D(M,this);if(this.options=D(lt,this).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof fe(this.options.enabled,D(M,this))!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);C(N,this,jt).call(this),D(M,this).setOptions(this.options),t._defaulted&&!be(this.options,t)&&D(lt,this).getQueryCache().notify({type:`observerOptionsUpdated`,query:D(M,this),observer:this});let r=this.hasListeners();r&&It(D(M,this),n,this.options,t)&&C(N,this,wt).call(this),this.updateResult(),r&&(D(M,this)!==n||fe(this.options.enabled,D(M,this))!==fe(t.enabled,D(M,this))||j(this.options.staleTime,D(M,this))!==j(t.staleTime,D(M,this)))&&C(N,this,Tt).call(this);let i=C(N,this,Et).call(this);r&&(D(M,this)!==n||fe(this.options.enabled,D(M,this))!==fe(t.enabled,D(M,this))||i!==D(xt,this))&&C(N,this,Dt).call(this,i)}getOptimisticResult(e){let t=D(lt,this).getQueryCache().build(D(lt,this),e),n=this.createResult(t,e);return Rt(this,n)&&(T(dt,this,n),T(pt,this,this.options),T(ft,this,D(M,this).state)),n}getCurrentResult(){return D(dt,this)}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&D(mt,this).status===`pending`&&D(mt,this).reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){D(St,this).add(e)}getCurrentQuery(){return D(M,this)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=D(lt,this).defaultQueryOptions(e),n=D(lt,this).getQueryCache().build(D(lt,this),t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return C(N,this,wt).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),D(dt,this)))}createResult(e,t){let n=D(M,this),r=this.options,i=D(dt,this),a=D(ft,this),o=D(pt,this),s=e===n?D(ut,this):e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Pt(e,t),o=i&&It(e,n,t,r);(a||o)&&(l={...l,...ot(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(D(vt,this)?.state.data,D(vt,this)):t.placeholderData,e!==void 0&&(m=`success`,d=Te(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===D(gt,this))d=D(_t,this);else try{T(gt,this,t.select),d=t.select(d),d=Te(i?.data,d,t),T(_t,this,d),T(ht,this,null)}catch(e){T(ht,this,e)}D(ht,this)&&(f=D(ht,this),d=D(_t,this),p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:Lt(e,t),refetch:this.refetch,promise:D(mt,this),isEnabled:fe(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{i(T(mt,this,x.promise=Ne()))},o=D(mt,this);switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a();break}}return x}updateResult(){let e=D(dt,this),t=this.createResult(D(M,this),this.options);T(ft,this,D(M,this).state),T(pt,this,this.options),D(ft,this).data!==void 0&&T(vt,this,D(M,this)),!be(t,e)&&(T(dt,this,t),C(N,this,Mt).call(this,{listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!D(St,this).size)return!0;let r=new Set(n??D(St,this));return this.options.throwOnError&&r.add(`error`),Object.keys(D(dt,this)).some(t=>{let n=t;return D(dt,this)[n]!==e[n]&&r.has(n)})})()}))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&C(N,this,Ot).call(this)}});function wt(e){C(N,this,jt).call(this);let t=D(M,this).fetch(this.options,e);return e?.throwOnError||(t=t.catch(ce)),t}function Tt(){C(N,this,kt).call(this);let e=j(this.options.staleTime,D(M,this));if(Me.isServer()||D(dt,this).isStale||!ue(e))return;let t=de(D(dt,this).dataUpdatedAt,e)+1;T(yt,this,k.setTimeout(()=>{D(dt,this).isStale||this.updateResult()},t))}function Et(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(D(M,this)):this.options.refetchInterval)??!1}function Dt(e){C(N,this,At).call(this),T(xt,this,e),!(Me.isServer()||fe(this.options.enabled,D(M,this))===!1||!ue(D(xt,this))||D(xt,this)===0)&&T(bt,this,k.setInterval(()=>{(this.options.refetchIntervalInBackground||re.isFocused())&&C(N,this,wt).call(this)},D(xt,this)))}function Ot(){C(N,this,Tt).call(this),C(N,this,Dt).call(this,C(N,this,Et).call(this))}function kt(){D(yt,this)&&(k.clearTimeout(D(yt,this)),T(yt,this,void 0))}function At(){D(bt,this)&&(k.clearInterval(D(bt,this)),T(bt,this,void 0))}function jt(){let e=D(lt,this).getQueryCache().build(D(lt,this),this.options);if(e===D(M,this))return;let t=D(M,this);T(M,this,e),T(ut,this,e.state),this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}function Mt(e){Ie.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(D(dt,this))}),D(lt,this).getQueryCache().notify({query:D(M,this),type:`observerResultsUpdated`})})}function Nt(e,t){return fe(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&t.retryOnMount===!1)}function Pt(e,t){return Nt(e,t)||e.state.data!==void 0&&Ft(e,t,t.refetchOnMount)}function Ft(e,t,n){if(fe(t.enabled,e)!==!1&&j(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&Lt(e,t)}return!1}function It(e,t,n,r){return(e!==t||fe(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Lt(e,n)}function Lt(e,t){return fe(t.enabled,e)!==!1&&e.isStaleByTime(j(t.staleTime,e))}function Rt(e,t){return!be(e.getCurrentResult(),t)}function zt(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{je(e,()=>t.signal,()=>n=!0)},u=ke(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject();if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?De:Ee;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?Vt:Bt,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Bt(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(ct.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function Bt(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Vt(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}Je(),S(),E(),O(),w();var Ht,Ut,Wt,Gt,Kt,qt=(Ht=new WeakMap,Ut=new WeakMap,Wt=new WeakMap,Gt=new WeakMap,Kt=new WeakSet,class extends Ke{constructor(e){super(),qe(this,Kt),x(this,Ht,void 0),x(this,Ut,void 0),x(this,Wt,void 0),x(this,Gt,void 0),T(Ht,this,e.client),this.mutationId=e.mutationId,T(Wt,this,e.mutationCache),T(Ut,this,[]),this.state=e.state||Yt(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){D(Ut,this).includes(e)||(D(Ut,this).push(e),this.clearGcTimeout(),D(Wt,this).notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){T(Ut,this,D(Ut,this).filter(t=>t!==e)),this.scheduleGc(),D(Wt,this).notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){D(Ut,this).length||(this.state.status===`pending`?this.scheduleGc():D(Wt,this).remove(this))}continue(){return D(Gt,this)?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{C(Kt,this,Jt).call(this,{type:`continue`})},n={client:D(Ht,this),meta:this.options.meta,mutationKey:this.options.mutationKey};T(Gt,this,We({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{C(Kt,this,Jt).call(this,{type:`failed`,failureCount:e,error:t})},onPause:()=>{C(Kt,this,Jt).call(this,{type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>D(Wt,this).canRun(this)}));let r=this.state.status===`pending`,i=!D(Gt,this).canStart();try{if(r)t();else{C(Kt,this,Jt).call(this,{type:`pending`,variables:e,isPaused:i}),D(Wt,this).config.onMutate&&await D(Wt,this).config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&C(Kt,this,Jt).call(this,{type:`pending`,context:t,variables:e,isPaused:i})}let a=await D(Gt,this).start();return await D(Wt,this).config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await D(Wt,this).config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),C(Kt,this,Jt).call(this,{type:`success`,data:a}),a}catch(t){try{await D(Wt,this).config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await D(Wt,this).config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw C(Kt,this,Jt).call(this,{type:`error`,error:t}),t}finally{D(Wt,this).runNext(this)}}});function Jt(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),Ie.batch(()=>{D(Ut,this).forEach(t=>{t.onMutationUpdate(e)}),D(Wt,this).notify({mutation:this,type:`updated`,action:e})})}function Yt(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}S(),E(),O();var Xt,Zt,Qt,$t=(Xt=new WeakMap,Zt=new WeakMap,Qt=new WeakMap,class extends v{constructor(e={}){super(),x(this,Xt,void 0),x(this,Zt,void 0),x(this,Qt,void 0),this.config=e,T(Xt,this,new Set),T(Zt,this,new Map),T(Qt,this,0)}build(e,t,n){var r;let i=new qt({client:e,mutationCache:this,mutationId:T(Qt,this,(r=D(Qt,this),++r)),options:e.defaultMutationOptions(t),state:n});return this.add(i),i}add(e){D(Xt,this).add(e);let t=en(e);if(typeof t==`string`){let n=D(Zt,this).get(t);n?n.push(e):D(Zt,this).set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(D(Xt,this).delete(e)){let t=en(e);if(typeof t==`string`){let n=D(Zt,this).get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&D(Zt,this).delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=en(e);if(typeof t==`string`){let n=D(Zt,this).get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=en(e);return typeof t==`string`?(D(Zt,this).get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Ie.batch(()=>{D(Xt,this).forEach(e=>{this.notify({type:`removed`,mutation:e})}),D(Xt,this).clear(),D(Zt,this).clear()})}getAll(){return Array.from(D(Xt,this))}find(e){let t={exact:!0,...e};return this.getAll().find(e=>me(t,e))}findAll(e={}){return this.getAll().filter(t=>me(e,t))}notify(e){Ie.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Ie.batch(()=>Promise.all(e.map(e=>e.continue().catch(ce))))}});function en(e){return e.options.scope?.id}Je(),S(),E(),w(),O();var tn,nn,rn,an,on,sn=(tn=new WeakMap,nn=new WeakMap,rn=new WeakMap,an=new WeakMap,on=new WeakSet,class extends v{constructor(e,t){super(),qe(this,on),x(this,tn,void 0),x(this,nn,void 0),x(this,rn,void 0),x(this,an,void 0),T(tn,this,e),this.setOptions(t),this.bindMethods(),C(on,this,cn).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=D(tn,this).defaultMutationOptions(e),be(this.options,t)||D(tn,this).getMutationCache().notify({type:`observerOptionsUpdated`,mutation:D(rn,this),observer:this}),t?.mutationKey&&this.options.mutationKey&&ge(t.mutationKey)!==ge(this.options.mutationKey)?this.reset():D(rn,this)?.state.status===`pending`&&D(rn,this).setOptions(this.options)}onUnsubscribe(){this.hasListeners()||D(rn,this)?.removeObserver(this)}onMutationUpdate(e){C(on,this,cn).call(this),C(on,this,ln).call(this,e)}getCurrentResult(){return D(nn,this)}reset(){D(rn,this)?.removeObserver(this),T(rn,this,void 0),C(on,this,cn).call(this),C(on,this,ln).call(this)}mutate(e,t){return T(an,this,t),D(rn,this)?.removeObserver(this),T(rn,this,D(tn,this).getMutationCache().build(D(tn,this),this.options)),D(rn,this).addObserver(this),D(rn,this).execute(e)}});function cn(){let e=D(rn,this)?.state??Yt();T(nn,this,{...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset})}function ln(e){Ie.batch(()=>{if(D(an,this)&&this.hasListeners()){let t=D(nn,this).variables,n=D(nn,this).context,r={client:D(tn,this),meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{D(an,this).onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{D(an,this).onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{D(an,this).onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{D(an,this).onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(D(nn,this))})})}S(),E(),O();var un,dn=(un=new WeakMap,class extends v{constructor(e={}){super(),x(this,un,void 0),this.config=e,T(un,this,new Map)}build(e,t,n){let r=t.queryKey,i=t.queryHash??he(r,t),a=this.get(i);return a||(a=new rt({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){D(un,this).has(e.queryHash)||(D(un,this).set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=D(un,this).get(e.queryHash);t&&(e.destroy(),t===e&&D(un,this).delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Ie.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return D(un,this).get(e)}getAll(){return[...D(un,this).values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>pe(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>pe(e,t)):t}notify(e){Ie.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Ie.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Ie.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}});S(),E(),O();var fn,pn,mn,hn,gn,_n,vn,yn,bn=(fn=new WeakMap,pn=new WeakMap,mn=new WeakMap,hn=new WeakMap,gn=new WeakMap,_n=new WeakMap,vn=new WeakMap,yn=new WeakMap,class{constructor(e={}){x(this,fn,void 0),x(this,pn,void 0),x(this,mn,void 0),x(this,hn,void 0),x(this,gn,void 0),x(this,_n,void 0),x(this,vn,void 0),x(this,yn,void 0),T(fn,this,e.queryCache||new dn),T(pn,this,e.mutationCache||new $t),T(mn,this,e.defaultOptions||{}),T(hn,this,new Map),T(gn,this,new Map),T(_n,this,0)}mount(){var e;T(_n,this,(e=D(_n,this),e++,e)),D(_n,this)===1&&(T(vn,this,re.subscribe(async e=>{e&&(await this.resumePausedMutations(),D(fn,this).onFocus())})),T(yn,this,Be.subscribe(async e=>{e&&(await this.resumePausedMutations(),D(fn,this).onOnline())})))}unmount(){var e;T(_n,this,(e=D(_n,this),e--,e)),D(_n,this)===0&&(D(vn,this)?.call(this),T(vn,this,void 0),D(yn,this)?.call(this),T(yn,this,void 0))}isFetching(e){return D(fn,this).findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return D(pn,this).findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return D(fn,this).get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=D(fn,this).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(j(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return D(fn,this).findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=D(fn,this).get(r.queryHash)?.state.data,a=le(t,i);if(a!==void 0)return D(fn,this).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Ie.batch(()=>D(fn,this).findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return D(fn,this).get(t.queryHash)?.state}removeQueries(e){let t=D(fn,this);Ie.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=D(fn,this);return Ie.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=Ie.batch(()=>D(fn,this).findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(ce).catch(ce)}invalidateQueries(e,t={}){return Ie.batch(()=>(D(fn,this).findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ie.batch(()=>D(fn,this).findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(ce)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(ce)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=D(fn,this).build(this,t);return n.isStaleByTime(j(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ce).catch(ce)}fetchInfiniteQuery(e){return e.behavior=zt(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ce).catch(ce)}ensureInfiniteQueryData(e){return e.behavior=zt(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Be.isOnline()?D(pn,this).resumePausedMutations():Promise.resolve()}getQueryCache(){return D(fn,this)}getMutationCache(){return D(pn,this)}getDefaultOptions(){return D(mn,this)}setDefaultOptions(e){T(mn,this,e)}setQueryDefaults(e,t){D(hn,this).set(ge(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...D(hn,this).values()],n={};return t.forEach(t=>{_e(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){D(gn,this).set(ge(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...D(gn,this).values()],n={};return t.forEach(t=>{_e(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...D(mn,this).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=he(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===Oe&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...D(mn,this).mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){D(fn,this).clear(),D(pn,this).clear()}}),xn=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Sn=s(((e,t)=>{t.exports=xn()})),P=l(d(),1),F=Sn(),Cn=P.createContext(void 0),wn=e=>{let t=P.useContext(Cn);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Tn=({client:e,children:t})=>(P.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,F.jsx)(Cn.Provider,{value:e,children:t})),En=P.createContext(!1),Dn=()=>P.useContext(En);En.Provider;function On(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var kn=P.createContext(On()),An=()=>P.useContext(kn),jn=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?Ae(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Mn=e=>{P.useEffect(()=>{e.clearReset()},[e])},Nn=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||Ae(n,[e.error,r])),Pn=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},Fn=(e,t)=>e.isLoading&&e.isFetching&&!t,In=(e,t)=>e?.suspense&&t.isPending,Ln=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Rn(e,t,n){let r=Dn(),i=An(),a=wn(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash);o._optimisticResults=r?`isRestoring`:`optimistic`,Pn(o),jn(o,i,s),Mn(i);let c=!a.getQueryCache().get(o.queryHash),[l]=P.useState(()=>new t(a,o)),u=l.getOptimisticResult(o),d=!r&&e.subscribed!==!1;if(P.useSyncExternalStore(P.useCallback(e=>{let t=d?l.subscribe(Ie.batchCalls(e)):ce;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),P.useEffect(()=>{l.setOptions(o)},[o,l]),In(o,u))throw Ln(o,l,i);if(Nn({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw u.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,u),o.experimental_prefetchInRender&&!Me.isServer()&&Fn(u,r)&&(c?Ln(o,l,i):s?.promise)?.catch(ce).finally(()=>{l.updateResult()}),o.notifyOnChangeProps?u:l.trackResult(u)}function zn(e,t){return Rn(e,Ct,t)}function Bn(e,t){let n=wn(t),[r]=P.useState(()=>new sn(n,e));P.useEffect(()=>{r.setOptions(e)},[r,e]);let i=P.useSyncExternalStore(P.useCallback(e=>r.subscribe(Ie.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=P.useCallback((e,t)=>{r.mutate(e,t).catch(ce)},[r]);if(i.error&&Ae(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var Vn=l(h()),Hn=_();function Un(){return Un=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function er(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=Wn.Pop,c=null,l=u();l??(l=0,o.replaceState(Un({},o.state,{idx:l}),``));function u(){return(o.state||{idx:null}).idx}function d(){s=Wn.Pop;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=Wn.Push;let r=Zn(h.location,e,t);n&&n(r,e),l=u()+1;let d=Xn(r,l),f=h.createHref(r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=Wn.Replace;let r=Zn(h.location,e,t);n&&n(r,e),l=u();let i=Xn(r,l),d=h.createHref(r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){let t=i.location.origin===`null`?i.location.href:i.location.origin,n=typeof e==`string`?e:Qn(e);return n=n.replace(/ $/,`%20`),qn(t,`No window.location.(origin|href) available to create URL for href: `+n),new URL(n,t)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(Gn,d),c=e,()=>{i.removeEventListener(Gn,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}var tr;(function(e){e.data=`data`,e.deferred=`deferred`,e.redirect=`redirect`,e.error=`error`})(tr||(tr={}));function nr(e,t,n){return n===void 0&&(n=`/`),rr(e,t,n,!1)}function rr(e,t,n,r){let i=br((typeof t==`string`?$n(t):t).pathname||`/`,n);if(i==null)return null;let a=ir(e);or(a);let o=null,s=yr(i);for(let e=0;o==null&&e{let o={relativePath:a===void 0?e.path||``:a,caseSensitive:e.caseSensitive===!0,childrenIndex:i,route:e};o.relativePath.startsWith(`/`)&&(qn(o.relativePath.startsWith(r),`Absolute route path "`+o.relativePath+`" nested under path `+(`"`+r+`" is not valid. An absolute child route path `)+`must start with the combined path of all its parent routes.`),o.relativePath=o.relativePath.slice(r.length));let s=Ar([r,o.relativePath]),c=n.concat(o);e.children&&e.children.length>0&&(qn(e.index!==!0,`Index routes must not have child routes. Please remove `+(`all child routes from route path "`+s+`".`)),ir(e.children,t,c,s)),!(e.path==null&&!e.index)&&t.push({path:s,score:mr(s,e.index),routesMeta:c})};return e.forEach((e,t)=>{var n;if(e.path===``||!((n=e.path)!=null&&n.includes(`?`)))i(e,t);else for(let n of ar(e.path))i(e,t,n)}),t}function ar(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=ar(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function or(e){e.sort((e,t)=>e.score===t.score?hr(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var sr=/^:[\w-]+$/,cr=3,lr=2,ur=1,dr=10,fr=-2,pr=e=>e===`*`;function mr(e,t){let n=e.split(`/`),r=n.length;return n.some(pr)&&(r+=fr),t&&(r+=lr),n.filter(e=>!pr(e)).reduce((e,t)=>e+(sr.test(t)?cr:t===``?ur:dr),r)}function hr(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function gr(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e{let{paramName:r,isOptional:i}=t;if(r===`*`){let e=s[n]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let c=s[n];return i&&!c?e[r]=void 0:e[r]=(c||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function vr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Jn(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "`+e+`" will be treated as if it were `+(`"`+e.replace(/\*$/,`/*`)+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+(`please change the route path to "`+e.replace(/\*$/,`/*`)+`".`));let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:n!=null}),n?`/?([^\\/]+)?`:`/([^\\/]+)`));return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function yr(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return Jn(!1,`The URL path "`+e+`" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent `+(`encoding (`+t+`).`)),e}}function br(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}var xr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Sr=e=>xr.test(e);function Cr(e,t){t===void 0&&(t=`/`);let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?$n(e):e,a;if(n)if(Sr(n))a=n;else{if(n.includes(`//`)){let e=n;n=kr(n),Jn(!1,`Pathnames cannot have embedded double slashes - normalizing `+(e+` -> `+n))}a=n.startsWith(`/`)?wr(n.substring(1),`/`):wr(n,t)}else a=t;return{pathname:a,search:Mr(r),hash:Nr(i)}}function wr(e,t){let n=t.replace(/\/+$/,``).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Tr(e,t,n,r){return`Cannot include a '`+e+`' character in a manually specified `+("`to."+t+"` field ["+JSON.stringify(r)+`]. Please separate it out to the `)+("`to."+n+"` field. Alternatively you may provide the full path as ")+`a string in and the router will parse it for you.`}function Er(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Dr(e,t){let n=Er(e);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function Or(e,t,n,r){r===void 0&&(r=!1);let i;typeof e==`string`?i=$n(e):(i=Un({},e),qn(!i.pathname||!i.pathname.includes(`?`),Tr(`?`,`pathname`,`search`,i)),qn(!i.pathname||!i.pathname.includes(`#`),Tr(`#`,`pathname`,`hash`,i)),qn(!i.search||!i.search.includes(`#`),Tr(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=Cr(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var kr=e=>e.replace(/\/\/+/g,`/`),Ar=e=>kr(e.join(`/`)),jr=e=>e.replace(/\/+$/,``).replace(/^\/*/,`/`),Mr=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Nr=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e;function Pr(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}var Fr=[`post`,`put`,`patch`,`delete`];new Set(Fr);var Ir=[`get`,...Fr];new Set(Ir);function Lr(){return Lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),P.useCallback(function(n,i){if(i===void 0&&(i={}),!s.current)return;if(typeof n==`number`){r.go(n);return}let c=Or(n,JSON.parse(o),a,i.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Ar([t,c.pathname])),(i.replace?r.replace:r.push)(c,i.state,i)},[t,r,o,a,e])}function Xr(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=P.useContext(Br),{matches:i}=P.useContext(Hr),{pathname:a}=Kr(),o=JSON.stringify(Dr(i,r.v7_relativeSplatPath));return P.useMemo(()=>Or(e,JSON.parse(o),a,n===`path`),[e,o,a,n])}function Zr(e,t){return Qr(e,t)}function Qr(e,t,n,r){!Gr()&&qn(!1);let{navigator:i}=P.useContext(Br),{matches:a}=P.useContext(Hr),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:`/`;o&&o.route;let l=Kr(),u;if(t){let e=typeof t==`string`?$n(t):t;!(c===`/`||e.pathname?.startsWith(c))&&qn(!1),u=e}else u=l;let d=u.pathname||`/`,f=d;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);f=`/`+d.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let p=nr(e,{pathname:f}),m=ri(p&&p.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:Ar([c,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Ar([c,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),a,n,r);return t&&m?P.createElement(Vr.Provider,{value:{location:Lr({pathname:`/`,search:``,hash:``,state:null,key:`default`},u),navigationType:Wn.Pop}},m):m}function $r(){let e=ui(),t=Pr(e)?e.status+` `+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return P.createElement(P.Fragment,null,P.createElement(`h2`,null,`Unexpected Application Error!`),P.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?P.createElement(`pre`,{style:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},n):null,null)}var ei=P.createElement($r,null),ti=class extends P.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error(`React Router caught the following error during render`,e,t)}render(){return this.state.error===void 0?this.props.children:P.createElement(Hr.Provider,{value:this.props.routeContext},P.createElement(Ur.Provider,{value:this.state.error,children:this.props.component}))}};function ni(e){let{routeContext:t,match:n,children:r}=e,i=P.useContext(Rr);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),P.createElement(Hr.Provider,{value:t},r)}function ri(e,t,n,r){if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,o=n?.errors;if(o!=null){let e=a.findIndex(e=>e.route.id&&o?.[e.route.id]!==void 0);!(e>=0)&&qn(!1),a=a.slice(0,Math.min(a.length,e+1))}let s=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e=0?a.slice(0,c+1):[a[0]];break}}}return a.reduceRight((e,r,i)=>{let l,u=!1,d=null,f=null;n&&(l=o&&r.route.id?o[r.route.id]:void 0,d=r.route.errorElement||ei,s&&(c<0&&i===0?(pi(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),u=!0,f=null):c===i&&(u=!0,f=r.route.hydrateFallbackElement||null)));let p=t.concat(a.slice(0,i+1)),m=()=>{let t;return t=l?d:u?f:r.route.Component?P.createElement(r.route.Component,null):r.route.element?r.route.element:e,P.createElement(ni,{match:r,routeContext:{outlet:e,matches:p,isDataRoute:n!=null},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||i===0)?P.createElement(ti,{location:n.location,revalidation:n.revalidation,component:d,error:l,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()},null)}var ii=function(e){return e.UseBlocker=`useBlocker`,e.UseRevalidator=`useRevalidator`,e.UseNavigateStable=`useNavigate`,e}(ii||{}),ai=function(e){return e.UseBlocker=`useBlocker`,e.UseLoaderData=`useLoaderData`,e.UseActionData=`useActionData`,e.UseRouteError=`useRouteError`,e.UseNavigation=`useNavigation`,e.UseRouteLoaderData=`useRouteLoaderData`,e.UseMatches=`useMatches`,e.UseRevalidator=`useRevalidator`,e.UseNavigateStable=`useNavigate`,e.UseRouteId=`useRouteId`,e}(ai||{});function oi(e){let t=P.useContext(Rr);return!t&&qn(!1),t}function si(e){let t=P.useContext(zr);return!t&&qn(!1),t}function ci(e){let t=P.useContext(Hr);return!t&&qn(!1),t}function li(e){let t=ci(e),n=t.matches[t.matches.length-1];return!n.route.id&&qn(!1),n.route.id}function ui(){let e=P.useContext(Ur),t=si(ai.UseRouteError),n=li(ai.UseRouteError);return e===void 0?t.errors?.[n]:e}function di(){let{router:e}=oi(ii.UseNavigateStable),t=li(ai.UseNavigateStable),n=P.useRef(!1);return qr(()=>{n.current=!0}),P.useCallback(function(r,i){i===void 0&&(i={}),n.current&&(typeof r==`number`?e.navigate(r):e.navigate(r,Lr({fromRouteId:t},i)))},[e,t])}var fi={};function pi(e,t,n){!t&&!fi[e]&&(fi[e]=!0)}var mi=(e,t,n)=>(``+t+("You can use the `"+e+"` future flag to opt-in early. ")+(`For more information, see `+n+`.`),void 0);function hi(e,t){e?.v7_startTransition===void 0&&mi(`v7_startTransition`,"React Router will begin wrapping state updates in `React.startTransition` in v7",`https://reactrouter.com/v6/upgrading/future#v7_starttransition`),e?.v7_relativeSplatPath===void 0&&(!t||t.v7_relativeSplatPath===void 0)&&mi(`v7_relativeSplatPath`,`Relative route resolution within Splat routes is changing in v7`,`https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath`),t&&(t.v7_fetcherPersist===void 0&&mi(`v7_fetcherPersist`,`The persistence behavior of fetchers is changing in v7`,`https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist`),t.v7_normalizeFormMethod===void 0&&mi(`v7_normalizeFormMethod`,"Casing of `formMethod` fields is being normalized to uppercase in v7",`https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod`),t.v7_partialHydration===void 0&&mi(`v7_partialHydration`,"`RouterProvider` hydration behavior is changing in v7",`https://reactrouter.com/v6/upgrading/future#v7_partialhydration`),t.v7_skipActionErrorRevalidation===void 0&&mi(`v7_skipActionErrorRevalidation`,"The revalidation behavior after 4xx/5xx `action` responses is changing in v7",`https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation`))}function gi(e){let{to:t,replace:n,state:r,relative:i}=e;!Gr()&&qn(!1);let{future:a,static:o}=P.useContext(Br),{matches:s}=P.useContext(Hr),{pathname:c}=Kr(),l=Jr(),u=Or(t,Dr(s,a.v7_relativeSplatPath),c,i===`path`),d=JSON.stringify(u);return P.useEffect(()=>l(JSON.parse(d),{replace:n,state:r,relative:i}),[l,d,i,n,r]),null}function _i(e){qn(!1)}function vi(e){let{basename:t=`/`,children:n=null,location:r,navigationType:i=Wn.Pop,navigator:a,static:o=!1,future:s}=e;Gr()&&qn(!1);let c=t.replace(/^\/*/,`/`),l=P.useMemo(()=>({basename:c,navigator:a,static:o,future:Lr({v7_relativeSplatPath:!1},s)}),[c,s,a,o]);typeof r==`string`&&(r=$n(r));let{pathname:u=`/`,search:d=``,hash:f=``,state:p=null,key:m=`default`}=r,h=P.useMemo(()=>{let e=br(u,c);return e==null?null:{location:{pathname:e,search:d,hash:f,state:p,key:m},navigationType:i}},[c,u,d,f,p,m,i]);return h==null?null:P.createElement(Br.Provider,{value:l},P.createElement(Vr.Provider,{children:n,value:h}))}function yi(e){let{children:t,location:n}=e;return Zr(xi(t),n)}var bi=function(e){return e[e.pending=0]=`pending`,e[e.success=1]=`success`,e[e.error=2]=`error`,e}(bi||{});new Promise(()=>{}),P.Component;function xi(e,t){t===void 0&&(t=[]);let n=[];return P.Children.forEach(e,(e,r)=>{if(!P.isValidElement(e))return;let i=[...t,r];if(e.type===P.Fragment){n.push.apply(n,xi(e.props.children,i));return}e.type!==_i&&qn(!1),!(!e.props.index||!e.props.children)&&qn(!1);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=xi(e.props.children,i)),n.push(a)}),n}function Si(){return Si=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function Di(e,t){let n=Ei(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var Oi=[`onClick`,`relative`,`reloadDocument`,`replace`,`state`,`target`,`to`,`preventScrollReset`,`viewTransition`],ki=[`aria-current`,`caseSensitive`,`className`,`end`,`style`,`to`,`viewTransition`,`children`],Ai=`6`;try{window.__reactRouterVersion=Ai}catch{}var ji=P.createContext({isTransitioning:!1}),Mi=P.startTransition;function Ni(e){let{basename:t,children:n,future:r,window:i}=e,a=P.useRef();a.current??(a.current=Kn({window:i,v5Compat:!0}));let o=a.current,[s,c]=P.useState({action:o.action,location:o.location}),{v7_startTransition:l}=r||{},u=P.useCallback(e=>{l&&Mi?Mi(()=>c(e)):c(e)},[c,l]);return P.useLayoutEffect(()=>o.listen(u),[o,u]),P.useEffect(()=>hi(r),[r]),P.createElement(vi,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o,future:r})}var Pi=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Fi=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ii=P.forwardRef(function(e,t){let{onClick:n,relative:r,reloadDocument:i,replace:a,state:o,target:s,to:c,preventScrollReset:l,viewTransition:u}=e,d=Ci(e,Oi),{basename:f}=P.useContext(Br),p,m=!1;if(typeof c==`string`&&Fi.test(c)&&(p=c,Pi))try{let e=new URL(window.location.href),t=c.startsWith(`//`)?new URL(e.protocol+c):new URL(c),n=br(t.pathname,f);t.origin===e.origin&&n!=null?c=n+t.search+t.hash:m=!0}catch{}let h=Wr(c,{relative:r}),g=zi(c,{replace:a,state:o,target:s,preventScrollReset:l,relative:r,viewTransition:u});function _(e){n&&n(e),e.defaultPrevented||g(e)}return P.createElement(`a`,Si({},d,{href:p||h,onClick:m||i?n:_,ref:t,target:s}))}),I=P.forwardRef(function(e,t){let{"aria-current":n=`page`,caseSensitive:r=!1,className:i=``,end:a=!1,style:o,to:s,viewTransition:c,children:l}=e,u=Ci(e,ki),d=Xr(s,{relative:u.relative}),f=Kr(),p=P.useContext(zr),{navigator:m,basename:h}=P.useContext(Br),g=p!=null&&Vi(d)&&c===!0,_=m.encodeLocation?m.encodeLocation(d).pathname:d.pathname,v=f.pathname,y=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;r||(v=v.toLowerCase(),y=y?y.toLowerCase():null,_=_.toLowerCase()),y&&h&&(y=br(y,h)||y);let b=_!==`/`&&_.endsWith(`/`)?_.length-1:_.length,x=v===_||!a&&v.startsWith(_)&&v.charAt(b)===`/`,S=y!=null&&(y===_||!a&&y.startsWith(_)&&y.charAt(_.length)===`/`),C={isActive:x,isPending:S,isTransitioning:g},w=x?n:void 0,T;T=typeof i==`function`?i(C):[i,x?`active`:null,S?`pending`:null,g?`transitioning`:null].filter(Boolean).join(` `);let E=typeof o==`function`?o(C):o;return P.createElement(Ii,Si({},u,{"aria-current":w,className:T,ref:t,style:E,to:s,viewTransition:c}),typeof l==`function`?l(C):l)}),L;(function(e){e.UseScrollRestoration=`useScrollRestoration`,e.UseSubmit=`useSubmit`,e.UseSubmitFetcher=`useSubmitFetcher`,e.UseFetcher=`useFetcher`,e.useViewTransitionState=`useViewTransitionState`})(L||(L={}));var Li;(function(e){e.UseFetcher=`useFetcher`,e.UseFetchers=`useFetchers`,e.UseScrollRestoration=`useScrollRestoration`})(Li||(Li={}));function Ri(e){let t=P.useContext(Rr);return!t&&qn(!1),t}function zi(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o,viewTransition:s}=t===void 0?{}:t,c=Jr(),l=Kr(),u=Xr(e,{relative:o});return P.useCallback(t=>{Ti(t,n)&&(t.preventDefault(),c(e,{replace:r===void 0?Qn(l)===Qn(u):r,state:i,preventScrollReset:a,relative:o,viewTransition:s}))},[l,c,u,r,i,n,e,a,o,s])}function Bi(e){let t=P.useRef(Ei(e)),n=P.useRef(!1),r=Kr(),i=P.useMemo(()=>Di(r.search,n.current?null:t.current),[r.search]),a=Jr();return[i,P.useCallback((e,t)=>{let r=Ei(typeof e==`function`?e(i):e);n.current=!0,a(`?`+r,t)},[a,i])]}function Vi(e,t){t===void 0&&(t={});let n=P.useContext(ji);n??qn(!1);let{basename:r}=Ri(L.useViewTransitionState),i=Xr(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=br(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=br(n.nextLocation.pathname,r)||n.nextLocation.pathname;return _r(i.pathname,o)!=null||_r(i.pathname,a)!=null}var Hi=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},Ui=(e=>e?Hi(e):Hi),Wi=e=>e;function Gi(e,t=Wi){let n=P.useSyncExternalStore(e.subscribe,P.useCallback(()=>t(e.getState()),[e,t]),P.useCallback(()=>t(e.getInitialState()),[e,t]));return P.useDebugValue(n),n}var Ki=e=>{let t=Ui(e),n=e=>Gi(t,e);return Object.assign(n,t),n},qi=(e=>e?Ki(e):Ki),Ji=`anyllm_admin_token`;function Yi(){try{let e=new URLSearchParams(window.location.search),t=e.get(`token`);if(!t)return null;e.delete(`token`);let n=e.toString(),r=window.location.pathname+(n?`?${n}`:``)+window.location.hash;return window.history.replaceState(null,``,r),t}catch{return null}}function Xi(){let e=Yi();if(e)return Zi(e),e;try{return window.sessionStorage.getItem(Ji)}catch{return null}}function Zi(e){try{window.sessionStorage.setItem(Ji,e)}catch{}}function Qi(){try{window.sessionStorage.removeItem(Ji)}catch{}}var $i=qi(e=>({token:Xi(),login(t){Zi(t),e({token:t})},logout(){Qi(),e({token:null})}})),ea=qi(e=>({status:`disconnected`,lastEvent:null,setStatus:t=>e({status:t}),pushEvent:t=>e({lastEvent:t})})),ta=3e4,na=1e3,R=null,ra=null,ia=0,aa=!1;function oa(){aa=!1,!(R&&(R.readyState===WebSocket.OPEN||R.readyState===WebSocket.CONNECTING))&&ca()}function sa(){aa=!0,ra&&clearTimeout(ra),R?.close(),R=null,ea.getState().setStatus(`disconnected`)}function ca(){if(aa)return;let e=$i.getState().token;if(!e)return;ea.getState().setStatus(`connecting`);let t=location.protocol===`https:`?`wss:`:`ws:`;R=new WebSocket(`${t}//${location.host}/admin/ws`),R.onopen=()=>{R.send(JSON.stringify({token:e}))},R.onmessage=e=>{let t;try{t=JSON.parse(e.data)}catch{return}if(typeof t==`object`&&t&&`status`in t&&t.status===`authenticated`){ia=0,ea.getState().setStatus(`connected`);return}typeof t==`object`&&t&&`type`in t&&ea.getState().pushEvent(t)},R.onclose=()=>{if(aa)return;ea.getState().setStatus(`disconnected`);let e=Math.min(na*2**ia,ta);ia++,ra=setTimeout(ca,e)},R.onerror=()=>{R?.close()}}var la=5,ua=4e3,da=1,fa=qi(e=>({toasts:[],push({variant:t,message:n,ttlMs:r}){let i=da++,a=r===void 0?t===`error`?null:ua:r;return e(e=>{let r=[...e.toasts,{id:i,variant:t,message:n,ttlMs:a}];return{toasts:r.length>la?r.slice(-5):r}}),i},dismiss(t){e(e=>({toasts:e.toasts.filter(e=>e.id!==t)}))},clear(){e({toasts:[]})}}));function pa(e){return fa.getState().push(e)}function ma(){let e=Promise.resolve();return function(t){let n=e.then(t,t);return e=n.catch(()=>void 0),n}}var ha=ma();async function ga(e,t){let n=await e(`/admin/csrf-token`,{headers:{Authorization:`Bearer ${t()}`}});if(!n.ok)throw Error(`Failed to fetch CSRF token`);let r=await n.json();if(typeof r.csrf_token!=`string`)throw Error(`Failed to fetch CSRF token`);return r.csrf_token}function _a(e,t,n){return{Authorization:`Bearer ${t}`,"X-CSRF-Token":e,...n?{"Content-Type":n}:{}}}function va(e){return e.status===204||e.headers.get(`content-length`)===`0`}async function ya(e,t,n,r,i){let a=async a=>i.fetchImpl(t,{method:e,headers:_a(a,i.getToken(),r),body:n}),o=await ga(i.fetchImpl,i.getToken),s=await a(o);if(s.status===403&&(o=await ga(i.fetchImpl,i.getToken),s=await a(o)),await i.handleAuthAndErrors(s),!va(s))return s.json()}function ba(e){"@babel/helpers - typeof";return ba=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ba(e)}var xa=o((()=>{}));function Sa(e,t){if(ba(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(ba(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Ca=o((()=>{xa()}));function wa(e){var t=Sa(e,`string`);return ba(t)==`symbol`?t:t+``}var Ta=o((()=>{xa(),Ca()}));function Ea(e,t,n){return(t=wa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}o((()=>{Ta()}))();function Da(){return $i.getState().token??``}var Oa=class extends Error{constructor(e){super(`Rate limited. Retry in ${e}s.`),Ea(this,`retryAfterSeconds`,void 0),this.name=`RateLimitError`,this.retryAfterSeconds=e}};function ka(e){let t=e.headers.get(`retry-after`);if(!t)return 1;let n=Number(t);if(Number.isFinite(n)&&n>0)return Math.ceil(n);let r=Date.parse(t);return Number.isNaN(r)?1:Math.max(1,Math.ceil((r-Date.now())/1e3))}async function Aa(e){if(e.status===401)throw $i.getState().logout(),Error(`Unauthorized`);if(e.status===429){let t=ka(e);throw pa({variant:`warn`,message:`Admin API rate-limited. Retry in ${t}s.`,ttlMs:t*1e3}),new Oa(t)}if(!e.ok){let t=await e.text().catch(()=>e.statusText);throw Error(t||`HTTP ${e.status}`)}}async function ja(e,t){let n=await fetch(e,{...t,headers:{Authorization:`Bearer ${Da()}`,...t?.headers??{}}});return await Aa(n),n.json()}async function Ma(e,t,n,r){return ha(()=>ya(e,t,n,r,{fetchImpl:(e,t)=>fetch(e,t),getToken:Da,handleAuthAndErrors:Aa}))}function Na(e,t,n){return Ma(e,t,n===void 0?void 0:JSON.stringify(n),n===void 0?void 0:`application/json`)}function Pa(e,t){return Ma(`POST`,e,t)}function Fa(e=!0){return zn({queryKey:[`status`],queryFn:()=>ja(`/admin/api/status`),enabled:e,staleTime:1/0})}function Ia(){return zn({queryKey:[`metrics`],queryFn:()=>ja(`/admin/api/metrics`),refetchInterval:5e3,staleTime:0})}function La(e,t){return zn({queryKey:[`observability`,e,t],queryFn:()=>ja(`/admin/api/observability/overview?window=${e}&backend=${encodeURIComponent(t)}`),refetchInterval:3e4,staleTime:0})}function Ra(e){let t=new URLSearchParams;return t.set(`limit`,String(e.page_size)),t.set(`offset`,String((e.page-1)*e.page_size)),e.backend&&t.set(`backend`,e.backend),e.status&&t.set(`status`,e.status),e.since&&t.set(`since`,e.since),e.until&&t.set(`until`,e.until),e.model&&t.set(`model`,e.model),zn({queryKey:[`requests`,e],queryFn:()=>ja(`/admin/api/requests?${t}`),staleTime:1/0})}function za(){return zn({queryKey:[`keys`],queryFn:()=>ja(`/admin/api/keys`).then(e=>e.keys),staleTime:1/0})}function Ba(){let e=wn();return Bn({mutationFn:e=>Na(`POST`,`/admin/api/keys`,e),onSuccess:()=>{e.invalidateQueries({queryKey:[`keys`]})}})}function Va(){let e=wn();return Bn({mutationFn:({id:e,body:t})=>Na(`PUT`,`/admin/api/keys/${e}`,t),onSuccess:()=>{e.invalidateQueries({queryKey:[`keys`]})}})}function Ha(){let e=wn();return Bn({mutationFn:e=>Na(`DELETE`,`/admin/api/keys/${e}`),onSuccess:()=>{e.invalidateQueries({queryKey:[`keys`]})}})}function Ua(){return zn({queryKey:[`backends`],queryFn:()=>ja(`/admin/api/backends`).then(e=>e.backends),staleTime:1/0})}function Wa(){return zn({queryKey:[`config`],queryFn:()=>Promise.all([ja(`/admin/api/config`),ja(`/admin/api/config/overrides`)]).then(([e,t])=>({...e,entries:t.overrides??[],env:{}})),staleTime:1/0})}function Ga(){let e=wn();return Bn({mutationFn:e=>Na(`PUT`,`/admin/api/config`,e),onSuccess:()=>{e.invalidateQueries({queryKey:[`config`]})}})}function Ka(){let e=wn();return Bn({mutationFn:e=>Na(`DELETE`,`/admin/api/config/overrides/${encodeURIComponent(e)}`),onSuccess:()=>{e.invalidateQueries({queryKey:[`config`]})}})}function qa(){return zn({queryKey:[`env`],queryFn:()=>ja(`/admin/api/env`),staleTime:1/0})}function Ja(){return zn({queryKey:[`models`],queryFn:()=>ja(`/admin/api/models`),staleTime:1/0})}function Ya(){let e=wn();return Bn({mutationFn:e=>Na(`POST`,`/admin/api/models`,e),onSuccess:()=>{e.invalidateQueries({queryKey:[`models`]})}})}function Xa(){let e=wn();return Bn({mutationFn:e=>Na(`DELETE`,`/admin/api/models/${encodeURIComponent(e)}`),onSuccess:()=>{e.invalidateQueries({queryKey:[`models`]})}})}function Za(){return Bn({mutationFn:e=>Na(`POST`,`/admin/api/models/discover`,e)})}function Qa(e){return zn({queryKey:[`audit`,e],queryFn:()=>ja(`/admin/api/audit?limit=${e.page_size}&offset=${(e.page-1)*e.page_size}`),staleTime:1/0})}function $a(e){return zn({queryKey:[`traffic`,e],queryFn:()=>ja(`/admin/api/traffic?window=${e}`),refetchInterval:3e4,staleTime:0})}function eo(){return zn({queryKey:[`uptime`],queryFn:()=>ja(`/admin/api/uptime`),refetchInterval:3e4,staleTime:0})}function to(){return Bn({mutationFn:e=>{let t=new FormData;return t.append(`file`,e),Pa(`/admin/api/env/import`,t)}})}function no(){return zn({queryKey:[`catalog-providers`],queryFn:()=>ja(`/admin/api/catalog/providers`).then(e=>e.providers),staleTime:1/0})}function ro(){return zn({queryKey:[`managed-backends`],queryFn:()=>ja(`/admin/api/backends/managed`),staleTime:1/0})}function io(){let e=wn();return Bn({mutationFn:e=>Na(`POST`,`/admin/api/backends/managed`,e),onSuccess:()=>{e.invalidateQueries({queryKey:[`managed-backends`]}),e.invalidateQueries({queryKey:[`status`]})}})}function ao(){let e=wn();return Bn({mutationFn:({name:e,data:t})=>Na(`PUT`,`/admin/api/backends/managed/${e}`,t),onSuccess:()=>{e.invalidateQueries({queryKey:[`managed-backends`]})}})}function oo(){let e=wn();return Bn({mutationFn:e=>Na(`DELETE`,`/admin/api/backends/managed/${e}`),onSuccess:()=>{e.invalidateQueries({queryKey:[`managed-backends`]}),e.invalidateQueries({queryKey:[`status`]})}})}function so(){return zn({queryKey:[`routes`],queryFn:()=>ja(`/admin/api/routes`),staleTime:1/0})}function co(){let e=wn();return Bn({mutationFn:e=>Na(`POST`,`/admin/api/routes`,e),onSuccess:()=>{e.invalidateQueries({queryKey:[`routes`]})}})}function lo(){let e=wn();return Bn({mutationFn:e=>Na(`DELETE`,`/admin/api/routes/${e}`),onSuccess:()=>{e.invalidateQueries({queryKey:[`routes`]})}})}function uo(e){return zn({queryKey:[`route-providers`,e],queryFn:()=>ja(`/admin/api/routes/${e}/providers`),enabled:!!e,staleTime:1/0})}function fo(){let e=wn();return Bn({mutationFn:({routeId:e,data:t})=>Na(`POST`,`/admin/api/routes/${e}/providers`,t),onSuccess:(t,{routeId:n})=>{e.invalidateQueries({queryKey:[`route-providers`,n]}),e.invalidateQueries({queryKey:[`routes`]})}})}function po(){let e=wn();return Bn({mutationFn:({routeId:e,providerId:t,data:n})=>Na(`PUT`,`/admin/api/routes/${e}/providers/${t}`,n),onSuccess:(t,{routeId:n})=>{e.invalidateQueries({queryKey:[`route-providers`,n]})}})}function mo(){let e=wn();return Bn({mutationFn:({routeId:e,providerId:t})=>Na(`DELETE`,`/admin/api/routes/${e}/providers/${t}`),onSuccess:(t,{routeId:n})=>{e.invalidateQueries({queryKey:[`route-providers`,n]}),e.invalidateQueries({queryKey:[`routes`]})}})}function z(){let e=wn();return Bn({mutationFn:({routeId:e,data:t})=>Na(`PUT`,`/admin/api/routes/${e}/providers/reorder`,t),onSuccess:(t,{routeId:n})=>{e.invalidateQueries({queryKey:[`route-providers`,n]}),e.invalidateQueries({queryKey:[`routes`]})}})}async function B(){let e=$i.getState().token??``,t=await fetch(`/admin/api/env/export`,{headers:{Authorization:`Bearer ${e}`}});if(!t.ok)throw Error(`Export failed: HTTP ${t.status}`);let n=await t.blob(),r=URL.createObjectURL(n),i=document.createElement(`a`);i.href=r,i.download=`.anyllm.env`,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(r)}function V(...e){let t=[],n=e=>{e&&(typeof e==`string`||typeof e==`number`?t.push(String(e)):Array.isArray(e)&&e.forEach(n))};return e.forEach(n),t.join(` `)}var ho=(0,P.forwardRef)(({glyph:e=`✦`,solid:t,static:n,className:r,...i},a)=>(0,F.jsx)(`span`,{ref:a,"aria-hidden":`true`,className:V(`pui-sparkle`,!n&&`pui-sparkle--blink`,t&&`pui-sparkle--solid`,r),...i,children:e}));ho.displayName=`Sparkle`;var go=(0,P.forwardRef)(({as:e,static:t,className:n,children:r,...i},a)=>(0,F.jsx)(e??`span`,{ref:a,className:V(`pui-gradient-text`,!t&&`pui-gradient-text--animate`,n),...i,children:r}));go.displayName=`GradientText`;var _o=(0,P.forwardRef)(({color:e,static:t,className:n,style:r,...i},a)=>(0,F.jsx)(`span`,{ref:a,"aria-hidden":`true`,className:V(`pui-dot`,!t&&`pui-dot--pulse`,n),style:e?{...r,background:e,color:e}:r,...i}));_o.displayName=`StatusDot`;var vo=new Set([`flash1`,`flash2`,`flash3`,`glow1`,`glow2`,`glow3`]),yo=(0,P.forwardRef)(({text:e,animation:t=`wave`,color:n=`glow1`,className:r,style:i,...a},o)=>{let s=vo.has(n),c=s?`pui-quest--${n}`:void 0,l=s?void 0:{color:n};if(t===`wave`){let t=[...e];return(0,F.jsx)(`span`,{ref:o,className:V(`pui-quest`,`pui-quest--wave`,c,r),style:{...l,...i},...a,children:t.map((e,t)=>(0,F.jsx)(`span`,{className:`pui-quest__char`,style:{animationDelay:`${-(t+1)*50}ms`},children:e===` `?`\xA0`:e},t))})}let u=t===`scroll`?`pui-quest__scroll`:`pui-quest__slide`;return(0,F.jsx)(`span`,{ref:o,className:V(`pui-quest`,`pui-quest--${t}`,c,r),style:{...l,...i},...a,children:(0,F.jsx)(`span`,{className:u,children:e})})});yo.displayName=`QuestText`;function bo({variant:e=`glow`,size:t=`md`,sparkle:n,loading:r,block:i,as:a,className:o,children:s,disabled:c,...l},u){let d=a??`button`;return(0,F.jsxs)(d,{ref:u,className:V(`pui-btn`,`pui-btn--${e}`,t!==`md`&&`pui-btn--${t}`,i&&`pui-btn--block`,o),disabled:d===`button`?c||r:void 0,"aria-busy":r||void 0,...l,children:[r?(0,F.jsx)(`span`,{className:`pui-btn__spinner`,"aria-hidden":!0}):null,(0,F.jsx)(`span`,{children:s}),n?(0,F.jsx)(ho,{}):null]})}var xo=(0,P.forwardRef)(bo),So=(0,P.forwardRef)(({hideSparkle:e,trailing:t,className:n,children:r,...i},a)=>(0,F.jsxs)(`div`,{ref:a,className:V(`pui-sticky-banner`,n),...i,children:[!e&&(0,F.jsx)(ho,{}),(0,F.jsx)(`span`,{children:r}),t]}));So.displayName=`StickyBanner`;var Co=(0,P.forwardRef)(({icon:e,statusColor:t,className:n,children:r,...i},a)=>(0,F.jsxs)(`span`,{ref:a,className:V(`pui-eyebrow`,n),...i,children:[e===!1?null:e??(0,F.jsx)(_o,{color:t}),(0,F.jsx)(`span`,{children:r})]}));Co.displayName=`EyebrowPill`;function wo({words:e,typeMs:t=70,deleteMs:n=32,holdMs:r=1500,loop:i=!0,onWordReached:a}){let[o,s]=(0,P.useState)(``),[c,l]=(0,P.useState)(0),[u,d]=(0,P.useState)(!1),[f,p]=(0,P.useState)(!1),m=(0,P.useRef)({word:o,index:c,isDeleting:u});return m.current={word:o,index:c,isDeleting:u},(0,P.useEffect)(()=>{let o=null,c=!1;if(!e.length)return;let u=()=>{if(c)return;let{word:f,index:h,isDeleting:g}=m.current,_=e[h],v=g?_.slice(0,f.length-1):_.slice(0,f.length+1);if(s(v),!g&&v===_){if(a?.(_,h),!i&&h===e.length-1){p(!0);return}o=setTimeout(()=>{c||(d(!0),o=setTimeout(u,n))},r);return}g&&v===``&&(d(!1),l(t=>(t+1)%e.length)),o=setTimeout(u,g?n:t)};return o=setTimeout(u,t),()=>{c=!0,o&&clearTimeout(o)}},[]),{word:o,index:c,isDeleting:u,isComplete:f}}var To=(0,P.forwardRef)(({words:e,typeMs:t,deleteMs:n,holdMs:r,loop:i,onWordReached:a,hideCursor:o,cursor:s,renderWord:c,className:l,...u},d)=>{let{word:f,index:p}=wo({words:e,typeMs:t,deleteMs:n,holdMs:r,loop:i,onWordReached:a});return(0,F.jsxs)(`span`,{ref:d,className:V(`pui-rotator`,l),...u,children:[c?c(f,p):f,!o&&(0,F.jsx)(`span`,{"aria-hidden":`true`,className:V(`pui-rotator__cursor`,s===void 0&&`pui-rotator__cursor--block`,`pui-rotator__cursor--blink`),children:s})]})});To.displayName=`Rotator`;var Eo=(0,P.forwardRef)(({words:e,intervalMs:t=2200,transitionMs:n=500,direction:r=`up`,gradient:i,className:a,style:o,...s},c)=>{let[l,u]=(0,P.useState)(0);(0,P.useEffect)(()=>{if(!e.length)return;let n=setInterval(()=>u(t=>(t+1)%e.length),t);return()=>clearInterval(n)},[t,e.length]);let d={...o,"--pui-roll-ms":`${n}ms`},f=(l-1+e.length)%e.length;return(0,F.jsxs)(`span`,{ref:c,className:V(`pui-roll`,r===`down`&&`pui-roll--down`,i&&`pui-roll--gradient`,a),style:d,...s,children:[(0,F.jsx)(`span`,{className:`pui-roll__sizer`,"aria-hidden":`true`,children:e[l]}),e.map((e,t)=>(0,F.jsx)(`span`,{className:V(`pui-roll__word`,t===l&&`pui-roll__word--active`,t===f&&l!==f&&`pui-roll__word--past`),"aria-hidden":t===l?void 0:`true`,children:e},t))]})});Eo.displayName=`WordRoll`;var Do=(0,P.forwardRef)(({placeholder:e=`Describe what you want to build…`,defaultValue:t,value:n,onChange:r,onSubmit:i,leading:a,ctaLabel:o=`Generate`,hideCta:s,className:c,...l},u)=>{let d=n!==void 0,[f,p]=(0,P.useState)(t??``),m=d?n:f;return(0,F.jsxs)(`form`,{ref:u,className:V(`pui-prompt`,c),onSubmit:e=>{e.preventDefault(),i?.(m)},...l,children:[a===!1?null:(0,F.jsx)(`span`,{className:`pui-prompt__icon`,children:a??(0,F.jsx)(ho,{})}),(0,F.jsx)(`input`,{className:`pui-prompt__input`,type:`text`,placeholder:e,value:m,onChange:e=>{let t=e.target.value;d||p(t),r?.(t)},autoComplete:`off`}),!s&&(0,F.jsx)(xo,{type:`submit`,variant:`glow`,sparkle:!0,children:o})]})});Do.displayName=`PromptHero`;var Oo=[`GPT-5 Turbo Vision`,`Claude Opus 4.7`,`Gemini 3 Pro`],ko=(0,P.forwardRef)(({value:e,defaultValue:t=``,onChange:n,onSubmit:r,placeholder:i=`Build me a…`,rows:a=3,models:o=Oo,model:s,defaultModel:c,onModelChange:l,onAddContext:u,onVoice:d,hideAddContext:f,hideModel:p,hideVoice:m,hideSend:h,submitOnCmdEnter:g=!0,toolbarExtras:_,className:v,...y},b)=>{let x=e!==void 0,[S,C]=(0,P.useState)(t),w=x?e:S,T=s!==void 0,[E,D]=(0,P.useState)(c??o[0]??``),O=T?s:E,[ee,te]=(0,P.useState)(!1),ne=(0,P.useRef)(null);(0,P.useEffect)(()=>{if(!ee)return;let e=e=>{var t;(t=ne.current)!=null&&t.contains(e.target)||te(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[ee]);let re=e=>{x||C(e),n?.(e)},ie=e=>{T||D(e),l?.(e),te(!1)},ae=e=>{e?.preventDefault(),r?.(w,{model:O})},oe=e=>{g&&e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),ae())};return(0,F.jsxs)(`form`,{ref:b,className:V(`pui-promptbox`,v),onSubmit:ae,...y,children:[(0,F.jsx)(`textarea`,{className:`pui-promptbox__textarea`,value:w,onChange:e=>re(e.target.value),onKeyDown:oe,placeholder:i,rows:a}),(0,F.jsxs)(`div`,{className:`pui-promptbox__toolbar`,children:[!f&&(0,F.jsx)(`button`,{type:`button`,className:`pui-promptbox__iconbtn`,onClick:u,title:`Add context`,"aria-label":`Add context`,children:(0,F.jsx)(Ao,{})}),!p&&o.length>0&&(0,F.jsxs)(`div`,{className:`pui-promptbox__model-wrap`,ref:ne,children:[(0,F.jsxs)(`button`,{type:`button`,className:`pui-promptbox__model`,onClick:()=>te(e=>!e),"aria-expanded":ee,"aria-haspopup":`menu`,children:[(0,F.jsx)(`span`,{children:O}),(0,F.jsx)(jo,{})]}),ee&&(0,F.jsx)(`div`,{className:`pui-promptbox__menu`,role:`menu`,children:o.map(e=>(0,F.jsxs)(`button`,{type:`button`,className:V(`pui-promptbox__menu-item`,e===O&&`pui-promptbox__menu-item--active`),onClick:()=>ie(e),role:`menuitemradio`,"aria-checked":e===O,children:[(0,F.jsx)(`span`,{children:e}),e===O&&(0,F.jsx)(Po,{})]},e))})]}),(0,F.jsx)(`div`,{className:`pui-promptbox__spacer`}),_,!m&&(0,F.jsx)(`button`,{type:`button`,className:`pui-promptbox__iconbtn`,onClick:d,title:`Voice mode`,"aria-label":`Voice mode`,children:(0,F.jsx)(Mo,{})}),!h&&(0,F.jsx)(`button`,{type:`submit`,className:`pui-promptbox__iconbtn pui-promptbox__send`,title:`Send`,"aria-label":`Send`,children:(0,F.jsx)(No,{})})]})]})});ko.displayName=`Prompt`;function Ao(){return(0,F.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.2`,strokeLinecap:`round`,"aria-hidden":`true`,children:(0,F.jsx)(`path`,{d:`M12 5v14M5 12h14`})})}function jo(){return(0,F.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`10`,height:`10`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,F.jsx)(`polyline`,{points:`6 9 12 15 18 9`})})}function Mo(){return(0,F.jsxs)(`svg`,{viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.9`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,F.jsx)(`rect`,{x:`9`,y:`2`,width:`6`,height:`12`,rx:`3`}),(0,F.jsx)(`path`,{d:`M19 10a7 7 0 0 1-14 0`}),(0,F.jsx)(`line`,{x1:`12`,y1:`19`,x2:`12`,y2:`22`})]})}function No(){return(0,F.jsxs)(`svg`,{viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.4`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,F.jsx)(`line`,{x1:`12`,y1:`19`,x2:`12`,y2:`5`}),(0,F.jsx)(`polyline`,{points:`5 12 12 5 19 12`})]})}function Po(){return(0,F.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`12`,height:`12`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.4`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,F.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})}var Fo=` .\`'",:;Il!i><~+_-?][}{1)(|/tfjrxnuvczXYUJCLQ0OZmwqpdbkhao*#MW&8%B@$`,Io=[`#a78bfa`,`#ec4899`,`#67e8f9`,`#fbbf24`];function Lo(e,t,n={}){let{cols:r,rows:i,fontSize:a=11,fontFamily:o=`JetBrains Mono, ui-monospace, monospace`,charRamp:s=Fo,colorful:c=!1,palette:l,baseOpacity:u=1,reactive:d=!0,rippleStrength:f=1.4,rippleRadius:p=6,spotlightOpacity:m,spotlightRadius:h=8,frameMs:g=50}=n,_=(0,P.useMemo)(()=>l??(c?Io:null),[l,c]);(0,P.useEffect)(()=>{let n=e.current,c=t.current;if(!n||!c)return;let l=n.getContext(`2d`);if(!l)return;let v=0,y=0,b=0,x=0,S=0,C=0,w=new Float32Array,T=1,E={x:-9999,y:-9999},D=()=>{w=new Float32Array(b*x);for(let e=0;e{let e=c.getBoundingClientRect();e.width===0||e.height===0||(T=Math.min(window.devicePixelRatio||1,2),n.width=Math.max(1,Math.floor(e.width*T)),n.height=Math.max(1,Math.floor(e.height*T)),l.setTransform(T,0,0,T,0,0),l.font=`${a}px ${o}`,l.textBaseline=`top`,S=l.measureText(`M`).width||a*.6,C=a*1.15,b=r??Math.max(1,Math.floor(e.width/S)),x=i??Math.max(1,Math.floor(e.height/C)),r!==void 0&&(S=e.width/b),i!==void 0&&(C=e.height/x),D())},ee=e=>{if(e-y=r.left-24&&E.x<=r.right+24&&E.y>=r.top-24&&E.y<=r.bottom+24;l.clearRect(0,0,r.width,r.height);let c=s.length-1,T=typeof m==`number`&&m!==u,D=h*h*2;for(let e=0;e1&&(te=1)}if(te<=.01)continue;let ne=`#c8c8d4`;if(_&&_.length){let r=(n*.1+e*.07+t*.12)%_.length;ne=_[Math.floor(Math.abs(r))%_.length]}l.globalAlpha=te,l.fillStyle=ne,l.fillText(ee,n*S,e*C)}l.globalAlpha=1,v=requestAnimationFrame(ee)},te=e=>{E.x=e.clientX,E.y=e.clientY},ne=new ResizeObserver(O);return ne.observe(c),O(),d&&window.addEventListener(`mousemove`,te,{passive:!0}),v=requestAnimationFrame(ee),()=>{cancelAnimationFrame(v),ne.disconnect(),d&&window.removeEventListener(`mousemove`,te)}},[e,t,r,i,a,o,s,_,u,d,f,p,m,h,g])}var Ro=(0,P.forwardRef)(({variant:e=`panel`,cols:t,rows:n,fontSize:r,fontFamily:i,charRamp:a,colorful:o,palette:s,baseOpacity:c,reactive:l,rippleStrength:u,rippleRadius:d,spotlightOpacity:f,spotlightRadius:p,frameMs:m,className:h,...g},_)=>{let v=(0,P.useRef)(null),y=(0,P.useRef)(null);return Lo(y,v,{cols:t,rows:n,fontSize:r,fontFamily:i,charRamp:a,colorful:o,palette:s,baseOpacity:c,reactive:l,rippleStrength:u,rippleRadius:d,spotlightOpacity:f,spotlightRadius:p,frameMs:m}),(0,F.jsx)(`div`,{ref:e=>{v.current=e,typeof _==`function`?_(e):_&&(_.current=e)},className:V(`pui-ascii`,e===`panel`&&`pui-ascii--panel`,h),"aria-hidden":`true`,...g,children:(0,F.jsx)(`canvas`,{ref:y})})});Ro.displayName=`AsciiHero`;var zo=`circle(0px at -9999px -9999px)`,Bo=(0,P.forwardRef)(({text_default:e,text_reveal:t,pattern:n=`0 1 0 1 `,pattern_size_default:r=14,pattern_size_reveal:i=22,scopeSize:a=320,fontSize:o,fontFamily:s,className:c,style:l,...u},d)=>{let f=(0,P.useRef)(null),p=(0,P.useRef)(null);(0,P.useEffect)(()=>{let e=f.current,t=p.current;if(!e||!t)return;let n=a/2,r=0,i=0,o=0,s=!1,c=()=>{if(r=0,!s)return;s=!1;let e=`circle(${n}px at ${i}px ${o}px)`;t.style.clipPath=e,t.style.webkitClipPath=e},l=t=>{let n=e.getBoundingClientRect();i=t.clientX-n.left,o=t.clientY-n.top,s=!0,r||(r=requestAnimationFrame(c))},u=()=>{r&&(cancelAnimationFrame(r),r=0,s=!1),t.style.clipPath=zo,t.style.webkitClipPath=zo};return e.addEventListener(`pointermove`,l),e.addEventListener(`pointerleave`,u),e.addEventListener(`pointercancel`,u),()=>{e.removeEventListener(`pointermove`,l),e.removeEventListener(`pointerleave`,u),e.removeEventListener(`pointercancel`,u),r&&cancelAnimationFrame(r)}},[a]);let m=e=>{f.current=e,typeof d==`function`?d(e):d&&(d.current=e)},h=(0,P.useMemo)(()=>n.repeat(40),[n]),g=(0,P.useMemo)(()=>Array.from({length:40},(e,t)=>t),[]),_=e=>(0,F.jsx)(`div`,{className:`pui-goldeneye__pattern`,style:{fontSize:`${e}px`},children:g.map(e=>(0,F.jsx)(`div`,{className:`pui-goldeneye__pattern-row`,children:h},e))}),v={...s?{"--pui-goldeneye-font":s}:{},...o==null?{}:{"--pui-goldeneye-headline-size":typeof o==`number`?`${o}px`:o}};return(0,F.jsxs)(`div`,{ref:m,className:V(`pui-goldeneye`,c),style:{...v,...l},...u,children:[(0,F.jsxs)(`div`,{className:`pui-goldeneye__base`,children:[_(r),(0,F.jsx)(`div`,{className:`pui-goldeneye__headline`,children:e})]}),(0,F.jsxs)(`div`,{ref:p,className:`pui-goldeneye__scope`,"aria-hidden":`true`,style:{clipPath:zo,WebkitClipPath:zo},children:[_(i),(0,F.jsx)(`div`,{className:`pui-goldeneye__headline`,children:t})]})]})});Bo.displayName=`Goldeneye`;var Vo=[{color:`rgba(124,58,237,0.45)`,x:20,y:30,size:60},{color:`rgba(236,72,153,0.35)`,x:80,y:25,size:50},{color:`rgba(6,182,212,0.30)`,x:50,y:80,size:50}],Ho=(0,P.forwardRef)(({blobs:e=Vo,blur:t=50,static:n,animated:r,repulsion:i=.18,className:a,style:o,...s},c)=>{let l=(0,P.useRef)([]);(0,P.useEffect)(()=>{if(!r)return;let t=e.map(e=>({x:e.x,y:e.y,homeX:e.x,homeY:e.y,size:e.size??50,vx:(Math.random()-.5)*.06,vy:(Math.random()-.5)*.06})),n=0,a=()=>{for(let e=0;e.001){let e=(l-c)/l*i;n.vx+=o/c*e,n.vy+=s/c*e}}n.vx+=(Math.random()-.5)*.012,n.vy+=(Math.random()-.5)*.012,n.x+=n.vx,n.y+=n.vy,n.x<-10&&(n.x=-10,n.vx=Math.abs(n.vx)*.6),n.x>110&&(n.x=110,n.vx=-Math.abs(n.vx)*.6),n.y<-10&&(n.y=-10,n.vy=Math.abs(n.vy)*.6),n.y>110&&(n.y=110,n.vy=-Math.abs(n.vy)*.6);let r=l.current[e];r&&(r.style.left=`${n.x}%`,r.style.top=`${n.y}%`)}n=requestAnimationFrame(a)};return n=requestAnimationFrame(a),()=>cancelAnimationFrame(n)},[r,e,i]);let u={...o,filter:`blur(${t}px) saturate(140%)`};return(0,F.jsx)(`div`,{ref:c,"aria-hidden":`true`,className:V(`pui-aurora`,!n&&!r&&`pui-aurora--drift`,a),style:u,...s,children:e.map((e,t)=>{let n=e.size??50;return(0,F.jsx)(`div`,{ref:e=>{l.current[t]=e},className:`pui-aurora__blob`,style:{position:`absolute`,left:`${e.x}%`,top:`${e.y}%`,width:`${n}%`,height:`${n}%`,background:`radial-gradient(circle at center, ${e.color} 0%, transparent 70%)`,transform:`translate(-50%, -50%)`,pointerEvents:`none`,borderRadius:`50%`}},t)})})});Ho.displayName=`Aurora`;var Uo=(0,P.forwardRef)(({density:e=70,speed:t=.4,linkDistance:n=140,colors:r=[`#a78bfa`,`#f0abfc`,`#67e8f9`],linkColor:i=`#7c3aed`,hoverDistance:a=200,hoverGravity:o=.005,hoverBrighten:s=.8,baseOpacity:c=.45,overscan:l=80,className:u,...d},f)=>{let p=(0,P.useRef)(null),m=(0,P.useRef)(null);return(0,P.useEffect)(()=>{let u=p.current,d=m.current,f=d.getContext(`2d`);if(!f)return;let h=0,g=0,_=1,v={x:-9999,y:-9999},y=0,b=[],x=()=>{let n=-l,i=h+l,a=-l,o=g+l;b=Array.from({length:e},()=>({x:n+Math.random()*(i-n),y:a+Math.random()*(o-a),vx:(Math.random()-.5)*t*2,vy:(Math.random()-.5)*t*2,r:1+Math.random()*1.6,color:r[Math.floor(Math.random()*r.length)]}))},S=()=>{let e=u.getBoundingClientRect();_=Math.min(window.devicePixelRatio||1,2),h=e.width,g=e.height,d.width=h*_,d.height=g*_,d.style.width=`${h}px`,d.style.height=`${g}px`,f.setTransform(_,0,0,_,0,0),x()},C=()=>{f.clearRect(0,0,h,g);let e=-l,t=h+l,r=-l,u=g+l,d=v.x>-9e3;for(let n of b)if(n.x+=n.vx,n.y+=n.vy,(n.xt)&&(n.vx*=-1),(n.yu)&&(n.vy*=-1),a>0&&o>0&&d){let e=v.x-n.x,t=v.y-n.y,r=Math.hypot(e,t);if(r{if(!d||a<=0||s<=0)return 0;let n=Math.hypot(v.x-e,v.y-t);return n>=a?0:(1-n/a)*s};f.lineWidth=1;for(let e=0;e{let t=u.getBoundingClientRect();v.x=e.clientX-t.left,v.y=e.clientY-t.top},T=()=>{v.x=-9999,v.y=-9999},E=new ResizeObserver(S);return E.observe(u),S(),u.addEventListener(`mousemove`,w),u.addEventListener(`mouseleave`,T),y=requestAnimationFrame(C),()=>{cancelAnimationFrame(y),E.disconnect(),u.removeEventListener(`mousemove`,w),u.removeEventListener(`mouseleave`,T)}},[e,t,n,a,o,s,c,l,r,i]),(0,F.jsx)(`div`,{ref:e=>{p.current=e,typeof f==`function`?f(e):f&&(f.current=e)},"aria-hidden":`true`,className:V(`pui-node-graph`,u),...d,children:(0,F.jsx)(`canvas`,{ref:m})})});Uo.displayName=`NodeGraphBackground`;function Wo(e,t){if(e.startsWith(`#`)){let n,r,i;return e.length===4?(n=parseInt(e[1]+e[1],16),r=parseInt(e[2]+e[2],16),i=parseInt(e[3]+e[3],16)):(n=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),i=parseInt(e.slice(5,7),16)),`rgba(${n},${r},${i},${t})`}return e}var Go=(0,P.forwardRef)(({count:e=18,glyphs:t=[`✦`,`✧`,`✶`,`✺`,`✹`,`·`],durationS:n=[8,18],sizeRange:r=[8,20],className:i,...a},o)=>{let s=(0,P.useMemo)(()=>Array.from({length:e},()=>({glyph:t[Math.floor(Math.random()*t.length)],left:Math.random()*100,duration:n[0]+Math.random()*(n[1]-n[0]),delay:Math.random()*n[1],size:r[0]+Math.random()*(r[1]-r[0]),opacity:.4+Math.random()*.5})),[e,t,n,r]);return(0,F.jsx)(`div`,{ref:o,"aria-hidden":`true`,className:V(`pui-sparkle-field`,i),...a,children:s.map((e,t)=>(0,F.jsx)(`span`,{className:`pui-sparkle-field__item`,style:{left:`${e.left}%`,fontSize:`${e.size}px`,"--pui-sparkle-peak":e.opacity.toFixed(2),animationDuration:`${e.duration}s`,animationDelay:`${e.delay}s`},children:e.glyph},t))})});Go.displayName=`FloatingSparkles`;var Ko=(0,P.forwardRef)(({breathing:e,glowOnHover:t=!0,className:n,children:r,...i},a)=>(0,F.jsx)(`article`,{ref:a,className:V(`pui-glass-card`,e&&`pui-glass-card--breathing`,t&&`pui-glass-card--glow-hover`,n),...i,children:r}));Ko.displayName=`GlassCard`;var qo=(0,P.forwardRef)(({className:e,...t},n)=>(0,F.jsx)(`div`,{ref:n,className:V(`pui-glass-card__icon`,e),...t}));qo.displayName=`GlassCard.Icon`;var Jo=(0,P.forwardRef)(({className:e,...t},n)=>(0,F.jsx)(`h3`,{ref:n,className:V(`pui-glass-card__title`,e),...t}));Jo.displayName=`GlassCard.Title`;var Yo=(0,P.forwardRef)(({className:e,...t},n)=>(0,F.jsx)(`p`,{ref:n,className:V(`pui-glass-card__body`,e),...t}));Yo.displayName=`GlassCard.Body`;var Xo=(0,P.forwardRef)(({className:e,children:t,...n},r)=>(0,F.jsxs)(`a`,{ref:r,className:V(`pui-glass-card__link`,e),...n,children:[(0,F.jsx)(`span`,{children:t}),(0,F.jsx)(`span`,{className:`pui-arrow`,children:`→`})]}));Xo.displayName=`GlassCard.Link`;var Zo=Object.assign(Ko,{Icon:qo,Title:Jo,Body:Yo,Link:Xo}),Qo=(0,P.forwardRef)(({filename:e,tokens:t,loop:n=!0,charMs:r=[14,42],thinkingLabel:i=`AI is writing…`,className:a,children:o,...s},c)=>(0,F.jsx)(`div`,{ref:c,"data-theme":`dark`,className:V(`pui-ide`,a),...s,children:o??(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)($o,{filename:e,thinking:i}),(0,F.jsx)(es,{tokens:t??[],loop:n,charMs:r})]})}));Qo.displayName=`MockIDE`;var $o=(0,P.forwardRef)(({filename:e,thinking:t,className:n,children:r,...i},a)=>(0,F.jsxs)(`div`,{ref:a,className:V(`pui-ide__chrome`,n),...i,children:[(0,F.jsx)(`span`,{className:`pui-ide__dot pui-ide__dot--red`}),(0,F.jsx)(`span`,{className:`pui-ide__dot pui-ide__dot--yellow`}),(0,F.jsx)(`span`,{className:`pui-ide__dot pui-ide__dot--green`}),e&&(0,F.jsx)(`span`,{className:`pui-ide__tab`,children:e}),r,t!==!1&&(0,F.jsxs)(`span`,{className:`pui-ide__thinking`,children:[(0,F.jsx)(`span`,{className:`pui-spinner`}),(0,F.jsx)(`span`,{children:t})]})]}));$o.displayName=`MockIDE.Chrome`;var es=(0,P.forwardRef)(({tokens:e,loop:t=!0,charMs:n=[14,42],className:r,...i},a)=>{let o=(0,P.useRef)(null),s=a??o,[c,l]=(0,P.useState)(0);return(0,P.useEffect)(()=>{let r=s.current;if(!r||!e.length)return;let i=!1,a=null,o=0,c=0,u=``,d=e=>e.replace(/&/g,`&`).replace(//g,`>`),f=()=>{if(i)return;if(o>=e.length){t&&(a=setTimeout(()=>{o=0,c=0,r.innerHTML=u,l(e=>e+1),f()},3e3));return}let s=e[o];if(c+=1,c>s.c.length){o+=1,c=0,f();return}let p=``;for(let t=0;t${d(n.c)}`:d(n.c)}let m=s.c.slice(0,c);p+=s.cls?`${d(m)}`:d(m),p+=u,r.innerHTML=p;let[h,g]=n,_=h+Math.random()*(g-h)+(m.endsWith(` +`)?120:0);a=setTimeout(f,_)};return r.innerHTML=u,f(),()=>{i=!0,a&&clearTimeout(a)}},[e,t,n,s,c]),(0,F.jsx)(`pre`,{ref:s,className:V(`pui-ide__body`,r),...i})});es.displayName=`MockIDE.Body`,Object.assign(Qo,{Chrome:$o,Body:es});var ts=(0,P.forwardRef)(({role:e,agent:t,thinking:n,icon:r,className:i,children:a,...o},s)=>(0,F.jsxs)(`div`,{ref:s,className:V(`pui-bubble`,e===`user`?`pui-bubble--user`:`pui-bubble--ai`,i),...o,children:[e===`ai`&&(t||n!==!1||r!==!1)&&(0,F.jsxs)(`div`,{className:`pui-bubble__meta`,children:[r===!1?null:r??(0,F.jsx)(ho,{}),t&&(0,F.jsx)(`span`,{children:t}),n!==!1&&(0,F.jsxs)(`span`,{className:`pui-bubble__thinking-pill`,children:[(0,F.jsx)(`span`,{className:`pui-spinner pui-spinner--sm`}),(0,F.jsx)(`span`,{children:n??`thinking…`})]})]}),(0,F.jsx)(`div`,{className:`pui-bubble__stream`,children:a})]}));ts.displayName=`ChatBubble`;var ns=e=>e.split(/(\s+)/);function rs({text:e,speedMs:t=[18,80],tokenize:n=ns,loop:r=!1,loopDelayMs:i=6e3,onComplete:a}){let[o,s]=(0,P.useState)(``),[c,l]=(0,P.useState)(!1),u=(0,P.useRef)(a);return u.current=a,(0,P.useEffect)(()=>{let a=!1,o=null,c=n(e),d=()=>Array.isArray(t)?t[0]+Math.random()*(t[1]-t[0]):t,f=()=>{let e=0,t=``,n=()=>{var p;if(!a){if(e>=c.length){l(!0),(p=u.current)==null||p.call(u),r&&(o=setTimeout(()=>{a||(l(!1),s(``),f())},i));return}t+=c[e],e+=1,s(t),o=setTimeout(n,d())}};n()};return f(),()=>{a=!0,o&&clearTimeout(o)}},[]),{output:o,isStreaming:!c,isComplete:c}}var is=(0,P.forwardRef)(({text:e,speedMs:t,tokenize:n,loop:r,loopDelayMs:i,onComplete:a,hideCaret:o,className:s,...c},l)=>{let{output:u,isStreaming:d}=rs({text:e,speedMs:t,tokenize:n,loop:r,loopDelayMs:i,onComplete:a});return(0,F.jsxs)(`span`,{ref:l,className:V(s),...c,children:[u,!o&&d&&(0,F.jsx)(`span`,{className:`pui-bubble__stream-caret`})]})});is.displayName=`TokenStream`;var as=[`·`,`✢`,`✳`,`✶`,`✻`,`✽`],os=`Accomplishing.Actioning.Actualizing.Architecting.Baking.Beaming.Befuddling.Billowing.Blanching.Bloviating.Boogieing.Boondoggling.Booping.Bootstrapping.Brewing.Bunning.Burrowing.Calculating.Canoodling.Caramelizing.Cascading.Catapulting.Cerebrating.Channeling.Channelling.Choreographing.Churning.Clauding.Coalescing.Cogitating.Combobulating.Composing.Computing.Concocting.Considering.Contemplating.Cooking.Crafting.Creating.Crunching.Crystallizing.Cultivating.Deciphering.Deliberating.Determining.Dilly-dallying.Discombobulating.Doing.Doodling.Drizzling.Ebbing.Effecting.Elucidating.Embellishing.Enchanting.Envisioning.Evaporating.Fermenting.Fiddle-faddling.Finagling.Flambéing.Flibbertigibbeting.Flowing.Flummoxing.Fluttering.Forging.Forming.Frolicking.Frosting.Gallivanting.Galloping.Garnishing.Generating.Gesticulating.Germinating.Gitifying.Grooving.Gusting.Harmonizing.Hashing.Hatching.Herding.Honking.Hullaballooing.Hyperspacing.Ideating.Imagining.Improvising.Incubating.Inferring.Infusing.Ionizing.Jitterbugging.Julienning.Kneading.Leavening.Levitating.Lollygagging.Manifesting.Marinating.Meandering.Metamorphosing.Misting.Moonwalking.Moseying.Mulling.Mustering.Musing.Nebulizing.Nesting.Newspapering.Noodling.Nucleating.Orbiting.Orchestrating.Osmosing.Perambulating.Percolating.Perusing.Philosophising.Photosynthesizing.Pollinating.Pondering.Pontificating.Pouncing.Precipitating.Prestidigitating.Processing.Proofing.Propagating.Puttering.Puzzling.Quantumizing.Razzle-dazzling.Razzmatazzing.Recombobulating.Reticulating.Roosting.Ruminating.Sautéing.Scampering.Schlepping.Scurrying.Seasoning.Shenaniganing.Shimmying.Simmering.Skedaddling.Sketching.Slithering.Smooshing.Sock-hopping.Spelunking.Spinning.Sprouting.Stewing.Sublimating.Swirling.Swooping.Symbioting.Synthesizing.Tempering.Thinking.Thundering.Tinkering.Tomfoolering.Topsy-turvying.Transfiguring.Transmuting.Twisting.Undulating.Unfurling.Unravelling.Vibing.Waddling.Wandering.Warping.Whatchamacalliting.Whirlpooling.Whirring.Whisking.Wibbling.Working.Wrangling.Zesting.Zigzagging`.split(`.`);function ss(e){return e[Math.floor(Math.random()*e.length)]}var cs=(0,P.forwardRef)(({verbs:e=os,glyphs:t=as,glyphInterval:n=250,verbInterval:r,ellipsis:i=`…`,info:a,glyphColor:o,className:s,...c},l)=>{let[u,d]=(0,P.useState)(0),[f,p]=(0,P.useState)(()=>e.length?ss(e):``);(0,P.useEffect)(()=>{if(!t.length)return;let e=setInterval(()=>{d(e=>(e+1)%t.length)},n);return()=>clearInterval(e)},[n,t.length]),(0,P.useEffect)(()=>{if(r==null||!e.length)return;let t=setInterval(()=>{p(ss(e))},r);return()=>clearInterval(t)},[e,r]);let m=f;return(0,F.jsxs)(`span`,{ref:l,className:V(`pui-wibble`,s),...c,children:[(0,F.jsx)(`span`,{className:`pui-wibble__glyph`,"aria-hidden":`true`,style:o?{color:o}:void 0,children:t[u]??``}),(0,F.jsxs)(`span`,{className:`pui-wibble__verb`,children:[m,i]}),a!=null&&a!==!1&&(0,F.jsxs)(`span`,{className:`pui-wibble__info`,children:[`(`,a,`)`]})]})});cs.displayName=`WibblingSpinner`;var ls=(0,P.forwardRef)(({label:e=`Ask AI`,open:t,defaultOpen:n,onOpenChange:r,popover:i,className:a,onClick:o,...s},c)=>{let l=t!==void 0,[u,d]=(0,P.useState)(n??!1),f=l?!!t:u,p=()=>{let e=!f;l||d(e),r?.(e)},m=()=>{l||d(!1),r?.(!1)};return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`button`,{ref:c,className:V(`pui-fab`,a),onClick:e=>{o?.(e),p()},"aria-expanded":f,...s,children:[(0,F.jsx)(ho,{}),(0,F.jsx)(`span`,{children:e})]}),f&&(0,F.jsx)(`div`,{role:`dialog`,className:`pui-fab-popover`,children:(0,F.jsx)(us.Provider,{value:m,children:i})})]})});ls.displayName=`ChatFAB`;var us=(0,P.createContext)(()=>{}),ds=(0,P.forwardRef)(({onClose:e,className:t,children:n,...r},i)=>{let a=(0,P.useContext)(us);return(0,F.jsxs)(`div`,{ref:i,className:V(`pui-fab-popover__header`,t),...r,children:[(0,F.jsx)(ho,{}),(0,F.jsx)(`span`,{children:n}),(0,F.jsx)(`button`,{type:`button`,"aria-label":`Close`,className:`pui-fab-popover__close`,onClick:e??a,children:`×`})]})});ds.displayName=`ChatFAB.Header`;var fs=(0,P.forwardRef)(({className:e,...t},n)=>(0,F.jsx)(`div`,{ref:n,className:V(`pui-fab-popover__body`,e),...t}));fs.displayName=`ChatFAB.Body`,Object.assign(ls,{Header:ds,Body:fs});var ps=(0,P.forwardRef)(({logos:e,speed:t=40,gap:n=56,fade:r=!0,pauseOnHover:i,className:a,style:o,...s},c)=>{let l={...o??{},"--pui-marquee-speed":`${t}s`,"--pui-marquee-gap":`${n}px`},u=(e,t)=>e.kind===`img`?(0,F.jsx)(`span`,{className:`pui-marquee__item`,children:(0,F.jsx)(`img`,{src:e.src,alt:e.alt??``})},`a${t}`):(0,F.jsx)(`span`,{className:`pui-marquee__item`,children:e.node},e.key??`b${t}`);return(0,F.jsx)(`div`,{ref:c,className:V(`pui-marquee`,r&&`pui-marquee--fade`,i&&`pui-marquee--paused-on-hover`,a),style:l,"aria-label":`Trusted by`,...s,children:(0,F.jsxs)(`div`,{className:`pui-marquee__track`,children:[e.map(u),e.map((t,n)=>u(t,n+e.length))]})})});ps.displayName=`LogoMarquee`;var ms=(0,P.forwardRef)(({heading:e,logos:t,className:n,...r},i)=>(0,F.jsxs)(`div`,{ref:i,className:V(`pui-logo-row`,n),...r,children:[e&&(0,F.jsx)(`p`,{className:`pui-logo-row__heading`,children:e}),(0,F.jsx)(`div`,{className:`pui-logo-row__items`,children:t.map((e,t)=>e.kind===`img`?(0,F.jsx)(`img`,{src:e.src,alt:e.alt??``},t):(0,F.jsx)(`span`,{className:`pui-logo-row__text`,children:e.node},e.key??t))})]}));ms.displayName=`LogoRow`;var hs=(0,P.forwardRef)(({rows:e,intensity:t=240,startDirection:n=`left`,gap:r=12,fade:i=!0,gradient:a=!1,static:o,className:s,style:c,...l},u)=>{let d=(0,P.useRef)(null);(0,P.useEffect)(()=>{let e=d.current;if(!e||o||window.matchMedia?.call(window,`(prefers-reduced-motion: reduce)`).matches)return;let n=0,r=()=>{n=0;let r=e.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight,a=(i-r.top)/(i+r.height),o=(Math.min(1,Math.max(0,a))-.5)*t;e.style.setProperty(`--pui-slip`,`${o}px`)},i=()=>{n||(n=requestAnimationFrame(r))};return r(),window.addEventListener(`scroll`,i,{passive:!0}),window.addEventListener(`resize`,i,{passive:!0}),()=>{n&&cancelAnimationFrame(n),window.removeEventListener(`scroll`,i),window.removeEventListener(`resize`,i)}},[t,o]);let f=e=>{d.current=e,typeof u==`function`?u(e):u&&(u.current=e)},p=n===`left`?-1:1,m={...c??{},"--pui-slip-gap":`${r}px`};return(0,F.jsx)(`div`,{ref:f,className:V(`pui-slippy`,i&&`pui-slippy--fade`,s),style:m,"aria-label":`Featured terms`,...l,children:e.map((e,t)=>(0,F.jsx)(`div`,{className:`pui-slippy__row`,style:{"--pui-slip-dir":t%2==0?p:-p},children:e.map((e,n)=>{let r=typeof e==`string`?{label:e}:e;return(0,F.jsx)(`span`,{className:V(`pui-slippy__word`,(a||typeof e==`object`&&e.gradient)&&`pui-slippy__word--gradient`),children:r.label},typeof e==`object`&&e.key||`${t}-${n}`)})},t))})});hs.displayName=`SlippyWords`;function gs({target:e,durationMs:t=1800,from:n=0,ease:r=e=>1-(1-e)**3}){let[i,a]=(0,P.useState)(n);return(0,P.useEffect)(()=>{let i=0,o=performance.now(),s=c=>{let l=Math.min(1,(c-o)/t);a(Math.floor(n+(e-n)*r(l))),l<1&&(i=requestAnimationFrame(s))};return i=requestAnimationFrame(s),()=>cancelAnimationFrame(i)},[]),i}var _s=(0,P.forwardRef)(({target:e,durationMs:t,from:n,ease:r,format:i=e=>e.toLocaleString(),className:a,...o},s)=>{let c=gs({target:e,durationMs:t,from:n,ease:r});return(0,F.jsx)(`span`,{ref:s,className:V(`pui-stat`,a),...o,children:i(c)})});_s.displayName=`StatCounter`;var vs=(0,P.forwardRef)(({icon:e,iconNode:t,title:n,subtitle:r,className:i,...a},o)=>(0,F.jsxs)(`a`,{ref:o,className:V(`pui-community`,i),...a,children:[t??(e&&(0,F.jsx)(`img`,{className:`pui-community__icon`,src:e,alt:``})),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`div`,{className:`pui-community__top`,children:n}),(0,F.jsx)(`div`,{className:`pui-community__bottom`,children:r})]})]}));vs.displayName=`CommunityBadge`;var ys=(0,P.forwardRef)(({featured:e,className:t,...n},r)=>(0,F.jsx)(`article`,{ref:r,className:V(`pui-price`,e&&`pui-price--featured`,t),...n}));ys.displayName=`PricingCard`;var bs=(0,P.forwardRef)(({hideSparkle:e,className:t,children:n,...r},i)=>(0,F.jsxs)(`div`,{ref:i,className:V(`pui-price__flag`,t),...r,children:[!e&&(0,F.jsx)(ho,{solid:!0}),(0,F.jsx)(`span`,{children:n})]}));bs.displayName=`PricingCard.Flag`;var xs=(0,P.forwardRef)(({className:e,...t},n)=>(0,F.jsx)(`div`,{ref:n,className:V(`pui-price__tier`,e),...t}));xs.displayName=`PricingCard.Tier`;var Ss=(0,P.forwardRef)(({unit:e,className:t,children:n,...r},i)=>(0,F.jsxs)(`div`,{ref:i,className:V(`pui-price__amount`,t),...r,children:[n,e&&(0,F.jsx)(`span`,{className:`pui-price__amount-unit`,children:e})]}));Ss.displayName=`PricingCard.Amount`;var Cs=(0,P.forwardRef)(({className:e,...t},n)=>(0,F.jsx)(`p`,{ref:n,className:V(`pui-price__blurb`,e),...t}));Cs.displayName=`PricingCard.Blurb`;var ws=(0,P.forwardRef)(({className:e,...t},n)=>(0,F.jsx)(`ul`,{ref:n,className:V(`pui-price__features`,e),...t}));ws.displayName=`PricingCard.Features`;var Ts=(0,P.forwardRef)(({className:e,children:t,...n},r)=>(0,F.jsx)(`a`,{ref:r,className:V(`pui-btn pui-btn--glow pui-btn--block`,e),...n,children:(0,F.jsx)(`span`,{children:t})}));Ts.displayName=`PricingCard.CTA`,Object.assign(ys,{Flag:bs,Tier:xs,Amount:Ss,Blurb:Cs,Features:ws,CTA:Ts});var Es=(0,P.forwardRef)(({before:e,after:t,brand:n,beforeLabel:r=`Before`,afterLabel:i=`After`,className:a,children:o,...s},c)=>(0,F.jsx)(`div`,{ref:c,className:V(`pui-ba`,a),...s,children:o??(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Ds,{label:r,children:(0,F.jsx)(`ul`,{children:(e??[]).map((e,t)=>(0,F.jsx)(`li`,{children:e},t))})}),(0,F.jsx)(ks,{brand:n}),(0,F.jsx)(Os,{label:i,children:(0,F.jsx)(`ul`,{children:(t??[]).map((e,t)=>(0,F.jsx)(`li`,{children:e},t))})})]})}));Es.displayName=`BeforeAfter`;var Ds=(0,P.forwardRef)(({label:e=`Before`,className:t,children:n,...r},i)=>(0,F.jsxs)(`div`,{ref:i,className:V(`pui-ba__panel pui-ba__panel--before`,t),...r,children:[(0,F.jsx)(`div`,{className:`pui-ba__tag`,children:e}),n]}));Ds.displayName=`BeforeAfter.Before`;var Os=(0,P.forwardRef)(({label:e=`After`,className:t,children:n,...r},i)=>(0,F.jsxs)(`div`,{ref:i,className:V(`pui-ba__panel pui-ba__panel--after`,t),...r,children:[(0,F.jsx)(`div`,{className:`pui-ba__tag`,children:e}),n]}));Os.displayName=`BeforeAfter.After`;var ks=(0,P.forwardRef)(({brand:e,className:t,...n},r)=>(0,F.jsxs)(`div`,{ref:r,className:V(`pui-ba__arrow`,t),...n,children:[(0,F.jsx)(ho,{}),e?(0,F.jsxs)(`span`,{children:[`with `,e]}):(0,F.jsx)(`span`,{children:`after`}),(0,F.jsx)(`span`,{children:`→`})]}));ks.displayName=`BeforeAfter.Arrow`,Object.assign(Es,{Before:Ds,After:Os,Arrow:ks});var As=(0,P.forwardRef)(({placeholder:e=`you@startup.ai`,defaultValue:t=``,ctaLabel:n=`Notify me`,leading:r,footnote:i,onSubmit:a,className:o,...s},c)=>{let[l,u]=(0,P.useState)(t);return(0,F.jsxs)(`div`,{className:V(`pui-waitlist-wrap`,o),children:[(0,F.jsxs)(`form`,{ref:c,className:`pui-waitlist`,onSubmit:e=>{e.preventDefault(),a?.(l)},...s,children:[r===!1?null:(0,F.jsx)(`span`,{className:`pui-waitlist__icon`,"aria-hidden":`true`,children:r??(0,F.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`,width:`18`,height:`18`,children:[(0,F.jsx)(`rect`,{x:`3`,y:`5`,width:`18`,height:`14`,rx:`2`}),(0,F.jsx)(`path`,{d:`M3 7l9 6 9-6`})]})}),(0,F.jsx)(`input`,{className:`pui-waitlist__input`,type:`email`,placeholder:e,value:l,onChange:e=>u(e.target.value)}),(0,F.jsx)(xo,{type:`submit`,variant:`solid`,children:n})]}),i&&(0,F.jsx)(`div`,{className:`pui-waitlist__footnote`,children:i})]})});As.displayName=`WaitlistForm`;function js({open:e,defaultOpen:t=!1,onOpenChange:n,timer:r=0,title:i,children:a,closeLabel:o=`Maybe later`,closeOnEscape:s=!1,closeOnBackdrop:c=!1,container:l,className:u}){let d=e!==void 0,[f,p]=(0,P.useState)(t),m=d?e:f,h=e=>{d||p(e),n?.(e)};if((0,P.useEffect)(()=>{if(r<=0||m)return;let e=setTimeout(()=>h(!0),r);return()=>clearTimeout(e)},[]),(0,P.useEffect)(()=>{if(!m||!s)return;let e=e=>{e.key===`Escape`&&(e.preventDefault(),h(!1))};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[m,s]),(0,P.useEffect)(()=>{if(!m)return;let e=e=>{e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||[`[`,`]`,`j`,`k`,`ArrowLeft`,`ArrowRight`].includes(e.key)&&e.stopPropagation()};return document.addEventListener(`keydown`,e,{capture:!0}),()=>document.removeEventListener(`keydown`,e,{capture:!0})},[m]),(0,P.useEffect)(()=>{if(!m)return;let e=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=e}},[m]),!m)return null;let g=l??(typeof document<`u`?document.body:null);return g?(0,Vn.createPortal)((0,F.jsxs)(`div`,{className:`pui-popover-overlay`,role:`dialog`,"aria-modal":`true`,children:[(0,F.jsx)(`div`,{className:`pui-popover-backdrop`,"aria-hidden":`true`,onClick:c?()=>h(!1):void 0}),(0,F.jsxs)(`div`,{className:V(`pui-popover`,u),children:[i&&(0,F.jsx)(`div`,{className:`pui-popover__title`,children:i}),(0,F.jsx)(`div`,{className:`pui-popover__body`,children:a}),o!==!1&&(0,F.jsx)(`button`,{type:`button`,className:`pui-popover__dismiss`,onClick:()=>h(!1),children:o})]})]}),g):null}js.displayName=`Popover`;var Ms={primary:`wave`,secondary:`ghost`,danger:`ghost`,icon:`ghost`},Ns={sm:`sm`,md:`md`};function H({tone:e=`secondary`,size:t=`md`,loading:n=!1,block:r=!1,className:i,children:a,disabled:o,...s}){return(0,F.jsx)(xo,{variant:Ms[e],size:Ns[t],loading:n,block:r,className:[`admin-button`,`admin-button-${e}`,i].filter(Boolean).join(` `),disabled:o||n,...s,children:a})}var Ps={ok:`var(--ok)`,warn:`var(--warn)`,err:`var(--err)`,dim:`var(--text-3)`};function Fs({status:e,pulse:t}){return(0,F.jsx)(_o,{color:Ps[e],static:!t,className:`admin-status-dot`})}function U({children:e,className:t,breathing:n=!1,glowOnHover:r=!1,...i}){return(0,F.jsx)(Zo,{breathing:n,glowOnHover:r,className:[`admin-surface`,t].filter(Boolean).join(` `),...i,children:e})}function Is({label:e=`Loading`,info:t,className:n}){return(0,F.jsx)(cs,{verbs:[e],glyphs:[`.`,`o`,`O`,`o`],glyphInterval:220,ellipsis:`...`,info:t,glyphColor:`var(--accent)`,className:[`admin-loading`,n].filter(Boolean).join(` `)})}function Ls({value:e,precision:t=0,durationMs:n=450,className:r,format:i}){let a=10**t,o=Math.round(e*a),s=(0,P.useRef)(o),c=s.current;return(0,P.useEffect)(()=>{s.current=o},[o]),(0,F.jsx)(_s,{target:o,from:c,durationMs:n,className:r,format:e=>{let t=e/a;return i?i(t):t.toLocaleString()}},o)}function Rs(){let e=$i(e=>e.login),[t,n]=(0,P.useState)(``),[r,i]=(0,P.useState)(!1);async function a(t){t.preventDefault();let r=t.currentTarget.elements.namedItem(`token`).value.trim();if(r){i(!0),n(``);try{if(!(await fetch(`/admin/api/metrics`,{headers:{Authorization:`Bearer ${r}`}})).ok)throw Error(`Invalid token`);e(r)}catch{n(`Invalid token`)}finally{i(!1)}}}return(0,F.jsxs)(`div`,{className:`login-overlay`,children:[(0,F.jsx)(Uo,{density:24,speed:.16,linkDistance:110,hoverDistance:120,hoverGravity:.002,baseOpacity:.18,colors:[`#e8a030`,`#4caf6e`,`#5aa9e6`],linkColor:`#e8a030`,className:`login-node-bg`}),(0,F.jsxs)(U,{className:`login-card`,glowOnHover:!0,breathing:!0,children:[(0,F.jsxs)(`div`,{className:`login-title`,children:[(0,F.jsx)(`span`,{className:`prompt`,children:`>\xA0`}),`proxy admin`]}),(0,F.jsxs)(`form`,{onSubmit:a,children:[(0,F.jsx)(`input`,{type:`password`,name:`token`,placeholder:`Admin token`,autoComplete:`current-password`,autoFocus:!0}),(0,F.jsx)(H,{type:`submit`,tone:`primary`,loading:r,block:!0,children:`Sign in`})]}),(0,F.jsx)(`div`,{className:`login-error`,children:t})]})]})}var zs=[{label:`Overview`,items:[{to:`/dashboard`,label:`Dashboard`},{to:`/requests`,label:`Request Log`},{to:`/traffic`,label:`Traffic`}]},{label:`Configure`,items:[{to:`/providers`,label:`Providers`},{to:`/routes`,label:`Routes`},{to:`/models`,label:`Models`},{to:`/backends`,label:`Backends`}]},{label:`Access`,items:[{to:`/keys`,label:`API Keys`},{to:`/audit`,label:`Audit Log`}]},{label:`System`,items:[{to:`/settings`,label:`Settings`},{to:`/uptime`,label:`Uptime`}]}];function Bs(){let e=$i(e=>e.logout),t=ea(e=>e.status);return(0,F.jsxs)(`aside`,{className:`sidebar`,children:[(0,F.jsx)(`div`,{className:`sidebar-brand`,children:`anyllm`}),(0,F.jsx)(`div`,{className:`sidebar-scroll`,children:zs.map(e=>(0,F.jsxs)(`div`,{className:`sidebar-group`,children:[(0,F.jsx)(`div`,{className:`sidebar-group-label`,children:e.label}),e.items.map(e=>(0,F.jsx)(I,{to:e.to,className:({isActive:e})=>`sidebar-item${e?` active`:``}`,children:e.label},e.to))]},e.label))}),(0,F.jsxs)(`div`,{className:`sidebar-footer`,children:[(0,F.jsx)(`span`,{className:`ws-status ${t===`connected`?`connected`:`disconnected`}`,children:t===`connected`?`Live`:`Offline`}),(0,F.jsx)(H,{size:`sm`,onClick:e,children:`Sign out`})]})]})}function Vs(){let e=fa(e=>e.toasts);return e.length===0?null:(0,F.jsx)(`div`,{className:`toast-stack`,role:`region`,"aria-label":`Notifications`,children:e.map(e=>(0,F.jsx)(Hs,{toast:e},e.id))})}function Hs({toast:e}){let t=fa(e=>e.dismiss);return(0,P.useEffect)(()=>{if(e.ttlMs==null)return;let n=window.setTimeout(()=>t(e.id),e.ttlMs);return()=>window.clearTimeout(n)},[e.id,e.ttlMs,t]),(0,F.jsxs)(`div`,{className:`toast toast-${e.variant}`,role:`status`,children:[(0,F.jsx)(`div`,{className:`toast-message`,children:e.message}),(0,F.jsx)(`button`,{type:`button`,className:`toast-close`,"aria-label":`Dismiss`,onClick:()=>t(e.id),children:`×`})]})}function Us({req:e}){return(0,F.jsxs)(`div`,{className:`feed-detail`,children:[(0,F.jsx)(`span`,{className:`label`,children:`Request ID`}),(0,F.jsx)(`span`,{className:`val`,children:e.request_id}),(0,F.jsx)(`span`,{className:`label`,children:`Backend`}),(0,F.jsx)(`span`,{className:`val`,children:e.backend}),(0,F.jsx)(`span`,{className:`label`,children:`Model (req)`}),(0,F.jsx)(`span`,{className:`val`,children:e.model_requested??`—`}),(0,F.jsx)(`span`,{className:`label`,children:`Model (mapped)`}),(0,F.jsx)(`span`,{className:`val`,children:e.model_mapped??`—`}),(0,F.jsx)(`span`,{className:`label`,children:`Latency`}),(0,F.jsxs)(`span`,{className:`val`,children:[e.latency_ms,` ms`]}),(0,F.jsx)(`span`,{className:`label`,children:`Tokens in/out`}),(0,F.jsxs)(`span`,{className:`val`,children:[e.input_tokens??`—`,` / `,e.output_tokens??`—`]}),(0,F.jsx)(`span`,{className:`label`,children:`Cost`}),(0,F.jsx)(`span`,{className:`val`,children:e.cost_usd==null?`—`:`$${e.cost_usd.toFixed(6)}`}),e.error_message&&(0,F.jsx)(`div`,{className:`error-msg`,children:e.error_message})]})}function Ws(e){return e<300?`status-2xx`:e<500?`status-4xx`:`status-5xx`}function Gs({req:e}){let[t,n]=(0,P.useState)(!1);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`feed-row`,onClick:()=>n(e=>!e),children:[(0,F.jsx)(`span`,{className:`mono dim`,children:e.timestamp.slice(11,19)}),(0,F.jsx)(`span`,{className:`mono ${Ws(e.status_code)}`,children:e.status_code}),(0,F.jsxs)(`span`,{className:`mono`,children:[e.latency_ms,`ms`]}),(0,F.jsxs)(`span`,{className:`mono`,style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:[e.model_requested??e.backend,e.is_streaming&&(0,F.jsx)(`span`,{className:`streaming-badge`,children:`stream`})]}),(0,F.jsx)(`span`,{className:`mono dim`,children:e.input_tokens??`—`}),(0,F.jsx)(`span`,{className:`mono dim`,children:e.output_tokens??`—`}),(0,F.jsx)(`span`,{className:`mono dim`,children:e.cost_usd==null?`—`:`$${e.cost_usd.toFixed(5)}`})]}),t&&(0,F.jsx)(Us,{req:e})]})}var Ks=200;function qs({initial:e}){let[t,n]=(0,P.useState)(e??[]),[r,i]=(0,P.useState)(!1),a=(0,P.useRef)(r);a.current=r;let o=ea(e=>e.lastEvent);return(0,P.useEffect)(()=>{!o||o.type!==`request_completed`||a.current||n(e=>[o.data,...e].slice(0,Ks))},[o]),(0,F.jsxs)(`div`,{children:[(0,F.jsxs)(`div`,{className:`section-header`,children:[(0,F.jsx)(`span`,{className:`section-label`,children:`Live Feed`}),(0,F.jsx)(H,{size:`sm`,tone:r?`primary`:`secondary`,onClick:()=>i(e=>!e),children:r?`Resume`:`Pause`})]}),(0,F.jsxs)(`div`,{className:`feed`,children:[(0,F.jsxs)(`div`,{className:`feed-header`,children:[(0,F.jsx)(`span`,{children:`Time`}),(0,F.jsx)(`span`,{children:`Status`}),(0,F.jsx)(`span`,{children:`Latency`}),(0,F.jsx)(`span`,{children:`Model`}),(0,F.jsx)(`span`,{children:`In`}),(0,F.jsx)(`span`,{children:`Out`}),(0,F.jsx)(`span`,{children:`Cost`})]}),t.length===0?(0,F.jsx)(`div`,{className:`empty`,children:`Waiting for requests…`}):t.map(e=>(0,F.jsx)(Gs,{req:e},e.request_id))]})]})}function Js({text:e}){return(0,F.jsx)(`span`,{className:`info-tip`,title:e,"aria-label":e,role:`img`,children:`?`})}function Ys({series:e,gridColor:t=`var(--border-sub)`,height:n=130}){let r=n,i={top:8,right:8,bottom:0,left:0},a=600-i.left-i.right,o=r-i.top-i.bottom,s=e.flatMap(e=>e.data),c=Math.max(...s,1),l=Math.max(...e.map(e=>e.data.length),2);function u(e){return i.left+e/(l-1)*a}function d(e){return i.top+o-e/c*o}let f=Array.from({length:4},(e,t)=>i.top+t/3*o);return(0,F.jsxs)(`svg`,{className:`chart-svg`,viewBox:`0 0 600 ${r}`,preserveAspectRatio:`none`,style:{height:n},children:[f.map((e,n)=>(0,F.jsx)(`line`,{className:`chart-grid-line`,x1:i.left,y1:e,x2:600-i.right,y2:e,stroke:t},n)),e.map((e,t)=>{if(e.data.length<2)return null;let n=e.data.map((e,t)=>`${u(t)},${d(e)}`).join(` `);return(0,F.jsxs)(`g`,{children:[(0,F.jsx)(`polygon`,{className:`chart-area`,points:[`${u(0)},${i.top+o}`,...e.data.map((e,t)=>`${u(t)},${d(e)}`),`${u(e.data.length-1)},${i.top+o}`].join(` `),fill:e.color}),(0,F.jsx)(`polyline`,{className:`chart-line${e.secondary?` secondary`:``}`,points:n,stroke:e.color})]},t)})]})}function Xs({loading:e,error:t,empty:n,message:r}){return e?(0,F.jsx)(`div`,{className:`empty`,children:(0,F.jsx)(Is,{})}):t?(0,F.jsx)(`div`,{className:`empty error`,children:t}):n?(0,F.jsx)(`div`,{className:`empty`,children:r??`No data`}):null}function Zs(){let[e,t]=(0,P.useState)(6),[n,r]=(0,P.useState)(``),{data:i}=Ua(),{data:a,isLoading:o,error:s}=La(e,n),c=a?[{label:`Requests`,color:`#e8a030`,data:a.series.map(e=>e.requests)},{label:`Errors`,color:`#e05252`,data:a.series.map(e=>e.errors),secondary:!0}]:[],l=a?[{label:`Input`,color:`#4caf6e`,data:a.series.map(e=>e.input_tokens)},{label:`Output`,color:`#6eb5c0`,data:a.series.map(e=>e.output_tokens),secondary:!0}]:[],u=a?[{label:`Cost`,color:`#c87dd4`,data:a.series.map(e=>e.cost_usd)}]:[];return(0,F.jsxs)(`div`,{children:[(0,F.jsxs)(`div`,{className:`operator-controls`,children:[(0,F.jsx)(`span`,{className:`section-label`,style:{marginBottom:0},children:`Operator View`}),(0,F.jsxs)(`div`,{className:`form-row`,style:{flexWrap:`wrap`,gap:6,marginTop:0},children:[(0,F.jsxs)(`select`,{value:e,onChange:e=>t(Number(e.target.value)),children:[(0,F.jsx)(`option`,{value:1,children:`Last 1 hour`}),(0,F.jsx)(`option`,{value:6,children:`Last 6 hours`}),(0,F.jsx)(`option`,{value:24,children:`Last 24 hours`})]}),(0,F.jsxs)(`select`,{value:n,onChange:e=>r(e.target.value),children:[(0,F.jsx)(`option`,{value:``,children:`All backends`}),i?.map(e=>(0,F.jsx)(`option`,{value:e.name,children:e.name},e.name))]})]})]}),a&&(0,F.jsxs)(`div`,{className:`stats-row`,children:[(0,F.jsxs)(U,{className:`stat`,children:[(0,F.jsx)(`div`,{className:`stat-label`,children:`Input Tokens`}),(0,F.jsx)(`div`,{className:`stat-value`,children:(0,F.jsx)(Ls,{value:a.total_input_tokens})})]}),(0,F.jsxs)(U,{className:`stat`,children:[(0,F.jsx)(`div`,{className:`stat-label`,children:`Output Tokens`}),(0,F.jsx)(`div`,{className:`stat-value`,children:(0,F.jsx)(Ls,{value:a.total_output_tokens})})]}),(0,F.jsxs)(U,{className:`stat`,children:[(0,F.jsxs)(`div`,{className:`stat-label`,children:[`Window Failures`,(0,F.jsx)(Js,{text:`Failed (error) requests within the selected time window and backend filter.`})]}),(0,F.jsx)(`div`,{className:`stat-value`,children:(0,F.jsx)(Ls,{value:a.total_errors})})]}),(0,F.jsxs)(U,{className:`stat`,children:[(0,F.jsxs)(`div`,{className:`stat-label`,children:[`Window Cost`,(0,F.jsx)(Js,{text:`Estimated USD spend within the selected time window and backend filter, from model pricing.`})]}),(0,F.jsx)(`div`,{className:`stat-value`,children:(0,F.jsx)(Ls,{value:a.total_cost_usd,precision:2,format:e=>`$${e.toFixed(2)}`})})]})]}),(0,F.jsx)(Xs,{loading:o,error:s?.message}),a&&(0,F.jsxs)(`div`,{className:`operator-grid`,children:[(0,F.jsxs)(U,{className:`chart-card`,children:[(0,F.jsxs)(`div`,{className:`chart-header`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`div`,{className:`chart-title`,children:`Request Volume`}),(0,F.jsx)(`div`,{className:`chart-subtitle`,children:`Rolling request count and errors`})]}),(0,F.jsx)(`div`,{className:`chart-value`,children:a.total_requests})]}),(0,F.jsx)(Ys,{series:c})]}),(0,F.jsxs)(U,{className:`chart-card`,children:[(0,F.jsxs)(`div`,{className:`chart-header`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`div`,{className:`chart-title`,children:`Tokens`}),(0,F.jsx)(`div`,{className:`chart-subtitle`,children:`Input and output usage`})]}),(0,F.jsx)(`div`,{className:`chart-value`,children:(a.total_input_tokens+a.total_output_tokens).toLocaleString()})]}),(0,F.jsx)(Ys,{series:l})]}),(0,F.jsxs)(U,{className:`chart-card`,children:[(0,F.jsxs)(`div`,{className:`chart-header`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`div`,{className:`chart-title`,children:`Estimated Cost`}),(0,F.jsx)(`div`,{className:`chart-subtitle`,children:`USD by minute bucket`})]}),(0,F.jsxs)(`div`,{className:`chart-value`,children:[`$`,a.total_cost_usd.toFixed(4)]})]}),(0,F.jsx)(Ys,{series:u})]})]})]})}function Qs(){let{data:e}=Ia();return(0,F.jsxs)(`div`,{children:[(0,F.jsxs)(`div`,{className:`stats-row`,children:[(0,F.jsxs)(U,{className:`stat`,children:[(0,F.jsx)(`div`,{className:`stat-label`,children:`Requests/min`}),(0,F.jsx)(`div`,{className:`stat-value`,children:e?(0,F.jsx)(Ls,{value:e.requests_per_minute,precision:1,format:e=>e.toFixed(1)}):`—`})]}),(0,F.jsxs)(U,{className:`stat`,children:[(0,F.jsx)(`div`,{className:`stat-label`,children:`Error Rate`}),(0,F.jsx)(`div`,{className:`stat-value`,children:e?(0,F.jsx)(Ls,{value:e.error_rate*100,precision:1,format:e=>`${e.toFixed(1)}%`}):`—`})]}),(0,F.jsxs)(U,{className:`stat`,children:[(0,F.jsxs)(`div`,{className:`stat-label`,children:[`P50 Latency`,(0,F.jsx)(Js,{text:`Median response latency — half of requests were faster than this.`})]}),(0,F.jsx)(`div`,{className:`stat-value`,children:e?(0,F.jsx)(Ls,{value:e.p50_latency_ms??0,format:e=>`${Math.round(e)}ms`}):`—`})]}),(0,F.jsxs)(U,{className:`stat`,children:[(0,F.jsxs)(`div`,{className:`stat-label`,children:[`P95 Latency`,(0,F.jsx)(Js,{text:`95th-percentile latency — 95% of requests were faster than this. Captures tail slowness.`})]}),(0,F.jsx)(`div`,{className:`stat-value`,children:e?(0,F.jsx)(Ls,{value:e.p95_latency_ms??0,format:e=>`${Math.round(e)}ms`}):`—`})]}),(0,F.jsxs)(U,{className:`stat`,children:[(0,F.jsx)(`div`,{className:`stat-label`,children:`Total Requests`}),(0,F.jsx)(`div`,{className:`stat-value`,children:(0,F.jsx)(Ls,{value:e?.total_requests??0})})]})]}),(0,F.jsxs)(`div`,{className:`stats-row`,style:{marginBottom:16},children:[(0,F.jsxs)(U,{className:`stat`,children:[(0,F.jsx)(`div`,{className:`stat-label`,children:`Streams Started`}),(0,F.jsx)(`div`,{className:`stat-value`,children:(0,F.jsx)(Ls,{value:e?.streams_started??0})})]}),(0,F.jsxs)(U,{className:`stat`,children:[(0,F.jsx)(`div`,{className:`stat-label`,children:`Completed`}),(0,F.jsx)(`div`,{className:`stat-value ok`,children:(0,F.jsx)(Ls,{value:e?.streams_completed??0})})]}),(0,F.jsxs)(U,{className:`stat`,children:[(0,F.jsx)(`div`,{className:`stat-label`,children:`Failed`}),(0,F.jsx)(`div`,{className:`stat-value`,style:{color:`var(--err)`},children:(0,F.jsx)(Ls,{value:e?.streams_failed??0})})]}),(0,F.jsxs)(U,{className:`stat`,children:[(0,F.jsx)(`div`,{className:`stat-label`,children:`Client Disconnects`}),(0,F.jsx)(`div`,{className:`stat-value`,style:{color:`var(--warn)`},children:(0,F.jsx)(Ls,{value:e?.streams_client_disconnected??0})})]})]}),(e?.pxpipe_compressed_total??0)>0&&(0,F.jsxs)(`div`,{className:`stats-row`,style:{marginBottom:16},children:[(0,F.jsxs)(U,{className:`stat`,children:[(0,F.jsx)(`div`,{className:`stat-label`,children:`Image-Compressed Requests`}),(0,F.jsx)(`div`,{className:`stat-value`,children:(0,F.jsx)(Ls,{value:e?.pxpipe_compressed_total??0})})]}),(0,F.jsxs)(U,{className:`stat`,children:[(0,F.jsx)(`div`,{className:`stat-label`,children:`Images Emitted`}),(0,F.jsx)(`div`,{className:`stat-value`,children:(0,F.jsx)(Ls,{value:e?.pxpipe_images_total??0})})]}),(0,F.jsxs)(U,{className:`stat`,children:[(0,F.jsx)(`div`,{className:`stat-label`,children:`Chars Imaged`}),(0,F.jsx)(`div`,{className:`stat-value`,children:(0,F.jsx)(Ls,{value:e?.pxpipe_imaged_chars_total??0})})]})]}),(0,F.jsx)(Zs,{}),(0,F.jsx)(`div`,{style:{marginTop:16},children:(0,F.jsx)(qs,{})})]})}function $s({page:e,hasMore:t,onPrev:n,onNext:r}){return(0,F.jsxs)(`div`,{className:`pagination`,children:[(0,F.jsx)(H,{size:`sm`,onClick:n,disabled:e<=1,children:`Prev`}),(0,F.jsxs)(`span`,{children:[`Page `,e]}),(0,F.jsx)(H,{size:`sm`,onClick:r,disabled:!t,children:`Next`})]})}function ec({query:e,children:t,empty:n,loading:r,errorTitle:i=`Failed to load`,skeletonRows:a=3}){return e.isLoading&&e.data===void 0?(0,F.jsx)(F.Fragment,{children:r??(0,F.jsx)(tc,{count:a})}):e.isError?(0,F.jsxs)(`div`,{className:`async-error`,role:`alert`,children:[(0,F.jsx)(`div`,{className:`async-error-title`,children:i}),(0,F.jsx)(`div`,{className:`async-error-message`,children:e.error instanceof Error?e.error.message:String(e.error)}),(0,F.jsx)(H,{type:`button`,onClick:()=>{e.refetch()},disabled:e.isFetching,loading:e.isFetching,children:`Retry`})]}):e.data===void 0?null:n&&n.when(e.data)?(0,F.jsx)(F.Fragment,{children:n.render()}):(0,F.jsx)(F.Fragment,{children:t(e.data)})}function tc({count:e}){return(0,F.jsx)(`div`,{className:`skeleton-stack`,"aria-hidden":`true`,children:Array.from({length:e},(e,t)=>(0,F.jsx)(`div`,{className:`skeleton skeleton-row`},t))})}function nc(){let[e,t]=Bi(),n=Math.max(1,Number(e.get(`page`)??`1`)||1),r=e.get(`backend`)??``,i=e.get(`status`)??``;function a(n,r,i){let a=new URLSearchParams(e);r?a.set(n,r):a.delete(n),i?.resetPage&&a.delete(`page`),t(a,{replace:!0})}function o(r){let i=new URLSearchParams(e),a=r(n);a<=1?i.delete(`page`):i.set(`page`,String(a)),t(i,{replace:!0})}let s=Ra({page:n,page_size:50,backend:r,status:i}),{data:c}=Ua();return(0,F.jsxs)(`div`,{children:[(0,F.jsxs)(`div`,{className:`section-header`,children:[(0,F.jsx)(`span`,{className:`section-label`,children:`Request Log`}),(0,F.jsxs)(`div`,{className:`form-row`,style:{marginTop:0},children:[(0,F.jsxs)(`select`,{name:`requestlog-backend`,value:r,onChange:e=>a(`backend`,e.target.value,{resetPage:!0}),children:[(0,F.jsx)(`option`,{value:``,children:`All backends`}),c?.map(e=>(0,F.jsx)(`option`,{value:e.name,children:e.name},e.name))]}),(0,F.jsxs)(`select`,{name:`requestlog-status`,value:i,onChange:e=>a(`status`,e.target.value,{resetPage:!0}),children:[(0,F.jsx)(`option`,{value:``,children:`All status`}),(0,F.jsx)(`option`,{value:`ok`,children:`2xx`}),(0,F.jsx)(`option`,{value:`error`,children:`4xx/5xx`})]})]})]}),(0,F.jsx)(ec,{query:s,errorTitle:`Failed to load request log`,empty:{when:e=>e.requests.length===0&&n===1,render:()=>(0,F.jsxs)(`div`,{className:`empty-cta`,children:[(0,F.jsx)(`div`,{className:`empty-cta-title`,children:`No requests logged`}),(0,F.jsx)(`div`,{className:`empty-cta-body`,children:`Send a request through the proxy and it will appear here. Only proxied traffic is logged; admin API calls are in the Audit tab.`})]})},children:e=>(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`feed`,children:[(0,F.jsxs)(`div`,{className:`feed-header`,children:[(0,F.jsx)(`span`,{children:`Time`}),(0,F.jsx)(`span`,{children:`Status`}),(0,F.jsx)(`span`,{children:`Latency`}),(0,F.jsx)(`span`,{children:`Model`}),(0,F.jsx)(`span`,{children:`In`}),(0,F.jsx)(`span`,{children:`Out`}),(0,F.jsx)(`span`,{children:`Cost`})]}),e.requests.map(e=>(0,F.jsx)(Gs,{req:e},e.request_id))]}),(0,F.jsx)($s,{page:n,hasMore:e.has_more,onPrev:()=>o(e=>Math.max(1,e-1)),onNext:()=>o(e=>e+1)})]})})]})}var rc=[`a[href]`,`button:not([disabled])`,`textarea:not([disabled])`,`input:not([disabled])`,`select:not([disabled])`,`[tabindex]:not([tabindex="-1"])`].join(`,`);function ic({open:e,onClose:t,title:n,size:r=`md`,children:i,footer:a,dismissable:o=!0}){let s=(0,P.useRef)(null),c=(0,P.useRef)(null);return(0,P.useEffect)(()=>{if(!e)return;c.current=document.activeElement??null;let t=s.current;return t&&(t.querySelector(rc)??t).focus(),()=>{c.current?.focus?.()}},[e]),(0,P.useEffect)(()=>{if(!e)return;let t=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=t}},[e]),(0,P.useEffect)(()=>{if(!e)return;let n=e=>{if(e.key===`Escape`&&o){e.stopPropagation(),t();return}if(e.key!==`Tab`)return;let n=s.current;if(!n)return;let r=Array.from(n.querySelectorAll(rc)).filter(e=>!e.hasAttribute(`data-focus-skip`));if(r.length===0){e.preventDefault();return}let i=r[0],a=r[r.length-1],c=document.activeElement;e.shiftKey&&c===i?(e.preventDefault(),a.focus()):!e.shiftKey&&c===a&&(e.preventDefault(),i.focus())};return document.addEventListener(`keydown`,n),()=>document.removeEventListener(`keydown`,n)},[e,o,t]),e?(0,Vn.createPortal)((0,F.jsx)(`div`,{className:`modal-backdrop-v2`,onClick:()=>{o&&t()},children:(0,F.jsxs)(`div`,{ref:s,className:`modal-v2 modal-${r}`,role:`dialog`,"aria-modal":`true`,"aria-label":n,tabIndex:-1,onClick:e=>e.stopPropagation(),children:[(0,F.jsxs)(`div`,{className:`modal-header`,children:[(0,F.jsx)(`div`,{className:`modal-title`,children:n}),(0,F.jsx)(`button`,{type:`button`,className:`modal-close`,"aria-label":`Close`,onClick:t,disabled:!o,children:`×`})]}),(0,F.jsx)(`div`,{className:`modal-body`,children:i}),a!=null&&(0,F.jsx)(`div`,{className:`modal-footer`,children:a})]})}),document.body):null}function ac({open:e,onClose:t,onConfirm:n,title:r,message:i,confirmLabel:a=`Delete`,cancelLabel:o=`Cancel`,variant:s=`danger`}){let[c,l]=(0,P.useState)(!1),[u,d]=(0,P.useState)(null),f=async()=>{l(!0),d(null);try{await n(),t()}catch(e){d(e instanceof Error?e.message:String(e))}finally{l(!1)}},p=()=>{c||(d(null),t())};return(0,F.jsxs)(ic,{open:e,onClose:p,title:r,size:`sm`,dismissable:!c,footer:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(H,{type:`button`,onClick:p,disabled:c,children:o}),(0,F.jsx)(H,{type:`button`,tone:s===`danger`?`danger`:`primary`,onClick:f,disabled:c,loading:c,children:a})]}),children:[(0,F.jsx)(`div`,{className:`confirm-message`,children:i}),u&&(0,F.jsx)(`div`,{className:`confirm-error`,role:`alert`,children:u})]})}var oc=`env_import_pending_restart`;function sc(){return sessionStorage.getItem(oc)===`1`}function cc({configured:e=!0}){let{data:t,isLoading:n,error:r}=Wa(),{data:i}=qa(),a=Ga(),o=Ka(),s=to(),c=(0,P.useRef)(null),[l,u]=(0,P.useState)({}),[d,f]=(0,P.useState)(null),[p,m]=(0,P.useState)(null),[h,g]=(0,P.useState)(null),[_,v]=(0,P.useState)(sc),[y,b]=(0,P.useState)(null);function x(){if(!y)return Promise.resolve();let e=y;return o.mutateAsync(e).then(()=>void 0)}function S(e,t){a.mutate({[e]:l[e]??t})}function C(e,t){a.mutate({[e]:t})}function w(){return(t?.pxpipe_models??``).split(`,`).map(e=>e.trim()).filter(Boolean)}function T(e){let t=e.toLowerCase();return w().some(e=>t.includes(e.toLowerCase()))}function E(e,t){let n=w(),r=t?T(e)?n:[...n,e]:n.filter(t=>!e.toLowerCase().includes(t.toLowerCase()));a.mutate({pxpipe_models:r.join(`,`)})}function D(e){let t=e.target.files?.[0];t&&(f(null),m(null),s.mutate(t,{onSuccess(e){f(e),sessionStorage.setItem(oc,`1`),v(!0)},onError(e){try{let t=JSON.parse(e.message);if(t.hard_errors){m(t);return}}catch{}m({hard_errors:[e.message],warnings:[]})}}),c.current&&(c.current.value=``))}async function O(){g(null);try{await B()}catch(e){g(e instanceof Error?e.message:String(e))}}function ee(){sessionStorage.removeItem(oc),v(!1)}return(0,F.jsxs)(`div`,{children:[!e&&(0,F.jsxs)(`div`,{style:{marginBottom:20,padding:`12px 16px`,border:`1px solid var(--border)`,borderLeft:`3px solid var(--warn)`,borderRadius:`var(--r)`,fontSize:13},children:[(0,F.jsx)(`div`,{style:{fontWeight:600,marginBottom:8},children:`No backend configured — nothing to forward requests to.`}),(0,F.jsxs)(`div`,{style:{marginBottom:10},children:[`Add a backend on the `,(0,F.jsx)(`span`,{className:`mono`,children:`Backends`}),` tab, or configure one via env. The proxy needs a backend endpoint (where to forward) and a listen port (where to accept). LISTEN_PORT defaults to 3000. Create a `,(0,F.jsx)(`span`,{className:`mono`,children:`.anyllm.env`}),` and import it below, or pass it at startup: `,(0,F.jsx)(`span`,{className:`mono`,children:`anyllm-proxy --webui --env-file .anyllm.env`})]}),(0,F.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`1fr 1fr 1fr`,gap:10},children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`div`,{style:{fontWeight:600,marginBottom:4,fontSize:12},children:`OpenAI`}),(0,F.jsx)(`pre`,{style:{margin:0,padding:`6px 10px`,background:`var(--surface-2)`,borderRadius:`var(--r)`,fontSize:11,overflowX:`auto`},children:`OPENAI_API_KEY=sk-... PROXY_API_KEYS=my-key`})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`div`,{style:{fontWeight:600,marginBottom:4,fontSize:12},children:`Ollama / local LLM`}),(0,F.jsx)(`pre`,{style:{margin:0,padding:`6px 10px`,background:`var(--surface-2)`,borderRadius:`var(--r)`,fontSize:11,overflowX:`auto`},children:`OPENAI_BASE_URL=http://localhost:11434/v1 PROXY_OPEN_RELAY=true`})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`div`,{style:{fontWeight:600,marginBottom:4,fontSize:12},children:`OpenRouter / custom`}),(0,F.jsx)(`pre`,{style:{margin:0,padding:`6px 10px`,background:`var(--surface-2)`,borderRadius:`var(--r)`,fontSize:11,overflowX:`auto`},children:`OPENAI_BASE_URL=https://openrouter.ai/api/v1 OPENAI_API_KEY=sk-or-... -PROXY_API_KEYS=my-key`})]})]})]}),_&&(0,F.jsxs)(H,{className:`settings-restart-banner`,children:[(0,F.jsx)(`span`,{children:`Restart the proxy for imported env vars to take effect.`}),(0,F.jsx)(V,{size:`sm`,onClick:ee,children:`Dismiss`})]}),(0,F.jsxs)(`div`,{style:{marginBottom:24},children:[(0,F.jsx)(`div`,{className:`section-label`,style:{marginBottom:8},children:`Env File`}),(0,F.jsxs)(`div`,{style:{display:`flex`,gap:8,alignItems:`center`},children:[(0,F.jsx)(`input`,{ref:c,type:`file`,accept:`.env,.anyllm.env,text/plain`,style:{display:`none`},onChange:D}),(0,F.jsx)(V,{size:`sm`,onClick:()=>c.current?.click(),disabled:s.isPending,loading:s.isPending,children:`Import .anyllm.env`}),(0,F.jsx)(V,{size:`sm`,onClick:O,children:`Export .anyllm.env`})]}),d&&(0,F.jsxs)(`div`,{style:{marginTop:10},children:[(0,F.jsxs)(`div`,{className:`dim`,style:{marginBottom:4},children:[d.applied,` variable`,d.applied===1?``:`s`,` imported.`,d.warnings.length===0&&` No issues.`]}),d.warnings.length>0&&(0,F.jsxs)(`div`,{style:{marginTop:8,padding:`8px 12px`,background:`var(--warn-dim)`,borderLeft:`3px solid var(--warn)`,borderRadius:`var(--r)`,fontSize:12},children:[(0,F.jsx)(`div`,{style:{fontWeight:600,marginBottom:4},children:`Warnings`}),d.warnings.map((e,t)=>(0,F.jsxs)(`div`,{className:`mono`,style:{fontSize:12},children:[e.line!=null&&(0,F.jsxs)(`span`,{className:`dim`,children:[`[line `,e.line,`] `]}),e.key&&(0,F.jsxs)(`span`,{children:[e.key,`: `]}),e.message]},t))]})]}),p&&(0,F.jsxs)(`div`,{style:{marginTop:10,padding:`8px 12px`,background:`var(--err-dim)`,borderLeft:`3px solid var(--err)`,borderRadius:`var(--r)`,fontSize:12},children:[(0,F.jsx)(`div`,{style:{fontWeight:600,marginBottom:4},children:`Import rejected`}),p.hard_errors.map((e,t)=>(0,F.jsx)(`div`,{className:`mono`,style:{fontSize:12},children:e},t)),p.warnings.length>0&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`div`,{style:{fontWeight:600,marginTop:8,marginBottom:4},children:`Warnings (from partial parse)`}),p.warnings.map((e,t)=>(0,F.jsxs)(`div`,{className:`mono`,style:{fontSize:12},children:[e.line!=null&&(0,F.jsxs)(`span`,{className:`dim`,children:[`[line `,e.line,`] `]}),e.message]},t))]})]}),h&&(0,F.jsxs)(`div`,{style:{marginTop:10,padding:`8px 12px`,background:`var(--err-dim)`,borderLeft:`3px solid var(--err)`,borderRadius:`var(--r)`,fontSize:12},children:[`Export failed: `,h]})]}),(0,F.jsx)(Xs,{loading:n,error:r?.message}),t&&(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`div`,{className:`section-label`,style:{marginBottom:8},children:`Runtime`}),(0,F.jsxs)(`div`,{className:`form-group`,children:[(0,F.jsxs)(`label`,{className:`form-label`,htmlFor:`cfg-redact-secrets`,style:{display:`flex`,alignItems:`center`,gap:8},children:[(0,F.jsx)(`input`,{id:`cfg-redact-secrets`,type:`checkbox`,checked:t.redact_secrets,disabled:a.isPending,onChange:e=>C(`redact_secrets`,e.target.checked)}),`Redact secrets`]}),t.overridden_keys.includes(`redact_secrets`)&&(0,F.jsx)(`div`,{className:`form-row`,children:(0,F.jsx)(V,{size:`sm`,onClick:()=>b(`redact_secrets`),children:`Reset`})})]}),(0,F.jsxs)(`div`,{className:`form-group`,children:[(0,F.jsxs)(`label`,{className:`form-label`,htmlFor:`cfg-log-bodies`,style:{display:`flex`,alignItems:`center`,gap:8},children:[(0,F.jsx)(`input`,{id:`cfg-log-bodies`,type:`checkbox`,checked:t.log_bodies,disabled:a.isPending,onChange:e=>C(`log_bodies`,e.target.checked)}),`Log bodies`]}),t.overridden_keys.includes(`log_bodies`)&&(0,F.jsx)(`div`,{className:`form-row`,children:(0,F.jsx)(V,{size:`sm`,onClick:()=>b(`log_bodies`),children:`Reset`})})]}),(0,F.jsxs)(`div`,{className:`form-group`,children:[(0,F.jsxs)(`label`,{className:`form-label`,htmlFor:`cfg-thinking-repair`,style:{display:`flex`,alignItems:`center`,gap:8},children:[(0,F.jsx)(`input`,{id:`cfg-thinking-repair`,type:`checkbox`,checked:t.anthropic_thinking_repair,disabled:a.isPending,onChange:e=>C(`anthropic_thinking_repair`,e.target.checked)}),`Anthropic thinking-block repair`]}),(0,F.jsx)(`div`,{className:`dim`,style:{fontSize:12},children:`Repairs corrupted thinking/redacted_thinking blocks in Anthropic passthrough requests (applies to any backend running in BACKEND=anthropic passthrough mode, including a named backend in a multi-backend config). Off by default.`}),t.overridden_keys.includes(`anthropic_thinking_repair`)&&(0,F.jsx)(`div`,{className:`form-row`,children:(0,F.jsx)(V,{size:`sm`,onClick:()=>b(`anthropic_thinking_repair`),children:`Reset`})})]}),(0,F.jsxs)(`div`,{className:`form-group`,children:[(0,F.jsxs)(`label`,{className:`form-label`,htmlFor:`cfg-pxpipe-compress`,style:{display:`flex`,alignItems:`center`,gap:8},children:[(0,F.jsx)(`input`,{id:`cfg-pxpipe-compress`,type:`checkbox`,checked:t.pxpipe_compress,disabled:a.isPending,onChange:e=>C(`pxpipe_compress`,e.target.checked)}),`Image context compression (pxpipe)`]}),(0,F.jsx)(`div`,{className:`dim`,style:{fontSize:12},children:`Renders the stable system + tool-definition slab of Anthropic passthrough requests to a PNG image block to save input tokens on vision models. Off by default. Enable per-model below — only models that read imaged text reliably are offered.`}),t.overridden_keys.includes(`pxpipe_compress`)&&(0,F.jsx)(`div`,{className:`form-row`,children:(0,F.jsx)(V,{size:`sm`,onClick:()=>b(`pxpipe_compress`),children:`Reset`})}),t.pxpipe_compress&&(0,F.jsxs)(`div`,{style:{marginTop:8},children:[(0,F.jsx)(`div`,{className:`form-label`,style:{fontSize:13},children:`Models in scope (vision-capable)`}),t.pxpipe_available_models.length===0?(0,F.jsx)(`div`,{className:`dim`,style:{fontSize:12},children:`No vision-capable models in the catalog.`}):(0,F.jsx)(`div`,{style:{display:`flex`,flexWrap:`wrap`,gap:`4px 16px`},children:t.pxpipe_available_models.map(e=>(0,F.jsxs)(`label`,{style:{display:`flex`,alignItems:`center`,gap:6,fontSize:12},children:[(0,F.jsx)(`input`,{type:`checkbox`,checked:T(e),disabled:a.isPending,onChange:t=>E(e,t.target.checked)}),e]},e))}),t.overridden_keys.includes(`pxpipe_models`)&&(0,F.jsx)(`div`,{className:`form-row`,style:{marginTop:6},children:(0,F.jsx)(V,{size:`sm`,onClick:()=>b(`pxpipe_models`),children:`Reset scope`})})]})]}),(0,F.jsxs)(`div`,{className:`form-group`,children:[(0,F.jsxs)(`label`,{className:`form-label`,htmlFor:`cfg-forward-client-auth`,style:{display:`flex`,alignItems:`center`,gap:8},children:[(0,F.jsx)(`input`,{id:`cfg-forward-client-auth`,type:`checkbox`,checked:t.forward_client_auth,disabled:a.isPending,onChange:e=>C(`forward_client_auth`,e.target.checked)}),`Forward client credential (Anthropic passthrough)`]}),(0,F.jsx)(`div`,{className:`dim`,style:{fontSize:12},children:`Forwards the client's own x-api-key/Authorization header upstream instead of the operator's configured credential (BACKEND=anthropic passthrough only, single-key/BYOK deployments). The proxy refuses to enable this with 2+ PROXY_API_KEYS entries and no PROXY_OPEN_RELAY. Off by default.`}),t.overridden_keys.includes(`forward_client_auth`)&&(0,F.jsx)(`div`,{className:`form-row`,children:(0,F.jsx)(V,{size:`sm`,onClick:()=>b(`forward_client_auth`),children:`Reset`})})]}),(0,F.jsxs)(`div`,{className:`form-group`,children:[(0,F.jsx)(`label`,{className:`form-label`,htmlFor:`cfg-tool-guardrail-mode`,children:`Tool guardrail mode`}),(0,F.jsxs)(`div`,{className:`form-row`,children:[(0,F.jsxs)(`select`,{id:`cfg-tool-guardrail-mode`,value:t.tool_guardrail_mode,disabled:a.isPending,onChange:e=>a.mutate({tool_guardrail_mode:e.target.value}),children:[(0,F.jsx)(`option`,{value:`disabled`,children:`Disabled`}),(0,F.jsx)(`option`,{value:`standard`,children:`Standard`})]}),t.overridden_keys.includes(`tool_guardrail_mode`)&&(0,F.jsx)(V,{size:`sm`,onClick:()=>b(`tool_guardrail_mode`),children:`Reset`})]}),(0,F.jsx)(`div`,{className:`dim`,style:{fontSize:12},children:`Applies advisory guardrails to tool calls the proxy auto-executes. Disabled by default.`})]}),t.entries.filter(e=>![`redact_secrets`,`log_bodies`,`anthropic_thinking_repair`,`pxpipe_compress`,`pxpipe_models`,`forward_client_auth`,`tool_guardrail_mode`].includes(e.key)).map(e=>{let t=`cfg-${e.key}`;return(0,F.jsxs)(`div`,{className:`form-group`,children:[(0,F.jsx)(`label`,{className:`form-label`,htmlFor:t,children:e.key}),(0,F.jsxs)(`div`,{className:`form-row`,children:[(0,F.jsx)(`input`,{id:t,name:e.key,value:l[e.key]??e.value,onChange:t=>u(n=>({...n,[e.key]:t.target.value}))}),(0,F.jsx)(V,{tone:`primary`,size:`sm`,onClick:()=>S(e.key,e.value),children:`Save`}),(0,F.jsx)(V,{size:`sm`,onClick:()=>b(e.key),children:`Reset`})]})]},e.key)})]}),i&&(0,F.jsxs)(`div`,{className:`readonly-section`,style:{marginTop:16},children:[(0,F.jsx)(`div`,{className:`section-label`,children:`Environment`}),(0,F.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`220px 1fr`,gap:`4px 12px`,marginTop:8,fontSize:12},children:Object.entries(i).map(([e,t])=>(0,F.jsxs)(P.Fragment,{children:[(0,F.jsx)(`span`,{className:`dim`,children:e}),(0,F.jsx)(`span`,{className:`mono`,children:t})]},e))})]}),(0,F.jsx)(ac,{open:y!==null,onClose:()=>b(null),onConfirm:x,title:`Reset override?`,message:(0,F.jsxs)(F.Fragment,{children:[`Reset override for `,(0,F.jsx)(`span`,{className:`mono`,children:y}),`? The runtime value will revert to the env-file or default. Active connections are not affected.`]}),confirmLabel:`Reset`,variant:`primary`})]})}function lz({variant:e}){return(0,F.jsx)(`span`,{className:`badge badge-${e}`,children:e})}function uz({spent:e,limit:t}){if(!t)return(0,F.jsx)(`span`,{className:`dim`,children:`—`});let n=Math.min(e/t*100,100),r=n>=95?`danger`:n>=80?`warn`:``;return(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`div`,{className:`budget-bar`,children:(0,F.jsx)(`div`,{className:`budget-bar-fill${r?` ${r}`:``}`,style:{width:`${n}%`}})}),(0,F.jsxs)(`span`,{className:`dim`,style:{fontSize:10},children:[`$`,e.toFixed(4),` / $`,t.toFixed(2)]})]})}function dz(e){let t=e.trim();return t?Number(t):null}function fz(e){return{description:e.description.trim()||null,max_budget_usd:dz(e.spendLimit),rpm_limit:dz(e.rpmLimit)}}function pz({onCreated:e}){let t=Va(),[n,r]=(0,P.useState)(``),[i,a]=(0,P.useState)(``),[o,s]=(0,P.useState)(``);function c(){t.mutate(fz({description:n,spendLimit:i,rpmLimit:o}),{onSuccess:t=>{r(``),a(``),s(``),e(t.key)}})}return(0,F.jsxs)(`div`,{className:`form-group`,children:[(0,F.jsx)(`div`,{className:`form-label`,children:`Create Key`}),(0,F.jsx)(`form`,{onSubmit:e=>{e.preventDefault(),c()},children:(0,F.jsxs)(`div`,{className:`form-row`,style:{flexWrap:`wrap`},children:[(0,F.jsx)(`input`,{name:`description`,placeholder:`Description`,value:n,onChange:e=>r(e.target.value)}),(0,F.jsx)(`input`,{name:`max_budget_usd`,placeholder:`Spend limit USD`,type:`number`,value:i,onChange:e=>a(e.target.value),style:{width:120}}),(0,F.jsx)(`input`,{name:`rpm_limit`,placeholder:`RPM limit`,type:`number`,value:o,onChange:e=>s(e.target.value),style:{width:100}}),(0,F.jsx)(V,{type:`submit`,tone:`primary`,loading:t.isPending,children:`Create`})]})})]})}function mz({vk:e,onClose:t}){let n=Ha(),r=Ua(),[i,a]=(0,P.useState)(e.description??``),[o,s]=(0,P.useState)(e.max_budget_usd?.toString()??``),[c,l]=(0,P.useState)(e.rpm_limit?.toString()??``),[u,d]=(0,P.useState)(new Set(e.allowed_routes??[])),[f,p]=(0,P.useState)(!1),{data:m}=co();function h(){n.mutate({id:e.id,body:{description:i||null,max_budget_usd:o?Number(o):null,rpm_limit:c?Number(c):null,allowed_routes:u.size>0?[...u]:null,expires_at:e.expires_at,tpm_limit:e.tpm_limit,budget_duration:e.budget_duration,allowed_models:e.allowed_models}},{onSuccess:t})}function g(){return r.mutateAsync(e.id)}return(0,P.useEffect)(()=>{r.isSuccess&&t()},[r.isSuccess]),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(ic,{open:!0,onClose:t,title:`Edit Key — ${e.key_prefix}…`,dismissable:!n.isPending,footer:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(V,{tone:`danger`,onClick:()=>p(!0),disabled:n.isPending,style:{marginRight:`auto`},children:`Revoke`}),(0,F.jsx)(V,{onClick:t,disabled:n.isPending,children:`Cancel`}),(0,F.jsx)(V,{tone:`primary`,onClick:h,loading:n.isPending,children:`Save`})]}),children:[(0,F.jsxs)(`div`,{className:`form-group`,children:[(0,F.jsx)(`label`,{className:`form-label`,htmlFor:`vk-desc`,children:`Description`}),(0,F.jsx)(`input`,{id:`vk-desc`,name:`description`,value:i,onChange:e=>a(e.target.value),style:{width:`100%`}})]}),(0,F.jsxs)(`div`,{className:`form-group`,children:[(0,F.jsx)(`label`,{className:`form-label`,htmlFor:`vk-spend`,children:`Spend limit (USD)`}),(0,F.jsx)(`input`,{id:`vk-spend`,name:`spend_limit`,value:o,onChange:e=>s(e.target.value),type:`number`,min:`0`,step:`0.01`})]}),(0,F.jsxs)(`div`,{className:`form-group`,children:[(0,F.jsx)(`label`,{className:`form-label`,htmlFor:`vk-rpm`,children:`RPM limit`}),(0,F.jsx)(`input`,{id:`vk-rpm`,name:`rpm_limit`,value:c,onChange:e=>l(e.target.value),type:`number`,min:`0`})]}),(0,F.jsxs)(`div`,{className:`form-group`,children:[(0,F.jsxs)(`div`,{className:`form-label`,children:[`Allowed routes `,u.size===0&&(0,F.jsx)(`span`,{className:`hint`,children:`(all routes)`})]}),(0,F.jsxs)(`div`,{className:`route-scope-list`,children:[m?.routes.map(e=>(0,F.jsxs)(`label`,{className:`route-scope-item`,children:[(0,F.jsx)(`input`,{type:`checkbox`,name:`route-${e.id}`,checked:u.has(e.id),onChange:()=>{d(t=>{let n=new Set(t);return n.has(e.id)?n.delete(e.id):n.add(e.id),n})}}),(0,F.jsx)(`span`,{children:e.name})]},e.id)),!m?.routes.length&&(0,F.jsx)(`span`,{className:`hint`,children:`No routes configured`})]})]})]}),(0,F.jsx)(ac,{open:f,onClose:()=>p(!1),onConfirm:g,title:`Revoke key?`,message:(0,F.jsxs)(F.Fragment,{children:[`Revoking `,(0,F.jsxs)(`span`,{className:`mono`,children:[e.key_prefix,`…`]}),` will immediately reject any request using it. This cannot be undone.`]}),confirmLabel:`Revoke`})]})}function hz(){let e=Ba(),[t,n]=Vi(),r=t.get(`q`)??``,i=t.get(`edit`),[a,o]=(0,P.useState)(null),[s,c]=(0,P.useState)(null);(0,P.useEffect)(()=>{if(!i||!e.data)return;let t=e.data.find(e=>String(e.id)===i);t&&c(t)},[i,e.data]);function l(){if(c(null),t.has(`edit`)){let e=new URLSearchParams(t);e.delete(`edit`),n(e,{replace:!0})}}function u(e){c(e);let r=new URLSearchParams(t);r.set(`edit`,String(e.id)),n(r,{replace:!0})}function d(e){let r=new URLSearchParams(t);e?r.set(`q`,e):r.delete(`q`),n(r,{replace:!0})}let f=r.trim().toLowerCase(),p=(0,P.useMemo)(()=>f?(e.data??[]).filter(e=>{let t=(e.description??``).toLowerCase(),n=e.key_prefix.toLowerCase();return t.includes(f)||n.includes(f)}):e.data??[],[e.data,f]);return(0,F.jsxs)(`div`,{children:[(0,F.jsx)(pz,{onCreated:o}),a&&(0,F.jsxs)(`div`,{className:`key-result`,children:[(0,F.jsx)(`div`,{className:`key-result-label`,children:`New key (copy now — not shown again)`}),a]}),(0,F.jsxs)(`div`,{className:`toolbar`,children:[(0,F.jsx)(`input`,{type:`search`,name:`keys-search`,placeholder:`Search by description or prefix…`,value:r,onChange:e=>d(e.target.value),className:`toolbar-search`}),e.data&&(0,F.jsxs)(`span`,{className:`dim toolbar-count`,children:[p.length,` of `,e.data.length]})]}),(0,F.jsx)(ec,{query:e,errorTitle:`Failed to load keys`,empty:{when:e=>e.length===0,render:()=>(0,F.jsxs)(`div`,{className:`empty-cta`,children:[(0,F.jsx)(`div`,{className:`empty-cta-title`,children:`No virtual keys yet`}),(0,F.jsx)(`div`,{className:`empty-cta-body`,children:`Use the form above to create one. Keys are shown once at creation and hashed in storage.`})]})},children:()=>p.length===0?(0,F.jsxs)(`div`,{className:`empty`,children:[`No keys match "`,r,`".`]}):(0,F.jsxs)(`table`,{className:`keys-grid`,children:[(0,F.jsx)(`thead`,{children:(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`th`,{children:`Prefix`}),(0,F.jsx)(`th`,{children:`Description`}),(0,F.jsx)(`th`,{children:`Status`}),(0,F.jsx)(`th`,{children:`Spend`}),(0,F.jsx)(`th`,{children:`Requests`}),(0,F.jsx)(`th`,{children:`Created`})]})}),(0,F.jsx)(`tbody`,{children:p.map(e=>(0,F.jsxs)(`tr`,{style:{cursor:`pointer`},onClick:()=>u(e),children:[(0,F.jsxs)(`td`,{className:`mono`,children:[e.key_prefix,`…`]}),(0,F.jsx)(`td`,{className:`dim`,children:e.description??`—`}),(0,F.jsx)(`td`,{children:(0,F.jsx)(lz,{variant:e.status})}),(0,F.jsx)(`td`,{children:(0,F.jsx)(uz,{spent:e.period_spend_usd,limit:e.max_budget_usd})}),(0,F.jsx)(`td`,{className:`mono`,children:e.total_requests.toLocaleString()}),(0,F.jsx)(`td`,{className:`mono dim`,children:e.created_at.slice(0,10)})]},e.id))})]})}),s&&(0,F.jsx)(mz,{vk:s,onClose:l},s.id)]})}var gz={openrouter:{text:`Public, no key needed`,needsKey:!1},deepinfra:{text:`Public, no key needed`,needsKey:!1},ollama:{text:`No key needed (local)`,needsKey:!1},configured:{text:`API key required`,needsKey:!0},custom:{text:`API key may be required`,needsKey:!0}};function _z(){return(0,F.jsx)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 16 16`,fill:`none`,className:`key-icon-inline`,children:(0,F.jsx)(`path`,{d:`M10.5 1a4.5 4.5 0 0 0-4.1 6.35L2 11.75V15h3.25v-2H7v-1.75h1.75L9.65 10.4A4.5 4.5 0 1 0 10.5 1zm1 3a1 1 0 1 1 0-2 1 1 0 0 1 0 2z`,fill:`currentColor`})})}function vz(){let e=Ya(),t=Xa(),n=Za(),r=Qa(),{data:i}=Wa(),{data:a}=io(),[o,s]=(0,P.useState)(``),[c,l]=(0,P.useState)(``),[u,d]=(0,P.useState)(``),[f,p]=(0,P.useState)(`openrouter`),[m,h]=(0,P.useState)(``),[g,_]=(0,P.useState)(``),[v,y]=(0,P.useState)(null),b=gz[f]??gz.custom;function x(){r.mutate({source:f,...f===`custom`?{url:m}:{}})}function S(){return v?n.mutateAsync(v).then(()=>void 0):Promise.resolve()}let C=g.trim().toLowerCase(),w=(0,P.useMemo)(()=>{let t=e.data?.models??[];return C?t.filter(e=>e.model_name.toLowerCase().includes(C)):t},[e.data,C]);return(0,F.jsxs)(`div`,{children:[(0,F.jsxs)(`div`,{className:`models-discover`,children:[(0,F.jsx)(`div`,{className:`section-label`,children:`Discover Models`}),(0,F.jsxs)(`div`,{className:`models-discover-row`,children:[(0,F.jsxs)(`select`,{value:f,onChange:e=>{p(e.target.value),r.reset()},children:[(0,F.jsx)(`option`,{value:`openrouter`,children:`OpenRouter`}),(0,F.jsx)(`option`,{value:`deepinfra`,children:`DeepInfra`}),(0,F.jsx)(`option`,{value:`ollama`,children:`Ollama (local)`}),(0,F.jsx)(`option`,{value:`configured`,children:`Configured backend`}),(0,F.jsx)(`option`,{value:`custom`,children:`Custom URL`})]}),f===`custom`&&(0,F.jsx)(`input`,{name:`discover-url`,placeholder:`https://api.example.com`,value:m,onChange:e=>h(e.target.value),style:{minWidth:220}}),(0,F.jsx)(V,{onClick:x,disabled:r.isPending||f===`custom`&&!m,loading:r.isPending,children:`Fetch`}),(0,F.jsxs)(`span`,{className:`dim models-discover-hint`,children:[b.needsKey&&(0,F.jsx)(_z,{}),b.text]})]}),r.isError&&(0,F.jsx)(`div`,{className:`inline-error`,children:r.error.message}),r.data&&r.data.models.length>0&&(0,F.jsxs)(`div`,{className:`models-discover-results`,children:[(0,F.jsxs)(`div`,{className:`dim models-discover-count`,children:[r.data.models.length,` model`,r.data.models.length===1?``:`s`,` found. Click to populate the form below.`]}),(0,F.jsx)(`div`,{className:`models-discover-list`,children:r.data.models.map(e=>(0,F.jsxs)(`div`,{onClick:()=>l(e.id),className:`models-discover-item${c===e.id?` is-selected`:``}`,children:[(0,F.jsx)(`span`,{className:`mono`,children:e.id}),e.name&&e.name!==e.id&&(0,F.jsx)(`span`,{className:`dim models-discover-item-name`,children:e.name})]},e.id))})]}),r.data&&r.data.models.length===0&&(0,F.jsx)(`div`,{className:`dim models-discover-count`,children:`No models returned.`})]}),(0,F.jsxs)(`datalist`,{id:`backends-list`,children:[i?.map(e=>(0,F.jsx)(`option`,{value:e.name,children:e.name},e.name)),a?.backends.map(e=>(0,F.jsxs)(`option`,{value:e.name,children:[e.name,` (managed)`]},`managed-${e.name}`))]}),(0,F.jsxs)(`div`,{className:`form-group`,children:[(0,F.jsx)(`div`,{className:`form-label`,children:`Add Model`}),(0,F.jsxs)(`div`,{className:`form-row`,style:{flexWrap:`wrap`},children:[(0,F.jsx)(`input`,{name:`model-name`,placeholder:`Virtual name`,value:o,onChange:e=>s(e.target.value)}),(0,F.jsx)(`input`,{name:`model-id`,placeholder:`Model ID`,value:c,onChange:e=>l(e.target.value)}),(0,F.jsx)(`input`,{name:`backend`,placeholder:`Backend`,value:u,onChange:e=>d(e.target.value),list:`backends-list`}),(0,F.jsx)(V,{tone:`primary`,onClick:()=>t.mutate({model_name:o,actual_model:c,backend_name:u}),disabled:!o||!c||!u||t.isPending,loading:t.isPending,children:`Add`})]})]}),(0,F.jsxs)(`div`,{className:`toolbar`,children:[(0,F.jsx)(`input`,{type:`search`,name:`models-search`,placeholder:`Search models…`,value:g,onChange:e=>_(e.target.value),className:`toolbar-search`}),e.data&&(0,F.jsxs)(`span`,{className:`dim toolbar-count`,children:[w.length,` of `,e.data.models.length]})]}),(0,F.jsx)(ec,{query:e,errorTitle:`Failed to load models`,empty:{when:e=>(e.models?.length??0)===0,render:()=>(0,F.jsxs)(H,{className:`empty-cta`,children:[(0,F.jsx)(`div`,{className:`empty-cta-title`,children:`No models configured`}),(0,F.jsx)(`div`,{className:`empty-cta-body`,children:`Add a model above, or use Discover to pull a catalog from OpenRouter, DeepInfra, Ollama, or a custom endpoint.`})]})},children:e=>w.length===0?(0,F.jsxs)(`div`,{className:`empty`,children:[`No models match "`,g,`".`]}):(0,F.jsxs)(`table`,{className:`route-table`,children:[(0,F.jsx)(`thead`,{children:(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`th`,{children:`Virtual Name`}),(0,F.jsx)(`th`,{children:`Deployments`}),(0,F.jsx)(`th`,{children:`Strategy`}),(0,F.jsx)(`th`,{})]})}),(0,F.jsx)(`tbody`,{children:w.map(t=>(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`td`,{className:`mono`,children:t.model_name}),(0,F.jsx)(`td`,{className:`mono`,children:t.deployments}),(0,F.jsx)(`td`,{className:`dim`,children:e.strategy??`—`}),(0,F.jsx)(`td`,{children:(0,F.jsx)(V,{tone:`danger`,size:`sm`,onClick:()=>y(t.model_name),children:`Remove`})})]},t.model_name))})]})}),(0,F.jsx)(ac,{open:v!==null,onClose:()=>y(null),onConfirm:S,title:`Remove model?`,message:(0,F.jsxs)(F.Fragment,{children:[`Remove model `,(0,F.jsx)(`span`,{className:`mono`,children:v}),`? Requests using this virtual name will fail until another model with the same name is added.`]}),confirmLabel:`Remove`})]})}function yz(){let[e,t]=Vi(),n=Math.max(1,Number(e.get(`page`)??`1`)||1);function r(r){let i=new URLSearchParams(e),a=r(n);a<=1?i.delete(`page`):i.set(`page`,String(a)),t(i,{replace:!0})}return(0,F.jsx)(`div`,{children:(0,F.jsx)(ec,{query:$a({page:n,page_size:50}),errorTitle:`Failed to load audit log`,empty:{when:e=>e.entries.length===0&&n===1,render:()=>(0,F.jsxs)(`div`,{className:`empty-cta`,children:[(0,F.jsx)(`div`,{className:`empty-cta-title`,children:`No audit entries yet`}),(0,F.jsx)(`div`,{className:`empty-cta-body`,children:`Admin actions (creating keys, editing routes, managing backends) are recorded here.`})]})},children:e=>(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`table`,{className:`route-table`,children:[(0,F.jsx)(`thead`,{children:(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`th`,{children:`Time`}),(0,F.jsx)(`th`,{children:`Action`}),(0,F.jsx)(`th`,{children:`Target`}),(0,F.jsx)(`th`,{children:`Detail`}),(0,F.jsx)(`th`,{children:`IP`})]})}),(0,F.jsx)(`tbody`,{children:e.entries.map(e=>(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`td`,{className:`mono dim`,children:e.timestamp.slice(0,19)}),(0,F.jsx)(`td`,{className:`mono`,children:e.action}),(0,F.jsxs)(`td`,{className:`dim`,children:[e.target_type,e.target_id?` #${e.target_id}`:``]}),(0,F.jsx)(`td`,{className:`dim audit-detail`,children:e.detail??`—`}),(0,F.jsx)(`td`,{className:`mono dim`,children:e.source_ip??`—`})]},e.id))})]}),(0,F.jsx)($s,{page:n,hasMore:e.has_more,onPrev:()=>r(e=>Math.max(1,e-1)),onNext:()=>r(e=>e+1)})]})})})}function bz({routes:e}){let t=[...e].sort((e,t)=>t.requests_per_min-e.requests_per_min);return(0,F.jsxs)(`table`,{className:`route-table`,children:[(0,F.jsx)(`thead`,{children:(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`th`,{children:`Route`}),(0,F.jsx)(`th`,{children:`Req/min`}),(0,F.jsx)(`th`,{children:`Error rate`}),(0,F.jsx)(`th`,{children:`Avg latency`}),(0,F.jsx)(`th`,{children:`P95 latency`}),(0,F.jsx)(`th`,{children:`Total`})]})}),(0,F.jsx)(`tbody`,{children:t.map(e=>(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`td`,{className:`mono`,children:e.path}),(0,F.jsx)(`td`,{className:`mono`,children:e.requests_per_min.toFixed(2)}),(0,F.jsxs)(`td`,{className:`mono`,style:{color:e.error_rate>.05?`var(--err)`:e.error_rate>.01?`var(--warn)`:void 0},children:[(e.error_rate*100).toFixed(1),`%`]}),(0,F.jsxs)(`td`,{className:`mono`,children:[e.avg_latency_ms.toFixed(0),`ms`]}),(0,F.jsxs)(`td`,{className:`mono`,children:[e.p95_latency_ms,`ms`]}),(0,F.jsx)(`td`,{className:`mono`,children:e.total_requests.toLocaleString()})]},e.path))})]})}var xz=[`#e8a030`,`#d4922b`,`#c07820`,`#a86015`,`#8c500a`],Sz=[`#6eb5c0`,`#5aa0ab`,`#468b96`,`#327681`,`#1e616c`];function Cz(){let[e,t]=(0,P.useState)(6),{data:n,isLoading:r,error:i}=eo(e),a=n?.routes??[],o=a.slice(0,5).map((e,t)=>{let r=(n?.series??[]).filter(t=>t.path===e.path).map(e=>e.requests);return{label:e.path,color:xz[t%xz.length],data:r}});return(0,F.jsxs)(`div`,{children:[(0,F.jsxs)(`div`,{className:`section-header`,children:[(0,F.jsx)(`span`,{className:`section-label`,children:`Traffic`}),(0,F.jsxs)(`select`,{value:e,onChange:e=>t(Number(e.target.value)),children:[(0,F.jsx)(`option`,{value:1,children:`Last 1 hour`}),(0,F.jsx)(`option`,{value:6,children:`Last 6 hours`}),(0,F.jsx)(`option`,{value:24,children:`Last 24 hours`})]})]}),(0,F.jsx)(Xs,{loading:r,error:i?.message}),n&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(bz,{routes:n.routes}),(0,F.jsxs)(`div`,{className:`operator-grid`,style:{marginTop:16},children:[(0,F.jsxs)(H,{className:`chart-card`,children:[(0,F.jsx)(`div`,{className:`chart-header`,children:(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`div`,{className:`chart-title`,children:`Requests / min by route`}),(0,F.jsx)(`div`,{className:`chart-subtitle`,children:`Stacked over time window`})]})}),(0,F.jsx)(Ys,{series:o})]}),(0,F.jsxs)(H,{className:`chart-card`,children:[(0,F.jsx)(`div`,{className:`chart-header`,children:(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`div`,{className:`chart-title`,children:`Avg latency per route`}),(0,F.jsx)(`div`,{className:`chart-subtitle`,children:`ms`})]})}),a.length===0?(0,F.jsx)(`div`,{className:`empty`,children:`No routes`}):(0,F.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:8,paddingTop:8},children:a.slice(0,5).map((e,t)=>{let n=Math.max(...a.slice(0,5).map(e=>e.avg_latency_ms),1),r=e.avg_latency_ms/n*100;return(0,F.jsxs)(`div`,{children:[(0,F.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,fontSize:11,marginBottom:2},children:[(0,F.jsx)(`span`,{className:`mono dim`,style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,maxWidth:`70%`},children:e.path}),(0,F.jsxs)(`span`,{className:`mono`,children:[e.avg_latency_ms.toFixed(0),`ms`]})]}),(0,F.jsx)(`div`,{style:{height:6,background:`var(--border)`,borderRadius:0},children:(0,F.jsx)(`div`,{style:{height:`100%`,width:`${r}%`,background:Sz[t%Sz.length],borderRadius:0}})})]},e.path)})})]})]})]})]})}function wz(e){let t=Math.floor(Date.now()/1e3-e),n=Math.floor(t/86400),r=Math.floor(t%86400/3600),i=Math.floor(t%3600/60);return n>0?`${n}d ${r}h ${i}m`:r>0?`${r}h ${i}m`:`${i}m`}function Tz({proxy:e}){return(0,F.jsxs)(`div`,{className:`uptime-proxy`,children:[(0,F.jsxs)(`div`,{className:`uptime-proxy-stats`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`div`,{className:`section-label`,children:`Uptime (30d)`}),(0,F.jsxs)(`div`,{className:`uptime-pct`,children:[e.uptime_pct_30d.toFixed(2),`%`]})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`div`,{className:`section-label`,children:`Running`}),(0,F.jsx)(`div`,{className:`stat-value`,style:{fontSize:16},children:wz(e.started_at)})]})]}),(0,F.jsx)(`div`,{className:`section-label`,style:{marginBottom:4},children:`30-day history`}),(0,F.jsx)(`div`,{className:`history-bar`,children:e.history.map(e=>(0,F.jsx)(`div`,{className:`history-day ${e.status}`,title:`${e.date}: ${e.status}`},e.date))})]})}var Ez=Is;function Dz({b:e}){let t=e.status===`up`?`ok`:e.status===`down`?`err`:`dim`,n=e.last_checked_at?new Date(e.last_checked_at*1e3).toLocaleTimeString():`—`;return(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`td`,{className:`mono`,children:e.name}),(0,F.jsxs)(`td`,{children:[(0,F.jsx)(Ez,{status:t,pulse:e.status===`up`}),e.status]}),(0,F.jsxs)(`td`,{className:`mono`,children:[e.uptime_pct_30d.toFixed(2),`%`]}),(0,F.jsx)(`td`,{className:`mono dim`,children:n}),(0,F.jsx)(`td`,{className:`mono dim`,children:e.last_latency_ms==null?`—`:`${e.last_latency_ms}ms`}),(0,F.jsx)(`td`,{children:(0,F.jsx)(`div`,{className:`history-bar`,style:{height:12},children:e.history.map(e=>(0,F.jsx)(`div`,{className:`history-day ${e.status}`,title:`${e.date}: ${e.status}`},e.date))})})]})}function Oz(){let{data:e,isLoading:t,error:n}=to();return(0,F.jsxs)(`div`,{children:[(0,F.jsx)(Xs,{loading:t,error:n?.message}),e&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Tz,{proxy:e.proxy}),(0,F.jsx)(`div`,{className:`section-label`,style:{marginTop:16,marginBottom:8},children:`Backend Availability`}),(0,F.jsxs)(`table`,{className:`backend-health-table`,children:[(0,F.jsx)(`thead`,{children:(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`th`,{children:`Backend`}),(0,F.jsx)(`th`,{children:`Status`}),(0,F.jsx)(`th`,{children:`Uptime (30d)`}),(0,F.jsx)(`th`,{children:`Last checked`}),(0,F.jsx)(`th`,{children:`Latency`}),(0,F.jsx)(`th`,{children:`History`})]})}),(0,F.jsx)(`tbody`,{children:e.backends.slice().sort((e,t)=>e.name.localeCompare(t.name)).map(e=>(0,F.jsx)(Dz,{b:e},e.name))})]})]})]})}var kz={openai:0,anthropic:0,gemini:0,vertex:0,azure:1,bedrock:1,mistral:1,groq:1,deepseek:1,xai:1,together_ai:2,openrouter:2,fireworks_ai:2,perplexity:2,cohere_chat:2,cerebras:2,sambanova:2,ollama:2,deepinfra:2,replicate:2,nvidia_nim:2},Az={0:`Top providers`,1:`Popular`,2:`Notable`,3:`More providers`};function jz(e){let t=new Map;for(let n of e){let e=kz[n.id]??3;t.has(e)||t.set(e,[]),t.get(e).push(n)}for(let e of t.values())e.sort((e,t)=>e.display_name.localeCompare(t.display_name));return[...t.entries()].sort(([e],[t])=>e-t).map(([e,t])=>({tier:e,label:Az[e]??`Other`,providers:t}))}function Mz({provider:e,backendCount:t,onClick:n}){return(0,F.jsxs)(`button`,{type:`button`,className:`provider-tile${t>0?` has-backends`:``}`,onClick:n,children:[(0,F.jsx)(nz,{id:e.id,size:28}),(0,F.jsx)(`span`,{className:`provider-tile-name`,children:e.display_name}),t>0&&(0,F.jsxs)(`span`,{className:`provider-tile-count`,children:[t,` key`,t===1?``:`s`]})]})}function Nz({backend:e,healthStatus:t,onDelete:n}){return(0,F.jsxs)(`div`,{className:`provider-backend-row`,children:[(0,F.jsx)(Ez,{status:t===`up`?`ok`:t===`down`?`err`:`dim`,pulse:t===`up`}),(0,F.jsx)(`span`,{className:`backend-name`,children:e.name}),(0,F.jsxs)(`span`,{className:`backend-status`,children:[e.api_key_set?`key set`:`no key`,e.rpm!=null&&(0,F.jsxs)(F.Fragment,{children:[` · RPM `,e.rpm]})]}),(0,F.jsx)(V,{tone:`danger`,size:`sm`,onClick:n,children:`Delete`})]})}function Pz({provider:e,existingCount:t}){let n=ao(),[r,i]=(0,P.useState)(!1),[a,o]=(0,P.useState)(()=>({name:`${e.id}-${t+1}`,provider_id:e.id}));(0,P.useEffect)(()=>{o({name:`${e.id}-${t+1}`,provider_id:e.id}),i(!1)},[e.id,t]);function s(){n.mutate({name:a.name,provider_id:e.id,api_key:a.api_key||void 0,api_base:a.api_base||void 0,deployment:a.deployment||void 0,api_version:a.api_version||void 0,project:a.project||void 0,region:a.region||void 0,aws_access_key_id:a.aws_access_key_id||void 0,aws_secret_access_key:a.aws_secret_access_key||void 0,aws_session_token:a.aws_session_token||void 0,rpm:a.rpm?Number(a.rpm):void 0,tpm:a.tpm?Number(a.tpm):void 0},{onSuccess:()=>i(!1)})}if(!r)return(0,F.jsx)(`div`,{className:`provider-add-toggle`,children:(0,F.jsx)(V,{tone:`primary`,size:`sm`,onClick:()=>i(!0),children:`+ Add key`})});let c=rz(e);return(0,F.jsxs)(`div`,{className:`provider-add-form`,children:[(0,F.jsxs)(`div`,{className:`form-group`,children:[(0,F.jsx)(`label`,{className:`form-label`,htmlFor:`add-backend-name`,children:`Name`}),(0,F.jsx)(`input`,{id:`add-backend-name`,name:`name`,type:`text`,value:a.name,onChange:e=>o(t=>({...t,name:e.target.value})),style:{width:`100%`}})]}),c.map(e=>(0,F.jsxs)(`div`,{className:`form-group`,children:[(0,F.jsx)(`label`,{className:`form-label`,htmlFor:`add-${e.name}`,children:e.label}),e.hint&&(0,F.jsx)(`div`,{className:`form-hint`,children:e.hint}),(0,F.jsx)(`input`,{id:`add-${e.name}`,name:e.name,type:e.type,placeholder:e.placeholder,value:a[e.name]??``,onChange:t=>o(n=>({...n,[e.name]:t.target.value})),style:{width:`100%`}})]},e.name)),n.isError&&(0,F.jsx)(`div`,{className:`inline-error`,children:`Failed to create backend`}),(0,F.jsxs)(`div`,{className:`provider-add-actions`,children:[(0,F.jsx)(V,{size:`sm`,onClick:()=>i(!1),disabled:n.isPending,children:`Cancel`}),(0,F.jsx)(V,{tone:`primary`,size:`sm`,onClick:s,disabled:!a.name||n.isPending,loading:n.isPending,children:`Create`})]})]})}function Fz({provider:e,backends:t,healthMap:n,onClose:r,onDeleteBackend:i}){(0,P.useEffect)(()=>{function e(e){e.key===`Escape`&&r()}return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[r]),(0,P.useEffect)(()=>{let e=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=e}},[]);let a=e.capabilities,o=[[`chat`,a.chat_completions],[`streaming`,a.streaming],[`tool use`,a.tool_use],[`vision`,a.vision],[`embeddings`,a.embeddings],[`batch`,a.batch]];return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`div`,{className:`provider-scrim`,onClick:r}),(0,F.jsxs)(H,{className:`provider-panel`,role:`dialog`,"aria-modal":`true`,"aria-label":e.display_name,children:[(0,F.jsxs)(`div`,{className:`provider-panel-header`,children:[(0,F.jsx)(nz,{id:e.id,size:36}),(0,F.jsx)(`h3`,{children:e.display_name}),(0,F.jsx)(`button`,{type:`button`,className:`provider-panel-close`,onClick:r,"aria-label":`Close`,children:`×`})]}),(0,F.jsxs)(`div`,{className:`provider-panel-caps`,children:[o.map(([e,t])=>(0,F.jsx)(`span`,{className:`badge-cap${t?` active`:``}`,children:e},e)),(0,F.jsxs)(`span`,{style:{marginLeft:`auto`},className:`badge-cap active`,children:[e.model_count,` models`]})]}),(0,F.jsxs)(`div`,{className:`provider-panel-meta`,children:[(0,F.jsxs)(`span`,{children:[`Protocol: `,(0,F.jsx)(`span`,{className:`mono`,children:e.protocol.replace(/_/g,` `)})]}),(0,F.jsxs)(`span`,{children:[`Auth: `,(0,F.jsx)(`span`,{className:`mono`,children:e.auth.replace(/_/g,` `)})]}),(0,F.jsxs)(`span`,{children:[`Status: `,(0,F.jsx)(`span`,{className:`mono`,children:e.status})]}),e.env_vars.length>0&&(0,F.jsxs)(`span`,{children:[`Env: `,(0,F.jsx)(`span`,{className:`mono`,children:e.env_vars[0]})]})]}),(0,F.jsxs)(`div`,{className:`provider-panel-section`,children:[(0,F.jsxs)(`div`,{className:`provider-panel-section-label`,children:[`Configured keys (`,t.length,`)`]}),t.length===0&&(0,F.jsx)(`div`,{className:`provider-empty-hint`,children:`No keys configured. Add one below to start forwarding requests.`}),t.map(e=>(0,F.jsx)(Nz,{backend:e,healthStatus:n.get(e.name),onDelete:()=>i(e)},e.id)),(0,F.jsx)(Pz,{provider:e,existingCount:t.length})]})]})]})}function Iz(){let e=ro(),t=io(),{data:n}=to(),r=so(),[i,a]=(0,P.useState)(null),[o,s]=(0,P.useState)(``),[c,l]=(0,P.useState)(null),u=(0,P.useMemo)(()=>e.data??[],[e.data]),d=(0,P.useMemo)(()=>t.data?.backends??[],[t.data]),f=(0,P.useMemo)(()=>{let e=new Map;for(let t of d)e.has(t.provider_id)||e.set(t.provider_id,[]),e.get(t.provider_id).push(t);return e},[d]),p=(0,P.useMemo)(()=>{let e=new Map;for(let t of n?.backends??[])e.set(t.name,t.status);return e},[n]),m=(0,P.useMemo)(()=>{let e=o.toLowerCase();return jz(e?u.filter(t=>t.display_name.toLowerCase().includes(e)||t.id.includes(e)):u)},[u,o]),h=i?u.find(e=>e.id===i):null,g=i?f.get(i)??[]:[];function _(){return c?r.mutateAsync(c.name).then(()=>void 0):Promise.resolve()}return(0,F.jsxs)(`div`,{children:[(0,F.jsxs)(`div`,{className:`section-header`,children:[(0,F.jsx)(`h2`,{children:`Providers`}),(0,F.jsx)(`input`,{type:`search`,name:`provider-search`,placeholder:`Search providers...`,value:o,onChange:e=>s(e.target.value),style:{width:260}})]}),(0,F.jsx)(ec,{query:e,errorTitle:`Failed to load provider catalog`,empty:{when:()=>u.length===0,render:()=>(0,F.jsxs)(H,{className:`empty-cta`,children:[(0,F.jsx)(`div`,{className:`empty-cta-title`,children:`No providers available`}),(0,F.jsx)(`div`,{className:`empty-cta-body`,children:`The provider catalog is empty. Check that the providers crate is loaded.`})]})},children:()=>(0,F.jsxs)(`div`,{className:`provider-catalog`,children:[m.map(e=>(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`div`,{className:`provider-tier-label`,children:e.label}),(0,F.jsx)(`div`,{className:`provider-tile-grid${e.tier===0?` tier-top`:``}`,children:e.providers.map(e=>(0,F.jsx)(Mz,{provider:e,backendCount:f.get(e.id)?.length??0,onClick:()=>a(e.id)},e.id))})]},e.tier)),m.length===0&&o&&(0,F.jsxs)(`div`,{className:`dim`,style:{padding:20},children:[`No providers match "`,o,`".`]})]})}),h&&(0,F.jsx)(Fz,{provider:h,backends:g,healthMap:p,onClose:()=>a(null),onDeleteBackend:l},i),(0,F.jsx)(ac,{open:c!==null,onClose:()=>l(null),onConfirm:_,title:`Delete backend?`,message:(0,F.jsxs)(F.Fragment,{children:[`Delete backend `,(0,F.jsx)(`span`,{className:`mono`,children:c?.name}),`? Routes referencing this backend will lose it from their provider list.`]})})]})}function Lz(){let{data:e,isLoading:t,error:n}=Wa(),{data:r}=to(),i=(0,P.useMemo)(()=>{let e=new Map;for(let t of r?.backends??[])e.set(t.name,t);return e},[r]);return(0,F.jsxs)(`div`,{children:[(0,F.jsx)(Xs,{loading:t,error:n?.message,empty:e?.length===0}),(0,F.jsx)(`div`,{className:`backend-cards`,children:e?.map(e=>{let t=i.get(e.name),n=t?.status===`up`?`ok`:t?.status===`down`?`err`:`dim`;return(0,F.jsxs)(H,{className:`card`,glowOnHover:!0,children:[(0,F.jsxs)(`div`,{className:`card-header`,children:[(0,F.jsx)(`span`,{className:`card-name`,children:e.name}),(0,F.jsx)(Ez,{status:n,pulse:n===`ok`})]}),(0,F.jsxs)(`div`,{className:`card-body`,children:[(0,F.jsxs)(`div`,{className:`mono`,children:[e.big_model,` / `,e.small_model]}),(0,F.jsxs)(`div`,{style:{marginTop:6,display:`grid`,gridTemplateColumns:`1fr 1fr`,gap:4},children:[(0,F.jsx)(`span`,{className:`dim`,children:`Requests`}),(0,F.jsx)(`span`,{className:`mono`,children:e.metrics.requests_total}),(0,F.jsx)(`span`,{className:`dim`,children:`Errors`}),(0,F.jsx)(`span`,{className:`mono`,style:{color:e.metrics.requests_error>0?`var(--err)`:void 0},children:e.metrics.requests_error}),t?.last_latency_ms!=null&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`span`,{className:`dim`,children:`Last latency`}),(0,F.jsxs)(`span`,{className:`mono`,children:[t.last_latency_ms,`ms`]})]}),t&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`span`,{className:`dim`,children:`30d uptime`}),(0,F.jsxs)(`span`,{className:`mono`,children:[t.uptime_pct_30d,`%`]})]})]})]})]},e.name)})})]})}function Rz({route:e,onClose:t}){let{data:n,isLoading:r}=fo(e.id),i=po(),a=mo(),o=ho(),s=R(),{data:c}=io(),[l,u]=(0,P.useState)(!1),[d,f]=(0,P.useState)(``),[p,m]=(0,P.useState)(`*`),h=n?.providers??[],g=c?.backends??[],_=new Set(h.map(e=>e.backend_id)),v=g.filter(e=>!_.has(e.id));function y(){if(!d)return;let t=p.trim()===`*`?[`*`]:p.split(`,`).map(e=>e.trim()).filter(Boolean);i.mutate({routeId:e.id,data:{backend_id:d,models:t,priority:h.length,enabled:!0}},{onSuccess:()=>{u(!1),f(``),m(`*`)}})}function b(t,n){let r=t+n;if(r<0||r>=h.length)return;let i=h.slice(),[a]=i.splice(t,1);i.splice(r,0,a),s.mutate({routeId:e.id,data:{provider_ids:i.map(e=>e.id)}})}return(0,F.jsxs)(`div`,{className:`route-detail`,children:[(0,F.jsxs)(`div`,{className:`route-detail-header`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`span`,{className:`route-detail-title`,children:e.name}),e.description&&(0,F.jsx)(`span`,{className:`dim route-detail-desc`,children:e.description})]}),(0,F.jsxs)(`div`,{className:`route-detail-meta`,children:[(0,F.jsxs)(`span`,{className:`dim`,children:[`strategy: `,e.strategy]}),e.rpm&&(0,F.jsxs)(`span`,{className:`dim mono`,children:[`RPM `,e.rpm]}),(0,F.jsx)(V,{size:`sm`,onClick:t,children:`Close`})]})]}),(0,F.jsxs)(`div`,{className:`route-detail-subhead`,children:[(0,F.jsx)(`span`,{className:`section-label route-detail-subhead-label`,children:`Providers (priority order)`}),(0,F.jsx)(V,{tone:`primary`,size:`sm`,onClick:()=>u(!l),children:l?`Cancel`:`+ Add Provider`})]}),l&&(0,F.jsxs)(`div`,{className:`route-detail-add`,children:[(0,F.jsxs)(`select`,{value:d,onChange:e=>f(e.target.value),className:`route-detail-add-select`,children:[(0,F.jsx)(`option`,{value:``,children:`Select provider...`}),v.map(e=>(0,F.jsxs)(`option`,{value:e.id,children:[e.name,` (`,e.provider_id,`)`]},e.id))]}),(0,F.jsx)(`input`,{type:`text`,name:`route-provider-models`,placeholder:`models (* for all)`,value:p,onChange:e=>m(e.target.value),className:`route-detail-add-models`}),(0,F.jsx)(V,{tone:`primary`,size:`sm`,onClick:y,disabled:!d||i.isPending,loading:i.isPending,children:`Add`})]}),r&&(0,F.jsx)(`div`,{className:`dim`,children:(0,F.jsx)(Ls,{label:`Loading providers`})}),!r&&h.length===0&&(0,F.jsx)(`div`,{className:`dim route-detail-empty`,children:`No providers assigned. Click "+ Add Provider" above.`}),!r&&h.map((t,n)=>(0,F.jsxs)(`div`,{className:`route-provider-row`,children:[(0,F.jsxs)(`span`,{className:`dim mono`,children:[n+1,`.`]}),(0,F.jsxs)(`span`,{children:[(0,F.jsx)(`span`,{className:`route-provider-name`,children:t.backend_name}),(0,F.jsxs)(`span`,{className:`dim route-provider-id`,children:[`(`,t.provider_id,`)`]})]}),(0,F.jsxs)(`span`,{className:`mono dim route-provider-models`,children:[`[`,t.models.join(`, `),`]`]}),(0,F.jsxs)(`span`,{className:`route-provider-reorder`,children:[(0,F.jsx)(V,{tone:`icon`,size:`sm`,className:`btn-icon`,onClick:()=>b(n,-1),disabled:n===0||s.isPending,"aria-label":`Move up`,children:`↑`}),(0,F.jsx)(V,{tone:`icon`,size:`sm`,className:`btn-icon`,onClick:()=>b(n,1),disabled:n>=h.length-1||s.isPending,"aria-label":`Move down`,children:`↓`})]}),(0,F.jsx)(V,{size:`sm`,tone:t.enabled?`primary`:`secondary`,className:`route-provider-toggle`,onClick:()=>a.mutate({routeId:e.id,providerId:t.id,data:{enabled:!t.enabled}}),children:t.enabled?`enabled`:`disabled`}),(0,F.jsx)(V,{tone:`danger`,size:`sm`,className:`route-provider-remove`,onClick:()=>o.mutate({routeId:e.id,providerId:t.id}),children:`Remove`})]},t.id))]})}function zz({onClose:e}){let t=lo(),[n,r]=(0,P.useState)(``),[i,a]=(0,P.useState)(``);function o(){t.mutate({name:n,description:i||void 0},{onSuccess:e})}return(0,F.jsxs)(ic,{open:!0,onClose:e,title:`New Route`,size:`sm`,dismissable:!t.isPending,footer:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(V,{onClick:e,disabled:t.isPending,children:`Cancel`}),(0,F.jsx)(V,{tone:`primary`,onClick:o,disabled:!n.trim()||t.isPending,loading:t.isPending,children:`Create`})]}),children:[(0,F.jsxs)(`div`,{className:`form-group`,children:[(0,F.jsx)(`label`,{className:`form-label`,htmlFor:`route-name`,children:`Name`}),(0,F.jsx)(`input`,{id:`route-name`,name:`name`,type:`text`,value:n,onChange:e=>r(e.target.value),placeholder:`e.g. default, cheap`,style:{width:`100%`}})]}),(0,F.jsxs)(`div`,{className:`form-group`,children:[(0,F.jsx)(`label`,{className:`form-label`,htmlFor:`route-desc`,children:`Description`}),(0,F.jsx)(`input`,{id:`route-desc`,name:`description`,type:`text`,value:i,onChange:e=>a(e.target.value),placeholder:`optional`,style:{width:`100%`}})]}),t.isError&&(0,F.jsx)(`div`,{className:`error`,children:`Failed to create route`})]})}function Bz(){let e=co(),t=uo(),[n,r]=(0,P.useState)(null),[i,a]=(0,P.useState)(!1),[o,s]=(0,P.useState)(null);function c(){return o?t.mutateAsync(o.id).then(()=>void 0):Promise.resolve()}return(0,F.jsxs)(`div`,{children:[(0,F.jsxs)(`div`,{className:`section-header`,children:[(0,F.jsx)(`h2`,{children:`Routes`}),(0,F.jsx)(V,{tone:`primary`,onClick:()=>a(!0),children:`+ New Route`})]}),(0,F.jsx)(ec,{query:e,errorTitle:`Failed to load routes`,empty:{when:e=>(e.routes?.length??0)===0,render:()=>(0,F.jsxs)(H,{className:`empty-cta`,children:[(0,F.jsx)(`div`,{className:`empty-cta-title`,children:`No routes yet`}),(0,F.jsx)(`div`,{className:`empty-cta-body`,children:`Create a route to fan requests out across multiple backends with priority-based failover.`}),(0,F.jsx)(V,{tone:`primary`,onClick:()=>a(!0),children:`+ New Route`})]})},children:e=>(0,F.jsxs)(`table`,{className:`route-table`,children:[(0,F.jsx)(`thead`,{children:(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`th`,{children:`Name`}),(0,F.jsx)(`th`,{children:`Strategy`}),(0,F.jsx)(`th`,{children:`Providers`}),(0,F.jsx)(`th`,{children:`Limits`}),(0,F.jsx)(`th`,{})]})}),(0,F.jsx)(`tbody`,{children:e.routes.map(e=>(0,F.jsx)(Vz,{route:e,expanded:n===e.id,onToggle:()=>r(n===e.id?null:e.id),onDelete:()=>s(e)},e.id))})]})}),i&&(0,F.jsx)(zz,{onClose:()=>a(!1)}),(0,F.jsx)(ac,{open:o!==null,onClose:()=>s(null),onConfirm:c,title:`Delete route?`,message:(0,F.jsxs)(F.Fragment,{children:[`Delete route `,(0,F.jsx)(`span`,{className:`mono`,children:o?.name}),`? Virtual keys scoped to this route will lose access. This cannot be undone.`]})})]})}function Vz({route:e,expanded:t,onToggle:n,onDelete:r}){let i=[e.rpm&&`RPM ${e.rpm}`,e.tpm&&`TPM ${e.tpm}`].filter(Boolean).join(`, `)||`—`;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`tr`,{className:`route-row`,onClick:n,children:[(0,F.jsxs)(`td`,{className:`route-row-name`,children:[t?`▾ `:`▸ `,e.name,e.description&&(0,F.jsx)(`span`,{className:`dim route-row-desc`,children:e.description})]}),(0,F.jsx)(`td`,{className:`dim`,children:e.strategy}),(0,F.jsx)(`td`,{children:e.provider_count}),(0,F.jsx)(`td`,{className:`mono dim`,children:i}),(0,F.jsx)(`td`,{className:`route-row-actions`,children:(0,F.jsx)(V,{tone:`danger`,size:`sm`,onClick:e=>{e.stopPropagation(),r()},children:`Delete`})})]}),t&&(0,F.jsx)(`tr`,{children:(0,F.jsx)(`td`,{colSpan:5,className:`route-row-detail-cell`,children:(0,F.jsx)(Rz,{route:e,onClose:n})})})]})}function Hz(){let e=ea(e=>e.token),t=ta(e=>e.lastEvent),n=wn(),{data:r}=Ia(!!e);if((0,P.useEffect)(()=>{e?sa():ca()},[e]),(0,P.useEffect)(()=>{t&&(t.type===`metrics_snapshot`?n.setQueryData([`metrics`],t.data):t.type===`backend_health_changed`?n.invalidateQueries({queryKey:[`uptime`]}):t.type===`config_changed`&&(n.invalidateQueries({queryKey:[`config`]}),n.invalidateQueries({queryKey:[`env`]})))},[t,n]),!e)return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(zs,{}),(0,F.jsx)(Hs,{})]});let i=r?.configured??!0;return(0,F.jsx)(Ni,{children:(0,F.jsxs)(`div`,{className:`app-layout`,children:[(0,F.jsx)(Vs,{}),(0,F.jsx)(`div`,{className:`tab-content`,children:(0,F.jsxs)(yi,{children:[(0,F.jsx)(_i,{path:`/`,element:(0,F.jsx)(gi,{to:i?`/dashboard`:`/settings`,replace:!0})}),(0,F.jsx)(_i,{path:`/dashboard`,element:(0,F.jsx)(Qs,{})}),(0,F.jsx)(_i,{path:`/requests`,element:(0,F.jsx)(nc,{})}),(0,F.jsx)(_i,{path:`/traffic`,element:(0,F.jsx)(Cz,{})}),(0,F.jsx)(_i,{path:`/providers`,element:(0,F.jsx)(Iz,{})}),(0,F.jsx)(_i,{path:`/routes`,element:(0,F.jsx)(Bz,{})}),(0,F.jsx)(_i,{path:`/models`,element:(0,F.jsx)(vz,{})}),(0,F.jsx)(_i,{path:`/backends`,element:(0,F.jsx)(Lz,{})}),(0,F.jsx)(_i,{path:`/keys`,element:(0,F.jsx)(hz,{})}),(0,F.jsx)(_i,{path:`/audit`,element:(0,F.jsx)(yz,{})}),(0,F.jsx)(_i,{path:`/settings`,element:(0,F.jsx)(cz,{configured:i})}),(0,F.jsx)(_i,{path:`/uptime`,element:(0,F.jsx)(Oz,{})}),(0,F.jsx)(_i,{path:`*`,element:(0,F.jsx)(gi,{to:`/dashboard`,replace:!0})})]})}),(0,F.jsx)(Hs,{})]})})}var Uz=new bn({defaultOptions:{queries:{retry:(e,t)=>t instanceof ka?!1:e<1,refetchOnWindowFocus:!1,staleTime:3e4},mutations:{retry:(e,t)=>t instanceof ka?!1:e<1}}});(0,Hn.createRoot)(document.getElementById(`root`)).render((0,F.jsx)(P.StrictMode,{children:(0,F.jsx)(Tn,{client:Uz,children:(0,F.jsx)(Hz,{})})})); - diff --git a/crates/proxy/admin-ui/src/api/queries.ts b/crates/proxy/admin-ui/src/api/queries.ts index bfefbaa..c2d62e5 100644 --- a/crates/proxy/admin-ui/src/api/queries.ts +++ b/crates/proxy/admin-ui/src/api/queries.ts @@ -298,7 +298,11 @@ export function useCreateManagedBackend() { return useMutation({ mutationFn: (data) => mutatingFetch('POST', '/admin/api/backends/managed', data), - onSuccess: () => { qc.invalidateQueries({ queryKey: ['managed-backends'] }) }, + // Adding the first managed backend flips /admin/api/status configured -> true. + onSuccess: () => { + qc.invalidateQueries({ queryKey: ['managed-backends'] }) + qc.invalidateQueries({ queryKey: ['status'] }) + }, }) } @@ -316,7 +320,11 @@ export function useDeleteManagedBackend() { return useMutation({ mutationFn: (name) => mutatingFetch('DELETE', `/admin/api/backends/managed/${name}`), - onSuccess: () => { qc.invalidateQueries({ queryKey: ['managed-backends'] }) }, + // Deleting the last managed backend can flip configured -> false. + onSuccess: () => { + qc.invalidateQueries({ queryKey: ['managed-backends'] }) + qc.invalidateQueries({ queryKey: ['status'] }) + }, }) } diff --git a/crates/proxy/admin-ui/src/components/shared/InfoTip.tsx b/crates/proxy/admin-ui/src/components/shared/InfoTip.tsx new file mode 100644 index 0000000..15a8c49 --- /dev/null +++ b/crates/proxy/admin-ui/src/components/shared/InfoTip.tsx @@ -0,0 +1,10 @@ +/** Tiny "(?)" marker with a native tooltip. Dependency-free — uses the browser's + * title attribute (same approach as the uptime day cells). For richer hover cards, + * swap the implementation here; every call site stays the same. */ +export default function InfoTip({ text }: { text: string }) { + return ( + + ? + + ) +} diff --git a/crates/proxy/admin-ui/src/styles/globals.css b/crates/proxy/admin-ui/src/styles/globals.css index 5b54411..d3722b0 100644 --- a/crates/proxy/admin-ui/src/styles/globals.css +++ b/crates/proxy/admin-ui/src/styles/globals.css @@ -65,7 +65,7 @@ body { background: var(--bg-base); color: var(--text-1); font-family: var(--font a { color: var(--accent); text-decoration: none; } /* App layout */ -.app-layout { display: flex; min-height: 100vh; } +.app-layout { display: flex; min-height: 100vh; max-width: 100vw; overflow-x: hidden; } /* Sidebar */ .sidebar { width: 220px; min-width: 220px; background: var(--bg-raised); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; } @@ -88,7 +88,12 @@ a { color: var(--accent); text-decoration: none; } @keyframes pulse { 0%, 100% { opacity: 0.9; } 50% { opacity: 0.4; } } /* Layout */ -.tab-content { flex: 1; min-width: 0; padding: 14px 20px; max-width: 1400px; margin: 0 auto; overflow-x: auto; } +/* tab-content is a plain fluid flex child so it always tracks the viewport and its + overflow-x scrolls (rather than clipping) when a page is genuinely too wide. The + 1400px reading-width cap + centering lives on the page root, not this flex box — + putting max-width/margin:auto on the flex item itself breaks its shrink behaviour. */ +.tab-content { flex: 1; min-width: 0; padding: 14px 20px; overflow-x: auto; } +.tab-content > * { max-width: 1400px; margin-inline: auto; } /* Stats */ .stats-row { display: flex; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-bottom: 14px; background: var(--bg-raised); } @@ -230,6 +235,11 @@ button[disabled] { opacity: 0.55; cursor: not-allowed; } /* Key result */ .key-result { background: var(--bg-sunken); border: 1px solid var(--border); border-left: 3px solid var(--ok); border-radius: var(--r); padding: 12px; margin-bottom: 12px; font-family: var(--font-mono); font-size: 12px; word-break: break-all; } .key-result-label { color: var(--ok); font-size: 11px; margin-bottom: 4px; font-weight: 600; } +.key-result-value { display: flex; align-items: center; gap: 10px; } +.key-result-value > .mono { flex: 1; word-break: break-all; } +.key-result-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; } +.key-result-dismiss { background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 4px; font-family: var(--font-ui); } +.key-result-dismiss:hover { color: var(--text-1); } /* Modal */ .modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); display: flex; align-items: center; justify-content: center; z-index: 100; } @@ -346,6 +356,10 @@ button[disabled] { opacity: 0.55; cursor: not-allowed; } .empty-cta-body { color: var(--text-2); font-size: 12px; max-width: 520px; line-height: 1.5; } .empty-cta .btn { margin-top: 6px; } +/* Info tooltip marker (native title=) */ +.info-tip { display: inline-flex; align-items: center; justify-content: center; width: 13px; height: 13px; margin-left: 5px; border-radius: 50%; border: 1px solid var(--border); color: var(--text-3); font-size: 9px; line-height: 1; cursor: help; vertical-align: middle; font-family: var(--font-ui); } +.info-tip:hover { color: var(--text-1); border-color: var(--text-3); } + /* Inline error (non-modal) */ .inline-error { margin-top: 8px; padding: 6px 10px; background: var(--err-dim); border-left: 3px solid var(--err); border-radius: var(--r); font-size: 12px; } @@ -402,23 +416,18 @@ button[disabled] { opacity: 0.55; cursor: not-allowed; } .provider-tile:hover { border-color: var(--accent); background: var(--bg-hover); } .provider-tile.has-backends { border-left: 2px solid var(--accent); } .provider-tile-name { font-size: 12px; font-weight: 500; color: var(--text-1); line-height: 1.3; } +.provider-tile-id { font-size: 10px; color: var(--text-3); font-family: var(--font-mono); line-height: 1.2; word-break: break-all; } .provider-tile-count { font-size: 10px; color: var(--text-3); font-family: var(--font-mono); } -/* Provider detail panel (lightbox overlay) */ -.provider-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.65); z-index: 50; } -.provider-panel { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(640px, 90vw); max-height: 80vh; overflow-y: auto; z-index: 51; background: var(--bg-raised); border: 1px solid var(--border); border-top: 2px solid var(--accent); border-radius: var(--rm); } -.provider-panel-header { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px; border-bottom: 1px solid var(--border-sub); } -.provider-panel-header h3 { flex: 1; font-size: 16px; font-weight: 600; margin: 0; } -.provider-panel-close { background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 20px; line-height: 1; padding: 0 4px; font-family: var(--font-ui); } -.provider-panel-close:hover { color: var(--text-1); } -.provider-panel-caps { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px 16px; border-bottom: 1px solid var(--border-sub); align-items: center; } +/* Provider detail panel (rendered inside shared Modal .modal-body) */ +.provider-panel-caps { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 0 10px; border-bottom: 1px solid var(--border-sub); align-items: center; } .badge-cap { font-size: 10px; padding: 2px 6px; border-radius: 1px; background: var(--bg-hover); color: var(--text-2); border: 1px solid var(--border); font-family: var(--font-mono); } .badge-cap.active { background: var(--accent-dim); color: var(--accent); border-color: var(--accent-bdr); } -.provider-panel-meta { display: flex; gap: 16px; padding: 8px 16px; font-size: 12px; color: var(--text-2); border-bottom: 1px solid var(--border-sub); flex-wrap: wrap; } +.provider-panel-meta { display: flex; gap: 16px; padding: 8px 0; font-size: 12px; color: var(--text-2); border-bottom: 1px solid var(--border-sub); flex-wrap: wrap; } .provider-panel-meta .mono { font-family: var(--font-mono); } /* Backend rows within panel */ -.provider-panel-section { padding: 12px 16px; } +.provider-panel-section { padding: 12px 0 0; } .provider-panel-section-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-2); font-weight: 500; margin-bottom: 8px; } .provider-backend-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--bg-sunken); border: 1px solid var(--border-sub); border-radius: var(--r); margin-bottom: 4px; font-size: 13px; } .provider-backend-row .backend-name { font-family: var(--font-mono); font-weight: 500; flex: 1; } @@ -458,6 +467,7 @@ button[disabled] { opacity: 0.55; cursor: not-allowed; } .sidebar-item { white-space: nowrap; padding: 8px 10px; border-left: 0; border-bottom: 2px solid transparent; border-radius: var(--r); } .sidebar-item.active { border-left-color: transparent; border-bottom-color: var(--accent); } .tab-content { width: 100%; max-width: none; margin: 0; padding: 12px; overflow-x: hidden; } + .tab-content > * { max-width: none; margin-inline: 0; } .stats-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat, .stats-row .admin-surface.stat { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); } @@ -508,7 +518,6 @@ button[disabled] { opacity: 0.55; cursor: not-allowed; } .route-provider-models, .route-provider-reorder, .route-provider-toggle, .route-provider-remove { grid-column: 2; justify-self: start; } .route-provider-id { display: block; margin-left: 0; margin-top: 2px; } - .provider-panel { width: calc(100vw - 24px); max-height: calc(100svh - 24px); } .login-title { margin-bottom: 18px; } } diff --git a/crates/proxy/admin-ui/src/tabs/backends/Backends.tsx b/crates/proxy/admin-ui/src/tabs/backends/Backends.tsx index 22017ca..32cd4a9 100644 --- a/crates/proxy/admin-ui/src/tabs/backends/Backends.tsx +++ b/crates/proxy/admin-ui/src/tabs/backends/Backends.tsx @@ -4,6 +4,7 @@ import type { BackendUptimeInfo } from '../../api/types' import EmptyState from '../../components/shared/EmptyState' import StatusDot from '../../components/shared/StatusDot' import { AdminSurface } from '../../components/shared/Performative' +import { ManagedBackendsSection } from '../settings/ManagedBackendsSection' export default function Backends() { const { data, isLoading, error } = useBackends() @@ -19,13 +20,17 @@ export default function Backends() { return (
+ {/* Add/Edit/Delete lives here so backends are configured and monitored in one place. */} + + +
Backend Status
{data?.map((b) => { const health = healthMap.get(b.name) const dot = health?.status === 'up' ? 'ok' : health?.status === 'down' ? 'err' : 'dim' return ( - +
{b.name} diff --git a/crates/proxy/admin-ui/src/tabs/dashboard/Dashboard.tsx b/crates/proxy/admin-ui/src/tabs/dashboard/Dashboard.tsx index b530c01..823e4db 100644 --- a/crates/proxy/admin-ui/src/tabs/dashboard/Dashboard.tsx +++ b/crates/proxy/admin-ui/src/tabs/dashboard/Dashboard.tsx @@ -1,6 +1,7 @@ import { useMetrics } from '../../api/queries' import LiveFeed from '../../components/feed/LiveFeed' import { AdminSurface, AnimatedMetric } from '../../components/shared/Performative' +import InfoTip from '../../components/shared/InfoTip' import ObservabilityPanel from './ObservabilityPanel' export default function Dashboard() { @@ -22,13 +23,13 @@ export default function Dashboard() {
-
P50 Latency
+
P50 Latency
{m ? `${Math.round(n)}ms`} /> : '—'}
-
P95 Latency
+
P95 Latency
{m ? `${Math.round(n)}ms`} /> : '—'}
diff --git a/crates/proxy/admin-ui/src/tabs/dashboard/ObservabilityPanel.tsx b/crates/proxy/admin-ui/src/tabs/dashboard/ObservabilityPanel.tsx index 92e9e86..645bb33 100644 --- a/crates/proxy/admin-ui/src/tabs/dashboard/ObservabilityPanel.tsx +++ b/crates/proxy/admin-ui/src/tabs/dashboard/ObservabilityPanel.tsx @@ -3,6 +3,7 @@ import { useObservability, useBackends } from '../../api/queries' import LineChart from '../../components/shared/LineChart' import EmptyState from '../../components/shared/EmptyState' import { AdminSurface, AnimatedMetric } from '../../components/shared/Performative' +import InfoTip from '../../components/shared/InfoTip' export default function ObservabilityPanel() { const [windowHours, setWindowHours] = useState(6) @@ -58,11 +59,11 @@ export default function ObservabilityPanel() {
-
Window Failures
+
Window Failures
-
Window Cost
+
Window Cost
`$${n.toFixed(2)}`} />
diff --git a/crates/proxy/admin-ui/src/tabs/keys/KeyCreateForm.tsx b/crates/proxy/admin-ui/src/tabs/keys/KeyCreateForm.tsx index a172f55..cbc34d4 100644 --- a/crates/proxy/admin-ui/src/tabs/keys/KeyCreateForm.tsx +++ b/crates/proxy/admin-ui/src/tabs/keys/KeyCreateForm.tsx @@ -28,12 +28,17 @@ export default function KeyCreateForm({ onCreated }: { onCreated: (key: string)
{ e.preventDefault(); handleSubmit() }}>
setDesc(e.target.value)} /> - setSpendLimit(e.target.value)} style={{ width: 120 }} /> + setSpendLimit(e.target.value)} style={{ width: 160 }} /> setRpmLimit(e.target.value)} style={{ width: 100 }} /> Create
+ {!spendLimit && !rpmLimit && ( +
+ No limits set — this key will be unrestricted (unlimited spend and requests). +
+ )}
) diff --git a/crates/proxy/admin-ui/src/tabs/keys/Keys.tsx b/crates/proxy/admin-ui/src/tabs/keys/Keys.tsx index 5c60653..531716d 100644 --- a/crates/proxy/admin-ui/src/tabs/keys/Keys.tsx +++ b/crates/proxy/admin-ui/src/tabs/keys/Keys.tsx @@ -6,6 +6,9 @@ import Badge from '../../components/shared/Badge' import BudgetBar from '../../components/shared/BudgetBar' import KeyCreateForm from './KeyCreateForm' import KeyEditModal from './KeyEditModal' +import { AdminButton } from '../../components/shared/Performative' +import { pushToast } from '../../store/toast' +import { copyToClipboard } from '../../utils/clipboard' import type { VirtualKey } from '../../api/types' export default function Keys() { @@ -60,7 +63,30 @@ export default function Keys() { {newKey && (
New key (copy now — not shown again)
- {newKey} +
+ {newKey} +
+ { + const ok = await copyToClipboard(newKey) + pushToast(ok + ? { variant: 'success', message: 'Key copied to clipboard' } + : { variant: 'error', message: 'Copy failed — select and copy manually' }) + }} + > + Copy + + +
+
)}
diff --git a/crates/proxy/admin-ui/src/tabs/models/Models.tsx b/crates/proxy/admin-ui/src/tabs/models/Models.tsx index 2022c34..1cf9de8 100644 --- a/crates/proxy/admin-ui/src/tabs/models/Models.tsx +++ b/crates/proxy/admin-ui/src/tabs/models/Models.tsx @@ -31,6 +31,10 @@ export default function Models() { const { data: backends } = useBackends() const { data: managedBackends } = useManagedBackends() const [name, setName] = useState('') + // Last value we auto-filled into Virtual Name from a discovered model. Lets us + // re-prefill when the user picks a different model, without clobbering a name + // they typed by hand (name !== autoName => they edited it, leave it alone). + const [autoName, setAutoName] = useState('') const [model, setModel] = useState('') const [backendName, setBackendName] = useState('') const [discoverSource, setDiscoverSource] = useState('openrouter') @@ -47,6 +51,13 @@ export default function Models() { }) } + function handleAdd() { + add.mutate( + { model_name: name, actual_model: model, backend_name: backendName }, + { onSuccess: () => { setName(''); setAutoName(''); setModel(''); setBackendName('') } }, + ) + } + function doRemove() { if (!pendingRemove) return Promise.resolve() return remove.mutateAsync(pendingRemove).then(() => undefined) @@ -109,7 +120,17 @@ export default function Models() { {discover.data.models.map((m) => (
setModel(m.id)} + onClick={() => { + setModel(m.id) + // Prefill Virtual Name from the catalog display name (still editable). + // Overwrite only if empty or still holding a prior auto-fill; keep a + // hand-typed name. + if (!name || name === autoName) { + const next = m.name && m.name !== m.id ? m.name : m.id + setName(next) + setAutoName(next) + } + }} className={`models-discover-item${model === m.id ? ' is-selected' : ''}`} > {m.id} @@ -125,38 +146,35 @@ export default function Models() { )}
- {/* Datalist for backend name suggestions */} - - {backends?.map(b => ( - - ))} - {managedBackends?.backends.map(b => ( - - ))} - - {/* Manual add model form */}
Add Model
setName(e.target.value)} /> setModel(e.target.value)} /> - setBackendName(e.target.value)} - list="backends-list" - /> + > + + {backends?.map(b => ( + + ))} + {managedBackends?.backends.map(b => ( + + ))} + add.mutate({ model_name: name, actual_model: model, backend_name: backendName })} + onClick={handleAdd} disabled={!name || !model || !backendName || add.isPending} loading={add.isPending} > Add
+ {add.isError &&
{add.error.message}
}
diff --git a/crates/proxy/admin-ui/src/tabs/providers/Providers.tsx b/crates/proxy/admin-ui/src/tabs/providers/Providers.tsx index 608286a..962cba1 100644 --- a/crates/proxy/admin-ui/src/tabs/providers/Providers.tsx +++ b/crates/proxy/admin-ui/src/tabs/providers/Providers.tsx @@ -11,6 +11,7 @@ import { getProviderFields } from '../../utils/providerFields' import { groupByTier } from '../../utils/providerTiers' import AsyncBoundary from '../../components/shared/AsyncBoundary' import ConfirmDialog from '../../components/shared/ConfirmDialog' +import Modal from '../../components/shared/Modal' import StatusDot from '../../components/shared/StatusDot' import ProviderIcon from '../../components/shared/ProviderIcon' import { AdminButton, AdminSurface } from '../../components/shared/Performative' @@ -34,6 +35,7 @@ function ProviderTile({ > {provider.display_name} + {provider.id} {backendCount > 0 && ( {backendCount} key{backendCount !== 1 ? 's' : ''} @@ -196,22 +198,6 @@ function ProviderDetailPanel({ onClose: () => void onDeleteBackend: (b: ManagedBackend) => void }) { - // ESC to close - useEffect(() => { - function onKey(e: KeyboardEvent) { - if (e.key === 'Escape') onClose() - } - document.addEventListener('keydown', onKey) - return () => document.removeEventListener('keydown', onKey) - }, [onClose]) - - // Lock body scroll - useEffect(() => { - const prev = document.body.style.overflow - document.body.style.overflow = 'hidden' - return () => { document.body.style.overflow = prev } - }, []) - const caps = provider.capabilities const capList: [string, boolean][] = [ ['chat', caps.chat_completions], @@ -223,73 +209,61 @@ function ProviderDetailPanel({ ] return ( - <> -
- - {/* Header */} -
- -

{provider.display_name}

- -
+ + {/* Capabilities */} +
+ {capList.map(([label, active]) => ( + + {label} + + ))} + + {provider.model_count} models + +
- {/* Capabilities */} -
- {capList.map(([label, active]) => ( - - {label} - - ))} - - {provider.model_count} models + {/* Meta */} +
+ + Protocol: {provider.protocol.replace(/_/g, ' ')} + + + Auth: {provider.auth.replace(/_/g, ' ')} + + + Status: {provider.status} + + {provider.env_vars.length > 0 && ( + + Env: {provider.env_vars[0]} -
+ )} +
- {/* Meta */} -
- - Protocol: {provider.protocol.replace(/_/g, ' ')} - - - Auth: {provider.auth.replace(/_/g, ' ')} - - - Status: {provider.status} - - {provider.env_vars.length > 0 && ( - - Env: {provider.env_vars[0]} - - )} + {/* Configured keys */} +
+
+ Configured keys ({backends.length})
- - {/* Configured keys */} -
-
- Configured keys ({backends.length}) + {backends.length === 0 && ( +
+ No keys configured. Add one below to start forwarding requests.
- {backends.length === 0 && ( -
- No keys configured. Add one below to start forwarding requests. -
- )} - {backends.map((b) => ( - onDeleteBackend(b)} - /> - ))} - ( + onDeleteBackend(b)} /> -
- - + ))} + +
+ ) } diff --git a/crates/proxy/admin-ui/src/tabs/settings/BackendForm.tsx b/crates/proxy/admin-ui/src/tabs/settings/BackendForm.tsx index 8f82dc4..cabc45c 100644 --- a/crates/proxy/admin-ui/src/tabs/settings/BackendForm.tsx +++ b/crates/proxy/admin-ui/src/tabs/settings/BackendForm.tsx @@ -156,7 +156,7 @@ export function BackendForm({ initial, onSuccess, onCancel }: BackendFormProps) return ( {group.map(p => ( - + ))} ) diff --git a/crates/proxy/admin-ui/src/tabs/settings/Settings.tsx b/crates/proxy/admin-ui/src/tabs/settings/Settings.tsx index ff0e847..2bb6f77 100644 --- a/crates/proxy/admin-ui/src/tabs/settings/Settings.tsx +++ b/crates/proxy/admin-ui/src/tabs/settings/Settings.tsx @@ -7,7 +7,6 @@ import EmptyState from '../../components/shared/EmptyState' import ConfirmDialog from '../../components/shared/ConfirmDialog' import { AdminButton, AdminSurface } from '../../components/shared/Performative' import type { EnvImportResponse, EnvImportError } from '../../api/types' -import { ManagedBackendsSection } from './ManagedBackendsSection' const RESTART_KEY = 'env_import_pending_restart' @@ -108,14 +107,13 @@ export default function Settings({ configured = true }: { configured?: boolean } return (
- {/* Managed backends — always shown first */} - - - {/* Getting-started notice — shown when no backend is configured */} + {/* Getting-started notice — shown when no backend is configured (no env/config-file + signal and no managed backend). Manage backends on the Backends tab. */} {!configured && (
-
No proxy configuration found — nothing to forward requests to.
+
No backend configured — nothing to forward requests to.
+ Add a backend on the Backends tab, or configure one via env. The proxy needs a backend endpoint (where to forward) and a listen port (where to accept). LISTEN_PORT defaults to 3000. Create a .anyllm.env and import it below, or pass it at startup: anyllm-proxy --webui --env-file .anyllm.env diff --git a/crates/proxy/admin-ui/src/tabs/traffic/TrafficView.tsx b/crates/proxy/admin-ui/src/tabs/traffic/TrafficView.tsx index 798a094..7e3920d 100644 --- a/crates/proxy/admin-ui/src/tabs/traffic/TrafficView.tsx +++ b/crates/proxy/admin-ui/src/tabs/traffic/TrafficView.tsx @@ -48,7 +48,11 @@ export default function TrafficView() {
Stacked over time window
- + {routes.length === 0 ? ( +
No routes
+ ) : ( + + )}
diff --git a/crates/proxy/admin-ui/src/utils/clipboard.ts b/crates/proxy/admin-ui/src/utils/clipboard.ts new file mode 100644 index 0000000..97fd35a --- /dev/null +++ b/crates/proxy/admin-ui/src/utils/clipboard.ts @@ -0,0 +1,11 @@ +/** Copy text to the clipboard. Returns false if the browser blocks it + * (e.g. non-secure context). localhost is treated as secure, so this works + * for the admin UI on http://127.0.0.1. */ +export async function copyToClipboard(text: string): Promise { + try { + await navigator.clipboard.writeText(text) + return true + } catch { + return false + } +} diff --git a/crates/proxy/src/admin/routes/status.rs b/crates/proxy/src/admin/routes/status.rs index 204e0f6..ac2db8d 100644 --- a/crates/proxy/src/admin/routes/status.rs +++ b/crates/proxy/src/admin/routes/status.rs @@ -1,3 +1,5 @@ +use crate::admin::state::SharedState; +use axum::extract::State; use axum::Json; use serde::Serialize; @@ -8,10 +10,20 @@ pub struct ProxyStatus { /// GET /admin/api/status -- returns whether the proxy has a backend configured. /// "Configured" means the user set at least one backend-relevant env var -/// (API key, base URL, provider choice) or pointed to a config file. -pub async fn get_status() -> Json { +/// (API key, base URL, provider choice), pointed to a config file, OR created a +/// managed backend via the admin UI (stored in SQLite). Without the managed-backend +/// check, Settings would warn "no backend configured" while the Backends page shows +/// a UI-added backend up. +pub async fn get_status(State(shared): State) -> Json { + let has_managed_backend = crate::admin::state::with_db(&shared.db, |conn| { + crate::admin::db::list_managed_backends(conn).map(|rows| !rows.is_empty()) + }) + .await + .and_then(Result::ok) + .unwrap_or(false); + Json(ProxyStatus { - configured: is_backend_configured(), + configured: is_backend_configured() || has_managed_backend, }) }