From 2543511d3081a9d83fc0165cfeb75fb4923d5ab9 Mon Sep 17 00:00:00 2001 From: Thibault Jaigu Date: Wed, 4 Nov 2026 11:18:52 +0000 Subject: [PATCH 1/5] Requesty provider: OpenAI-compatible chat completions with native tool calling --- AutoCua/llm_provider/__init__.py | 1 + AutoCua/llm_provider/llm_manager.py | 9 ++ AutoCua/llm_provider/requesty/__init__.py | 4 + AutoCua/llm_provider/requesty/service.py | 109 ++++++++++++++++++++++ AutoCua/llm_provider/requesty/view.py | 40 ++++++++ 5 files changed, 163 insertions(+) create mode 100644 AutoCua/llm_provider/requesty/__init__.py create mode 100644 AutoCua/llm_provider/requesty/service.py create mode 100644 AutoCua/llm_provider/requesty/view.py diff --git a/AutoCua/llm_provider/__init__.py b/AutoCua/llm_provider/__init__.py index 81d8a7c..a347b73 100644 --- a/AutoCua/llm_provider/__init__.py +++ b/AutoCua/llm_provider/__init__.py @@ -72,6 +72,7 @@ def tls_verify(): "perplexity": "https://api.perplexity.ai/", "together": "https://api.together.xyz/", "cerebras": "https://api.cerebras.ai/", + "requesty": "https://router.requesty.ai/", } diff --git a/AutoCua/llm_provider/llm_manager.py b/AutoCua/llm_provider/llm_manager.py index 385aa38..04298f1 100644 --- a/AutoCua/llm_provider/llm_manager.py +++ b/AutoCua/llm_provider/llm_manager.py @@ -21,6 +21,7 @@ "perplexity": "PerplexityProvider", "together": "TogetherProvider", "cerebras": "CerebrasProvider", + "requesty": "RequestyProvider", "aws": "AWSProvider", } @@ -478,6 +479,14 @@ def build_provider(provider: str, model_short_name: str, model_info: dict, tools return _provider_class("cerebras")(api_key, cli_agent, model_info, tools=tools, max_tokens=max_tokens) + elif provider == "requesty": + # Priority: Runtime key > .env fallback + api_key = _key(api_key, 'REQUESTY_API_KEY') + if not api_key: + raise ValueError("Requesty API key not provided, not in .env, and not saved in the app's Settings") + return _provider_class("requesty")(api_key, cli_agent, model_info, + tools=tools, + max_tokens=max_tokens) elif provider == "aws": # Priority: Runtime key > .env fallback api_key = _key(api_key, 'AWS_API_KEY') diff --git a/AutoCua/llm_provider/requesty/__init__.py b/AutoCua/llm_provider/requesty/__init__.py new file mode 100644 index 0000000..ac6f547 --- /dev/null +++ b/AutoCua/llm_provider/requesty/__init__.py @@ -0,0 +1,4 @@ +from .service import RequestyProvider +from .view import MODEL_MAPPINGS, get_model_info + +__all__ = ['RequestyProvider', 'MODEL_MAPPINGS', 'get_model_info'] diff --git a/AutoCua/llm_provider/requesty/service.py b/AutoCua/llm_provider/requesty/service.py new file mode 100644 index 0000000..ab0cedf --- /dev/null +++ b/AutoCua/llm_provider/requesty/service.py @@ -0,0 +1,109 @@ +import json +import requests +from typing import Dict, Any, Optional +from .. import LLM_HTTP_TIMEOUT, screenshots + +class RequestyProvider: + """Requesty API provider for LLM interactions (OpenAI-compatible chat completions)""" + + def __init__(self, api_key: str, cli_agent: bool = False, model_info: dict = None, tools: list = None, max_tokens: int = None): + self.api_key = api_key + self.max_tokens = max_tokens + self.api_url = "https://router.requesty.ai/v1/chat/completions" + self.session = requests.Session() + self.cli_agent = cli_agent + self.model_info = model_info or {} + # Native tool calling: OpenAI-format function tools — the model's + # output contract. None only for mode="text" (plain prose). + self.tools = tools or None + + def send_request(self, messages: list, model: str, annotated_screenshot_base64: Optional[str] = None) -> Dict[str, Any]: + """Send request to Requesty API""" + + # If screenshot is provided and NOT cli_agent, modify the user message to include the annotated image + if annotated_screenshot_base64 and not self.cli_agent and len(messages) > 1: + user_message = messages[-1]["content"] + messages[-1]["content"] = [ + { + "type": "text", + "text": user_message + }, + ] + [ + { + "type": "image_url", + "image_url": { + "url": f"data:image/jpeg;base64,{shot}" + } + } + for shot in screenshots(annotated_screenshot_base64) + ] + + headers = { + "Authorization": f"Bearer {self.api_key}", + "Content-Type": "application/json" + } + + data = { + "model": model, + "messages": messages, + "temperature": 0.2, + # Output cap. The handoff manager passes 10k (LLMManager.max_tokens); + # everything else keeps this default. + "max_tokens": self.max_tokens or 10000, + } + + # No tools (mode="text") -> plain text: omit the tool params entirely. + if self.tools: + data["tools"] = self.tools + # "required" - every turn must call at least one tool; a text-only + # turn is never a valid step. Canonical rationale: see + # openrouter/service.py. + data["tool_choice"] = self.model_info.get("tool_choice") or "required" + + try: + response = self.session.post(self.api_url, json=data, headers=headers, timeout=LLM_HTTP_TIMEOUT) + response.raise_for_status() + result = response.json() + if self.tools: + return _normalize_tool_response(result) + return result + except requests.exceptions.RequestException as e: + error_msg = f"Requesty API request failed: {str(e)}" + if hasattr(e, 'response') and e.response is not None: + error_msg += f"\nResponse: {e.response.text}" + raise Exception(error_msg) + + +def _normalize_tool_response(result: dict) -> dict: + """Normalize an OpenAI-format tool-call response: keep the usual + choices/message shape but replace tool_calls with + [{"id", "name", "arguments": dict}] (arguments JSON-decoded). The `id` is + echoed back by the loop so each tool result matches its call.""" + message = ((result.get("choices") or [{}])[0].get("message")) or {} + calls = [] + for i, tc in enumerate(message.get("tool_calls") or []): + fn = (tc or {}).get("function") or {} + raw_args = fn.get("arguments") + if isinstance(raw_args, dict): + args = raw_args + else: + try: + args = json.loads(raw_args or "{}") + except Exception: + args = {} + if not isinstance(args, dict): + args = {} + calls.append({ + "id": str((tc or {}).get("id") or "") or f"call_{i}", + "name": fn.get("name") or "", + "arguments": args, + }) + return { + "choices": [{ + "message": { + "content": message.get("content") or "", + "tool_calls": calls, + } + }], + "usage": result.get("usage", {}), + } diff --git a/AutoCua/llm_provider/requesty/view.py b/AutoCua/llm_provider/requesty/view.py new file mode 100644 index 0000000..26e058b --- /dev/null +++ b/AutoCua/llm_provider/requesty/view.py @@ -0,0 +1,40 @@ +# Model mappings for Requesty provider +# Maps user-friendly names to actual API model names + +# Requesty is an OpenAI-compatible router: one key, `vendor/model` ids, the +# same chat/completions shape for every backend. All entries below are +# image+text in / text out with native (OpenAI-format) tool calling, checked +# against https://router.requesty.ai/v1/models. Any other id from that list +# can be typed as the model name and is sent verbatim. +# +# Reasoning is deliberately left unset, the same choice together/ and groq/ +# make: with no field on the request each model keeps its own default. +# Temperature is handled once in service.py (0.2). +MODEL_MAPPINGS = { + "claude-sonnet-5": { + "api_name": "anthropic/claude-sonnet-5", + "vision": True, + "display_name": "Claude Sonnet 5" + }, + "gemini-3.6-flash": { + "api_name": "google/gemini-3.6-flash", + "vision": True, + "display_name": "Gemini 3.6 Flash" + }, + "gpt-5.4": { + "api_name": "openai/gpt-5.4", + "vision": True, + "display_name": "GPT-5.4" + } +} + +def get_model_info(short_name: str) -> dict: + """Get full model information from short name""" + if short_name in MODEL_MAPPINGS: + return MODEL_MAPPINGS[short_name] + # If not found, assume it's already a full model name + return { + "api_name": short_name, + "vision": True, + "display_name": short_name + } From 15ae25793c80b45d8266069084d49ac1a3d2eb2f Mon Sep 17 00:00:00 2001 From: Thibault Jaigu Date: Wed, 4 Nov 2026 11:19:21 +0000 Subject: [PATCH 2/5] Requesty: key maps for the browser agent and Telegram, web tool through the browser agent --- AutoCua/android/controller/tool/web/service.rs | 2 +- AutoCua/android/controller/tool/web/web_agent.rs | 7 ++++--- AutoCua/ios/controller/tool/web/service.py | 2 +- AutoCua/ios/controller/tool/web/web_agent.py | 2 +- AutoCua/linux/controller/tool/browser_agent.py | 1 + AutoCua/linux/controller/tool/web/service.py | 2 +- AutoCua/linux/controller/tool/web/web_agent.py | 2 +- AutoCua/linux/remote_connection/telegram/service.py | 1 + AutoCua/mac/controller/tool/browser_agent.py | 1 + AutoCua/mac/controller/tool/web/service.py | 2 +- AutoCua/mac/controller/tool/web/web_agent.py | 2 +- AutoCua/mac/remote_connection/telegram/service.py | 1 + AutoCua/windows/controller/tool/browser_agent.py | 1 + AutoCua/windows/controller/tool/web/service.py | 2 +- AutoCua/windows/controller/tool/web/web_agent.py | 2 +- AutoCua/windows/remote_connection/telegram/service.py | 1 + 16 files changed, 19 insertions(+), 12 deletions(-) diff --git a/AutoCua/android/controller/tool/web/service.rs b/AutoCua/android/controller/tool/web/service.rs index faf88f5..3f0704d 100644 --- a/AutoCua/android/controller/tool/web/service.rs +++ b/AutoCua/android/controller/tool/web/service.rs @@ -36,7 +36,7 @@ use crate::agent::android_use::service::read_text; /// Providers with no native web-search API: the query goes to the browser /// agent on the same provider+model instead (see web_agent.rs). Explicit /// membership, not a catch-all: a typo'd provider must still fail fast below. -const BROWSER_FALLBACK_PROVIDERS: [&str; 3] = ["together", "cerebras", "aws"]; +const BROWSER_FALLBACK_PROVIDERS: [&str; 4] = ["together", "cerebras", "requesty", "aws"]; /// AutoCua/android/controller/tool/web: this tool's folder. fn web_dir(py: Python<'_>) -> PyResult { diff --git a/AutoCua/android/controller/tool/web/web_agent.rs b/AutoCua/android/controller/tool/web/web_agent.rs index 02580a3..3e7c4bd 100644 --- a/AutoCua/android/controller/tool/web/web_agent.rs +++ b/AutoCua/android/controller/tool/web/web_agent.rs @@ -1,6 +1,6 @@ //! web_agent.py: the browser-agent fallback for the `web` tool. Providers -//! with no native web-search API (together, cerebras, aws) still have to -//! honour the `web` action, so the query goes to the browser agent +//! with no native web-search API (together, cerebras, requesty, aws) still +//! have to honour the `web` action, so the query goes to the browser agent //! (AutoCua/web, the Rust/CDP Chrome driver) running on the SAME provider //! and model; its `done` summary is the web result. The task text below is //! what turns that summary into a proper report rather than a one-line @@ -35,9 +35,10 @@ const SHORT_REPORT_CHARS: usize = 200; /// The runtime (frontend) key reaches the browser agent through its env: the /// web agent's __main__ has no --api_key flag, and its .env loader never /// overrides a var that is already set. -const PROVIDER_ENV_KEY: [(&str, &str); 3] = [ +const PROVIDER_ENV_KEY: [(&str, &str); 4] = [ ("together", "TOGETHER_API_KEY"), ("cerebras", "CEREBRAS_API_KEY"), + ("requesty", "REQUESTY_API_KEY"), ("aws", "AWS_API_KEY"), ]; diff --git a/AutoCua/ios/controller/tool/web/service.py b/AutoCua/ios/controller/tool/web/service.py index 1636376..7ebf9b1 100644 --- a/AutoCua/ios/controller/tool/web/service.py +++ b/AutoCua/ios/controller/tool/web/service.py @@ -17,7 +17,7 @@ def _web_search(provider: str): # Providers with no native web-search API: the query goes to the browser # agent on the same provider+model instead (see web_agent.py). Explicit # membership, not a catch-all - a typo'd provider must still fail fast below. -_BROWSER_FALLBACK_PROVIDERS = frozenset({"together", "cerebras", "aws"}) +_BROWSER_FALLBACK_PROVIDERS = frozenset({"together", "cerebras", "requesty", "aws"}) class WebService: diff --git a/AutoCua/ios/controller/tool/web/web_agent.py b/AutoCua/ios/controller/tool/web/web_agent.py index d39493f..731dca8 100644 --- a/AutoCua/ios/controller/tool/web/web_agent.py +++ b/AutoCua/ios/controller/tool/web/web_agent.py @@ -48,7 +48,7 @@ # __main__ has no --api_key flag, and its .env loader never overrides a var # that is already set. _PROVIDER_ENV_KEY = {"together": "TOGETHER_API_KEY", "cerebras": "CEREBRAS_API_KEY", - "aws": "AWS_API_KEY"} + "requesty": "REQUESTY_API_KEY", "aws": "AWS_API_KEY"} # A `done` value shorter than this is almost certainly an activity log, not # the answer — top it up with what the agent recorded along the way. _SHORT_REPORT_CHARS = 200 diff --git a/AutoCua/linux/controller/tool/browser_agent.py b/AutoCua/linux/controller/tool/browser_agent.py index f9ae92b..ed9468f 100644 --- a/AutoCua/linux/controller/tool/browser_agent.py +++ b/AutoCua/linux/controller/tool/browser_agent.py @@ -64,6 +64,7 @@ "perplexity": "PERPLEXITY_API_KEY", "together": "TOGETHER_API_KEY", "cerebras": "CEREBRAS_API_KEY", + "requesty": "REQUESTY_API_KEY", "aws": "AWS_API_KEY", } # A `done` value shorter than this is almost certainly an activity log, so it diff --git a/AutoCua/linux/controller/tool/web/service.py b/AutoCua/linux/controller/tool/web/service.py index 1ce2700..fc6323c 100644 --- a/AutoCua/linux/controller/tool/web/service.py +++ b/AutoCua/linux/controller/tool/web/service.py @@ -14,7 +14,7 @@ # Providers with no native web-search API: the query goes to the browser # agent on the same provider+model instead (see web_agent.py). Explicit # membership, not a catch-all — a typo'd provider must still fail fast below. -_BROWSER_FALLBACK_PROVIDERS = frozenset({"together", "cerebras", "aws"}) +_BROWSER_FALLBACK_PROVIDERS = frozenset({"together", "cerebras", "requesty", "aws"}) class WebService: diff --git a/AutoCua/linux/controller/tool/web/web_agent.py b/AutoCua/linux/controller/tool/web/web_agent.py index d39493f..731dca8 100644 --- a/AutoCua/linux/controller/tool/web/web_agent.py +++ b/AutoCua/linux/controller/tool/web/web_agent.py @@ -48,7 +48,7 @@ # __main__ has no --api_key flag, and its .env loader never overrides a var # that is already set. _PROVIDER_ENV_KEY = {"together": "TOGETHER_API_KEY", "cerebras": "CEREBRAS_API_KEY", - "aws": "AWS_API_KEY"} + "requesty": "REQUESTY_API_KEY", "aws": "AWS_API_KEY"} # A `done` value shorter than this is almost certainly an activity log, not # the answer — top it up with what the agent recorded along the way. _SHORT_REPORT_CHARS = 200 diff --git a/AutoCua/linux/remote_connection/telegram/service.py b/AutoCua/linux/remote_connection/telegram/service.py index 11f3014..3e7cb76 100644 --- a/AutoCua/linux/remote_connection/telegram/service.py +++ b/AutoCua/linux/remote_connection/telegram/service.py @@ -78,6 +78,7 @@ "perplexity": "PERPLEXITY_API_KEY", "together": "TOGETHER_API_KEY", "cerebras": "CEREBRAS_API_KEY", + "requesty": "REQUESTY_API_KEY", "aws": "AWS_API_KEY", } diff --git a/AutoCua/mac/controller/tool/browser_agent.py b/AutoCua/mac/controller/tool/browser_agent.py index f9ae92b..ed9468f 100644 --- a/AutoCua/mac/controller/tool/browser_agent.py +++ b/AutoCua/mac/controller/tool/browser_agent.py @@ -64,6 +64,7 @@ "perplexity": "PERPLEXITY_API_KEY", "together": "TOGETHER_API_KEY", "cerebras": "CEREBRAS_API_KEY", + "requesty": "REQUESTY_API_KEY", "aws": "AWS_API_KEY", } # A `done` value shorter than this is almost certainly an activity log, so it diff --git a/AutoCua/mac/controller/tool/web/service.py b/AutoCua/mac/controller/tool/web/service.py index 1ce2700..fc6323c 100644 --- a/AutoCua/mac/controller/tool/web/service.py +++ b/AutoCua/mac/controller/tool/web/service.py @@ -14,7 +14,7 @@ # Providers with no native web-search API: the query goes to the browser # agent on the same provider+model instead (see web_agent.py). Explicit # membership, not a catch-all — a typo'd provider must still fail fast below. -_BROWSER_FALLBACK_PROVIDERS = frozenset({"together", "cerebras", "aws"}) +_BROWSER_FALLBACK_PROVIDERS = frozenset({"together", "cerebras", "requesty", "aws"}) class WebService: diff --git a/AutoCua/mac/controller/tool/web/web_agent.py b/AutoCua/mac/controller/tool/web/web_agent.py index d39493f..731dca8 100644 --- a/AutoCua/mac/controller/tool/web/web_agent.py +++ b/AutoCua/mac/controller/tool/web/web_agent.py @@ -48,7 +48,7 @@ # __main__ has no --api_key flag, and its .env loader never overrides a var # that is already set. _PROVIDER_ENV_KEY = {"together": "TOGETHER_API_KEY", "cerebras": "CEREBRAS_API_KEY", - "aws": "AWS_API_KEY"} + "requesty": "REQUESTY_API_KEY", "aws": "AWS_API_KEY"} # A `done` value shorter than this is almost certainly an activity log, not # the answer — top it up with what the agent recorded along the way. _SHORT_REPORT_CHARS = 200 diff --git a/AutoCua/mac/remote_connection/telegram/service.py b/AutoCua/mac/remote_connection/telegram/service.py index 73c7c2e..9cd31f6 100644 --- a/AutoCua/mac/remote_connection/telegram/service.py +++ b/AutoCua/mac/remote_connection/telegram/service.py @@ -76,6 +76,7 @@ "perplexity": "PERPLEXITY_API_KEY", "together": "TOGETHER_API_KEY", "cerebras": "CEREBRAS_API_KEY", + "requesty": "REQUESTY_API_KEY", "aws": "AWS_API_KEY", } diff --git a/AutoCua/windows/controller/tool/browser_agent.py b/AutoCua/windows/controller/tool/browser_agent.py index f9ae92b..ed9468f 100644 --- a/AutoCua/windows/controller/tool/browser_agent.py +++ b/AutoCua/windows/controller/tool/browser_agent.py @@ -64,6 +64,7 @@ "perplexity": "PERPLEXITY_API_KEY", "together": "TOGETHER_API_KEY", "cerebras": "CEREBRAS_API_KEY", + "requesty": "REQUESTY_API_KEY", "aws": "AWS_API_KEY", } # A `done` value shorter than this is almost certainly an activity log, so it diff --git a/AutoCua/windows/controller/tool/web/service.py b/AutoCua/windows/controller/tool/web/service.py index 393206a..989f5f1 100644 --- a/AutoCua/windows/controller/tool/web/service.py +++ b/AutoCua/windows/controller/tool/web/service.py @@ -14,7 +14,7 @@ # Providers with no native web-search API: the query goes to the browser # agent on the same provider+model instead (see web_agent.py). Explicit # membership, not a catch-all - a typo'd provider must still fail fast below. -_BROWSER_FALLBACK_PROVIDERS = frozenset({"together", "cerebras", "aws"}) +_BROWSER_FALLBACK_PROVIDERS = frozenset({"together", "cerebras", "requesty", "aws"}) class WebService: diff --git a/AutoCua/windows/controller/tool/web/web_agent.py b/AutoCua/windows/controller/tool/web/web_agent.py index d39493f..731dca8 100644 --- a/AutoCua/windows/controller/tool/web/web_agent.py +++ b/AutoCua/windows/controller/tool/web/web_agent.py @@ -48,7 +48,7 @@ # __main__ has no --api_key flag, and its .env loader never overrides a var # that is already set. _PROVIDER_ENV_KEY = {"together": "TOGETHER_API_KEY", "cerebras": "CEREBRAS_API_KEY", - "aws": "AWS_API_KEY"} + "requesty": "REQUESTY_API_KEY", "aws": "AWS_API_KEY"} # A `done` value shorter than this is almost certainly an activity log, not # the answer — top it up with what the agent recorded along the way. _SHORT_REPORT_CHARS = 200 diff --git a/AutoCua/windows/remote_connection/telegram/service.py b/AutoCua/windows/remote_connection/telegram/service.py index d943863..a0adf12 100644 --- a/AutoCua/windows/remote_connection/telegram/service.py +++ b/AutoCua/windows/remote_connection/telegram/service.py @@ -78,6 +78,7 @@ "perplexity": "PERPLEXITY_API_KEY", "together": "TOGETHER_API_KEY", "cerebras": "CEREBRAS_API_KEY", + "requesty": "REQUESTY_API_KEY", "aws": "AWS_API_KEY", } From d911329ff4997f43ec2267e107e494324601268e Mon Sep 17 00:00:00 2001 From: Thibault Jaigu Date: Wed, 4 Nov 2026 11:19:40 +0000 Subject: [PATCH 3/5] Requesty in the app: Settings key row, provider list and saved key --- AutoCua/ui/index.js | 2 +- AutoCua/ui/index.tsx | 1 + AutoCua/ui/script.js | 1 + AutoCua/ui/service.py | 7 +++++++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/AutoCua/ui/index.js b/AutoCua/ui/index.js index 7772914..cabea6b 100644 --- a/AutoCua/ui/index.js +++ b/AutoCua/ui/index.js @@ -6,4 +6,4 @@ `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Ue=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?He(n):``}function Ge(e,t){switch(e.tag){case 26:case 27:case 5:return He(e.type);case 16:return He(`Lazy`);case 13:return e.child!==t&&t!==null?He(`Suspense Fallback`):He(`Suspense`);case 19:return He(`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 He(`Activity`);case 30:return He(`ViewTransition`);default:return``}}function Ke(e){try{var t=``,n=null;do t+=Ge(e,n),n=e,e=e.return;while(e);return t}catch(e){return` Error generating stack: `+e.message+` `+e.stack}}var qe=Object.prototype.hasOwnProperty,Je=t.unstable_scheduleCallback,Ye=t.unstable_cancelCallback,Xe=t.unstable_shouldYield,Ze=t.unstable_requestPaint,Qe=t.unstable_now,$e=t.unstable_getCurrentPriorityLevel,et=t.unstable_ImmediatePriority,tt=t.unstable_UserBlockingPriority,nt=t.unstable_NormalPriority,rt=t.unstable_LowPriority,it=t.unstable_IdlePriority,at=t.log,ot=t.unstable_setDisableYieldValue,st=null,ct=null;function lt(e){if(typeof at==`function`&&ot(e),ct&&typeof ct.setStrictMode==`function`)try{ct.setStrictMode(st,e)}catch{}}var ut=Math.clz32?Math.clz32:pt,dt=Math.log,ft=Math.LN2;function pt(e){return e>>>=0,e===0?32:31-(dt(e)/ft|0)|0}var mt=256,ht=262144,gt=4194304;function _t(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&-e;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 vt(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=_t(n))):i=_t(o):i=_t(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=_t(n))):i=_t(o)):i=_t(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 yt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function bt(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0n;n++)t.push(e);return t}function wt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Tt(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=Cr),Er=` `,Dr=!1;function Or(e,t){switch(e){case`keyup`:return xr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function kr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Ar=!1;function jr(e,t){switch(e){case`compositionend`:return kr(t);case`keypress`:return t.which===32?(Dr=!0,Er):null;case`textInput`:return e=t.data,e===Er&&Dr?null:e;default:return null}}function Mr(e,t){if(Ar)return e===`compositionend`||!Sr&&Or(e,t)?(e=Wn(),Un=Hn=Vn=null,Ar=!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=ti(n)}}function ri(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ri(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ii(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ei(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=ei(e.document)}return t}function ai(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 oi=Rn&&`documentMode`in document&&11>=document.documentMode,si=null,ci=null,li=null,ui=!1;function di(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ui||si==null||si!==ei(r)||(r=si,`selectionStart`in r&&ai(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}),li&&$r(li,r)||(li=r,r=Jf(ci,`onSelect`),0>=o,i-=o,sa=1<<32-ut(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),o=a(_,o,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),A&&la(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),o=a(y,o,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),A&&la(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return A&&la(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),A&&la(i,g),u}function _(e,r,a,c){if(typeof a==`object`&&a&&a.type===ce&&a.key===null&&a.props.ref===void 0&&(a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case oe:a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===ce){if(r.tag===7){n(e,r.sibling),c=i(r,a.props.children),vo(c,a),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===ge&&uo(l)===r.type){n(e,r.sibling),c=i(r,a.props),vo(c,a),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}a.type===ce?(c=Ji(a.props.children,e.mode,c,a.key),vo(c,a),c.return=e,e=c):(c=qi(a.type,a.key,a.props,null,e.mode,c),vo(c,a),c.return=e,e=c)}return o(e);case se:a:{for(l=a.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),c=i(r,a.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Zi(a,e.mode,c),c.return=e,e=c}return o(e);case ge:return a=uo(a),_(e,r,a,c)}if(Ee(a))return h(e,r,a,c);if(Ce(a)){if(l=Ce(a),typeof l!=`function`)throw Error(s(150));return a=l.call(a),g(e,r,a,c)}if(typeof a.then==`function`)return _(e,r,_o(a),c);if(a.$$typeof===C)return _(e,r,Ia(e,a),c);yo(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(a=``+a,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,a),c.return=e,e=c):(n(e,r),c=Yi(a,e.mode,c),c.return=e,e=c),o(e)):n(e,r)}return function(e,t,n,r){try{go=0;var i=_(e,t,n,r);return ho=null,i}catch(t){if(t===io||t===oo)throw t;var a=Ui(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var xo=bo(!0),So=bo(!1),Co=!1;function wo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function To(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 Eo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Do(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Bi(e),zi(e,null,n),t}return Ii(e,r,t,n),Bi(e)}function Oo(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,Dt(e,n)}}function ko(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}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ao=!1;function jo(){if(Ao){var e=Ya;if(e!==null)throw e}}function Mo(e,t,n,r){Ao=!1;var i=e.updateQueue;Co=!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?(q&f)===f:(r&f)===f){f!==0&&f===Ja&&(Ao=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=S({},d,f);break a;case 2:Co=!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),sd|=o,e.lanes=o,e.memoizedState=d}}function No(e,t){if(typeof e!=`function`)throw Error(s(191,e));e.call(t)}function Po(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=w.T,s={};s.types=o===null?null:o.types,w.T=s,_c(e,!1,t,n);try{var c=i(),l=w.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?gc(e,t,Qa(c,r),jd(e)):gc(e,t,r,jd(e))}catch(n){gc(e,t,{then:function(){},status:`rejected`,reason:n},jd())}finally{T.p=a,o!==null&&s.types!==null&&(o.types=s.types),w.T=o}}function oc(){}function sc(e,t,n,r){if(e.tag!==5)throw Error(s(476));var i=cc(e).queue;ac(e,i,t,De,n===null?oc:function(){return lc(e),n(r)})}function cc(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:De,baseState:De,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vs,lastRenderedState:De},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vs,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function lc(e){var t=cc(e);t.next===null&&(t=e.alternate.memoizedState),gc(e,t.next.queue,{},jd())}function uc(){return Fa(sh)}function dc(){return I().memoizedState}function fc(){return I().memoizedState}function pc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=jd();e=Eo(n);var r=Do(t,e,n);r!==null&&(Pd(r,t,n),Oo(r,t,n)),t={cache:Va()},e.payload=t;return}t=t.return}}function mc(e,t,n){var r=jd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},vc(e)?yc(t,n):(n=Li(e,t,n,r),n!==null&&(Pd(n,e,r),bc(n,t,r)))}function hc(e,t,n){gc(e,t,n,jd())}function gc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(vc(e))yc(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,Qr(s,o))return Ii(e,t,i,0),G===null&&Fi(),!1}catch{}if(n=Li(e,t,i,r),n!==null)return Pd(n,e,r),bc(n,t,r),!0}return!1}function _c(e,t,n,r){if(r={lane:2,revertLane:Pf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},vc(e)){if(t)throw Error(s(479))}else t=Li(e,n,r,2),t!==null&&Pd(t,e,2)}function vc(e){var t=e.alternate;return e===M||t!==null&&t===M}function yc(e,t){$o=Qo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Dt(e,n)}}var xc={readContext:Fa,use:gs,useCallback:F,useContext:F,useEffect:F,useImperativeHandle:F,useLayoutEffect:F,useInsertionEffect:F,useMemo:F,useReducer:F,useRef:F,useState:F,useDebugValue:F,useDeferredValue:F,useTransition:F,useSyncExternalStore:F,useId:F,useHostTransitionStatus:F,useFormState:F,useActionState:F,useOptimistic:F,useMemoCache:F,useCacheRefresh:F,useEffectEvent:F},Sc={readContext:Fa,use:gs,useCallback:function(e,t){return ps().memoizedState=[e,t===void 0?null:t],e},useContext:Fa,useEffect:Ks,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Ws(4194308,4,Qs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ws(4194308,4,e,t)},useInsertionEffect:function(e,t){Ws(4,2,e,t)},useMemo:function(e,t){var n=ps();t=t===void 0?null:t;var r=e();if(es){lt(!0);try{e()}finally{lt(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ps();if(n!==void 0){var i=n(t);if(es){lt(!0);try{n(t)}finally{lt(!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=mc.bind(null,M,e),[r.memoizedState,e]},useRef:function(e){var t=ps();return e={current:e},t.memoizedState=e},useState:function(e){e=Os(e);var t=e.queue,n=hc.bind(null,M,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ec,useDeferredValue:function(e,t){return rc(ps(),e,t)},useTransition:function(){var e=Os(!1);return e=ac.bind(null,M,e.queue,!0,!1),ps().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=M,i=ps();if(A){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),G===null)throw Error(s(349));q&127||Cs(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ks(Ts.bind(null,r,a,e),[e]),r.flags|=2048,Hs(9,{destroy:void 0},ws.bind(null,r,a,n,t),null),n},useId:function(){var e=ps(),t=G.identifierPrefix;if(A){var n=ca,r=sa;n=(r&~(1<<32-ut(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=ts++,0<\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?o.createElement(`select`,{is:r.is}):o.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?o.createElement(i,{is:r.is}):o.createElement(i)}}a[Pt]=t,a[Ft]=r;a:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break a;for(;o.sibling===null;){if(o.return===null||o.return===t)break a;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;a:switch(np(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&vl(t)}}return z(t),t.subtreeFlags&=-33554433,yl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&vl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(s(166));if(e=Pe.current,xa(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=ma,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[Pt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||ep(e.nodeValue,n)),e||va(t,!0)}else e=lp(e).createTextNode(r),e[Pt]=t,t.stateNode=e}return z(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=xa(t),n!==null){if(e===null){if(!r)throw Error(s(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(557));e[Pt]=t}else Sa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;z(t),e=!1}else n=Ca(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ko(t),t):(Ko(t),null);if(t.flags&128)throw Error(s(558))}return z(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=xa(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(s(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(s(317));i[Pt]=t}else Sa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;z(t),i=!1}else i=Ca(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Ko(t),t):(Ko(t),null)}return Ko(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),xl(t,t.updateQueue),z(t),null);case 4:return Le(),e===null&&Wf(t.stateNode.containerInfo),t.flags|=67108864,z(t),null;case 10:return ka(t.type),z(t),null;case 19:if(Yo(t),r=t.memoizedState,r===null)return z(t),null;if(i=!!(t.flags&128),a=r.rendering,a===null){if(i)Sl(r,!1);else{if(Y!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Xo(e),a!==null){for(t.flags|=128,Sl(r,!1),e=a.updateQueue,t.updateQueue=e,xl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ki(n,e),n=n.sibling;return Jo(t,qo.current&1|2),A&&la(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Qe()>_d&&(t.flags|=128,i=!0,Sl(r,!1),t.lanes=4194304)}}else{if(!i){if(e=Xo(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,xl(t,e),Sl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!a.alternate&&!A)return z(t),null}else 2*Qe()-r.renderingStartTime>_d&&n!==536870912&&(t.flags|=128,i=!0,Sl(r,!1),t.lanes=4194304)}r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Qe(),e.sibling=null,a=qo.current,a=i?a&1|2:a&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||A?Jo(t,a):(n=a,E(Bo,t),E(qo,n),Vo===null&&(Vo=t)),A&&la(t,r.treeForkCount),e}return z(t),null;case 22:case 23:return Ko(t),zo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(z(t),t.subtreeFlags&6&&(t.flags|=8192)):z(t),n=t.updateQueue,n!==null&&xl(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&&je(eo),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ka(j),z(t),null;case 25:return null;case 30:return t.flags|=33554432,z(t),null}throw Error(s(156,t.tag))}function wl(e,t){switch(fa(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ka(j),Le(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ze(t),null;case 31:if(t.memoizedState!==null){if(Ko(t),t.alternate===null)throw Error(s(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ko(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Yo(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Le(),null;case 10:return ka(t.type),null;case 22:case 23:return Ko(t),zo(),e!==null&&je(eo),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ka(j),null;case 25:return null;default:return null}}function Tl(e,t){switch(fa(t),t.tag){case 3:ka(j),Le();break;case 26:case 27:case 5:ze(t);break;case 4:Le();break;case 31:t.memoizedState!==null&&Ko(t);break;case 13:Ko(t);break;case 19:Yo(t);break;case 10:ka(t.type);break;case 22:case 23:Ko(t),zo(),e!==null&&je(eo);break;case 24:ka(j)}}function El(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){Z(t,t.return,e)}}function Dl(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){Z(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Z(t,t.return,e)}}function Ol(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Po(t,n)}catch(t){Z(e,e.return,t)}}}function kl(e,t,n){n.props=kc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Z(e,t,n)}}function Al(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:var i=e.stateNode,a=Oi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Pp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Fp(e);h(e.child,!1,Qp,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Z(e,t,n)}}function jl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Z(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){Z(e,t,n)}else n.current=null}}function Ml(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n title`))),np(r,t,n),r[Pt]=e,D(r),t=r;break a;case`link`:if(a=Gm(`link`,`href`,i).get(t+(n.href||``))){for(o=0;og&&(o=g,g=h,h=o);var _=ni(s,h),v=ni(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,w.T=null,n=wd,wd=null;var a=bd,o=Sd;if(X=0,xd=bd=null,Sd=0,W&6)throw Error(s(331));var c=W;if(W|=4,Zu(a.current),Uu(a,a.current,o,n),W=c,Df(0,!1),ct&&typeof ct.onPostCommitFiberRoot==`function`)try{ct.onPostCommitFiberRoot(st,a)}catch{}return!0}finally{T.p=i,w.T=r,uf(e,t)}}function pf(e,t,n){t=$i(n,t),t=Fc(e.stateNode,t,2),e=Do(e,t,2),e!==null&&(wt(e,2),Ef(e))}function Z(e,t,n){if(e.tag===3)pf(e,e,n);else for(;t!==null;){if(t.tag===3){pf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(yd===null||!yd.has(r))){e=$i(n,e),n=Ic(2),r=Do(t,n,2),r!==null&&(Lc(n,r,t,e),wt(r,2),Ef(r));break}}t=t.return}}function mf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new td;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)||(ad=!0,i.add(n),e=hf.bind(null,e,t,n),t.then(e,e))}function hf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,G===e&&(q&n)===n&&(Y===4||Y===3&&(q&62914560)===q&&300>Qe()-hd?W&2?ld|=n:Vd(e,0):ld|=n,dd===q&&(dd=0)),Ef(e)}function gf(e,t){t===0&&(t=St()),e=Ri(e,t),e!==null&&(wt(e,t),Ef(e))}function _f(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),gf(e,n)}function vf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}r!==null&&r.delete(t),gf(e,n)}function yf(e,t){return Je(e,t)}var bf=null,xf=null,Sf=!1,Cf=!1,wf=!1,Tf=0;function Ef(e){e!==xf&&e.next===null&&(xf===null?bf=xf=e:xf=xf.next=e),Cf=!0,Sf||(Sf=!0,Nf())}function Df(e,t){if(!wf&&Cf){wf=!0;do for(var n=!1,r=bf;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-ut(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Mf(r,a))}else a=q,a=vt(r,r===G?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||yt(r,a)||(n=!0,Mf(r,a))}r=r.next}while(n);wf=!1}}function Of(){kf()}function kf(){Cf=Sf=!1;var e=0;Tf!==0&&hp()&&(e=Tf);for(var t=Qe(),n=null,r=bf;r!==null;){var i=r.next,a=Af(r,t);a===0?(r.next=null,n===null?bf=i:n.next=i,i===null&&(xf=n)):(n=r,(e!==0||a&3)&&(Cf=!0)),r=i}X!==0&&X!==5||Df(e,!1),Tf!==0&&(Tf=0)}function Af(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&&ap(d)&&(c=c.responseEnd,o+=u*(c$m){s.length=o;break}f=new Promise(jp.bind(f)),s.push(f)}}}if(0`u`?null:document;function Tm(e,t,n){var r=wm;if(r&&typeof t==`string`&&t){var i=mn(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),ym.has(i)||(ym.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),np(t,`link`,e),D(t),r.head.appendChild(t)))}}function Em(e){xm.D(e),Tm(`dns-prefetch`,e,null)}function Dm(e,t){xm.C(e,t),Tm(`preconnect`,e,t)}function Om(e,t,n){xm.L(e,t,n);var r=wm;if(r&&e&&t){var i=`link[rel="preload"][as="`+mn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+mn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+mn(n.imageSizes)+`"]`)):i+=`[href="`+mn(e)+`"]`;var a=i;switch(t){case`style`:a=Pm(e);break;case`script`:a=Rm(e)}if(!(vm.has(a)||(e=S({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Fm(a))||t===`script`&&r.querySelector(zm(a))))){var o=r.createElement(`link`);np(o,`link`,e),t===`style`&&(o[Ht]=!0,o.onload=o.onerror=function(){Jt(o)}),D(o),r.head.appendChild(o)}}}function km(e,t){xm.m(e,t);var n=wm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+mn(r)+`"][href="`+mn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rm(e)}if(!vm.has(a)&&(e=S({rel:`modulepreload`,href:e},t),vm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zm(a)))return}r=n.createElement(`link`),np(r,`link`,e),D(r),n.head.appendChild(r)}}}function Am(e,t,n){xm.S(e,t,n);var r=wm;if(r&&e){var i=qt(r).hoistableStyles,a=Pm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Fm(a)))s.loading=5;else{e=S({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vm.get(a))&&Hm(e,n);var c=o=r.createElement(`link`);D(c),np(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,Vm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jm(e,t){xm.X(e,t);var n=wm;if(n&&e){var r=qt(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=S({src:e,async:!0},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),D(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mm(e,t){xm.M(e,t);var n=wm;if(n&&e){var r=qt(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=S({src:e,async:!0,type:`module`},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),D(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t,n,r){var i=(i=Pe.current)?bm(i):null;if(!i)throw Error(s(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Pm(n.href),t=qt(i).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,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=Pm(n.href);var a=qt(i).hoistableStyles,o=a.get(e);if(o||(i=i.ownerDocument||i,o={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},a.set(e,o),(a=i.querySelector(Fm(e)))?a._p||(o.instance=a,o.state.loading=5):(a=vm.get(e),a||(a={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vm.set(e,a)),Lm(i,e,a,o.state))),t&&r===null)throw Error(s(528,``));return o}if(t&&r!==null)throw Error(s(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Rm(n),t=qt(i).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Pm(e){return`href="`+mn(e)+`"`}function Fm(e){return`link[rel="stylesheet"][`+e+`]`}function Im(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function Lm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Ht]){r.loading=1;return}}else t=e.createElement(`link`),t[Ht]=!0,t.onload=t.onerror=Jt.bind(null,t),np(t,`link`,n),D(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Rm(e){return`[src="`+mn(e)+`"]`}function zm(e){return`script[async]`+e}function Bm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+mn(n.href)+`"]`);if(r)return t.instance=r,D(r),r;var i=S({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),D(r),np(r,`style`,i),Vm(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Pm(n.href);var a=e.querySelector(Fm(i));if(a)return t.state.loading|=4,t.instance=a,D(a),a;r=Im(n),(i=vm.get(i))&&Hm(r,i),a=(e.ownerDocument||e).createElement(`link`),D(a);var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(a,`link`,r),t.state.loading|=4,Vm(a,n.precedence,e),t.instance=a;case`script`:return a=Rm(n.src),(i=e.querySelector(zm(a)))?(t.instance=i,D(i),i):(r=n,(i=vm.get(a))&&(r=S({},n),Um(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),D(i),np(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(s(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Vm(r,n.precedence,e));return t.instance}function Vm(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 qm(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 Jm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Ym(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Xm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Zm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Xm(t),e.suspenseyImages.push(t)),e=rh.bind(e),t.decode().then(e,e))}function Qm(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=Pm(r.href),a=t.querySelector(Fm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=nh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,D(a);return}a=t.ownerDocument||t,r=Im(r),(i=vm.get(i))&&Hm(r,i),a=a.createElement(`link`),D(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(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=nh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $m=0;function eh(e,t){return e.stylesheets&&e.count===0&&ah(e,e.stylesheets),0$m?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function th(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ah(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function nh(){this.count--,th(this)}function rh(){this.imgCount--,th(this)}var ih=null;function ah(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ih=new Map,t.forEach(oh,e),ih=null,nh.call(e))}function oh(e,t){if(!(t.state.loading&4)){var n=ih.get(e);if(n)var r=n.get(null);else{n=new Map,ih.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=s()})),l=e((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})),u=e(((e,t)=>{t.exports=l()})),d=i(),f=c(),p=n(),m=u(),h=[[`AutoCua`,`autocua`],[`Web use`,`webuse`],[`Mobile use`,`mobileuse`],[`Coder use`,`coderuse`],[`Scraper use`,`scraperuse`],[`Minion`,`minion`]],g=[[`Auto`,`matic`],[`C`,`omputer`],[`u`,`se`],[`a`,`gent`]];function _({name:e,file:t}){return(0,m.jsxs)(`div`,{className:`bot`,role:`img`,"aria-label":e,children:[(0,m.jsx)(`img`,{src:`bots/`+t+`.webp`,alt:``}),(0,m.jsx)(`img`,{className:`eyes`,src:`bots/`+t+`-eyes.webp`,alt:``}),(0,m.jsx)(`img`,{src:`bots/`+t+`-shine.webp`,alt:``})]})}function v({text:e,cls:t}){return(0,m.jsx)(m.Fragment,{children:e.split(``).map((e,n)=>(0,m.jsx)(`i`,{className:t,children:e},n))})}function y(){let e=(0,p.useRef)(null);return(0,p.useLayoutEffect)(()=>{e.current&&b(e.current)},[]),(0,m.jsxs)(`div`,{id:`splashOverlay`,className:`splash-overlay`,ref:e,children:[(0,m.jsx)(`div`,{className:`lift`,children:(0,m.jsxs)(`div`,{className:`row`,children:[(0,m.jsx)(`div`,{className:`side`,children:h.map(([e,t])=>(0,m.jsx)(`div`,{className:`slot`,children:(0,m.jsx)(_,{name:e,file:t})},t))}),(0,m.jsx)(`div`,{className:`slot lead`,children:(0,m.jsx)(_,{name:`Computer use`,file:`computeruse`})})]})}),(0,m.jsx)(`div`,{className:`title`,role:`img`,"aria-label":`AutoCua: Automatic Computer use agent`,children:g.map(([e,t],n)=>[n>0?(0,m.jsx)(`i`,{className:`gap`,children:`\xA0`},`gap`+n):null,(0,m.jsxs)(`span`,{className:`word`,children:[(0,m.jsx)(v,{text:e,cls:`keep`}),(0,m.jsx)(v,{text:t,cls:`fade`})]},`word`+n)])}),(0,m.jsx)(`div`,{className:`sheen`,"aria-hidden":`true`,children:(0,m.jsx)(`div`,{className:`sheen-art`,children:(0,m.jsx)(v,{text:`AutoCua`})})})]})}function b(e){let t=!!(window.matchMedia&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches),n=!1;function r(){if(n)return;n=!0;let e=function(){window.postMessage(`splashDone`,`*`)};document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,function(){setTimeout(e,0)}):e()}let i=1e3,a=4500,o=1e3,s=`cubic-bezier(0.4, 0, 0.6, 1)`,c=`cubic-bezier(0.16, 1, 0.3, 1)`,l=`cubic-bezier(0.87, 0, 0.13, 1)`,u=setTimeout(r,8250),d=[[-2.2,.45,100],[-1.64,.6,50],[-.92,.8,0],[0,1,0],[.92,.8,0],[1.64,.6,50],[2.2,.45,100]],f=e.querySelector(`.lift`),p=e.querySelector(`.row`),m=e.querySelector(`.side`),h=[`AutoCua`,`Web use`,`Mobile use`,`Computer use`,`Coder use`,`Scraper use`,`Minion`].map(function(t){return e.querySelector(`.bot[aria-label="`+t+`"]`).parentNode}),g=e.querySelector(`.title`),_=e.querySelector(`.sheen`),v=e.querySelector(`.sheen-art`),y=null,b=null,ee=null,te=null,ne=null,re=[];function x(t){let n=function(){e.isConnected?t():window.removeEventListener(`resize`,n)};return n}function ie(){let e=window.innerWidth,t=window.innerHeight,n=Math.min(e,t),r=parseFloat(getComputedStyle(g).fontSize)*1.2,i=t/2-r/2,a=t/2+r/2+Math.min(.03*n,24),o=t,s=Math.min(.36*n,.23*e,280,o-a),c=s*.7222222222222222,l=1.75;return{titleTop:i,feet:o,h:s,w:c,big:l,drop:Math.max(28,Math.round(t*.06),Math.ceil(a+s*l-o))}}function S(e,t){return`translate(0px, `+.08*e.h*e.big+`px) scale(`+.96*d[t][1]+`)`}function ae(e,t){return`translate(`+d[t][0]*e.w*e.big+`px, 0px) scale(`+d[t][1]+`)`}function oe(){let e=ie(),t=e.big;if(p.style.height=e.h*t+`px`,p.style.top=e.feet-e.h*t+`px`,h.forEach(function(n,r){n.style.width=e.w*t+`px`,n.style.height=e.h*t+`px`,n.style.marginLeft=-e.w*t/2+`px`,n.style.zIndex=String(5-Math.abs(r-3)),re[r]&&re[r].effect.setKeyframes([{transform:S(e,r)},{transform:ae(e,r)}])}),g.style.top=e.titleTop+`px`,_.style.top=e.titleTop+`px`,ne&&de(),ee&&te){let e=C();ee.effect.setKeyframes([{transform:`translateX(`+-e+`px)`},{transform:`translateX(`+e+`px)`}]),te.effect.setKeyframes([{transform:`translateX(`+e+`px)`},{transform:`translateX(`+-e+`px)`}])}return y&&y.effect.setKeyframes(fe(t)),b&&b.effect.setKeyframes([{transform:`translateY(`+e.drop+`px)`},{transform:`translateY(0px)`}]),e}function se(){ne=null;let e=oe();f.style.opacity=`1`,m.style.opacity=`1`,p.style.transform=`scale(`+1/e.big+`)`,h.forEach(function(t,n){t.style.transform=ae(e,n),t.querySelector(`.eyes`).style.opacity=`1`}),g.classList.add(`settled`),_.style.display=`none`}function ce(e){let t=e.querySelectorAll(`i`),n=(t[0].getBoundingClientRect().left+t[t.length-1].getBoundingClientRect().right)/2,r=Array.prototype.map.call(e.querySelectorAll(`.keep`),function(e){return e.getBoundingClientRect()}),i=n-r.reduce(function(e,t){return e+t.width},0)/2;return r.map(function(e){let t=i-e.left;return i+=e.width,t})}function le(e){return[{transform:`translateX(0px)`},{transform:`translateX(`+e+`px)`}]}function ue(){g.style.setProperty(`--t0`,`1500ms`);try{let e=g.querySelectorAll(`.keep`);ne=ce(g).map(function(t,n){return e[n].animate(le(t),{delay:3400,duration:900,easing:`cubic-bezier(0.65, 0, 0.35, 1)`,fill:`forwards`})});let t=ne;g.classList.add(`go`),Promise.all(t.map(function(e){return e.finished})).then(function(){ne=null,g.classList.add(`settled`),t.forEach(function(e){e.cancel()})}).catch(function(){})}catch{g.classList.add(`settled`)}}function de(){let e=g.cloneNode(!0);e.classList.remove(`go`),e.setAttribute(`aria-hidden`,`true`),e.style.visibility=`hidden`,document.body.appendChild(e),ce(e).forEach(function(e,t){ne[t].effect.setKeyframes(le(e))}),document.body.removeChild(e)}function C(){let e=v.firstElementChild.getBoundingClientRect();return(v.lastElementChild.getBoundingClientRect().right-e.left)/2+.7*parseFloat(getComputedStyle(_).fontSize)}function fe(e){let t=3200;return[{offset:0,transform:`scale(0.85)`,easing:c},{offset:i/t,transform:`scale(1)`},{offset:1400/t,transform:`scale(1)`,easing:l},{offset:1,transform:`scale(`+1/e+`)`}]}function pe(e,t,n){let r=n[n.length-1]+300-t;function i(e,n,i){return{offset:(e-t)/r,opacity:1,transform:`scaleY(`+n+`)`,easing:i||`linear`}}let a=[{offset:0,opacity:0,transform:`scaleY(0.06)`,easing:`cubic-bezier(0.33, 1, 0.68, 1)`},i(t+600,1)];n.forEach(function(e){a.push(i(e,1,`ease-in`),i(e+135,.1),i(e+153,.1,`ease-out`),i(e+300,1))}),e.animate(a,{delay:t,duration:r,fill:`both`})}function me(){let e=oe(),t=e.big;f.animate([{opacity:0},{opacity:1}],{delay:100,duration:350,fill:`both`}),y=p.animate(fe(t),{delay:100,duration:3200,fill:`both`}),p.animate([{filter:`blur(6px)`},{filter:`blur(0px)`}],{delay:100,duration:i,easing:c,fill:`backwards`}),b=f.animate([{transform:`translateY(`+e.drop+`px)`},{transform:`translateY(0px)`}],{delay:1500,duration:1800,easing:l,fill:`both`}),m.animate([{opacity:0},{opacity:1}],{delay:2300,duration:500,fill:`both`}),h.forEach(function(t,n){let r=t.querySelector(`.eyes`),i=4600+n*100;if(n===3)pe(r,420,[1220,i]);else{let a=2200+d[n][2];re[n]=t.animate([{transform:S(e,n)},{transform:ae(e,n)}],{delay:a,duration:1e3,easing:`cubic-bezier(0.2, 0.8, 0.2, 1)`,fill:`both`}),pe(r,a+250,[i])}}),ue();let n=C();ee=_.animate([{transform:`translateX(`+-n+`px)`},{transform:`translateX(`+n+`px)`}],{delay:a,duration:o,easing:s,fill:`both`}),te=v.animate([{transform:`translateX(`+n+`px)`},{transform:`translateX(`+-n+`px)`}],{delay:a,duration:o,easing:s,fill:`both`}),_.style.visibility=`visible`,setTimeout(r,5750),window.addEventListener(`resize`,x(oe))}let he=Array.prototype.slice.call(e.querySelectorAll(`.bot img`));function ge(e){e.complete&&!e.naturalWidth&&(e.closest(`.bot`).style.visibility=`hidden`)}if(he.forEach(function(e){ge(e),e.addEventListener(`error`,function(){ge(e)})}),t){setTimeout(r,600),se(),window.addEventListener(`resize`,x(se));return}let _e=!1;function ve(){if(!_e){_e=!0,clearTimeout(u),u=setTimeout(r,6750),he.forEach(ge);try{me()}catch(t){console.error(t),setTimeout(r,600),e.getAnimations&&e.getAnimations({subtree:!0}).forEach(function(e){e.cancel()}),se(),window.addEventListener(`resize`,x(se))}}}Promise.all(he.map(function(e){return e.decode?e.decode().catch(function(){}):null})).then(ve),setTimeout(ve,1500)}function ee(){return(0,m.jsx)(`div`,{className:`skills-stage`,id:`skillsStage`,"aria-label":`Skills`,children:(0,m.jsxs)(`div`,{className:`skills-stage-inner`,children:[(0,m.jsxs)(`div`,{className:`skills-tabs-row`,children:[(0,m.jsxs)(`div`,{className:`skills-tabs`,role:`tablist`,"aria-label":`Skill target`,children:[(0,m.jsxs)(`button`,{className:`skills-tab active`,"data-tab":`computer`,role:`tab`,"aria-selected":`true`,type:`button`,children:[(0,m.jsxs)(`svg`,{className:`skills-tab-icon`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,m.jsx)(`rect`,{x:`3`,y:`4`,width:`18`,height:`12`,rx:`1`}),(0,m.jsx)(`path`,{d:`M7 20h10`}),(0,m.jsx)(`path`,{d:`M9 16v4`}),(0,m.jsx)(`path`,{d:`M15 16v4`})]}),(0,m.jsx)(`span`,{children:`Computer use`})]}),(0,m.jsxs)(`button`,{className:`skills-tab`,"data-tab":`mobile`,role:`tab`,"aria-selected":`false`,type:`button`,children:[(0,m.jsxs)(`svg`,{className:`skills-tab-icon`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,m.jsx)(`rect`,{x:`5.5`,y:`2`,width:`13`,height:`20`,rx:`2.5`}),(0,m.jsx)(`path`,{d:`M10.5 18h3`})]}),(0,m.jsx)(`span`,{children:`Mobile use`})]})]}),(0,m.jsxs)(`button`,{className:`skills-add`,type:`button`,"aria-label":`Add skills`,children:[(0,m.jsx)(`span`,{className:`skills-add-circle`,"aria-hidden":`true`,children:(0,m.jsxs)(`svg`,{className:`skills-add-plus`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.2`,strokeLinecap:`round`,"aria-hidden":`true`,children:[(0,m.jsx)(`path`,{d:`M12 5v14`}),(0,m.jsx)(`path`,{d:`M5 12h14`})]})}),(0,m.jsx)(`span`,{className:`skills-add-label`,children:`Add skills`})]}),(0,m.jsx)(`button`,{className:`skills-close`,id:`skillsCloseBtn`,type:`button`,"aria-label":`Close skills`,title:`Close`,children:(0,m.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,"aria-hidden":`true`,children:[(0,m.jsx)(`path`,{d:`M18 6L6 18`}),(0,m.jsx)(`path`,{d:`M6 6l12 12`})]})})]}),(0,m.jsxs)(`div`,{className:`skills-form active`,"data-form":`skills`,role:`tabpanel`,children:[(0,m.jsx)(`div`,{className:`skills-view active`,"data-view":`list`,children:(0,m.jsx)(`div`,{className:`skills-list`,id:`skillsList`,"aria-label":`Saved skills`})}),(0,m.jsxs)(`div`,{className:`skills-view`,"data-view":`preview`,children:[(0,m.jsxs)(`div`,{className:`skills-preview-head`,children:[(0,m.jsx)(`button`,{className:`skills-back`,type:`button`,"aria-label":`Back to skills list`,title:`Back`,children:(0,m.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,m.jsx)(`path`,{d:`M15 18l-6-6 6-6`})})}),(0,m.jsx)(`span`,{className:`skills-preview-name`,id:`skillsPreviewName`}),(0,m.jsxs)(`div`,{className:`skills-preview-actions`,children:[(0,m.jsx)(`button`,{className:`skills-edit-btn`,id:`skillsEditBtn`,type:`button`,children:`Edit`}),(0,m.jsx)(`button`,{className:`skills-save-btn`,id:`skillsSaveBtn`,type:`button`,hidden:!0,children:`Save`})]})]}),(0,m.jsx)(`pre`,{className:`skills-preview-body`,id:`skillsPreviewBody`}),(0,m.jsx)(`textarea`,{className:`skills-preview-body skills-preview-editbox`,id:`skillsPreviewEdit`,hidden:!0,spellCheck:!1})]}),(0,m.jsxs)(`div`,{className:`skills-view`,"data-view":`add`,children:[(0,m.jsx)(`div`,{className:`skills-row skills-add-fields`,"data-for":`computer`,children:(0,m.jsxs)(`div`,{className:`skills-field`,children:[(0,m.jsx)(`label`,{className:`skills-field-label`,htmlFor:`skillsAddTarget`,children:`Link / Application`}),(0,m.jsx)(`input`,{type:`text`,className:`skills-input`,id:`skillsAddTarget`,placeholder:`https://… or application name (the file is named after it)`,autoComplete:`off`})]})}),(0,m.jsxs)(`div`,{className:`skills-row skills-add-fields`,"data-for":`mobile`,hidden:!0,children:[(0,m.jsxs)(`div`,{className:`skills-field`,children:[(0,m.jsx)(`label`,{className:`skills-field-label`,htmlFor:`skillsAddApp`,children:`Application`}),(0,m.jsx)(`input`,{type:`text`,className:`skills-input`,id:`skillsAddApp`,placeholder:`name on the home screen, e.g. Instagram`,autoComplete:`off`})]}),(0,m.jsxs)(`div`,{className:`skills-field`,children:[(0,m.jsx)(`label`,{className:`skills-field-label`,htmlFor:`skillsAddBundle`,children:`Bundle id`}),(0,m.jsx)(`input`,{type:`text`,className:`skills-input`,id:`skillsAddBundle`,placeholder:`optional, e.g. com.burbn.instagram`,autoComplete:`off`})]})]}),(0,m.jsxs)(`div`,{className:`skills-field skills-field-grow`,children:[(0,m.jsx)(`label`,{className:`skills-field-label`,htmlFor:`skillsAddText`,children:`Skill`}),(0,m.jsx)(`textarea`,{className:`skills-textarea`,id:`skillsAddText`,placeholder:`Write the skill here…`})]}),(0,m.jsxs)(`div`,{className:`skills-actions`,children:[(0,m.jsx)(`span`,{className:`skills-add-error`,id:`skillsAddError`,role:`alert`}),(0,m.jsx)(`button`,{className:`skills-cancel`,type:`button`,children:`Cancel`}),(0,m.jsx)(`button`,{className:`skills-save`,id:`skillsAddSave`,type:`button`,children:`Save`})]})]})]})]})})}function te(){let e=(0,p.useRef)(null);return(0,p.useLayoutEffect)(()=>{e.current&&document.dispatchEvent(new CustomEvent(`bigcenter:ready`))},[]),(0,m.jsx)(`div`,{className:`container-zone big-center-zone`,id:`zoneBigCenter`,"aria-label":`Big center`,ref:e,children:(0,m.jsx)(ee,{})})}function ne(){return(0,m.jsxs)(`div`,{className:`container-zone user-container is-empty`,id:`userContainer`,"aria-label":`Your message`,children:[(0,m.jsx)(`div`,{className:`user-message-via`,id:`userMessageVia`,hidden:!0}),(0,m.jsx)(`div`,{className:`user-message-text`,id:`userMessageText`})]})}function re(){return(0,m.jsxs)(`div`,{className:`container-zone screen-container`,id:`screenContainer`,"aria-label":`Screenshot`,children:[(0,m.jsx)(`video`,{className:`cu-bg`,muted:!0,loop:!0,playsInline:!0,preload:`none`,"aria-hidden":`true`}),(0,m.jsxs)(`div`,{className:`screenshot-frame`,id:`imageStreamContainer`,children:[(0,m.jsx)(`img`,{className:`stream-image`,alt:`Agent screen`,style:{display:`none`}}),(0,m.jsx)(`video`,{className:`run-video`,controls:!0,playsInline:!0,preload:`auto`,style:{display:`none`}})]}),(0,m.jsx)(`div`,{className:`cu-prep-text`,"aria-hidden":`true`,children:(0,m.jsx)(`span`,{className:`t-shimmer`,"data-text":`Preparing video`,children:`Preparing video`})})]})}function x(){return(0,m.jsxs)(`div`,{className:`container-zone agent-container`,id:`agentContainer`,"aria-label":`Tool response and tracking progress`,children:[(0,m.jsxs)(`div`,{className:`bl-panel tool-panel`,children:[(0,m.jsxs)(`div`,{className:`tool-response-label`,children:[`Tool response: `,(0,m.jsx)(`span`,{className:`tool-used-count`,id:`toolUsedCount`,children:`0`}),` tools used`]}),(0,m.jsx)(`div`,{className:`tool-flow`,"aria-hidden":`true`,children:(0,m.jsx)(`div`,{className:`tool-flow-tree`,id:`toolFlowTree`})}),(0,m.jsx)(`div`,{className:`sh-panel`,id:`shellPanel`,"aria-hidden":`true`,children:(0,m.jsx)(`div`,{className:`shell-term`,id:`shellTerminalContainer`,children:(0,m.jsx)(`div`,{className:`sh-body`,children:(0,m.jsxs)(`div`,{className:`sh-lines`,children:[(0,m.jsxs)(`div`,{className:`sh-cmd-line`,id:`shellCmdLine`,children:[(0,m.jsx)(`span`,{className:`sh-p`,children:`>`}),(0,m.jsx)(`span`,{className:`sh-cmd-text`,id:`shellCmdText`})]}),(0,m.jsx)(`div`,{className:`sh-progress`,id:`shellProgress`,"aria-hidden":`true`,children:(0,m.jsx)(`span`,{className:`sh-fill`})}),(0,m.jsx)(`div`,{className:`sh-out-line`,id:`shellOutLine`,children:(0,m.jsx)(`span`,{className:`sh-out-text`,id:`shellOutText`})})]})})})})]}),(0,m.jsxs)(`div`,{className:`bl-panel tracking-panel`,children:[(0,m.jsx)(`div`,{className:`scratchpad-label`,children:`tracking progress`}),(0,m.jsx)(`div`,{className:`br-flow`,"aria-hidden":`true`,children:(0,m.jsx)(`div`,{className:`br-tree`,id:`brTree`})})]}),(0,m.jsx)(`div`,{className:`bl-panel reply-panel md`,id:`runReply`,"aria-live":`polite`})]})}function ie(){return(0,m.jsx)(`button`,{className:`skills-btn`,id:`skillsBtn`,type:`button`,"aria-label":`Skills`,title:`Skills`,children:(0,m.jsxs)(`svg`,{className:`skills-mark`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,m.jsx)(`defs`,{children:(0,m.jsx)(`clipPath`,{id:`skillsSheet`,children:(0,m.jsx)(`rect`,{x:`4`,y:`6.25`,width:`16`,height:`11.5`})})}),(0,m.jsx)(`rect`,{x:`3`,y:`2.75`,width:`18`,height:`3.5`,rx:`1.75`}),(0,m.jsx)(`rect`,{x:`3`,y:`17.75`,width:`18`,height:`3.5`,rx:`1.75`}),(0,m.jsx)(`path`,{d:`M5.5 6.25 Q6.4 12 5.5 17.75`}),(0,m.jsx)(`path`,{d:`M18.5 6.25 Q17.6 12 18.5 17.75`}),(0,m.jsx)(`g`,{clipPath:`url(#skillsSheet)`,children:(0,m.jsxs)(`g`,{className:`skills-lines`,children:[(0,m.jsx)(`path`,{d:`M8.5 9.1 H15.5`}),(0,m.jsx)(`path`,{d:`M8.5 12 H15.5`}),(0,m.jsx)(`path`,{d:`M8.5 14.9 H13.2`}),(0,m.jsx)(`path`,{d:`M8.5 17.8 H15.5`}),(0,m.jsx)(`path`,{d:`M8.5 20.7 H15.5`}),(0,m.jsx)(`path`,{d:`M8.5 23.6 H13.2`})]})})]})})}function S({className:e,width:t,hidden:n,children:r}){return(0,m.jsx)(`svg`,{className:e,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:t||`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":n?`true`:void 0,children:r})}var ae=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`rect`,{x:`3`,y:`4`,width:`18`,height:`12`,rx:`1`}),(0,m.jsx)(`path`,{d:`M7 20h10`}),(0,m.jsx)(`path`,{d:`M9 16v4`}),(0,m.jsx)(`path`,{d:`M15 16v4`})]}),oe=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`rect`,{x:`5.5`,y:`2`,width:`13`,height:`20`,rx:`2.5`}),(0,m.jsx)(`path`,{d:`M10.5 18h3`})]}),se=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`rect`,{x:`3`,y:`4`,width:`18`,height:`16`,rx:`2`}),(0,m.jsx)(`path`,{d:`M3 8h18`}),(0,m.jsx)(`path`,{d:`M7 12l2.5 2.5L7 17`}),(0,m.jsx)(`path`,{d:`M13 17h4`})]}),ce=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,m.jsx)(`path`,{d:`M3 12h18`}),(0,m.jsx)(`ellipse`,{cx:`12`,cy:`12`,rx:`4`,ry:`9`})]}),le=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`}),(0,m.jsx)(`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`})]}),ue=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`path`,{d:`M12 8V4H8`}),(0,m.jsx)(`rect`,{x:`4`,y:`8`,width:`16`,height:`12`,rx:`2`}),(0,m.jsx)(`path`,{d:`M2 14h2`}),(0,m.jsx)(`path`,{d:`M20 14h2`}),(0,m.jsx)(`path`,{d:`M15 13v2`}),(0,m.jsx)(`path`,{d:`M9 13v2`})]}),de=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`}),(0,m.jsx)(`path`,{d:`M6 8h.01`}),(0,m.jsx)(`path`,{d:`M10 8h.01`}),(0,m.jsx)(`path`,{d:`M14 8h.01`}),(0,m.jsx)(`path`,{d:`M18 8h.01`}),(0,m.jsx)(`path`,{d:`M8 12h.01`}),(0,m.jsx)(`path`,{d:`M12 12h.01`}),(0,m.jsx)(`path`,{d:`M16 12h.01`}),(0,m.jsx)(`path`,{d:`M7 16h10`})]}),C=(0,m.jsx)(`path`,{d:`M18 15l-6-6-6 6`}),fe=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`}),(0,m.jsx)(`path`,{d:`M21 3v5h-5`})]});function pe(){return(0,m.jsx)(S,{className:`am-check`,width:`2.5`,children:(0,m.jsx)(`path`,{d:`M5 12l5 5L20 7`})})}function me(){return(0,m.jsx)(S,{className:`am-subchev`,children:(0,m.jsx)(`path`,{d:`M9 6l6 6-6 6`})})}function he(){return(0,m.jsxs)(`div`,{className:`agent-mode-wrap`,id:`agentModeWrap`,"data-mode":`computer`,"data-sub":`thispc`,"data-shell-input":`auto`,children:[(0,m.jsx)(`div`,{className:`agent-menu`,id:`agentMenu`,children:(0,m.jsxs)(`div`,{className:`agent-menu-inner`,role:`menu`,children:[(0,m.jsxs)(`div`,{className:`agent-opt-wrap`,"data-mode":`computer`,children:[(0,m.jsxs)(`button`,{className:`agent-opt selected`,"data-mode":`computer`,role:`menuitemradio`,"aria-checked":`true`,type:`button`,children:[(0,m.jsx)(S,{className:`am-icon`,children:ae}),(0,m.jsx)(`span`,{children:`Computer use`}),(0,m.jsx)(pe,{}),(0,m.jsx)(me,{})]}),(0,m.jsx)(`div`,{className:`agent-sub`,children:(0,m.jsxs)(`div`,{className:`agent-sub-inner`,role:`menu`,children:[(0,m.jsxs)(`button`,{className:`agent-subopt selected`,"data-sub":`thispc`,role:`menuitemradio`,"aria-checked":`true`,type:`button`,children:[(0,m.jsx)(S,{className:`am-icon`,children:ae}),(0,m.jsx)(`span`,{children:`This PC`}),(0,m.jsx)(pe,{})]}),(0,m.jsxs)(`button`,{className:`agent-subopt`,"data-sub":`daisy`,role:`menuitemradio`,"aria-checked":`false`,type:`button`,children:[(0,m.jsx)(S,{className:`am-icon`,children:le}),(0,m.jsx)(`span`,{children:`Daisy chain`}),(0,m.jsx)(pe,{})]})]})})]}),(0,m.jsxs)(`div`,{className:`agent-opt-wrap`,"data-mode":`mobile`,children:[(0,m.jsxs)(`button`,{className:`agent-opt`,"data-mode":`mobile`,role:`menuitemradio`,"aria-checked":`false`,type:`button`,children:[(0,m.jsx)(S,{className:`am-icon`,children:oe}),(0,m.jsx)(`span`,{children:`Mobile use`}),(0,m.jsx)(pe,{}),(0,m.jsx)(me,{})]}),(0,m.jsx)(`div`,{className:`agent-sub`,children:(0,m.jsxs)(`div`,{className:`agent-sub-inner`,role:`menu`,children:[(0,m.jsxs)(`button`,{className:`agent-subopt`,"data-sub":`ios`,role:`menuitemradio`,"aria-checked":`false`,type:`button`,children:[(0,m.jsx)(`span`,{children:`iOS`}),(0,m.jsx)(pe,{})]}),(0,m.jsxs)(`button`,{className:`agent-subopt`,"data-sub":`android`,role:`menuitemradio`,"aria-checked":`false`,type:`button`,children:[(0,m.jsx)(`span`,{children:`Android`}),(0,m.jsx)(pe,{})]})]})})]}),(0,m.jsx)(`div`,{className:`agent-opt-wrap`,"data-mode":`shell`,children:(0,m.jsxs)(`button`,{className:`agent-opt`,"data-mode":`shell`,role:`menuitemradio`,"aria-checked":`false`,type:`button`,children:[(0,m.jsx)(S,{className:`am-icon`,children:se}),(0,m.jsx)(`span`,{children:`Shell use`}),(0,m.jsx)(pe,{})]})}),(0,m.jsx)(`div`,{className:`agent-opt-wrap`,"data-mode":`web`,children:(0,m.jsxs)(`button`,{className:`agent-opt`,"data-mode":`web`,role:`menuitemradio`,"aria-checked":`false`,type:`button`,children:[(0,m.jsx)(S,{className:`am-icon`,children:ce}),(0,m.jsx)(`span`,{children:`Web use`}),(0,m.jsx)(pe,{})]})})]})}),(0,m.jsxs)(`button`,{className:`agent-btn`,id:`agentBtn`,"aria-expanded":`false`,"aria-haspopup":`true`,type:`button`,children:[(0,m.jsx)(S,{className:`am-mode-icon am-mode-computer`,hidden:!0,children:ae}),(0,m.jsx)(S,{className:`am-mode-icon am-mode-mobile`,hidden:!0,children:oe}),(0,m.jsx)(S,{className:`am-mode-icon am-mode-shell`,hidden:!0,children:se}),(0,m.jsx)(S,{className:`am-mode-icon am-mode-web`,hidden:!0,children:ce}),(0,m.jsx)(`span`,{className:`am-cur-label`,id:`agentCurLabel`,children:`Computer use`}),(0,m.jsx)(S,{className:`am-sub-icon am-sub-daisy`,hidden:!0,children:le}),(0,m.jsx)(`span`,{className:`am-sub-icon am-sub-text am-sub-ios`,children:`iOS`}),(0,m.jsx)(`span`,{className:`am-sub-icon am-sub-text am-sub-android`,children:`Android`}),(0,m.jsx)(`svg`,{className:`am-chev`,id:`agentChev`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:C})]}),(0,m.jsxs)(`button`,{className:`pair-status`,id:`pairStatus`,type:`button`,"aria-label":`Pair again`,title:`Pair again`,children:[(0,m.jsxs)(`svg`,{className:`ps-spin`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,"aria-hidden":`true`,children:[(0,m.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`,opacity:`0.25`}),(0,m.jsx)(`path`,{d:`M21 12a9 9 0 0 0-9-9`})]}),(0,m.jsx)(S,{className:`ps-retry`,hidden:!0,children:fe})]}),(0,m.jsxs)(`div`,{className:`shell-input-wrap`,id:`shellInputWrap`,children:[(0,m.jsx)(`div`,{className:`agent-menu shell-input-menu`,id:`shellInputMenu`,children:(0,m.jsxs)(`div`,{className:`agent-menu-inner`,role:`menu`,children:[(0,m.jsxs)(`button`,{className:`agent-opt selected`,"data-input":`auto`,role:`menuitemradio`,"aria-checked":`true`,type:`button`,children:[(0,m.jsx)(S,{className:`am-icon`,children:ue}),(0,m.jsx)(`span`,{children:`Auto`}),(0,m.jsx)(pe,{})]}),(0,m.jsxs)(`button`,{className:`agent-opt`,"data-input":`manual`,role:`menuitemradio`,"aria-checked":`false`,type:`button`,children:[(0,m.jsx)(S,{className:`am-icon`,children:de}),(0,m.jsx)(`span`,{children:`Manual`}),(0,m.jsx)(pe,{})]})]})}),(0,m.jsxs)(`button`,{className:`agent-btn`,id:`shellInputBtn`,"aria-expanded":`false`,"aria-haspopup":`true`,type:`button`,children:[(0,m.jsx)(S,{className:`si-icon si-auto`,hidden:!0,children:ue}),(0,m.jsx)(S,{className:`si-icon si-manual`,hidden:!0,children:de}),(0,m.jsx)(`span`,{className:`am-cur-label`,id:`shellInputLabel`,children:`Auto`}),(0,m.jsx)(`svg`,{className:`am-chev`,id:`shellInputChev`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:C})]})]}),(0,m.jsx)(ie,{})]})}function ge(){return(0,m.jsxs)(`div`,{className:`memory-ring`,id:`memoryRing`,role:`img`,"aria-label":`Memory`,children:[(0,m.jsxs)(`svg`,{className:`memory-ring-svg`,viewBox:`0 0 240 240`,"aria-hidden":`true`,children:[(0,m.jsx)(`circle`,{className:`memory-ring-track`,cx:`120`,cy:`120`,r:`112.5`}),(0,m.jsx)(`circle`,{className:`memory-ring-arc`,cx:`120`,cy:`120`,r:`112.5`,pathLength:`100`})]}),(0,m.jsx)(`span`,{className:`memory-ring-value`,"aria-hidden":`true`,children:`0`})]})}function _e(){return(0,m.jsxs)(`div`,{className:`chat-container-content`,children:[(0,m.jsxs)(`div`,{className:`output-stream-area`,children:[(0,m.jsxs)(`div`,{className:`welcome-overlay`,id:`welcomeOverlay`,children:[(0,m.jsx)(`div`,{className:`welcome-eye`}),(0,m.jsx)(`div`,{className:`welcome-eye`}),(0,m.jsx)(`div`,{className:`welcome-glow`})]}),(0,m.jsx)(`div`,{className:`milestone-stream`,id:`milestoneStream`})]}),(0,m.jsx)(`div`,{className:`cli-stream-area`,id:`cliStreamArea`,children:(0,m.jsx)(`div`,{className:`cli-stream-list`,id:`cliStreamList`})}),(0,m.jsxs)(`div`,{className:`agent-response-strip`,id:`agentResponseStrip`,children:[(0,m.jsx)(`canvas`,{className:`agent-orb`,width:`40`,height:`40`,"aria-hidden":`true`}),(0,m.jsx)(`span`,{className:`agent-label t-shimmer`,"data-text":`Agent running…`,children:`Agent running…`}),(0,m.jsx)(`span`,{className:`agent-text`,id:`agentText`})]}),(0,m.jsxs)(`div`,{className:`input-area-wrapper`,children:[(0,m.jsx)(`textarea`,{className:`chat-input`,placeholder:`Select a model in Settings to start...`,rows:1,disabled:!0}),(0,m.jsxs)(`div`,{className:`input-toolbar`,children:[(0,m.jsxs)(`button`,{className:`fast-quality-toggle link-toggle wired`,id:`linkToggle`,type:`button`,role:`switch`,"aria-checked":`true`,"aria-label":`Mobile via: Wi-Fi / Wired`,children:[(0,m.jsx)(`span`,{className:`fq-label lk-label-wireless`,"aria-hidden":`true`,children:`Mobile via: Wi-Fi`}),(0,m.jsx)(`span`,{className:`fq-label lk-label-wired`,"aria-hidden":`true`,children:`Mobile via: Wired`}),(0,m.jsx)(`span`,{className:`fq-thumb`}),(0,m.jsx)(`span`,{className:`fq-icon lk-wifi`,children:(0,m.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,m.jsx)(`path`,{d:`M12 20h.01`}),(0,m.jsx)(`path`,{d:`M2 8.82a15 15 0 0 1 20 0`}),(0,m.jsx)(`path`,{d:`M5 12.859a10 10 0 0 1 14 0`}),(0,m.jsx)(`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`})]})}),(0,m.jsx)(`span`,{className:`fq-icon lk-plug`,children:(0,m.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,m.jsx)(`path`,{d:`M12 22v-5`}),(0,m.jsx)(`path`,{d:`M9 8V2`}),(0,m.jsx)(`path`,{d:`M15 8V2`}),(0,m.jsx)(`path`,{className:`lk-plug-body`,d:`M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z`})]})})]}),(0,m.jsxs)(`button`,{className:`fast-quality-toggle quality`,id:`fastQualityToggle`,type:`button`,role:`switch`,"aria-checked":`true`,"aria-label":`Fast / Quality mode`,children:[(0,m.jsx)(`span`,{className:`fq-label fq-label-fast`,"aria-hidden":`true`,children:`Fast`}),(0,m.jsx)(`span`,{className:`fq-label fq-label-quality`,"aria-hidden":`true`,children:`Quality`}),(0,m.jsx)(`span`,{className:`fq-thumb`}),(0,m.jsx)(`span`,{className:`fq-icon fq-zap`,children:(0,m.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,m.jsx)(`polygon`,{points:`13 2 3 14 12 14 11 22 21 10 12 10 13 2`})})}),(0,m.jsx)(`span`,{className:`fq-icon fq-sparkles`,children:(0,m.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,m.jsx)(`path`,{className:`fq-spark-main`,d:`M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z`}),(0,m.jsx)(`path`,{d:`M20 3v4`}),(0,m.jsx)(`path`,{d:`M22 5h-4`}),(0,m.jsx)(`path`,{d:`M4 17v2`}),(0,m.jsx)(`path`,{d:`M5 18H3`})]})})]}),(0,m.jsx)(ge,{}),(0,m.jsxs)(`div`,{className:`model-dropdown chat-model-dropdown`,id:`chatModelDropdown`,children:[(0,m.jsxs)(`button`,{className:`model-dropdown-trigger`,type:`button`,"aria-label":`Select model`,children:[(0,m.jsx)(`span`,{className:`model-dropdown-value placeholder`,children:`select model`}),(0,m.jsx)(`svg`,{className:`chat-dropdown-chevron`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,m.jsx)(`path`,{d:`M18 15l-6-6-6 6`})})]}),(0,m.jsx)(`div`,{className:`model-dropdown-menu`})]}),(0,m.jsxs)(`div`,{className:`input-orb-slot`,children:[(0,m.jsx)(`iframe`,{id:`sendBtnFrame`,className:`send-agent-frame`,src:`chat_input/send_button.html`,title:`Send`,scrolling:`no`,frameBorder:`0`}),(0,m.jsx)(`iframe`,{id:`stopBtnFrame`,className:`stop-agent-frame`,src:`chat_input/pc_button.html`,title:`Stop Agent`,scrolling:`no`,frameBorder:`0`}),(0,m.jsx)(`button`,{id:`orbHit`,className:`orb-hit`,type:`button`,tabIndex:-1,"aria-label":`Send / stop agent`})]})]}),(0,m.jsx)(he,{})]})]})}function ve(){return(0,m.jsxs)(`button`,{className:`new-chat-btn`,type:`button`,"aria-label":`New chat`,children:[(0,m.jsxs)(`svg`,{className:`new-chat-icon`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,m.jsx)(`path`,{d:`M12 20h9`}),(0,m.jsx)(`path`,{d:`M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z`})]}),(0,m.jsx)(`span`,{className:`new-chat-label`,children:`New chat`})]})}function ye(){return(0,m.jsxs)(`div`,{className:`settings-btn`,id:`settingsBtn`,title:`Settings`,role:`button`,tabIndex:0,"aria-label":`Settings`,children:[(0,m.jsx)(`div`,{className:`liquidGlass-effect-btn`}),(0,m.jsx)(`div`,{className:`liquidGlass-tint-btn`}),(0,m.jsx)(`div`,{className:`liquidGlass-shine-btn`}),(0,m.jsx)(`div`,{className:`settings-icon-wrapper`,children:(0,m.jsxs)(`svg`,{className:`settings-icon`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,m.jsx)(`circle`,{cx:`12`,cy:`12`,r:`3`}),(0,m.jsx)(`path`,{d:`M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z`})]})})]})}function be(){return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(`aside`,{className:`left-bar`,id:`leftBar`,"aria-label":`Sidebar`,children:[(0,m.jsx)(`div`,{className:`liquidGlass-effect`}),(0,m.jsx)(`div`,{className:`liquidGlass-tint`}),(0,m.jsx)(`div`,{className:`liquidGlass-shine`}),(0,m.jsxs)(`div`,{className:`liquidGlass-content left-bar-content`,children:[(0,m.jsx)(`div`,{className:`left-bar-header`,id:`leftBarHeader`,children:(0,m.jsx)(`span`,{className:`left-bar-logo`,role:`img`,"aria-label":`AutoCua`})}),(0,m.jsx)(`div`,{className:`left-bar-body`,children:(0,m.jsx)(ve,{})}),(0,m.jsx)(`div`,{className:`left-bar-rail`,id:`leftBarRail`}),(0,m.jsxs)(`div`,{className:`left-bar-footer`,id:`leftBarFooter`,children:[(0,m.jsx)(ye,{}),(0,m.jsx)(`button`,{className:`gh-link`,id:`ghLink`,type:`button`,"aria-label":`AutoCua on GitHub`,title:`AutoCua on GitHub`,children:(0,m.jsx)(`svg`,{className:`gh-mark`,viewBox:`0 0 16 16`,"aria-hidden":`true`,children:(0,m.jsx)(`path`,{fill:`currentColor`,d:`M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8z`})})})]})]})]}),(0,m.jsx)(`button`,{className:`left-bar-toggle`,id:`leftBarToggle`,type:`button`,"aria-controls":`leftBar`,"aria-expanded":`true`,"aria-label":`Collapse sidebar`,title:`Collapse sidebar`,children:(0,m.jsx)(`svg`,{className:`left-bar-toggle-icon`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,m.jsx)(`path`,{d:`M14.5 6l-6 6 6 6`})})})]})}function xe(){return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`svg`,{style:{display:`none`},children:(0,m.jsxs)(`filter`,{id:`glass-distortion`,x:`-50%`,y:`-50%`,width:`200%`,height:`200%`,filterUnits:`objectBoundingBox`,children:[(0,m.jsx)(`feTurbulence`,{type:`fractalNoise`,baseFrequency:`0.015 0.015`,numOctaves:`2`,seed:`5`,result:`turbulence`}),(0,m.jsxs)(`feComponentTransfer`,{in:`turbulence`,result:`mapped`,children:[(0,m.jsx)(`feFuncR`,{type:`gamma`,amplitude:`1`,exponent:`8`,offset:`0.5`}),(0,m.jsx)(`feFuncG`,{type:`gamma`,amplitude:`0.5`,exponent:`1`,offset:`0`}),(0,m.jsx)(`feFuncB`,{type:`gamma`,amplitude:`0.5`,exponent:`1`,offset:`0.5`})]}),(0,m.jsx)(`feGaussianBlur`,{in:`turbulence`,stdDeviation:`4`,result:`softMap`}),(0,m.jsx)(`feSpecularLighting`,{in:`softMap`,surfaceScale:`8`,specularConstant:`1.2`,specularExponent:`120`,lightingColor:`white`,result:`specLight`,children:(0,m.jsx)(`fePointLight`,{x:`-150`,y:`-150`,z:`400`})}),(0,m.jsx)(`feComposite`,{in:`specLight`,operator:`arithmetic`,k1:`0`,k2:`1`,k3:`1.2`,k4:`0`,result:`litImage`}),(0,m.jsx)(`feDisplacementMap`,{in:`SourceGraphic`,in2:`softMap`,scale:`200`,xChannelSelector:`R`,yChannelSelector:`G`})]})}),(0,m.jsx)(`svg`,{style:{display:`none`},children:(0,m.jsxs)(`filter`,{id:`liquid-glass-button`,x:`-50%`,y:`-50%`,width:`200%`,height:`200%`,filterUnits:`objectBoundingBox`,children:[(0,m.jsx)(`feTurbulence`,{type:`fractalNoise`,baseFrequency:`0.03 0.05`,numOctaves:`4`,seed:`3`,result:`turbulence`}),(0,m.jsxs)(`feComponentTransfer`,{in:`turbulence`,result:`mapped`,children:[(0,m.jsx)(`feFuncR`,{type:`gamma`,amplitude:`1`,exponent:`4`,offset:`0.4`}),(0,m.jsx)(`feFuncG`,{type:`gamma`,amplitude:`1`,exponent:`4`,offset:`0.4`})]}),(0,m.jsx)(`feGaussianBlur`,{in:`mapped`,stdDeviation:`2.5`,result:`softMap`}),(0,m.jsx)(`feDisplacementMap`,{in:`SourceGraphic`,in2:`softMap`,scale:`25`,xChannelSelector:`R`,yChannelSelector:`G`})]})})]})}function Se({className:e}){return(0,m.jsx)(`svg`,{className:e,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,m.jsx)(`polyline`,{points:`6 9 12 15 18 9`})})}function Ce(){return(0,m.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,m.jsx)(`polyline`,{points:`3 6 5 6 21 6`}),(0,m.jsx)(`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`})]})}var we=[[`openrouter`,`https://openrouter.ai/keys`,`OpenRouter`,`sk-or-...`],[`groq`,`https://console.groq.com/keys`,`Groq`,`gsk_...`],[`openai`,`https://platform.openai.com/api-keys`,`OpenAI`,`sk-...`],[`anthropic`,`https://console.anthropic.com/settings/keys`,`Anthropic`,`sk-ant-...`],[`perplexity`,`https://docs.perplexity.ai/guides/getting-started`,`Perplexity`,`pplx-...`],[`together`,`https://api.together.xyz/settings/api-keys`,`Together AI`,`Enter API key...`],[`cerebras`,`https://cloud.cerebras.ai`,`Cerebras`,`csk-...`],[`aws`,`https://console.aws.amazon.com/bedrock/home#/api-keys`,`AWS`,`ABSK...`],[`google`,`https://aistudio.google.com/apikey`,`Google`,`AIza...`]];function Te(){return(0,m.jsx)(`div`,{className:`settings-overlay`,id:`settingsOverlay`,children:(0,m.jsxs)(`div`,{className:`settings-panel`,children:[(0,m.jsxs)(`div`,{className:`settings-panel-content`,children:[(0,m.jsx)(`div`,{className:`settings-header`,children:(0,m.jsx)(`span`,{className:`settings-title`,children:`Settings`})}),(0,m.jsxs)(`div`,{className:`settings-view settings-modelselect-view`,id:`settingsModelView`,children:[(0,m.jsx)(`div`,{className:`settings-section-heading`,children:`Provider`}),(0,m.jsx)(`div`,{className:`model-select-row`,children:(0,m.jsxs)(`div`,{className:`model-select-field`,children:[(0,m.jsx)(`label`,{className:`model-select-label`,children:`Provider`}),(0,m.jsxs)(`div`,{className:`model-dropdown`,id:`providerDropdown`,children:[(0,m.jsxs)(`button`,{className:`model-dropdown-trigger`,type:`button`,children:[(0,m.jsx)(`span`,{className:`model-dropdown-value placeholder`,children:`Select a provider…`}),(0,m.jsx)(`svg`,{className:`model-dropdown-chevron`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,m.jsx)(`polyline`,{points:`6 9 12 15 18 9`})})]}),(0,m.jsx)(`div`,{className:`model-dropdown-menu`})]})]})})]}),(0,m.jsxs)(`div`,{className:`settings-view settings-apikeys-view`,id:`settingsApikeysView`,children:[(0,m.jsx)(`div`,{className:`settings-section-heading`,children:`API Keys`}),(0,m.jsx)(`div`,{className:`settings-provider-list`,children:we.map(([e,t,n,r])=>(0,m.jsxs)(`div`,{className:`settings-provider-row`,"data-provider":e,children:[(0,m.jsx)(`a`,{className:`settings-provider-name`,href:t,target:`_blank`,children:n}),(0,m.jsx)(`input`,{type:`password`,className:e===`google`?`settings-provider-input google-key-input`:`settings-provider-input`,placeholder:r,autoComplete:`off`}),(0,m.jsx)(`button`,{className:`settings-delete-btn`,title:`Remove API key`,style:{display:`none`},children:(0,m.jsx)(Ce,{})}),e===`google`&&(0,m.jsx)(`button`,{className:`gcp-vertex-btn`,id:`gcpVertexBtn`,title:`Configure GCP Vertex AI`,children:`GCP Vertex`})]},e))}),(0,m.jsx)(`button`,{className:`settings-save-btn`,id:`settingsSaveBtn`,children:`Save`})]}),(0,m.jsxs)(`div`,{className:`settings-view settings-remote-view`,id:`settingsRemoteView`,children:[(0,m.jsx)(`div`,{className:`settings-section-heading`,children:`Remote Connection`}),(0,m.jsxs)(`div`,{className:`remote-setup`,id:`remoteSetup`,children:[(0,m.jsxs)(`div`,{className:`remote-row`,children:[(0,m.jsx)(`span`,{className:`remote-row-label remote-telegram-logo`,"aria-label":`Telegram`,children:(0,m.jsx)(`svg`,{width:`22`,height:`22`,viewBox:`0 0 24 24`,fill:`currentColor`,children:(0,m.jsx)(`path`,{d:`M21.5 4.5L2.5 12l5.5 2 2 6 3-3.5 5.5 4 3-16zM10 14l8.5-7L11 14.5l-1 4.5L10 14z`})})}),(0,m.jsx)(`span`,{className:`remote-row-actions`,children:(0,m.jsx)(`button`,{className:`remote-connect-btn`,id:`remoteToggleBtn`,type:`button`,children:`Connect`})})]}),(0,m.jsx)(`div`,{className:`remote-instruction`,id:`remoteInstructions`,style:{display:`none`},children:`Please follow the on-screen instructions in the helper banner (top-right of your screen).`})]})]}),(0,m.jsxs)(`div`,{className:`settings-view settings-device-view`,id:`settingsDeviceView`,children:[(0,m.jsx)(`div`,{className:`settings-section-heading`,children:`Connect Device`}),(0,m.jsxs)(`div`,{className:`device-list`,children:[(0,m.jsxs)(`div`,{className:`device-option`,id:`deviceOptioniOS`,role:`button`,tabIndex:0,"aria-expanded":`false`,"aria-label":`Connect iPhone`,children:[(0,m.jsx)(`span`,{className:`device-name`,children:`iPhone`}),(0,m.jsx)(`span`,{className:`device-chevron`,"aria-hidden":`true`,children:(0,m.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,m.jsx)(`polyline`,{points:`9 6 15 12 9 18`})})})]}),(0,m.jsx)(`div`,{className:`device-panel`,id:`devicePaneliOS`,hidden:!0,children:(0,m.jsxs)(`div`,{className:`dc-flow`,children:[(0,m.jsxs)(`div`,{className:`dc-field`,children:[(0,m.jsx)(`label`,{className:`dc-label`,children:`Apple Account`}),(0,m.jsxs)(`div`,{className:`dc-select`,id:`dcTeamSelect`,role:`button`,tabIndex:0,children:[(0,m.jsx)(`span`,{className:`dc-select-value placeholder`,id:`dcTeamValue`,children:`Loading…`}),(0,m.jsx)(Se,{className:`dc-select-chevron`}),(0,m.jsx)(`div`,{className:`dc-select-menu`,id:`dcTeamMenu`})]})]}),(0,m.jsxs)(`div`,{className:`dc-field`,children:[(0,m.jsx)(`label`,{className:`dc-label`,children:`Device`}),(0,m.jsxs)(`div`,{className:`dc-select`,id:`dcDeviceSelect`,role:`button`,tabIndex:0,children:[(0,m.jsx)(`span`,{className:`dc-select-value placeholder`,id:`dcDeviceValue`,children:`Looking…`}),(0,m.jsx)(Se,{className:`dc-select-chevron`}),(0,m.jsx)(`div`,{className:`dc-select-menu`,id:`dcDeviceMenu`})]})]}),(0,m.jsxs)(`div`,{className:`dc-status`,id:`dcStatus`,"data-state":`loading`,children:[(0,m.jsx)(`span`,{className:`dc-spinner`,id:`dcSpinner`}),(0,m.jsx)(`span`,{className:`dc-check`,id:`dcCheck`,hidden:!0}),(0,m.jsx)(`span`,{className:`dc-status-text`,id:`dcStatusText`,children:`Looking for your iPhone…`})]}),(0,m.jsx)(`div`,{className:`dc-steps`,id:`dcSteps`,hidden:!0}),(0,m.jsx)(`button`,{className:`dc-action`,id:`dcAction`,type:`button`,hidden:!0}),(0,m.jsxs)(`div`,{className:`dc-paired`,id:`dcPaired`,hidden:!0,children:[(0,m.jsx)(`div`,{className:`dc-label`,children:`Paired devices`}),(0,m.jsx)(`div`,{className:`dc-paired-list`,id:`dcPairedList`})]})]})}),(0,m.jsxs)(`div`,{className:`device-option`,id:`deviceOptionAndroid`,role:`button`,tabIndex:0,"aria-expanded":`false`,"aria-label":`Connect Android phone`,children:[(0,m.jsx)(`span`,{className:`device-name`,children:`Android`}),(0,m.jsx)(`span`,{className:`device-chevron`,"aria-hidden":`true`,children:(0,m.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,m.jsx)(`polyline`,{points:`9 6 15 12 9 18`})})})]}),(0,m.jsx)(`div`,{className:`device-panel`,id:`devicePanelAndroid`,hidden:!0,children:(0,m.jsxs)(`div`,{className:`dc-flow`,children:[(0,m.jsxs)(`div`,{className:`dc-field`,children:[(0,m.jsx)(`label`,{className:`dc-label`,children:`Device`}),(0,m.jsxs)(`div`,{className:`dc-select`,id:`dcAndroidDeviceSelect`,role:`button`,tabIndex:0,children:[(0,m.jsx)(`span`,{className:`dc-select-value placeholder`,id:`dcAndroidDeviceValue`,children:`Looking…`}),(0,m.jsx)(Se,{className:`dc-select-chevron`}),(0,m.jsx)(`div`,{className:`dc-select-menu`,id:`dcAndroidDeviceMenu`})]})]}),(0,m.jsxs)(`div`,{className:`dc-status`,id:`dcAndroidStatus`,"data-state":`loading`,children:[(0,m.jsx)(`span`,{className:`dc-spinner`,id:`dcAndroidSpinner`}),(0,m.jsx)(`span`,{className:`dc-check`,id:`dcAndroidCheck`,hidden:!0}),(0,m.jsx)(`span`,{className:`dc-status-text`,id:`dcAndroidStatusText`,children:`Looking for your Android phone…`})]}),(0,m.jsx)(`div`,{className:`dc-steps`,id:`dcAndroidSteps`,hidden:!0}),(0,m.jsx)(`button`,{className:`dc-action`,id:`dcAndroidAction`,type:`button`,hidden:!0}),(0,m.jsxs)(`div`,{className:`dc-paired`,id:`dcAndroidPaired`,hidden:!0,children:[(0,m.jsx)(`div`,{className:`dc-label`,children:`Connected devices`}),(0,m.jsx)(`div`,{className:`dc-paired-list`,id:`dcAndroidPairedList`})]})]})})]})]})]}),(0,m.jsxs)(`div`,{className:`settings-footer`,children:[(0,m.jsx)(`button`,{className:`settings-cancel-btn`,id:`settingsCancelBtn`,type:`button`,children:`Cancel`}),(0,m.jsx)(`button`,{className:`settings-savebar-btn`,id:`settingsSaveBarBtn`,type:`button`,children:`Save`})]})]})})}function Ee(){return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(y,{}),(0,m.jsx)(xe,{}),(0,m.jsx)(`div`,{id:`appToast`,className:`app-toast`,role:`status`,"aria-live":`polite`}),(0,m.jsx)(`div`,{className:`welcome-hero`,id:`welcomeHero`,"aria-hidden":`true`,children:(0,m.jsx)(`div`,{className:`welcome-hero-title`,children:`Made to do...`})}),(0,m.jsxs)(`div`,{className:`main-grid`,id:`mainGrid`,children:[(0,m.jsxs)(`div`,{className:`chat-scroll`,id:`chatScroll`,children:[(0,m.jsx)(`div`,{className:`chat-past`,id:`chatPast`}),(0,m.jsxs)(`div`,{className:`chat-turn live`,id:`liveTurn`,children:[(0,m.jsx)(ne,{}),(0,m.jsx)(re,{}),(0,m.jsx)(x,{})]})]}),(0,m.jsx)(te,{})]}),(0,m.jsx)(`div`,{className:`chat-container-wrapper`,id:`chatWrapper`,children:(0,m.jsx)(_e,{})}),(0,m.jsx)(Te,{}),(0,m.jsx)(`div`,{className:`telegram-prompt-overlay`,id:`telegramPromptOverlay`,children:(0,m.jsxs)(`div`,{className:`telegram-prompt-popup`,children:[(0,m.jsx)(`div`,{className:`liquidGlass-effect-btn`}),(0,m.jsx)(`div`,{className:`liquidGlass-tint-btn`}),(0,m.jsx)(`div`,{className:`liquidGlass-shine-btn`}),(0,m.jsxs)(`div`,{className:`telegram-prompt-content`,children:[(0,m.jsx)(`div`,{className:`telegram-prompt-title`,children:`AutoCua helper`}),(0,m.jsx)(`div`,{className:`telegram-prompt-countdown`,id:`telegramPromptCountdown`,children:`3`}),(0,m.jsxs)(`div`,{className:`telegram-prompt-caption`,children:[`Starting your helper… it will appear in the `,(0,m.jsx)(`strong`,{children:`top-right`}),` corner.`]}),(0,m.jsxs)(`div`,{className:`telegram-prompt-message`,children:[`The helper will walk you through Telegram setup. Please click `,(0,m.jsx)(`strong`,{children:`Next`}),` on the banner in the `,(0,m.jsx)(`strong`,{children:`top-right`}),` corner of your screen to continue.`]}),(0,m.jsx)(`button`,{className:`telegram-prompt-ok`,id:`telegramPromptOk`,type:`button`,children:`Got it`})]})]})}),(0,m.jsx)(`div`,{className:`vertex-overlay`,id:`vertexOverlay`,children:(0,m.jsxs)(`div`,{className:`vertex-popup`,children:[(0,m.jsx)(`div`,{className:`liquidGlass-effect-btn`}),(0,m.jsx)(`div`,{className:`liquidGlass-tint-btn`}),(0,m.jsx)(`div`,{className:`liquidGlass-shine-btn`}),(0,m.jsxs)(`div`,{className:`vertex-popup-content`,children:[(0,m.jsx)(`span`,{className:`vertex-popup-title`,children:`GCP Vertex AI`}),(0,m.jsxs)(`div`,{className:`vertex-field`,children:[(0,m.jsx)(`label`,{className:`vertex-label`,children:`Project ID`}),(0,m.jsx)(`input`,{type:`text`,className:`vertex-input`,id:`vertexProjectId`,placeholder:`my-gcp-project`,autoComplete:`off`})]}),(0,m.jsxs)(`div`,{className:`vertex-field`,children:[(0,m.jsx)(`label`,{className:`vertex-label`,children:`Location`}),(0,m.jsx)(`input`,{type:`text`,className:`vertex-input vertex-location-input`,id:`vertexLocation`,defaultValue:`global`,autoComplete:`off`})]}),(0,m.jsx)(`button`,{className:`vertex-done-btn`,id:`vertexDoneBtn`,children:`Done`})]})]})}),(0,m.jsx)(be,{})]})}var w=document.getElementById(`root`);w&&(0,d.flushSync)(()=>{(0,f.createRoot)(w).render((0,m.jsx)(Ee,{}))})})(); \ No newline at end of file +`).replace(Qf,``)}function ep(e,t){return t=$f(t),$f(e)===t}function $(e,t,n,r,i,a){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||xn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&xn(e,``+r);else return;break;case`className`:on(e,`class`,r);break;case`tabIndex`:on(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:on(e,n,r);break;case`style`:wn(e,r,a);return;case`data`:if(t!==`object`){on(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=On(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof a==`function`&&(n===`formAction`?(t!==`input`&&$(e,t,`name`,i.name,i,null),$(e,t,`formEncType`,i.formEncType,i,null),$(e,t,`formMethod`,i.formMethod,i,null),$(e,t,`formTarget`,i.formTarget,i,null)):($(e,t,`encType`,i.encType,i,null),$(e,t,`method`,i.method,i,null),$(e,t,`target`,i.target,i,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=On(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=kn);return;case`onScroll`:r!=null&&Q(`scroll`,e);return;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(s(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(s(60));a?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=On(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Q(`beforetoggle`,e),Q(`toggle`,e),an(e,`popover`,r);break;case`xlinkActuate`:sn(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:sn(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:sn(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:sn(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:sn(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:sn(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:sn(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:sn(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:sn(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:an(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2s)break;var u=c.transferSize,d=c.initiatorType;u&&ap(d)&&(c=c.responseEnd,o+=u*(c$m){s.length=o;break}f=new Promise(jp.bind(f)),s.push(f)}}}if(0`u`?null:document;function Tm(e,t,n){var r=wm;if(r&&typeof t==`string`&&t){var i=mn(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),ym.has(i)||(ym.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),np(t,`link`,e),D(t),r.head.appendChild(t)))}}function Em(e){xm.D(e),Tm(`dns-prefetch`,e,null)}function Dm(e,t){xm.C(e,t),Tm(`preconnect`,e,t)}function Om(e,t,n){xm.L(e,t,n);var r=wm;if(r&&e&&t){var i=`link[rel="preload"][as="`+mn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+mn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+mn(n.imageSizes)+`"]`)):i+=`[href="`+mn(e)+`"]`;var a=i;switch(t){case`style`:a=Pm(e);break;case`script`:a=Rm(e)}if(!(vm.has(a)||(e=S({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Fm(a))||t===`script`&&r.querySelector(zm(a))))){var o=r.createElement(`link`);np(o,`link`,e),t===`style`&&(o[Ht]=!0,o.onload=o.onerror=function(){Jt(o)}),D(o),r.head.appendChild(o)}}}function km(e,t){xm.m(e,t);var n=wm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+mn(r)+`"][href="`+mn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rm(e)}if(!vm.has(a)&&(e=S({rel:`modulepreload`,href:e},t),vm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zm(a)))return}r=n.createElement(`link`),np(r,`link`,e),D(r),n.head.appendChild(r)}}}function Am(e,t,n){xm.S(e,t,n);var r=wm;if(r&&e){var i=qt(r).hoistableStyles,a=Pm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Fm(a)))s.loading=5;else{e=S({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vm.get(a))&&Hm(e,n);var c=o=r.createElement(`link`);D(c),np(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,Vm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jm(e,t){xm.X(e,t);var n=wm;if(n&&e){var r=qt(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=S({src:e,async:!0},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),D(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mm(e,t){xm.M(e,t);var n=wm;if(n&&e){var r=qt(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=S({src:e,async:!0,type:`module`},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),D(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t,n,r){var i=(i=Pe.current)?bm(i):null;if(!i)throw Error(s(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Pm(n.href),t=qt(i).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,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=Pm(n.href);var a=qt(i).hoistableStyles,o=a.get(e);if(o||(i=i.ownerDocument||i,o={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},a.set(e,o),(a=i.querySelector(Fm(e)))?a._p||(o.instance=a,o.state.loading=5):(a=vm.get(e),a||(a={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vm.set(e,a)),Lm(i,e,a,o.state))),t&&r===null)throw Error(s(528,``));return o}if(t&&r!==null)throw Error(s(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Rm(n),t=qt(i).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Pm(e){return`href="`+mn(e)+`"`}function Fm(e){return`link[rel="stylesheet"][`+e+`]`}function Im(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function Lm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Ht]){r.loading=1;return}}else t=e.createElement(`link`),t[Ht]=!0,t.onload=t.onerror=Jt.bind(null,t),np(t,`link`,n),D(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Rm(e){return`[src="`+mn(e)+`"]`}function zm(e){return`script[async]`+e}function Bm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+mn(n.href)+`"]`);if(r)return t.instance=r,D(r),r;var i=S({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),D(r),np(r,`style`,i),Vm(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Pm(n.href);var a=e.querySelector(Fm(i));if(a)return t.state.loading|=4,t.instance=a,D(a),a;r=Im(n),(i=vm.get(i))&&Hm(r,i),a=(e.ownerDocument||e).createElement(`link`),D(a);var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(a,`link`,r),t.state.loading|=4,Vm(a,n.precedence,e),t.instance=a;case`script`:return a=Rm(n.src),(i=e.querySelector(zm(a)))?(t.instance=i,D(i),i):(r=n,(i=vm.get(a))&&(r=S({},n),Um(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),D(i),np(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(s(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Vm(r,n.precedence,e));return t.instance}function Vm(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 qm(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 Jm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Ym(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Xm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Zm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Xm(t),e.suspenseyImages.push(t)),e=rh.bind(e),t.decode().then(e,e))}function Qm(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=Pm(r.href),a=t.querySelector(Fm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=nh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,D(a);return}a=t.ownerDocument||t,r=Im(r),(i=vm.get(i))&&Hm(r,i),a=a.createElement(`link`),D(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(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=nh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $m=0;function eh(e,t){return e.stylesheets&&e.count===0&&ah(e,e.stylesheets),0$m?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function th(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ah(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function nh(){this.count--,th(this)}function rh(){this.imgCount--,th(this)}var ih=null;function ah(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ih=new Map,t.forEach(oh,e),ih=null,nh.call(e))}function oh(e,t){if(!(t.state.loading&4)){var n=ih.get(e);if(n)var r=n.get(null);else{n=new Map,ih.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=s()})),l=e((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})),u=e(((e,t)=>{t.exports=l()})),d=i(),f=c(),p=n(),m=u(),h=[[`AutoCua`,`autocua`],[`Web use`,`webuse`],[`Mobile use`,`mobileuse`],[`Coder use`,`coderuse`],[`Scraper use`,`scraperuse`],[`Minion`,`minion`]],g=[[`Auto`,`matic`],[`C`,`omputer`],[`u`,`se`],[`a`,`gent`]];function _({name:e,file:t}){return(0,m.jsxs)(`div`,{className:`bot`,role:`img`,"aria-label":e,children:[(0,m.jsx)(`img`,{src:`bots/`+t+`.webp`,alt:``}),(0,m.jsx)(`img`,{className:`eyes`,src:`bots/`+t+`-eyes.webp`,alt:``}),(0,m.jsx)(`img`,{src:`bots/`+t+`-shine.webp`,alt:``})]})}function v({text:e,cls:t}){return(0,m.jsx)(m.Fragment,{children:e.split(``).map((e,n)=>(0,m.jsx)(`i`,{className:t,children:e},n))})}function y(){let e=(0,p.useRef)(null);return(0,p.useLayoutEffect)(()=>{e.current&&b(e.current)},[]),(0,m.jsxs)(`div`,{id:`splashOverlay`,className:`splash-overlay`,ref:e,children:[(0,m.jsx)(`div`,{className:`lift`,children:(0,m.jsxs)(`div`,{className:`row`,children:[(0,m.jsx)(`div`,{className:`side`,children:h.map(([e,t])=>(0,m.jsx)(`div`,{className:`slot`,children:(0,m.jsx)(_,{name:e,file:t})},t))}),(0,m.jsx)(`div`,{className:`slot lead`,children:(0,m.jsx)(_,{name:`Computer use`,file:`computeruse`})})]})}),(0,m.jsx)(`div`,{className:`title`,role:`img`,"aria-label":`AutoCua: Automatic Computer use agent`,children:g.map(([e,t],n)=>[n>0?(0,m.jsx)(`i`,{className:`gap`,children:`\xA0`},`gap`+n):null,(0,m.jsxs)(`span`,{className:`word`,children:[(0,m.jsx)(v,{text:e,cls:`keep`}),(0,m.jsx)(v,{text:t,cls:`fade`})]},`word`+n)])}),(0,m.jsx)(`div`,{className:`sheen`,"aria-hidden":`true`,children:(0,m.jsx)(`div`,{className:`sheen-art`,children:(0,m.jsx)(v,{text:`AutoCua`})})})]})}function b(e){let t=!!(window.matchMedia&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches),n=!1;function r(){if(n)return;n=!0;let e=function(){window.postMessage(`splashDone`,`*`)};document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,function(){setTimeout(e,0)}):e()}let i=1e3,a=4500,o=1e3,s=`cubic-bezier(0.4, 0, 0.6, 1)`,c=`cubic-bezier(0.16, 1, 0.3, 1)`,l=`cubic-bezier(0.87, 0, 0.13, 1)`,u=setTimeout(r,8250),d=[[-2.2,.45,100],[-1.64,.6,50],[-.92,.8,0],[0,1,0],[.92,.8,0],[1.64,.6,50],[2.2,.45,100]],f=e.querySelector(`.lift`),p=e.querySelector(`.row`),m=e.querySelector(`.side`),h=[`AutoCua`,`Web use`,`Mobile use`,`Computer use`,`Coder use`,`Scraper use`,`Minion`].map(function(t){return e.querySelector(`.bot[aria-label="`+t+`"]`).parentNode}),g=e.querySelector(`.title`),_=e.querySelector(`.sheen`),v=e.querySelector(`.sheen-art`),y=null,b=null,ee=null,te=null,ne=null,re=[];function x(t){let n=function(){e.isConnected?t():window.removeEventListener(`resize`,n)};return n}function ie(){let e=window.innerWidth,t=window.innerHeight,n=Math.min(e,t),r=parseFloat(getComputedStyle(g).fontSize)*1.2,i=t/2-r/2,a=t/2+r/2+Math.min(.03*n,24),o=t,s=Math.min(.36*n,.23*e,280,o-a),c=s*.7222222222222222,l=1.75;return{titleTop:i,feet:o,h:s,w:c,big:l,drop:Math.max(28,Math.round(t*.06),Math.ceil(a+s*l-o))}}function S(e,t){return`translate(0px, `+.08*e.h*e.big+`px) scale(`+.96*d[t][1]+`)`}function ae(e,t){return`translate(`+d[t][0]*e.w*e.big+`px, 0px) scale(`+d[t][1]+`)`}function oe(){let e=ie(),t=e.big;if(p.style.height=e.h*t+`px`,p.style.top=e.feet-e.h*t+`px`,h.forEach(function(n,r){n.style.width=e.w*t+`px`,n.style.height=e.h*t+`px`,n.style.marginLeft=-e.w*t/2+`px`,n.style.zIndex=String(5-Math.abs(r-3)),re[r]&&re[r].effect.setKeyframes([{transform:S(e,r)},{transform:ae(e,r)}])}),g.style.top=e.titleTop+`px`,_.style.top=e.titleTop+`px`,ne&&de(),ee&&te){let e=C();ee.effect.setKeyframes([{transform:`translateX(`+-e+`px)`},{transform:`translateX(`+e+`px)`}]),te.effect.setKeyframes([{transform:`translateX(`+e+`px)`},{transform:`translateX(`+-e+`px)`}])}return y&&y.effect.setKeyframes(fe(t)),b&&b.effect.setKeyframes([{transform:`translateY(`+e.drop+`px)`},{transform:`translateY(0px)`}]),e}function se(){ne=null;let e=oe();f.style.opacity=`1`,m.style.opacity=`1`,p.style.transform=`scale(`+1/e.big+`)`,h.forEach(function(t,n){t.style.transform=ae(e,n),t.querySelector(`.eyes`).style.opacity=`1`}),g.classList.add(`settled`),_.style.display=`none`}function ce(e){let t=e.querySelectorAll(`i`),n=(t[0].getBoundingClientRect().left+t[t.length-1].getBoundingClientRect().right)/2,r=Array.prototype.map.call(e.querySelectorAll(`.keep`),function(e){return e.getBoundingClientRect()}),i=n-r.reduce(function(e,t){return e+t.width},0)/2;return r.map(function(e){let t=i-e.left;return i+=e.width,t})}function le(e){return[{transform:`translateX(0px)`},{transform:`translateX(`+e+`px)`}]}function ue(){g.style.setProperty(`--t0`,`1500ms`);try{let e=g.querySelectorAll(`.keep`);ne=ce(g).map(function(t,n){return e[n].animate(le(t),{delay:3400,duration:900,easing:`cubic-bezier(0.65, 0, 0.35, 1)`,fill:`forwards`})});let t=ne;g.classList.add(`go`),Promise.all(t.map(function(e){return e.finished})).then(function(){ne=null,g.classList.add(`settled`),t.forEach(function(e){e.cancel()})}).catch(function(){})}catch{g.classList.add(`settled`)}}function de(){let e=g.cloneNode(!0);e.classList.remove(`go`),e.setAttribute(`aria-hidden`,`true`),e.style.visibility=`hidden`,document.body.appendChild(e),ce(e).forEach(function(e,t){ne[t].effect.setKeyframes(le(e))}),document.body.removeChild(e)}function C(){let e=v.firstElementChild.getBoundingClientRect();return(v.lastElementChild.getBoundingClientRect().right-e.left)/2+.7*parseFloat(getComputedStyle(_).fontSize)}function fe(e){let t=3200;return[{offset:0,transform:`scale(0.85)`,easing:c},{offset:i/t,transform:`scale(1)`},{offset:1400/t,transform:`scale(1)`,easing:l},{offset:1,transform:`scale(`+1/e+`)`}]}function pe(e,t,n){let r=n[n.length-1]+300-t;function i(e,n,i){return{offset:(e-t)/r,opacity:1,transform:`scaleY(`+n+`)`,easing:i||`linear`}}let a=[{offset:0,opacity:0,transform:`scaleY(0.06)`,easing:`cubic-bezier(0.33, 1, 0.68, 1)`},i(t+600,1)];n.forEach(function(e){a.push(i(e,1,`ease-in`),i(e+135,.1),i(e+153,.1,`ease-out`),i(e+300,1))}),e.animate(a,{delay:t,duration:r,fill:`both`})}function me(){let e=oe(),t=e.big;f.animate([{opacity:0},{opacity:1}],{delay:100,duration:350,fill:`both`}),y=p.animate(fe(t),{delay:100,duration:3200,fill:`both`}),p.animate([{filter:`blur(6px)`},{filter:`blur(0px)`}],{delay:100,duration:i,easing:c,fill:`backwards`}),b=f.animate([{transform:`translateY(`+e.drop+`px)`},{transform:`translateY(0px)`}],{delay:1500,duration:1800,easing:l,fill:`both`}),m.animate([{opacity:0},{opacity:1}],{delay:2300,duration:500,fill:`both`}),h.forEach(function(t,n){let r=t.querySelector(`.eyes`),i=4600+n*100;if(n===3)pe(r,420,[1220,i]);else{let a=2200+d[n][2];re[n]=t.animate([{transform:S(e,n)},{transform:ae(e,n)}],{delay:a,duration:1e3,easing:`cubic-bezier(0.2, 0.8, 0.2, 1)`,fill:`both`}),pe(r,a+250,[i])}}),ue();let n=C();ee=_.animate([{transform:`translateX(`+-n+`px)`},{transform:`translateX(`+n+`px)`}],{delay:a,duration:o,easing:s,fill:`both`}),te=v.animate([{transform:`translateX(`+n+`px)`},{transform:`translateX(`+-n+`px)`}],{delay:a,duration:o,easing:s,fill:`both`}),_.style.visibility=`visible`,setTimeout(r,5750),window.addEventListener(`resize`,x(oe))}let he=Array.prototype.slice.call(e.querySelectorAll(`.bot img`));function ge(e){e.complete&&!e.naturalWidth&&(e.closest(`.bot`).style.visibility=`hidden`)}if(he.forEach(function(e){ge(e),e.addEventListener(`error`,function(){ge(e)})}),t){setTimeout(r,600),se(),window.addEventListener(`resize`,x(se));return}let _e=!1;function ve(){if(!_e){_e=!0,clearTimeout(u),u=setTimeout(r,6750),he.forEach(ge);try{me()}catch(t){console.error(t),setTimeout(r,600),e.getAnimations&&e.getAnimations({subtree:!0}).forEach(function(e){e.cancel()}),se(),window.addEventListener(`resize`,x(se))}}}Promise.all(he.map(function(e){return e.decode?e.decode().catch(function(){}):null})).then(ve),setTimeout(ve,1500)}function ee(){return(0,m.jsx)(`div`,{className:`skills-stage`,id:`skillsStage`,"aria-label":`Skills`,children:(0,m.jsxs)(`div`,{className:`skills-stage-inner`,children:[(0,m.jsxs)(`div`,{className:`skills-tabs-row`,children:[(0,m.jsxs)(`div`,{className:`skills-tabs`,role:`tablist`,"aria-label":`Skill target`,children:[(0,m.jsxs)(`button`,{className:`skills-tab active`,"data-tab":`computer`,role:`tab`,"aria-selected":`true`,type:`button`,children:[(0,m.jsxs)(`svg`,{className:`skills-tab-icon`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,m.jsx)(`rect`,{x:`3`,y:`4`,width:`18`,height:`12`,rx:`1`}),(0,m.jsx)(`path`,{d:`M7 20h10`}),(0,m.jsx)(`path`,{d:`M9 16v4`}),(0,m.jsx)(`path`,{d:`M15 16v4`})]}),(0,m.jsx)(`span`,{children:`Computer use`})]}),(0,m.jsxs)(`button`,{className:`skills-tab`,"data-tab":`mobile`,role:`tab`,"aria-selected":`false`,type:`button`,children:[(0,m.jsxs)(`svg`,{className:`skills-tab-icon`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,m.jsx)(`rect`,{x:`5.5`,y:`2`,width:`13`,height:`20`,rx:`2.5`}),(0,m.jsx)(`path`,{d:`M10.5 18h3`})]}),(0,m.jsx)(`span`,{children:`Mobile use`})]})]}),(0,m.jsxs)(`button`,{className:`skills-add`,type:`button`,"aria-label":`Add skills`,children:[(0,m.jsx)(`span`,{className:`skills-add-circle`,"aria-hidden":`true`,children:(0,m.jsxs)(`svg`,{className:`skills-add-plus`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.2`,strokeLinecap:`round`,"aria-hidden":`true`,children:[(0,m.jsx)(`path`,{d:`M12 5v14`}),(0,m.jsx)(`path`,{d:`M5 12h14`})]})}),(0,m.jsx)(`span`,{className:`skills-add-label`,children:`Add skills`})]}),(0,m.jsx)(`button`,{className:`skills-close`,id:`skillsCloseBtn`,type:`button`,"aria-label":`Close skills`,title:`Close`,children:(0,m.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,"aria-hidden":`true`,children:[(0,m.jsx)(`path`,{d:`M18 6L6 18`}),(0,m.jsx)(`path`,{d:`M6 6l12 12`})]})})]}),(0,m.jsxs)(`div`,{className:`skills-form active`,"data-form":`skills`,role:`tabpanel`,children:[(0,m.jsx)(`div`,{className:`skills-view active`,"data-view":`list`,children:(0,m.jsx)(`div`,{className:`skills-list`,id:`skillsList`,"aria-label":`Saved skills`})}),(0,m.jsxs)(`div`,{className:`skills-view`,"data-view":`preview`,children:[(0,m.jsxs)(`div`,{className:`skills-preview-head`,children:[(0,m.jsx)(`button`,{className:`skills-back`,type:`button`,"aria-label":`Back to skills list`,title:`Back`,children:(0,m.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,m.jsx)(`path`,{d:`M15 18l-6-6 6-6`})})}),(0,m.jsx)(`span`,{className:`skills-preview-name`,id:`skillsPreviewName`}),(0,m.jsxs)(`div`,{className:`skills-preview-actions`,children:[(0,m.jsx)(`button`,{className:`skills-edit-btn`,id:`skillsEditBtn`,type:`button`,children:`Edit`}),(0,m.jsx)(`button`,{className:`skills-save-btn`,id:`skillsSaveBtn`,type:`button`,hidden:!0,children:`Save`})]})]}),(0,m.jsx)(`pre`,{className:`skills-preview-body`,id:`skillsPreviewBody`}),(0,m.jsx)(`textarea`,{className:`skills-preview-body skills-preview-editbox`,id:`skillsPreviewEdit`,hidden:!0,spellCheck:!1})]}),(0,m.jsxs)(`div`,{className:`skills-view`,"data-view":`add`,children:[(0,m.jsx)(`div`,{className:`skills-row skills-add-fields`,"data-for":`computer`,children:(0,m.jsxs)(`div`,{className:`skills-field`,children:[(0,m.jsx)(`label`,{className:`skills-field-label`,htmlFor:`skillsAddTarget`,children:`Link / Application`}),(0,m.jsx)(`input`,{type:`text`,className:`skills-input`,id:`skillsAddTarget`,placeholder:`https://… or application name (the file is named after it)`,autoComplete:`off`})]})}),(0,m.jsxs)(`div`,{className:`skills-row skills-add-fields`,"data-for":`mobile`,hidden:!0,children:[(0,m.jsxs)(`div`,{className:`skills-field`,children:[(0,m.jsx)(`label`,{className:`skills-field-label`,htmlFor:`skillsAddApp`,children:`Application`}),(0,m.jsx)(`input`,{type:`text`,className:`skills-input`,id:`skillsAddApp`,placeholder:`name on the home screen, e.g. Instagram`,autoComplete:`off`})]}),(0,m.jsxs)(`div`,{className:`skills-field`,children:[(0,m.jsx)(`label`,{className:`skills-field-label`,htmlFor:`skillsAddBundle`,children:`Bundle id`}),(0,m.jsx)(`input`,{type:`text`,className:`skills-input`,id:`skillsAddBundle`,placeholder:`optional, e.g. com.burbn.instagram`,autoComplete:`off`})]})]}),(0,m.jsxs)(`div`,{className:`skills-field skills-field-grow`,children:[(0,m.jsx)(`label`,{className:`skills-field-label`,htmlFor:`skillsAddText`,children:`Skill`}),(0,m.jsx)(`textarea`,{className:`skills-textarea`,id:`skillsAddText`,placeholder:`Write the skill here…`})]}),(0,m.jsxs)(`div`,{className:`skills-actions`,children:[(0,m.jsx)(`span`,{className:`skills-add-error`,id:`skillsAddError`,role:`alert`}),(0,m.jsx)(`button`,{className:`skills-cancel`,type:`button`,children:`Cancel`}),(0,m.jsx)(`button`,{className:`skills-save`,id:`skillsAddSave`,type:`button`,children:`Save`})]})]})]})]})})}function te(){let e=(0,p.useRef)(null);return(0,p.useLayoutEffect)(()=>{e.current&&document.dispatchEvent(new CustomEvent(`bigcenter:ready`))},[]),(0,m.jsx)(`div`,{className:`container-zone big-center-zone`,id:`zoneBigCenter`,"aria-label":`Big center`,ref:e,children:(0,m.jsx)(ee,{})})}function ne(){return(0,m.jsxs)(`div`,{className:`container-zone user-container is-empty`,id:`userContainer`,"aria-label":`Your message`,children:[(0,m.jsx)(`div`,{className:`user-message-via`,id:`userMessageVia`,hidden:!0}),(0,m.jsx)(`div`,{className:`user-message-text`,id:`userMessageText`})]})}function re(){return(0,m.jsxs)(`div`,{className:`container-zone screen-container`,id:`screenContainer`,"aria-label":`Screenshot`,children:[(0,m.jsx)(`video`,{className:`cu-bg`,muted:!0,loop:!0,playsInline:!0,preload:`none`,"aria-hidden":`true`}),(0,m.jsxs)(`div`,{className:`screenshot-frame`,id:`imageStreamContainer`,children:[(0,m.jsx)(`img`,{className:`stream-image`,alt:`Agent screen`,style:{display:`none`}}),(0,m.jsx)(`video`,{className:`run-video`,controls:!0,playsInline:!0,preload:`auto`,style:{display:`none`}})]}),(0,m.jsx)(`div`,{className:`cu-prep-text`,"aria-hidden":`true`,children:(0,m.jsx)(`span`,{className:`t-shimmer`,"data-text":`Preparing video`,children:`Preparing video`})})]})}function x(){return(0,m.jsxs)(`div`,{className:`container-zone agent-container`,id:`agentContainer`,"aria-label":`Tool response and tracking progress`,children:[(0,m.jsxs)(`div`,{className:`bl-panel tool-panel`,children:[(0,m.jsxs)(`div`,{className:`tool-response-label`,children:[`Tool response: `,(0,m.jsx)(`span`,{className:`tool-used-count`,id:`toolUsedCount`,children:`0`}),` tools used`]}),(0,m.jsx)(`div`,{className:`tool-flow`,"aria-hidden":`true`,children:(0,m.jsx)(`div`,{className:`tool-flow-tree`,id:`toolFlowTree`})}),(0,m.jsx)(`div`,{className:`sh-panel`,id:`shellPanel`,"aria-hidden":`true`,children:(0,m.jsx)(`div`,{className:`shell-term`,id:`shellTerminalContainer`,children:(0,m.jsx)(`div`,{className:`sh-body`,children:(0,m.jsxs)(`div`,{className:`sh-lines`,children:[(0,m.jsxs)(`div`,{className:`sh-cmd-line`,id:`shellCmdLine`,children:[(0,m.jsx)(`span`,{className:`sh-p`,children:`>`}),(0,m.jsx)(`span`,{className:`sh-cmd-text`,id:`shellCmdText`})]}),(0,m.jsx)(`div`,{className:`sh-progress`,id:`shellProgress`,"aria-hidden":`true`,children:(0,m.jsx)(`span`,{className:`sh-fill`})}),(0,m.jsx)(`div`,{className:`sh-out-line`,id:`shellOutLine`,children:(0,m.jsx)(`span`,{className:`sh-out-text`,id:`shellOutText`})})]})})})})]}),(0,m.jsxs)(`div`,{className:`bl-panel tracking-panel`,children:[(0,m.jsx)(`div`,{className:`scratchpad-label`,children:`tracking progress`}),(0,m.jsx)(`div`,{className:`br-flow`,"aria-hidden":`true`,children:(0,m.jsx)(`div`,{className:`br-tree`,id:`brTree`})})]}),(0,m.jsx)(`div`,{className:`bl-panel reply-panel md`,id:`runReply`,"aria-live":`polite`})]})}function ie(){return(0,m.jsx)(`button`,{className:`skills-btn`,id:`skillsBtn`,type:`button`,"aria-label":`Skills`,title:`Skills`,children:(0,m.jsxs)(`svg`,{className:`skills-mark`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,m.jsx)(`defs`,{children:(0,m.jsx)(`clipPath`,{id:`skillsSheet`,children:(0,m.jsx)(`rect`,{x:`4`,y:`6.25`,width:`16`,height:`11.5`})})}),(0,m.jsx)(`rect`,{x:`3`,y:`2.75`,width:`18`,height:`3.5`,rx:`1.75`}),(0,m.jsx)(`rect`,{x:`3`,y:`17.75`,width:`18`,height:`3.5`,rx:`1.75`}),(0,m.jsx)(`path`,{d:`M5.5 6.25 Q6.4 12 5.5 17.75`}),(0,m.jsx)(`path`,{d:`M18.5 6.25 Q17.6 12 18.5 17.75`}),(0,m.jsx)(`g`,{clipPath:`url(#skillsSheet)`,children:(0,m.jsxs)(`g`,{className:`skills-lines`,children:[(0,m.jsx)(`path`,{d:`M8.5 9.1 H15.5`}),(0,m.jsx)(`path`,{d:`M8.5 12 H15.5`}),(0,m.jsx)(`path`,{d:`M8.5 14.9 H13.2`}),(0,m.jsx)(`path`,{d:`M8.5 17.8 H15.5`}),(0,m.jsx)(`path`,{d:`M8.5 20.7 H15.5`}),(0,m.jsx)(`path`,{d:`M8.5 23.6 H13.2`})]})})]})})}function S({className:e,width:t,hidden:n,children:r}){return(0,m.jsx)(`svg`,{className:e,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:t||`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":n?`true`:void 0,children:r})}var ae=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`rect`,{x:`3`,y:`4`,width:`18`,height:`12`,rx:`1`}),(0,m.jsx)(`path`,{d:`M7 20h10`}),(0,m.jsx)(`path`,{d:`M9 16v4`}),(0,m.jsx)(`path`,{d:`M15 16v4`})]}),oe=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`rect`,{x:`5.5`,y:`2`,width:`13`,height:`20`,rx:`2.5`}),(0,m.jsx)(`path`,{d:`M10.5 18h3`})]}),se=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`rect`,{x:`3`,y:`4`,width:`18`,height:`16`,rx:`2`}),(0,m.jsx)(`path`,{d:`M3 8h18`}),(0,m.jsx)(`path`,{d:`M7 12l2.5 2.5L7 17`}),(0,m.jsx)(`path`,{d:`M13 17h4`})]}),ce=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,m.jsx)(`path`,{d:`M3 12h18`}),(0,m.jsx)(`ellipse`,{cx:`12`,cy:`12`,rx:`4`,ry:`9`})]}),le=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`}),(0,m.jsx)(`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`})]}),ue=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`path`,{d:`M12 8V4H8`}),(0,m.jsx)(`rect`,{x:`4`,y:`8`,width:`16`,height:`12`,rx:`2`}),(0,m.jsx)(`path`,{d:`M2 14h2`}),(0,m.jsx)(`path`,{d:`M20 14h2`}),(0,m.jsx)(`path`,{d:`M15 13v2`}),(0,m.jsx)(`path`,{d:`M9 13v2`})]}),de=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`}),(0,m.jsx)(`path`,{d:`M6 8h.01`}),(0,m.jsx)(`path`,{d:`M10 8h.01`}),(0,m.jsx)(`path`,{d:`M14 8h.01`}),(0,m.jsx)(`path`,{d:`M18 8h.01`}),(0,m.jsx)(`path`,{d:`M8 12h.01`}),(0,m.jsx)(`path`,{d:`M12 12h.01`}),(0,m.jsx)(`path`,{d:`M16 12h.01`}),(0,m.jsx)(`path`,{d:`M7 16h10`})]}),C=(0,m.jsx)(`path`,{d:`M18 15l-6-6-6 6`}),fe=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`}),(0,m.jsx)(`path`,{d:`M21 3v5h-5`})]});function pe(){return(0,m.jsx)(S,{className:`am-check`,width:`2.5`,children:(0,m.jsx)(`path`,{d:`M5 12l5 5L20 7`})})}function me(){return(0,m.jsx)(S,{className:`am-subchev`,children:(0,m.jsx)(`path`,{d:`M9 6l6 6-6 6`})})}function he(){return(0,m.jsxs)(`div`,{className:`agent-mode-wrap`,id:`agentModeWrap`,"data-mode":`computer`,"data-sub":`thispc`,"data-shell-input":`auto`,children:[(0,m.jsx)(`div`,{className:`agent-menu`,id:`agentMenu`,children:(0,m.jsxs)(`div`,{className:`agent-menu-inner`,role:`menu`,children:[(0,m.jsxs)(`div`,{className:`agent-opt-wrap`,"data-mode":`computer`,children:[(0,m.jsxs)(`button`,{className:`agent-opt selected`,"data-mode":`computer`,role:`menuitemradio`,"aria-checked":`true`,type:`button`,children:[(0,m.jsx)(S,{className:`am-icon`,children:ae}),(0,m.jsx)(`span`,{children:`Computer use`}),(0,m.jsx)(pe,{}),(0,m.jsx)(me,{})]}),(0,m.jsx)(`div`,{className:`agent-sub`,children:(0,m.jsxs)(`div`,{className:`agent-sub-inner`,role:`menu`,children:[(0,m.jsxs)(`button`,{className:`agent-subopt selected`,"data-sub":`thispc`,role:`menuitemradio`,"aria-checked":`true`,type:`button`,children:[(0,m.jsx)(S,{className:`am-icon`,children:ae}),(0,m.jsx)(`span`,{children:`This PC`}),(0,m.jsx)(pe,{})]}),(0,m.jsxs)(`button`,{className:`agent-subopt`,"data-sub":`daisy`,role:`menuitemradio`,"aria-checked":`false`,type:`button`,children:[(0,m.jsx)(S,{className:`am-icon`,children:le}),(0,m.jsx)(`span`,{children:`Daisy chain`}),(0,m.jsx)(pe,{})]})]})})]}),(0,m.jsxs)(`div`,{className:`agent-opt-wrap`,"data-mode":`mobile`,children:[(0,m.jsxs)(`button`,{className:`agent-opt`,"data-mode":`mobile`,role:`menuitemradio`,"aria-checked":`false`,type:`button`,children:[(0,m.jsx)(S,{className:`am-icon`,children:oe}),(0,m.jsx)(`span`,{children:`Mobile use`}),(0,m.jsx)(pe,{}),(0,m.jsx)(me,{})]}),(0,m.jsx)(`div`,{className:`agent-sub`,children:(0,m.jsxs)(`div`,{className:`agent-sub-inner`,role:`menu`,children:[(0,m.jsxs)(`button`,{className:`agent-subopt`,"data-sub":`ios`,role:`menuitemradio`,"aria-checked":`false`,type:`button`,children:[(0,m.jsx)(`span`,{children:`iOS`}),(0,m.jsx)(pe,{})]}),(0,m.jsxs)(`button`,{className:`agent-subopt`,"data-sub":`android`,role:`menuitemradio`,"aria-checked":`false`,type:`button`,children:[(0,m.jsx)(`span`,{children:`Android`}),(0,m.jsx)(pe,{})]})]})})]}),(0,m.jsx)(`div`,{className:`agent-opt-wrap`,"data-mode":`shell`,children:(0,m.jsxs)(`button`,{className:`agent-opt`,"data-mode":`shell`,role:`menuitemradio`,"aria-checked":`false`,type:`button`,children:[(0,m.jsx)(S,{className:`am-icon`,children:se}),(0,m.jsx)(`span`,{children:`Shell use`}),(0,m.jsx)(pe,{})]})}),(0,m.jsx)(`div`,{className:`agent-opt-wrap`,"data-mode":`web`,children:(0,m.jsxs)(`button`,{className:`agent-opt`,"data-mode":`web`,role:`menuitemradio`,"aria-checked":`false`,type:`button`,children:[(0,m.jsx)(S,{className:`am-icon`,children:ce}),(0,m.jsx)(`span`,{children:`Web use`}),(0,m.jsx)(pe,{})]})})]})}),(0,m.jsxs)(`button`,{className:`agent-btn`,id:`agentBtn`,"aria-expanded":`false`,"aria-haspopup":`true`,type:`button`,children:[(0,m.jsx)(S,{className:`am-mode-icon am-mode-computer`,hidden:!0,children:ae}),(0,m.jsx)(S,{className:`am-mode-icon am-mode-mobile`,hidden:!0,children:oe}),(0,m.jsx)(S,{className:`am-mode-icon am-mode-shell`,hidden:!0,children:se}),(0,m.jsx)(S,{className:`am-mode-icon am-mode-web`,hidden:!0,children:ce}),(0,m.jsx)(`span`,{className:`am-cur-label`,id:`agentCurLabel`,children:`Computer use`}),(0,m.jsx)(S,{className:`am-sub-icon am-sub-daisy`,hidden:!0,children:le}),(0,m.jsx)(`span`,{className:`am-sub-icon am-sub-text am-sub-ios`,children:`iOS`}),(0,m.jsx)(`span`,{className:`am-sub-icon am-sub-text am-sub-android`,children:`Android`}),(0,m.jsx)(`svg`,{className:`am-chev`,id:`agentChev`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:C})]}),(0,m.jsxs)(`button`,{className:`pair-status`,id:`pairStatus`,type:`button`,"aria-label":`Pair again`,title:`Pair again`,children:[(0,m.jsxs)(`svg`,{className:`ps-spin`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,"aria-hidden":`true`,children:[(0,m.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`,opacity:`0.25`}),(0,m.jsx)(`path`,{d:`M21 12a9 9 0 0 0-9-9`})]}),(0,m.jsx)(S,{className:`ps-retry`,hidden:!0,children:fe})]}),(0,m.jsxs)(`div`,{className:`shell-input-wrap`,id:`shellInputWrap`,children:[(0,m.jsx)(`div`,{className:`agent-menu shell-input-menu`,id:`shellInputMenu`,children:(0,m.jsxs)(`div`,{className:`agent-menu-inner`,role:`menu`,children:[(0,m.jsxs)(`button`,{className:`agent-opt selected`,"data-input":`auto`,role:`menuitemradio`,"aria-checked":`true`,type:`button`,children:[(0,m.jsx)(S,{className:`am-icon`,children:ue}),(0,m.jsx)(`span`,{children:`Auto`}),(0,m.jsx)(pe,{})]}),(0,m.jsxs)(`button`,{className:`agent-opt`,"data-input":`manual`,role:`menuitemradio`,"aria-checked":`false`,type:`button`,children:[(0,m.jsx)(S,{className:`am-icon`,children:de}),(0,m.jsx)(`span`,{children:`Manual`}),(0,m.jsx)(pe,{})]})]})}),(0,m.jsxs)(`button`,{className:`agent-btn`,id:`shellInputBtn`,"aria-expanded":`false`,"aria-haspopup":`true`,type:`button`,children:[(0,m.jsx)(S,{className:`si-icon si-auto`,hidden:!0,children:ue}),(0,m.jsx)(S,{className:`si-icon si-manual`,hidden:!0,children:de}),(0,m.jsx)(`span`,{className:`am-cur-label`,id:`shellInputLabel`,children:`Auto`}),(0,m.jsx)(`svg`,{className:`am-chev`,id:`shellInputChev`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:C})]})]}),(0,m.jsx)(ie,{})]})}function ge(){return(0,m.jsxs)(`div`,{className:`memory-ring`,id:`memoryRing`,role:`img`,"aria-label":`Memory`,children:[(0,m.jsxs)(`svg`,{className:`memory-ring-svg`,viewBox:`0 0 240 240`,"aria-hidden":`true`,children:[(0,m.jsx)(`circle`,{className:`memory-ring-track`,cx:`120`,cy:`120`,r:`112.5`}),(0,m.jsx)(`circle`,{className:`memory-ring-arc`,cx:`120`,cy:`120`,r:`112.5`,pathLength:`100`})]}),(0,m.jsx)(`span`,{className:`memory-ring-value`,"aria-hidden":`true`,children:`0`})]})}function _e(){return(0,m.jsxs)(`div`,{className:`chat-container-content`,children:[(0,m.jsxs)(`div`,{className:`output-stream-area`,children:[(0,m.jsxs)(`div`,{className:`welcome-overlay`,id:`welcomeOverlay`,children:[(0,m.jsx)(`div`,{className:`welcome-eye`}),(0,m.jsx)(`div`,{className:`welcome-eye`}),(0,m.jsx)(`div`,{className:`welcome-glow`})]}),(0,m.jsx)(`div`,{className:`milestone-stream`,id:`milestoneStream`})]}),(0,m.jsx)(`div`,{className:`cli-stream-area`,id:`cliStreamArea`,children:(0,m.jsx)(`div`,{className:`cli-stream-list`,id:`cliStreamList`})}),(0,m.jsxs)(`div`,{className:`agent-response-strip`,id:`agentResponseStrip`,children:[(0,m.jsx)(`canvas`,{className:`agent-orb`,width:`40`,height:`40`,"aria-hidden":`true`}),(0,m.jsx)(`span`,{className:`agent-label t-shimmer`,"data-text":`Agent running…`,children:`Agent running…`}),(0,m.jsx)(`span`,{className:`agent-text`,id:`agentText`})]}),(0,m.jsxs)(`div`,{className:`input-area-wrapper`,children:[(0,m.jsx)(`textarea`,{className:`chat-input`,placeholder:`Select a model in Settings to start...`,rows:1,disabled:!0}),(0,m.jsxs)(`div`,{className:`input-toolbar`,children:[(0,m.jsxs)(`button`,{className:`fast-quality-toggle link-toggle wired`,id:`linkToggle`,type:`button`,role:`switch`,"aria-checked":`true`,"aria-label":`Mobile via: Wi-Fi / Wired`,children:[(0,m.jsx)(`span`,{className:`fq-label lk-label-wireless`,"aria-hidden":`true`,children:`Mobile via: Wi-Fi`}),(0,m.jsx)(`span`,{className:`fq-label lk-label-wired`,"aria-hidden":`true`,children:`Mobile via: Wired`}),(0,m.jsx)(`span`,{className:`fq-thumb`}),(0,m.jsx)(`span`,{className:`fq-icon lk-wifi`,children:(0,m.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,m.jsx)(`path`,{d:`M12 20h.01`}),(0,m.jsx)(`path`,{d:`M2 8.82a15 15 0 0 1 20 0`}),(0,m.jsx)(`path`,{d:`M5 12.859a10 10 0 0 1 14 0`}),(0,m.jsx)(`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`})]})}),(0,m.jsx)(`span`,{className:`fq-icon lk-plug`,children:(0,m.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,m.jsx)(`path`,{d:`M12 22v-5`}),(0,m.jsx)(`path`,{d:`M9 8V2`}),(0,m.jsx)(`path`,{d:`M15 8V2`}),(0,m.jsx)(`path`,{className:`lk-plug-body`,d:`M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z`})]})})]}),(0,m.jsxs)(`button`,{className:`fast-quality-toggle quality`,id:`fastQualityToggle`,type:`button`,role:`switch`,"aria-checked":`true`,"aria-label":`Fast / Quality mode`,children:[(0,m.jsx)(`span`,{className:`fq-label fq-label-fast`,"aria-hidden":`true`,children:`Fast`}),(0,m.jsx)(`span`,{className:`fq-label fq-label-quality`,"aria-hidden":`true`,children:`Quality`}),(0,m.jsx)(`span`,{className:`fq-thumb`}),(0,m.jsx)(`span`,{className:`fq-icon fq-zap`,children:(0,m.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,m.jsx)(`polygon`,{points:`13 2 3 14 12 14 11 22 21 10 12 10 13 2`})})}),(0,m.jsx)(`span`,{className:`fq-icon fq-sparkles`,children:(0,m.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,m.jsx)(`path`,{className:`fq-spark-main`,d:`M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z`}),(0,m.jsx)(`path`,{d:`M20 3v4`}),(0,m.jsx)(`path`,{d:`M22 5h-4`}),(0,m.jsx)(`path`,{d:`M4 17v2`}),(0,m.jsx)(`path`,{d:`M5 18H3`})]})})]}),(0,m.jsx)(ge,{}),(0,m.jsxs)(`div`,{className:`model-dropdown chat-model-dropdown`,id:`chatModelDropdown`,children:[(0,m.jsxs)(`button`,{className:`model-dropdown-trigger`,type:`button`,"aria-label":`Select model`,children:[(0,m.jsx)(`span`,{className:`model-dropdown-value placeholder`,children:`select model`}),(0,m.jsx)(`svg`,{className:`chat-dropdown-chevron`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,m.jsx)(`path`,{d:`M18 15l-6-6-6 6`})})]}),(0,m.jsx)(`div`,{className:`model-dropdown-menu`})]}),(0,m.jsxs)(`div`,{className:`input-orb-slot`,children:[(0,m.jsx)(`iframe`,{id:`sendBtnFrame`,className:`send-agent-frame`,src:`chat_input/send_button.html`,title:`Send`,scrolling:`no`,frameBorder:`0`}),(0,m.jsx)(`iframe`,{id:`stopBtnFrame`,className:`stop-agent-frame`,src:`chat_input/pc_button.html`,title:`Stop Agent`,scrolling:`no`,frameBorder:`0`}),(0,m.jsx)(`button`,{id:`orbHit`,className:`orb-hit`,type:`button`,tabIndex:-1,"aria-label":`Send / stop agent`})]})]}),(0,m.jsx)(he,{})]})]})}function ve(){return(0,m.jsxs)(`button`,{className:`new-chat-btn`,type:`button`,"aria-label":`New chat`,children:[(0,m.jsxs)(`svg`,{className:`new-chat-icon`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,m.jsx)(`path`,{d:`M12 20h9`}),(0,m.jsx)(`path`,{d:`M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z`})]}),(0,m.jsx)(`span`,{className:`new-chat-label`,children:`New chat`})]})}function ye(){return(0,m.jsxs)(`div`,{className:`settings-btn`,id:`settingsBtn`,title:`Settings`,role:`button`,tabIndex:0,"aria-label":`Settings`,children:[(0,m.jsx)(`div`,{className:`liquidGlass-effect-btn`}),(0,m.jsx)(`div`,{className:`liquidGlass-tint-btn`}),(0,m.jsx)(`div`,{className:`liquidGlass-shine-btn`}),(0,m.jsx)(`div`,{className:`settings-icon-wrapper`,children:(0,m.jsxs)(`svg`,{className:`settings-icon`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,m.jsx)(`circle`,{cx:`12`,cy:`12`,r:`3`}),(0,m.jsx)(`path`,{d:`M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z`})]})})]})}function be(){return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(`aside`,{className:`left-bar`,id:`leftBar`,"aria-label":`Sidebar`,children:[(0,m.jsx)(`div`,{className:`liquidGlass-effect`}),(0,m.jsx)(`div`,{className:`liquidGlass-tint`}),(0,m.jsx)(`div`,{className:`liquidGlass-shine`}),(0,m.jsxs)(`div`,{className:`liquidGlass-content left-bar-content`,children:[(0,m.jsx)(`div`,{className:`left-bar-header`,id:`leftBarHeader`,children:(0,m.jsx)(`span`,{className:`left-bar-logo`,role:`img`,"aria-label":`AutoCua`})}),(0,m.jsx)(`div`,{className:`left-bar-body`,children:(0,m.jsx)(ve,{})}),(0,m.jsx)(`div`,{className:`left-bar-rail`,id:`leftBarRail`}),(0,m.jsxs)(`div`,{className:`left-bar-footer`,id:`leftBarFooter`,children:[(0,m.jsx)(ye,{}),(0,m.jsx)(`button`,{className:`gh-link`,id:`ghLink`,type:`button`,"aria-label":`AutoCua on GitHub`,title:`AutoCua on GitHub`,children:(0,m.jsx)(`svg`,{className:`gh-mark`,viewBox:`0 0 16 16`,"aria-hidden":`true`,children:(0,m.jsx)(`path`,{fill:`currentColor`,d:`M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8z`})})})]})]})]}),(0,m.jsx)(`button`,{className:`left-bar-toggle`,id:`leftBarToggle`,type:`button`,"aria-controls":`leftBar`,"aria-expanded":`true`,"aria-label":`Collapse sidebar`,title:`Collapse sidebar`,children:(0,m.jsx)(`svg`,{className:`left-bar-toggle-icon`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,m.jsx)(`path`,{d:`M14.5 6l-6 6 6 6`})})})]})}function xe(){return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`svg`,{style:{display:`none`},children:(0,m.jsxs)(`filter`,{id:`glass-distortion`,x:`-50%`,y:`-50%`,width:`200%`,height:`200%`,filterUnits:`objectBoundingBox`,children:[(0,m.jsx)(`feTurbulence`,{type:`fractalNoise`,baseFrequency:`0.015 0.015`,numOctaves:`2`,seed:`5`,result:`turbulence`}),(0,m.jsxs)(`feComponentTransfer`,{in:`turbulence`,result:`mapped`,children:[(0,m.jsx)(`feFuncR`,{type:`gamma`,amplitude:`1`,exponent:`8`,offset:`0.5`}),(0,m.jsx)(`feFuncG`,{type:`gamma`,amplitude:`0.5`,exponent:`1`,offset:`0`}),(0,m.jsx)(`feFuncB`,{type:`gamma`,amplitude:`0.5`,exponent:`1`,offset:`0.5`})]}),(0,m.jsx)(`feGaussianBlur`,{in:`turbulence`,stdDeviation:`4`,result:`softMap`}),(0,m.jsx)(`feSpecularLighting`,{in:`softMap`,surfaceScale:`8`,specularConstant:`1.2`,specularExponent:`120`,lightingColor:`white`,result:`specLight`,children:(0,m.jsx)(`fePointLight`,{x:`-150`,y:`-150`,z:`400`})}),(0,m.jsx)(`feComposite`,{in:`specLight`,operator:`arithmetic`,k1:`0`,k2:`1`,k3:`1.2`,k4:`0`,result:`litImage`}),(0,m.jsx)(`feDisplacementMap`,{in:`SourceGraphic`,in2:`softMap`,scale:`200`,xChannelSelector:`R`,yChannelSelector:`G`})]})}),(0,m.jsx)(`svg`,{style:{display:`none`},children:(0,m.jsxs)(`filter`,{id:`liquid-glass-button`,x:`-50%`,y:`-50%`,width:`200%`,height:`200%`,filterUnits:`objectBoundingBox`,children:[(0,m.jsx)(`feTurbulence`,{type:`fractalNoise`,baseFrequency:`0.03 0.05`,numOctaves:`4`,seed:`3`,result:`turbulence`}),(0,m.jsxs)(`feComponentTransfer`,{in:`turbulence`,result:`mapped`,children:[(0,m.jsx)(`feFuncR`,{type:`gamma`,amplitude:`1`,exponent:`4`,offset:`0.4`}),(0,m.jsx)(`feFuncG`,{type:`gamma`,amplitude:`1`,exponent:`4`,offset:`0.4`})]}),(0,m.jsx)(`feGaussianBlur`,{in:`mapped`,stdDeviation:`2.5`,result:`softMap`}),(0,m.jsx)(`feDisplacementMap`,{in:`SourceGraphic`,in2:`softMap`,scale:`25`,xChannelSelector:`R`,yChannelSelector:`G`})]})})]})}function Se({className:e}){return(0,m.jsx)(`svg`,{className:e,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,m.jsx)(`polyline`,{points:`6 9 12 15 18 9`})})}function Ce(){return(0,m.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,m.jsx)(`polyline`,{points:`3 6 5 6 21 6`}),(0,m.jsx)(`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`})]})}var we=[[`openrouter`,`https://openrouter.ai/keys`,`OpenRouter`,`sk-or-...`],[`groq`,`https://console.groq.com/keys`,`Groq`,`gsk_...`],[`openai`,`https://platform.openai.com/api-keys`,`OpenAI`,`sk-...`],[`anthropic`,`https://console.anthropic.com/settings/keys`,`Anthropic`,`sk-ant-...`],[`perplexity`,`https://docs.perplexity.ai/guides/getting-started`,`Perplexity`,`pplx-...`],[`together`,`https://api.together.xyz/settings/api-keys`,`Together AI`,`Enter API key...`],[`cerebras`,`https://cloud.cerebras.ai`,`Cerebras`,`csk-...`],[`requesty`,`https://app.requesty.ai/api-keys`,`Requesty`,`Enter API key...`],[`aws`,`https://console.aws.amazon.com/bedrock/home#/api-keys`,`AWS`,`ABSK...`],[`google`,`https://aistudio.google.com/apikey`,`Google`,`AIza...`]];function Te(){return(0,m.jsx)(`div`,{className:`settings-overlay`,id:`settingsOverlay`,children:(0,m.jsxs)(`div`,{className:`settings-panel`,children:[(0,m.jsxs)(`div`,{className:`settings-panel-content`,children:[(0,m.jsx)(`div`,{className:`settings-header`,children:(0,m.jsx)(`span`,{className:`settings-title`,children:`Settings`})}),(0,m.jsxs)(`div`,{className:`settings-view settings-modelselect-view`,id:`settingsModelView`,children:[(0,m.jsx)(`div`,{className:`settings-section-heading`,children:`Provider`}),(0,m.jsx)(`div`,{className:`model-select-row`,children:(0,m.jsxs)(`div`,{className:`model-select-field`,children:[(0,m.jsx)(`label`,{className:`model-select-label`,children:`Provider`}),(0,m.jsxs)(`div`,{className:`model-dropdown`,id:`providerDropdown`,children:[(0,m.jsxs)(`button`,{className:`model-dropdown-trigger`,type:`button`,children:[(0,m.jsx)(`span`,{className:`model-dropdown-value placeholder`,children:`Select a provider…`}),(0,m.jsx)(`svg`,{className:`model-dropdown-chevron`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,m.jsx)(`polyline`,{points:`6 9 12 15 18 9`})})]}),(0,m.jsx)(`div`,{className:`model-dropdown-menu`})]})]})})]}),(0,m.jsxs)(`div`,{className:`settings-view settings-apikeys-view`,id:`settingsApikeysView`,children:[(0,m.jsx)(`div`,{className:`settings-section-heading`,children:`API Keys`}),(0,m.jsx)(`div`,{className:`settings-provider-list`,children:we.map(([e,t,n,r])=>(0,m.jsxs)(`div`,{className:`settings-provider-row`,"data-provider":e,children:[(0,m.jsx)(`a`,{className:`settings-provider-name`,href:t,target:`_blank`,children:n}),(0,m.jsx)(`input`,{type:`password`,className:e===`google`?`settings-provider-input google-key-input`:`settings-provider-input`,placeholder:r,autoComplete:`off`}),(0,m.jsx)(`button`,{className:`settings-delete-btn`,title:`Remove API key`,style:{display:`none`},children:(0,m.jsx)(Ce,{})}),e===`google`&&(0,m.jsx)(`button`,{className:`gcp-vertex-btn`,id:`gcpVertexBtn`,title:`Configure GCP Vertex AI`,children:`GCP Vertex`})]},e))}),(0,m.jsx)(`button`,{className:`settings-save-btn`,id:`settingsSaveBtn`,children:`Save`})]}),(0,m.jsxs)(`div`,{className:`settings-view settings-remote-view`,id:`settingsRemoteView`,children:[(0,m.jsx)(`div`,{className:`settings-section-heading`,children:`Remote Connection`}),(0,m.jsxs)(`div`,{className:`remote-setup`,id:`remoteSetup`,children:[(0,m.jsxs)(`div`,{className:`remote-row`,children:[(0,m.jsx)(`span`,{className:`remote-row-label remote-telegram-logo`,"aria-label":`Telegram`,children:(0,m.jsx)(`svg`,{width:`22`,height:`22`,viewBox:`0 0 24 24`,fill:`currentColor`,children:(0,m.jsx)(`path`,{d:`M21.5 4.5L2.5 12l5.5 2 2 6 3-3.5 5.5 4 3-16zM10 14l8.5-7L11 14.5l-1 4.5L10 14z`})})}),(0,m.jsx)(`span`,{className:`remote-row-actions`,children:(0,m.jsx)(`button`,{className:`remote-connect-btn`,id:`remoteToggleBtn`,type:`button`,children:`Connect`})})]}),(0,m.jsx)(`div`,{className:`remote-instruction`,id:`remoteInstructions`,style:{display:`none`},children:`Please follow the on-screen instructions in the helper banner (top-right of your screen).`})]})]}),(0,m.jsxs)(`div`,{className:`settings-view settings-device-view`,id:`settingsDeviceView`,children:[(0,m.jsx)(`div`,{className:`settings-section-heading`,children:`Connect Device`}),(0,m.jsxs)(`div`,{className:`device-list`,children:[(0,m.jsxs)(`div`,{className:`device-option`,id:`deviceOptioniOS`,role:`button`,tabIndex:0,"aria-expanded":`false`,"aria-label":`Connect iPhone`,children:[(0,m.jsx)(`span`,{className:`device-name`,children:`iPhone`}),(0,m.jsx)(`span`,{className:`device-chevron`,"aria-hidden":`true`,children:(0,m.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,m.jsx)(`polyline`,{points:`9 6 15 12 9 18`})})})]}),(0,m.jsx)(`div`,{className:`device-panel`,id:`devicePaneliOS`,hidden:!0,children:(0,m.jsxs)(`div`,{className:`dc-flow`,children:[(0,m.jsxs)(`div`,{className:`dc-field`,children:[(0,m.jsx)(`label`,{className:`dc-label`,children:`Apple Account`}),(0,m.jsxs)(`div`,{className:`dc-select`,id:`dcTeamSelect`,role:`button`,tabIndex:0,children:[(0,m.jsx)(`span`,{className:`dc-select-value placeholder`,id:`dcTeamValue`,children:`Loading…`}),(0,m.jsx)(Se,{className:`dc-select-chevron`}),(0,m.jsx)(`div`,{className:`dc-select-menu`,id:`dcTeamMenu`})]})]}),(0,m.jsxs)(`div`,{className:`dc-field`,children:[(0,m.jsx)(`label`,{className:`dc-label`,children:`Device`}),(0,m.jsxs)(`div`,{className:`dc-select`,id:`dcDeviceSelect`,role:`button`,tabIndex:0,children:[(0,m.jsx)(`span`,{className:`dc-select-value placeholder`,id:`dcDeviceValue`,children:`Looking…`}),(0,m.jsx)(Se,{className:`dc-select-chevron`}),(0,m.jsx)(`div`,{className:`dc-select-menu`,id:`dcDeviceMenu`})]})]}),(0,m.jsxs)(`div`,{className:`dc-status`,id:`dcStatus`,"data-state":`loading`,children:[(0,m.jsx)(`span`,{className:`dc-spinner`,id:`dcSpinner`}),(0,m.jsx)(`span`,{className:`dc-check`,id:`dcCheck`,hidden:!0}),(0,m.jsx)(`span`,{className:`dc-status-text`,id:`dcStatusText`,children:`Looking for your iPhone…`})]}),(0,m.jsx)(`div`,{className:`dc-steps`,id:`dcSteps`,hidden:!0}),(0,m.jsx)(`button`,{className:`dc-action`,id:`dcAction`,type:`button`,hidden:!0}),(0,m.jsxs)(`div`,{className:`dc-paired`,id:`dcPaired`,hidden:!0,children:[(0,m.jsx)(`div`,{className:`dc-label`,children:`Paired devices`}),(0,m.jsx)(`div`,{className:`dc-paired-list`,id:`dcPairedList`})]})]})}),(0,m.jsxs)(`div`,{className:`device-option`,id:`deviceOptionAndroid`,role:`button`,tabIndex:0,"aria-expanded":`false`,"aria-label":`Connect Android phone`,children:[(0,m.jsx)(`span`,{className:`device-name`,children:`Android`}),(0,m.jsx)(`span`,{className:`device-chevron`,"aria-hidden":`true`,children:(0,m.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,m.jsx)(`polyline`,{points:`9 6 15 12 9 18`})})})]}),(0,m.jsx)(`div`,{className:`device-panel`,id:`devicePanelAndroid`,hidden:!0,children:(0,m.jsxs)(`div`,{className:`dc-flow`,children:[(0,m.jsxs)(`div`,{className:`dc-field`,children:[(0,m.jsx)(`label`,{className:`dc-label`,children:`Device`}),(0,m.jsxs)(`div`,{className:`dc-select`,id:`dcAndroidDeviceSelect`,role:`button`,tabIndex:0,children:[(0,m.jsx)(`span`,{className:`dc-select-value placeholder`,id:`dcAndroidDeviceValue`,children:`Looking…`}),(0,m.jsx)(Se,{className:`dc-select-chevron`}),(0,m.jsx)(`div`,{className:`dc-select-menu`,id:`dcAndroidDeviceMenu`})]})]}),(0,m.jsxs)(`div`,{className:`dc-status`,id:`dcAndroidStatus`,"data-state":`loading`,children:[(0,m.jsx)(`span`,{className:`dc-spinner`,id:`dcAndroidSpinner`}),(0,m.jsx)(`span`,{className:`dc-check`,id:`dcAndroidCheck`,hidden:!0}),(0,m.jsx)(`span`,{className:`dc-status-text`,id:`dcAndroidStatusText`,children:`Looking for your Android phone…`})]}),(0,m.jsx)(`div`,{className:`dc-steps`,id:`dcAndroidSteps`,hidden:!0}),(0,m.jsx)(`button`,{className:`dc-action`,id:`dcAndroidAction`,type:`button`,hidden:!0}),(0,m.jsxs)(`div`,{className:`dc-paired`,id:`dcAndroidPaired`,hidden:!0,children:[(0,m.jsx)(`div`,{className:`dc-label`,children:`Connected devices`}),(0,m.jsx)(`div`,{className:`dc-paired-list`,id:`dcAndroidPairedList`})]})]})})]})]})]}),(0,m.jsxs)(`div`,{className:`settings-footer`,children:[(0,m.jsx)(`button`,{className:`settings-cancel-btn`,id:`settingsCancelBtn`,type:`button`,children:`Cancel`}),(0,m.jsx)(`button`,{className:`settings-savebar-btn`,id:`settingsSaveBarBtn`,type:`button`,children:`Save`})]})]})})}function Ee(){return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(y,{}),(0,m.jsx)(xe,{}),(0,m.jsx)(`div`,{id:`appToast`,className:`app-toast`,role:`status`,"aria-live":`polite`}),(0,m.jsx)(`div`,{className:`welcome-hero`,id:`welcomeHero`,"aria-hidden":`true`,children:(0,m.jsx)(`div`,{className:`welcome-hero-title`,children:`Made to do...`})}),(0,m.jsxs)(`div`,{className:`main-grid`,id:`mainGrid`,children:[(0,m.jsxs)(`div`,{className:`chat-scroll`,id:`chatScroll`,children:[(0,m.jsx)(`div`,{className:`chat-past`,id:`chatPast`}),(0,m.jsxs)(`div`,{className:`chat-turn live`,id:`liveTurn`,children:[(0,m.jsx)(ne,{}),(0,m.jsx)(re,{}),(0,m.jsx)(x,{})]})]}),(0,m.jsx)(te,{})]}),(0,m.jsx)(`div`,{className:`chat-container-wrapper`,id:`chatWrapper`,children:(0,m.jsx)(_e,{})}),(0,m.jsx)(Te,{}),(0,m.jsx)(`div`,{className:`telegram-prompt-overlay`,id:`telegramPromptOverlay`,children:(0,m.jsxs)(`div`,{className:`telegram-prompt-popup`,children:[(0,m.jsx)(`div`,{className:`liquidGlass-effect-btn`}),(0,m.jsx)(`div`,{className:`liquidGlass-tint-btn`}),(0,m.jsx)(`div`,{className:`liquidGlass-shine-btn`}),(0,m.jsxs)(`div`,{className:`telegram-prompt-content`,children:[(0,m.jsx)(`div`,{className:`telegram-prompt-title`,children:`AutoCua helper`}),(0,m.jsx)(`div`,{className:`telegram-prompt-countdown`,id:`telegramPromptCountdown`,children:`3`}),(0,m.jsxs)(`div`,{className:`telegram-prompt-caption`,children:[`Starting your helper… it will appear in the `,(0,m.jsx)(`strong`,{children:`top-right`}),` corner.`]}),(0,m.jsxs)(`div`,{className:`telegram-prompt-message`,children:[`The helper will walk you through Telegram setup. Please click `,(0,m.jsx)(`strong`,{children:`Next`}),` on the banner in the `,(0,m.jsx)(`strong`,{children:`top-right`}),` corner of your screen to continue.`]}),(0,m.jsx)(`button`,{className:`telegram-prompt-ok`,id:`telegramPromptOk`,type:`button`,children:`Got it`})]})]})}),(0,m.jsx)(`div`,{className:`vertex-overlay`,id:`vertexOverlay`,children:(0,m.jsxs)(`div`,{className:`vertex-popup`,children:[(0,m.jsx)(`div`,{className:`liquidGlass-effect-btn`}),(0,m.jsx)(`div`,{className:`liquidGlass-tint-btn`}),(0,m.jsx)(`div`,{className:`liquidGlass-shine-btn`}),(0,m.jsxs)(`div`,{className:`vertex-popup-content`,children:[(0,m.jsx)(`span`,{className:`vertex-popup-title`,children:`GCP Vertex AI`}),(0,m.jsxs)(`div`,{className:`vertex-field`,children:[(0,m.jsx)(`label`,{className:`vertex-label`,children:`Project ID`}),(0,m.jsx)(`input`,{type:`text`,className:`vertex-input`,id:`vertexProjectId`,placeholder:`my-gcp-project`,autoComplete:`off`})]}),(0,m.jsxs)(`div`,{className:`vertex-field`,children:[(0,m.jsx)(`label`,{className:`vertex-label`,children:`Location`}),(0,m.jsx)(`input`,{type:`text`,className:`vertex-input vertex-location-input`,id:`vertexLocation`,defaultValue:`global`,autoComplete:`off`})]}),(0,m.jsx)(`button`,{className:`vertex-done-btn`,id:`vertexDoneBtn`,children:`Done`})]})]})}),(0,m.jsx)(be,{})]})}var w=document.getElementById(`root`);w&&(0,d.flushSync)(()=>{(0,f.createRoot)(w).render((0,m.jsx)(Ee,{}))})})(); \ No newline at end of file diff --git a/AutoCua/ui/index.tsx b/AutoCua/ui/index.tsx index d55ef91..9986f32 100644 --- a/AutoCua/ui/index.tsx +++ b/AutoCua/ui/index.tsx @@ -79,6 +79,7 @@ const PROVIDERS: [string, string, string, string][] = [ ['perplexity', 'https://docs.perplexity.ai/guides/getting-started', 'Perplexity', 'pplx-...'], ['together', 'https://api.together.xyz/settings/api-keys', 'Together AI', 'Enter API key...'], ['cerebras', 'https://cloud.cerebras.ai', 'Cerebras', 'csk-...'], + ['requesty', 'https://app.requesty.ai/api-keys', 'Requesty', 'Enter API key...'], ['aws', 'https://console.aws.amazon.com/bedrock/home#/api-keys', 'AWS', 'ABSK...'], ['google', 'https://aistudio.google.com/apikey', 'Google', 'AIza...'], ]; diff --git a/AutoCua/ui/script.js b/AutoCua/ui/script.js index 496375b..47d4d35 100644 --- a/AutoCua/ui/script.js +++ b/AutoCua/ui/script.js @@ -33,6 +33,7 @@ document.addEventListener('DOMContentLoaded', () => { perplexity: null, together: null, cerebras: null, + requesty: null, aws: null }; diff --git a/AutoCua/ui/service.py b/AutoCua/ui/service.py index df00752..fb0a728 100644 --- a/AutoCua/ui/service.py +++ b/AutoCua/ui/service.py @@ -891,6 +891,10 @@ def get_llm_providers(): cerebras_models = importlib.import_module(f"{base}.cerebras.view").MODEL_MAPPINGS except ModuleNotFoundError: cerebras_models = None + try: + requesty_models = importlib.import_module(f"{base}.requesty.view").MODEL_MAPPINGS + except ModuleNotFoundError: + requesty_models = None try: aws_models = importlib.import_module(f"{base}.aws.view").MODEL_MAPPINGS except ModuleNotFoundError: @@ -914,6 +918,8 @@ def format_models(mappings): providers.append({'id': 'together', 'name': 'together', 'models': format_models(together_models)}) if cerebras_models: providers.append({'id': 'cerebras', 'name': 'cerebras', 'models': format_models(cerebras_models)}) + if requesty_models: + providers.append({'id': 'requesty', 'name': 'requesty', 'models': format_models(requesty_models)}) if aws_models: providers.append({'id': 'aws', 'name': 'aws', 'models': format_models(aws_models)}) return providers @@ -931,6 +937,7 @@ def format_models(mappings): 'perplexity': 'PERPLEXITY_API_KEY', 'together': 'TOGETHER_API_KEY', 'cerebras': 'CEREBRAS_API_KEY', + 'requesty': 'REQUESTY_API_KEY', 'aws': 'AWS_API_KEY', } From 11c14c1fba291c052124ac4b1261a4f85b41b101 Mon Sep 17 00:00:00 2001 From: Thibault Jaigu Date: Wed, 4 Nov 2026 11:20:20 +0000 Subject: [PATCH 4/5] Requesty provider: plain comment wording --- AutoCua/llm_provider/requesty/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AutoCua/llm_provider/requesty/service.py b/AutoCua/llm_provider/requesty/service.py index ab0cedf..3789613 100644 --- a/AutoCua/llm_provider/requesty/service.py +++ b/AutoCua/llm_provider/requesty/service.py @@ -13,7 +13,7 @@ def __init__(self, api_key: str, cli_agent: bool = False, model_info: dict = Non self.session = requests.Session() self.cli_agent = cli_agent self.model_info = model_info or {} - # Native tool calling: OpenAI-format function tools — the model's + # Native tool calling: OpenAI-format function tools, the model's # output contract. None only for mode="text" (plain prose). self.tools = tools or None From 4ac0c898c333345ecfe14461db1a5cbb66bc0c19 Mon Sep 17 00:00:00 2001 From: Thibault Jaigu Date: Wed, 4 Nov 2026 11:20:20 +0000 Subject: [PATCH 5/5] Requesty in the docs: README, agent_capabilities.md, model_list.txt and .env.example --- .env.example | 1 + README.md | 9 +++++---- agent_capabilities.md | 21 +++++++++++++++++++-- model_list.txt | 12 +++++++++++- requirements_linux.txt | 6 +++--- 5 files changed, 39 insertions(+), 10 deletions(-) diff --git a/.env.example b/.env.example index 215ff4a..f761be0 100644 --- a/.env.example +++ b/.env.example @@ -15,6 +15,7 @@ GROQ_API_KEY= OPENAI_API_KEY= OPENROUTER_API_KEY= PERPLEXITY_API_KEY= +REQUESTY_API_KEY= TOGETHER_API_KEY= # --- AWS Bedrock --- diff --git a/README.md b/README.md index 3bbbee9..afc3511 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ [![Desktop input](https://img.shields.io/badge/desktop%20input-real%20hardware%20events-e8590c)](https://github.com/AutoCua/AutoCua/blob/main/README.md#how-it-acts-on-a-screen) [![Browser agent](https://img.shields.io/badge/browser%20agent-Rust%20%2B%20a%20Chrome%20extension-b7410e)](https://github.com/AutoCua/AutoCua/blob/main/README.md#the-browser-agent) -[![Models](https://img.shields.io/badge/models-48%20across%209%20providers-7048e8)](https://github.com/AutoCua/AutoCua/blob/main/README.md#providers-and-models) +[![Models](https://img.shields.io/badge/models-51%20across%2010%20providers-7048e8)](https://github.com/AutoCua/AutoCua/blob/main/README.md#providers-and-models)
@@ -1083,7 +1083,7 @@ run_agent(..., provider="google", model="gemini-3.1-pro") run_agent(..., provider="openai", model="gpt-6-astra") ``` -Nine providers, all supported on every surface. +Ten providers, all supported on every surface. | Provider | Desktop, macOS | Desktop, Windows | Browser | iOS | Android | |---|:--:|:--:|:--:|:--:|:--:| @@ -1095,9 +1095,10 @@ Nine providers, all supported on every surface. | OpenAI | yes | yes | yes | yes | yes | | OpenRouter | yes | yes | yes | yes | yes | | Perplexity | yes | yes | yes | yes | yes | +| Requesty | yes | yes | yes | yes | yes | | Together AI | yes | yes | yes | yes | yes | -48 model names are listed in **[model_list.txt](https://github.com/AutoCua/AutoCua/blob/main/model_list.txt)**. Copy them exactly. A name +51 model names are listed in **[model_list.txt](https://github.com/AutoCua/AutoCua/blob/main/model_list.txt)**. Copy them exactly. A name that is not on the list gets no validation. It is forwarded verbatim and comes back as a 404. Keys resolve from the runtime setting first, then the environment or `.env`, so you can @@ -1108,7 +1109,7 @@ The `web` tool uses each provider's own search: Claude web search, the OpenAI Re search tool, Gemini grounding, Groq's compound model, OpenRouter's Exa plugin running on your chosen model, and Perplexity Sonar. -> Together AI, Cerebras and AWS Bedrock have no native web search. Under any of them the `web` tool hands the query to the +> Together AI, Cerebras, Requesty and AWS Bedrock have no native web search. Under any of them the `web` tool hands the query to the > browser agent running headless on its own dedicated port and profile, capped at 15 minutes, > and returns its report. Expect that step to take minutes rather than seconds. diff --git a/agent_capabilities.md b/agent_capabilities.md index 633e8c3..b00e24a 100644 --- a/agent_capabilities.md +++ b/agent_capabilities.md @@ -28,7 +28,7 @@ run_agent( | Argument | What it is | |---|---| | `mode` | Which agent runs: `"computer use"` drives this desktop (Windows, macOS or Linux, detected automatically), `"computer use, daisy chain"` does the same and can also hand work to the phone sub-agents when a phone is connected (Android everywhere, iPhone on macOS; plain `"computer use"` lists them offline), `"shell use"` runs the coding agent straight in your terminal, `"web use"` drives Chrome, `"mobile use, ios"` drives an iPhone/iPad or an iOS Simulator, `"mobile use, android"` an Android emulator or your Android phone. Case, underscores and commas don't matter; hyphens do: `"computer-use"` raises `ValueError`. | -| `provider` | `"openrouter"`, `"groq"`, `"openai"`, `"anthropic"`, `"google"`, `"perplexity"`, `"together"`, `"cerebras"` or `"aws"`. The key comes from `_API_KEY` in the environment or `.env` (e.g. `OPENROUTER_API_KEY`, or `AWS_API_KEY` for a Bedrock API key), or from `api_key=` (Part 9). Google's `-vertex` models take no key: they use `VERTEX_PROJECT_ID` / `VERTEX_LOCATION` and your Google Cloud credentials. | +| `provider` | `"openrouter"`, `"groq"`, `"openai"`, `"anthropic"`, `"google"`, `"perplexity"`, `"together"`, `"cerebras"`, `"requesty"` or `"aws"`. The key comes from `_API_KEY` in the environment or `.env` (e.g. `OPENROUTER_API_KEY`, or `AWS_API_KEY` for a Bedrock API key), or from `api_key=` (Part 9). Google's `-vertex` models take no key: they use `VERTEX_PROJECT_ID` / `VERTEX_LOCATION` and your Google Cloud credentials. | | `model` | A model name from [model_list.txt](model_list.txt), copied exactly. It isn't checked up front: an unknown name is sent to the provider as-is and fails at the first request. | | `task` | What the agent should do. | @@ -133,7 +133,7 @@ run_agent( ``` Use it when something else already owns `9222`. Avoid `9333`: that is the -headless browser behind the `web` tool on Together, Cerebras and AWS (Part 5). A +headless browser behind the `web` tool on Together, Cerebras, Requesty and AWS (Part 5). A parallel run (Part 2) launches its one shared Chrome on this port too. ## Chrome profile (`browser_profile`) @@ -537,6 +537,23 @@ saved in the app's Settings → API Keys is used too, after `.env`. Every request sends `temperature` 1, `top_p` 0.95, `seed` 42 and `max_completion_tokens` 32768 (10000 for the memory-compression handoff). `reasoning_effort` is `high` for the coder and its minions and `low` for every other agent. +## Requesty (`provider="requesty"`) + +Requesty is an OpenAI-compatible router: one key for models from many labs, with `vendor/model` +ids. Native tool calling and image input on every platform, and its `web` tool also goes to the +headless browser agent described above. Set `REQUESTY_API_KEY` in `.env` for a terminal run (keys +at https://app.requesty.ai/api-keys); a key saved in the app's Settings → API Keys is used too, +after `.env`. + +| `model=` | Requesty model id | +|---|---| +| `claude-sonnet-5` | `anthropic/claude-sonnet-5` | +| `gemini-3.6-flash` | `google/gemini-3.6-flash` | +| `gpt-5.4` | `openai/gpt-5.4` | + +Any other id from https://router.requesty.ai/v1/models can be passed as `model=` and is sent as is. +Every request sends `temperature` 0.2 and `max_tokens` 10000; reasoning is left at each model's default. + ## AWS Bedrock (`provider="aws"`) Amazon Bedrock through its Converse API, with native tool calling and image input on every diff --git a/model_list.txt b/model_list.txt index b45b04f..1ac9fa5 100644 --- a/model_list.txt +++ b/model_list.txt @@ -115,6 +115,16 @@ model name thinking vision qwen-3.8-27b low/high yes +-------------------------------------------------------------- +provider="requesty" +-------------------------------------------------------------- +model name thinking vision +-------------------------------------------------------------- +claude-sonnet-5 default yes +gemini-3.6-flash default yes +gpt-5.4 default yes + + -------------------------------------------------------------- provider="aws" -------------------------------------------------------------- @@ -128,5 +138,5 @@ claude-sonnet-4.6 low yes -------------------------------------------------------------- -48 models across 9 providers. +51 models across 10 providers. -------------------------------------------------------------- diff --git a/requirements_linux.txt b/requirements_linux.txt index 40ede0a..7549935 100644 --- a/requirements_linux.txt +++ b/requirements_linux.txt @@ -94,9 +94,9 @@ onnxruntime>=1.20 # requirements_mac.txt declares the same set unpinned; the floors below are # this file's own choice (see the header). # -# All nine providers are reachable on Linux: openai and google-genai use -# their SDKs; anthropic, groq, openrouter, perplexity, together, cerebras and -# aws go through `requests`. The shared manager imports every provider when it +# All ten providers are reachable on Linux: openai and google-genai use +# their SDKs; anthropic, groq, openrouter, perplexity, together, cerebras, +# requesty and aws go through `requests`. The shared manager imports every provider when it # loads, so dropping openai or google-genai breaks every agent, not one # provider. The groq and anthropic SDKs serve the `web` tool's search # backends (controller/tool/web/groq_search.py and anthropic.py).