A self-improving RLM agent for coding workflows and long-running autonomous tasks.
Rust
remove user extensions (#3189)
ktf54551d9933c
diff --git a/README.md b/README.mdindex 0a4e672fba..5add0aef23 100644--- a/README.md+++ b/README.md@@ -72,7 +72,7 @@ prime-agentOn first launch, run `/login` to choose a subscription or API-key provider. Prime Agent works in the current directory and can run commands and modify files there. Use a disposable clone, clean worktree, or another checkpoint you can inspect and restore.> [!WARNING]-> Prime Agent executes model-generated Python and project commands with your user permissions. Its worker and kernel processes improve lifecycle isolation and recovery; they are **not** a security sandbox. Review changes and use trusted repositories, instructions, skills, and extensions only. Run untrusted code or instructions in an external sandbox or restricted environment.+> Prime Agent executes model-generated Python and project commands with your user permissions. Its worker and kernel processes improve lifecycle isolation and recovery; they are **not** a security sandbox. Review changes and use trusted repositories, instructions, and skills only. Run untrusted code or instructions in an external sandbox or restricted environment.Useful commands:diff --git a/crates/pa-cli/src/args.rs b/crates/pa-cli/src/args.rsindex 9a344fa176..f35b3f7810 100644--- a/crates/pa-cli/src/args.rs+++ b/crates/pa-cli/src/args.rs@@ -1,10 +1,7 @@//! CLI argument parsing, a faithful port of `cli/args.ts` from the TypeScript-//! product. The parser is intentionally hand-written: the TS surface accepts-//! unknown `--long` flags as extension flags, lets `--resume`/`--print`-//! optionally consume the next token, and formats its own diagnostics, none of-//! which a stock derive-based parser can express.--use std::collections::HashMap;+//! product. The parser is intentionally hand-written: `--resume`/`--print`+//! optionally consume the next token and diagnostics carry their own+//! formatting, none of which a stock derive-based parser can express.use pa_types::ai::ModelThinkingLevel;@@ -164,8 +161,6 @@ pub struct Args {pub tools: Option<Vec<String>>,pub no_tools: bool,pub no_builtin_tools: bool,- pub extensions: Vec<String>,- pub no_extensions: bool,pub print: bool,pub export: Option<String>,pub no_skills: bool,@@ -195,18 +190,9 @@ pub struct Args {#[allow(clippy::struct_field_names)]// the trailing _args matches the TS `fileArgs` wire surfacepub file_args: Vec<String>,- /// Unknown long flags (extension flags): flag name to value.- pub unknown_flags: HashMap<String, UnknownFlagValue>,pub diagnostics: Vec<Diagnostic>,}-/// The value of an unknown (extension) flag: either a string or the boolean `true`.-#[derive(Debug, Clone, PartialEq, Eq)]-pub enum UnknownFlagValue {- Flag(bool),- Value(String),-}-impl Args {/// True when `--resume` appeared (with or without a selector).pub fn has_resume(&self) -> bool {@@ -398,11 +384,6 @@ pub fn parse_args(args: &[String]) -> Args {.push(Diagnostic::error("--export requires a value"));}}- "--extension" | "-e" => {- let value = require_value!(arg);- result.extensions.push(value);- }- "--no-extensions" | "-ne" => result.no_extensions = true,"--skill" => {let value = require_value!(arg);result.skills.push(value);@@ -519,30 +500,6 @@ pub fn parse_args(args: &[String]) -> Args {_ if arg.starts_with('@') => {result.file_args.push(arg[1..].to_string());}- _ if arg.starts_with("--") => {- let eq_index = arg.find('=');- if let Some(eq) = eq_index {- result.unknown_flags.insert(- arg[2..eq].to_string(),- UnknownFlagValue::Value(arg[eq + 1..].to_string()),- );- } else {- let flag_name = arg[2..].to_string();- match args.get(i + 1) {- Some(next) if !next.starts_with('-') && !next.starts_with('@') => {- result- .unknown_flags- .insert(flag_name, UnknownFlagValue::Value(next.clone()));- i += 1;- }- _ => {- result- .unknown_flags- .insert(flag_name, UnknownFlagValue::Flag(true));- }- }- }- }_ if arg.starts_with('-') => {result.diagnostics@@ -611,17 +568,11 @@ mod tests {}#[test]- fn unknown_long_flag_is_an_extension_flag() {- let parsed = parse(&["--extension-flag", "value", "--bool-flag"]);- assert!(parsed.diagnostics.is_empty());- assert_eq!(- parsed.unknown_flags.get("extension-flag"),- Some(&UnknownFlagValue::Value("value".into()))- );- assert_eq!(- parsed.unknown_flags.get("bool-flag"),- Some(&UnknownFlagValue::Flag(true))- );+ fn unknown_long_flag_is_an_error() {+ let parsed = parse(&["--bogus-flag"]);+ assert_eq!(last_error(&parsed), "Unknown option: --bogus-flag");+ let parsed = parse(&["--bogus-flag", "value"]);+ assert_eq!(last_error(&parsed), "Unknown option: --bogus-flag");}#[test]diff --git a/crates/pa-cli/src/command_registry.rs b/crates/pa-cli/src/command_registry.rsindex bd27eac435..915493144d 100644--- a/crates/pa-cli/src/command_registry.rs+++ b/crates/pa-cli/src/command_registry.rs@@ -173,7 +173,7 @@ pub const COMMAND_SPECS: &[CommandSpec] = &["package <install|remove|list|update>","Manage capability packages",)- .description("Packages can provide extensions, skills, prompts, and themes."),+ .description("Packages can provide skills, prompts, and themes."),CommandSpec::new(&["package", "install"],"package install <source> [--local]",@@ -332,8 +332,6 @@ const TOP_LEVEL_OPTION_GROUPS: &[OptionGroup] = &["-nbt, --no-builtin-tools","Disable built-in tools by default",),- ("-e, --extension <source>", "Load an extension (repeatable)"),- ("-ne, --no-extensions", "Disable extension discovery"),("--skill <path>", "Load a skill (repeatable)"),("-ns, --no-skills", "Disable skill discovery"),(diff --git a/crates/pa-cli/src/global_flags.rs b/crates/pa-cli/src/global_flags.rsindex d2fd90f26b..fca4da387d 100644--- a/crates/pa-cli/src/global_flags.rs+++ b/crates/pa-cli/src/global_flags.rs@@ -5,7 +5,7 @@use std::collections::HashSet;/// Global flags that consume the next argument as their value.-pub const GLOBAL_VALUE_FLAGS: [&str; 26] = [+pub const GLOBAL_VALUE_FLAGS: [&str; 24] = ["--mode","--daemon-socket","--provider",@@ -20,8 +20,6 @@ pub const GLOBAL_VALUE_FLAGS: [&str; 26] = ["--tools","-t","--thinking",- "--extension",- "-e","--skill","--prompt-template","--theme",@@ -44,14 +42,13 @@ pub const PROMPT_RUN_FLAGS: [&str; 4] =["--print", "-p", "--system-prompt", "--append-system-prompt"];/// parseArgs-known long flags that take no separate value.-const GLOBAL_BOOLEAN_FLAGS: [&str; 14] = [+const GLOBAL_BOOLEAN_FLAGS: [&str; 13] = ["--help","--version","--continue","--no-session","--no-tools","--no-builtin-tools",- "--no-extensions","--no-skills","--no-prompt-templates","--no-themes",diff --git a/crates/pa-cli/src/mode.rs b/crates/pa-cli/src/mode.rsindex eca3ec1304..0501d1c873 100644--- a/crates/pa-cli/src/mode.rs+++ b/crates/pa-cli/src/mode.rs@@ -3,10 +3,9 @@//! provide the real runtime (pa-core session engine, pa-daemon workers,//! pa-tui) plug in behind [`Runtime::run`] at merge time.-use std::collections::HashMap;use std::path::PathBuf;-use crate::args::{Args, AutonomousConfig, Mode, UnknownFlagValue};+use crate::args::{Args, AutonomousConfig, Mode};/// The process-level execution mode, mirroring `AppMode` in main.ts.#[derive(Debug, Clone, Copy, PartialEq, Eq)]@@ -87,8 +86,6 @@ pub struct RuntimeConfig {pub tools: Option<Vec<String>>,pub no_tools: bool,pub no_builtin_tools: bool,- pub extensions: Vec<PathBuf>,- pub no_extensions: bool,pub skills: Vec<PathBuf>,pub no_skills: bool,pub prompt_templates: Vec<PathBuf>,@@ -97,7 +94,6 @@ pub struct RuntimeConfig {pub no_themes: bool,pub no_context_files: bool,pub autonomous: Option<AutonomousConfig>,- pub extension_flag_values: Option<HashMap<String, String>>,pub execution_mode: Option<AppMode>,pub telemetry_disabled: bool,pub serialized_refine: bool,@@ -256,7 +252,6 @@ pub fn runtime_config_from_args(}).collect()};- let extensions = resolve_cli_path(&parsed.extensions);let skills = resolve_cli_path(&parsed.skills);let prompt_templates = resolve_cli_path(&parsed.prompt_templates);let themes = resolve_cli_path(&parsed.themes);@@ -274,8 +269,6 @@ pub fn runtime_config_from_args(tools: parsed.tools.clone(),no_tools: parsed.no_tools,no_builtin_tools: parsed.no_builtin_tools,- extensions,- no_extensions: parsed.no_extensions,skills,no_skills: parsed.no_skills,prompt_templates,@@ -284,21 +277,6 @@ pub fn runtime_config_from_args(no_themes: parsed.no_themes,no_context_files: parsed.no_context_files,autonomous: AutonomousConfig::from_args(parsed),- extension_flag_values: (!parsed.unknown_flags.is_empty()).then(|| {- parsed- .unknown_flags- .iter()- .map(|(name, value)| {- (- name.clone(),- match value {- UnknownFlagValue::Flag(value) => value.to_string(),- UnknownFlagValue::Value(value) => value.clone(),- },- )- })- .collect()- }),execution_mode: (app_mode != AppMode::Daemon).then_some(app_mode),telemetry_disabled,// Serialized refine is only used by print/json/rpc clients.diff --git a/crates/pa-cli/src/print_boundary/tests.rs b/crates/pa-cli/src/print_boundary/tests.rsindex 0166d4859e..f52f6e4585 100644--- a/crates/pa-cli/src/print_boundary/tests.rs+++ b/crates/pa-cli/src/print_boundary/tests.rs@@ -141,8 +141,6 @@ async fn faux_engine_with_telemetry(rlm_subagent_host: None,rlm_depth: None,model_info: Some(model.clone()),- cli_extension_sources: Vec::new(),- extension_tool_allow_list: None,prewarm_ipython_kernel: None,on_background_work_settled: None,queued_goal_context_purge: None,diff --git a/crates/pa-cli/src/print_goal.rs b/crates/pa-cli/src/print_goal.rsindex f02add7a3d..257e678915 100644--- a/crates/pa-cli/src/print_goal.rs+++ b/crates/pa-cli/src/print_goal.rs@@ -918,8 +918,6 @@ mod tests {rlm_subagent_host: None,rlm_depth: None,model_info: Some(model.clone()),- cli_extension_sources: Vec::new(),- extension_tool_allow_list: None,prewarm_ipython_kernel: None,on_background_work_settled: None,queued_goal_context_purge: None,@@ -1482,8 +1480,6 @@ mod tests {rlm_subagent_host: None,rlm_depth: None,model_info: Some(model.clone()),- cli_extension_sources: Vec::new(),- extension_tool_allow_list: None,prewarm_ipython_kernel: None,on_background_work_settled: None,queued_goal_context_purge: None,diff --git a/crates/pa-cli/src/print_runtime.rs b/crates/pa-cli/src/print_runtime.rsindex 93da47c11f..9fa75b6d20 100644--- a/crates/pa-cli/src/print_runtime.rs+++ b/crates/pa-cli/src/print_runtime.rs@@ -171,7 +171,6 @@ async fn try_daemon_attached_acp(options: &RunOptions) -> Option<i32> {for (key, paths) in [("skills", &config.skills),("promptTemplates", &config.prompt_templates),- ("extensions", &config.extensions),] {if !paths.is_empty() {create_config[key] = paths@@ -181,9 +180,6 @@ async fn try_daemon_attached_acp(options: &RunOptions) -> Option<i32> {.into();}}- if let Some(tools) = &config.tools {- create_config["tools"] = serde_json::json!(tools);- }if let Some(autonomous) = &config.autonomous {create_config["autonomous"] = serde_json::json!(autonomous_runtime_config(autonomous));}@@ -620,12 +616,6 @@ async fn build_headless_engine_with(rlm_subagent_host: None,rlm_depth: None,model_info: Some(model.clone()),- cli_extension_sources: config- .extensions- .iter()- .map(|path| path.display().to_string())- .collect(),- extension_tool_allow_list: config.tools.clone(),// TS print/headless sessions build through the same// `createDefaultRuntimeFactory` runtime (prewarmIpythonKernel:// true), so the kernel boots in the background at creation;@@ -1606,7 +1596,7 @@ async fn build_faux_engine_with(.get("reasoning").and_then(serde_json::Value::as_bool).unwrap_or(false);- // The script pins the context window (the TS faux-extension contract):+ // The script pins the context window (the harness contract):// threshold/overflow verifiers size it to the probe they run.let context_window = script.get("contextWindow")@@ -1673,12 +1663,6 @@ async fn build_faux_engine_with(rlm_subagent_host: None,rlm_depth: None,model_info: Some(model.clone()),- cli_extension_sources: config- .extensions- .iter()- .map(|path| path.display().to_string())- .collect(),- extension_tool_allow_list: config.tools.clone(),// The faux engine is a Rust-only verification harness, not a// product surface: no background kernel boot in tests.prewarm_ipython_kernel: None,diff --git a/crates/pa-cli/src/print_session_command.rs b/crates/pa-cli/src/print_session_command.rsindex 25f9c3052e..327bee6247 100644--- a/crates/pa-cli/src/print_session_command.rs+++ b/crates/pa-cli/src/print_session_command.rs@@ -375,8 +375,6 @@ mod tests {rlm_subagent_host: None,rlm_depth: None,model_info: Some(model.clone()),- cli_extension_sources: Vec::new(),- extension_tool_allow_list: None,prewarm_ipython_kernel: None,on_background_work_settled: None,queued_goal_context_purge: None,diff --git a/crates/pa-cli/src/self_update.rs b/crates/pa-cli/src/self_update.rsindex 5ac7b2437f..0f0baa5c7b 100644--- a/crates/pa-cli/src/self_update.rs+++ b/crates/pa-cli/src/self_update.rs@@ -31,8 +31,8 @@ pub fn settings_channel_wire_name(channel: pa_core::settings::UpdateChannel) ->/// The nightly-switch confirmation (TS `handlePackageCommand`'s update/// case): warn, then confirm the switch unless `--force`. Declining — or a-/// non-tty shell run without `--force` — changes nothing, not even-/// extensions. Returns the abort exit code (75 for the interactive update+/// non-tty shell run without `--force` — changes nothing. Returns the+/// abort exit code (75 for the interactive update/// child so the TUI can tell an aborted switch from a failure, else 1) when/// the run must stop, or `None` to proceed (also when no explicit nightly/// switch is requested).diff --git a/crates/pa-cli/tests/package_resources_e2e.rs b/crates/pa-cli/tests/package_resources_e2e.rsindex 6fd3c67252..06d2a3600b 100644--- a/crates/pa-cli/tests/package_resources_e2e.rs+++ b/crates/pa-cli/tests/package_resources_e2e.rs@@ -132,7 +132,6 @@ fn package_provided_skill_appears_in_created_session_skill_list() {"skills": [],"prompts": [],"themes": [],- "extensions": [],}]}));let (stdout, stderr, code) = run(&filtered, &script);assert_eq!(code, 0, "stderr: {stderr}");diff --git a/crates/pa-cli/tests/release_workflow.rs b/crates/pa-cli/tests/release_workflow.rsindex 3106964cc7..80d545cb39 100644--- a/crates/pa-cli/tests/release_workflow.rs+++ b/crates/pa-cli/tests/release_workflow.rs@@ -38,8 +38,7 @@//! beta-only, both - here one target, four targets, none) and skip with a//! logged reason where the box's python3 is below the floor the step//! scripts need (python 3.12: the merge step unpacks with-//! `extractall(filter=)`; the promote runner's ubuntu-24.04 provides it),-//! mirroring the extension-host tests' node guard.+//! `extractall(filter=)`; the promote runner's ubuntu-24.04 provides it).use std::fmt::Write as _;use std::fs;diff --git a/crates/pa-core/README.md b/crates/pa-core/README.mdindex 8e52ebc85f..08f6402a22 100644--- a/crates/pa-core/README.md+++ b/crates/pa-core/README.md@@ -23,7 +23,7 @@ logic of its own). The RLM recursion host seam`rlm.create_session`/`rlm.list_subagents`/`rlm.collect`/`rlm.delete_subagent` host requests call into, with the roster/collect/selector-error vocabulary the daemon implements over the supervisor link.-Platform wall (`platform`): process control (signals/process groups), file locking, file permissions, and shell selection - every OS-specific behavior in the engine lives there behind cfg-gated implementations (the durable-write rename primitive is pa-telemetry's `rename_onto`, re-exported as `platform::rename_onto`). Scheduled jobs (`cron`, the `AgentCronJobStore` port of `core/cron-jobs.ts`): file-backed job state under session artifacts (`scheduled-jobs.json` partitions) with cross-process locking, plus the public read-only scan (`cron::store::read_scheduled_jobs_artifact`) the update flow's roster projection and boot re-arm read. Tools (bash, edit, ipython + internal rename/stdout), file mutation queue, truncation and rendering rules, RLM kernel lifecycle (IPython spawn/execute/revive), skills loading, system prompt assembly, compaction, harness refinement, settings/config, package manager (npm/git/local source install/remove/list/update against settings, plus `resolve()`: precedence-ranked session resource resolution over configured packages, settings arrays, auto-discovery, and bundled skills), session manager (persist/resume). Extension host (stage 1: Node sidecar process lifecycle - spawn/handshake/ping/orderly shutdown, NDJSON RPC client + framing, host script materialized content-addressed under <agentDir>/extension-host/; stage 2: module loading with vendored jiti 2.7.0 + pi API/import shims in the sidecar, registration landing in the registry mirror (first-wins tools, command collision suffixing, flag/shortcut rules), the `ExtensionRunner` facade, extension tools bridged into the loop tool surface over `tool_execute` RPC, session-engine assembly with prompt-guideline injection). Extension-runner stages 3-6 are descoped (operator decision 2026-09-17); the landed stages 1-2 remain as harmless machinery. origin/main+Platform wall (`platform`): process control (signals/process groups), file locking, file permissions, and shell selection - every OS-specific behavior in the engine lives there behind cfg-gated implementations (the durable-write rename primitive is pa-telemetry's `rename_onto`, re-exported as `platform::rename_onto`). Scheduled jobs (`cron`, the `AgentCronJobStore` port of `core/cron-jobs.ts`): file-backed job state under session artifacts (`scheduled-jobs.json` partitions) with cross-process locking, plus the public read-only scan (`cron::store::read_scheduled_jobs_artifact`) the update flow's roster projection and boot re-arm read. Tools (bash, edit, ipython + internal rename/stdout), file mutation queue, truncation and rendering rules, RLM kernel lifecycle (IPython spawn/execute/revive), skills loading, system prompt assembly, compaction, harness refinement, settings/config, package manager (npm/git/local source install/remove/list/update against settings, plus `resolve()`: precedence-ranked session resource resolution over configured packages, settings arrays, auto-discovery, and bundled skills), session manager (persist/resume). origin/mainProvider resilience policies in `session_engine`: the shared quick-retrypolicy (TS `provider-retry.ts`: permanent-kind classification,@@ -48,15 +48,14 @@ renderer produces line-oriented output, ANSI converts to inline-styledHTML at the export step), and the two entry points(`export_session_to_html` for the daemon worker's `export_html`command, `export_from_file` for the CLI). Terminal theme rendering stays-pa-tui's; tool renderers live with the session's tool surface (extension-renderers cannot cross the sidecar);+pa-tui's; tool renderers live with the session's tool surface;the share-viewer flow (gist creation) is the caller's.## Non-goals-No provider HTTP (pa-ai), no loop policy (pa-agent), no daemon supervision (pa-daemon), no TUI (pa-tui). No update coordination (the pa-cli coordinator owns the FSM; the update-flow seam here is the daemon-free support layer: `update::version` (semver/channel policy), `update::install` (the managed install-root layout), `update::release` (the channel manifest fetch), `update::download` (sha256-verified archive download + staging)). Event emission at the session seams, ctx-action binding, slash-command dispatch at the product surface, and reload/stale-ctx semantics are design stages 3+; the package manager installs sources and resolves resource paths only.+No provider HTTP (pa-ai), no loop policy (pa-agent), no daemon supervision (pa-daemon), no TUI (pa-tui). No update coordination (the pa-cli coordinator owns the FSM; the update-flow seam here is the daemon-free support layer: `update::version` (semver/channel policy), `update::install` (the managed install-root layout), `update::release` (the channel manifest fetch), `update::download` (sha256-verified archive download + staging)). The package manager installs sources and resolves resource paths only.## Public API-`SessionEngine` (message in -> events out), `export_html` (the HTML exporter plus its renderer seam: `tools_section`, `pre_render_custom_tools` + `ToolHtmlRenderer`/`RenderedToolHtml`/`RenderedToolResult`, and `ansi_to_html::ansi_lines_to_html`/`tool_render::trim_rendered_result_lines` for renderer implementers), `ToolRegistry`, kernel manager, settings (`SettingsManager`), packages (`packages::PackageManager` + source types), extensions (`extensions::ExtensionRunner` + the sidecar RPC client + the registration registry), `platform` (process control, file locking, permissions, shell selection - usable by higher crates, e.g. pa-cli's detached spawn), `session_engine::rlm_host::RlmSubagentHost` (implemented by pa-daemon for supervisor-backed children; the default is no children), `mcp::McpManager` (the session's host-side MCP manager, exposed as `SessionEngine.mcp_manager`: auth gating for built-in integrations, the `mcpServers` setting seam, and the `mcp.*` host-request handlers - `mcp.config`/`mcp.refresh`/optional `mcp.begin_login` - the kernel's generic MCP client resolves through), `mcp::McpManager::connection_roster` + `mcp::McpConnectionEntry` (the `/mcp` view's roster: every resolved integration with its connected state, display kind, transport, and generic-listable flag), `mcp::McpManager::service_catalog_views` + `service_catalog_diagnostics` (the `/mcp` view's resolved service-catalog cards and their diagnostics, answered from local state - the TS `buildServiceCatalogViews` parity; the picker never round-trips the kernel), `models` (the registry and resolver, plus `models::order_for_picker`: the picker-catalog order the composition root applies to its snapshot), `session_engine::provider_adapter` (`switchable_stream_fn`/`ProviderTarget`: the live provider-target slot a host swaps on `set_model`; the adapter bridges the loop's abort into pa-ai's `StreamOptions::signal` cancellation token, so a turn abort cancels the in-flight HTTP fetch at the transport — closed by `ModelStream::close` and the stream's drop), `session_engine::ipython_state` (the post-compaction `ipython_state` kernel-persistence notice: the `CompactionKernelProbe` view of the kernel provisioner the engine wiring binds via `AgentSession::set_kernel_state_probe`, and the notice row that rides `CompactRun` for the surfaces to broadcast). `session_engine::session_commands` (the `/compact`/`/refine`/`/goal`/`/autonomous` executor: the durable echo/result rows with their persistence order - the echo ahead of the command so its own work sees it - the compaction/refinement/goal/autonomous arms, and the post-execution live-context rebuild that keeps the rows in the agent state; hosts own the wire surface), `session_engine::auto_refine_trigger` (the compact-trigger auto-refine machine on `AgentSession`: the arm/discard/increment accessors and `consume_compact_auto_refine`, the shared gate/review/stamp sequence every scheduling surface applies - TS `_compactAutoRefinePending`/`_lastAutoRefineReviewAt`/`_assistantTurnsSinceAutoRefine` plus `_maybeAutoRefine`'s compact arm, the serialized checkpoint's compact step, and dispose's serialized drain, with the surface parameter carrying the one behavioral difference between a boundary and a disposal). `session_engine::goal_boundary` (the goal arms of the natural turn end on `SessionEngine`: the `--goal` construction seed with its next-turn context row - TS `_pendingNextTurnMessages` on `AgentSession` - the usage accounting, the budget-limit steer mint, the natural continuation mint with its slot rollback, and the terminal-error finish; the transports - the print driver's in-loop hook, the ACP settle loop, the daemon worker's queue - drive the one goal driver through these methods). `SessionEngine::expand_skill_submission` + `AgentSession`'s prompt-path expansion (the `/skill:<name>` submission seam, TS `_expandSkillCommand`: `skills::expand_skill_command` builds the `<skill ...>` block over the shared `pa_types::skill_blocks` parse, the accepted-turn row and the admitted user message agree on the expanded text, and the `skill used` adoption event reports from the admission). All subsystem internals `pub(crate)`; the engine is the only facade - subsystems must not import each other directly (the package manager consumes the public settings API only).+`SessionEngine` (message in -> events out), `export_html` (the HTML exporter plus its renderer seam: `tools_section`, `pre_render_custom_tools` + `ToolHtmlRenderer`/`RenderedToolHtml`/`RenderedToolResult`, and `ansi_to_html::ansi_lines_to_html`/`tool_render::trim_rendered_result_lines` for renderer implementers), `ToolRegistry`, kernel manager, settings (`SettingsManager`), packages (`packages::PackageManager` + source types), `platform` (process control, file locking, permissions, shell selection - usable by higher crates, e.g. pa-cli's detached spawn), `session_engine::rlm_host::RlmSubagentHost` (implemented by pa-daemon for supervisor-backed children; the default is no children), `mcp::McpManager` (the session's host-side MCP manager, exposed as `SessionEngine.mcp_manager`: auth gating for built-in integrations, the `mcpServers` setting seam, and the `mcp.*` host-request handlers - `mcp.config`/`mcp.refresh`/optional `mcp.begin_login` - the kernel's generic MCP client resolves through), `mcp::McpManager::connection_roster` + `mcp::McpConnectionEntry` (the `/mcp` view's roster: every resolved integration with its connected state, display kind, transport, and generic-listable flag), `mcp::McpManager::service_catalog_views` + `service_catalog_diagnostics` (the `/mcp` view's resolved service-catalog cards and their diagnostics, answered from local state - the TS `buildServiceCatalogViews` parity; the picker never round-trips the kernel), `models` (the registry and resolver, plus `models::order_for_picker`: the picker-catalog order the composition root applies to its snapshot), `session_engine::provider_adapter` (`switchable_stream_fn`/`ProviderTarget`: the live provider-target slot a host swaps on `set_model`; the adapter bridges the loop's abort into pa-ai's `StreamOptions::signal` cancellation token, so a turn abort cancels the in-flight HTTP fetch at the transport — closed by `ModelStream::close` and the stream's drop), `session_engine::ipython_state` (the post-compaction `ipython_state` kernel-persistence notice: the `CompactionKernelProbe` view of the kernel provisioner the engine wiring binds via `AgentSession::set_kernel_state_probe`, and the notice row that rides `CompactRun` for the surfaces to broadcast). `session_engine::session_commands` (the `/compact`/`/refine`/`/goal`/`/autonomous` executor: the durable echo/result rows with their persistence order - the echo ahead of the command so its own work sees it - the compaction/refinement/goal/autonomous arms, and the post-execution live-context rebuild that keeps the rows in the agent state; hosts own the wire surface), `session_engine::auto_refine_trigger` (the compact-trigger auto-refine machine on `AgentSession`: the arm/discard/increment accessors and `consume_compact_auto_refine`, the shared gate/review/stamp sequence every scheduling surface applies - TS `_compactAutoRefinePending`/`_lastAutoRefineReviewAt`/`_assistantTurnsSinceAutoRefine` plus `_maybeAutoRefine`'s compact arm, the serialized checkpoint's compact step, and dispose's serialized drain, with the surface parameter carrying the one behavioral difference between a boundary and a disposal). `session_engine::goal_boundary` (the goal arms of the natural turn end on `SessionEngine`: the `--goal` construction seed with its next-turn context row - TS `_pendingNextTurnMessages` on `AgentSession` - the usage accounting, the budget-limit steer mint, the natural continuation mint with its slot rollback, and the terminal-error finish; the transports - the print driver's in-loop hook, the ACP settle loop, the daemon worker's queue - drive the one goal driver through these methods). `SessionEngine::expand_skill_submission` + `AgentSession`'s prompt-path expansion (the `/skill:<name>` submission seam, TS `_expandSkillCommand`: `skills::expand_skill_command` builds the `<skill ...>` block over the shared `pa_types::skill_blocks` parse, the accepted-turn row and the admitted user message agree on the expanded text, and the `skill used` adoption event reports from the admission). All subsystem internals `pub(crate)`; the engine is the only facade - subsystems must not import each other directly (the package manager consumes the public settings API only).## Depends onpa-types, pa-ai, pa-agent (one-way).diff --git a/crates/pa-core/src/export_html/tool_render.rs b/crates/pa-core/src/export_html/tool_render.rsindex 0152f42930..5924379f74 100644--- a/crates/pa-core/src/export_html/tool_render.rs+++ b/crates/pa-core/src/export_html/tool_render.rs@@ -166,7 +166,7 @@ pub fn pre_render_custom_tools(.unwrap_or_default();// TS: `existing || !TEMPLATE_RENDERED_TOOLS.has(toolName)` — a// template-rendered tool only renders when its call already did- // (e.g. an extension overriding the name).+ // (e.g. another tool overriding the name).let existing = rendered_tools.get(tool_call_id).cloned();if existing.is_none() && TEMPLATE_RENDERED_TOOLS.contains(&tool_name) {continue;diff --git a/crates/pa-core/src/extensions/client.rs b/crates/pa-core/src/extensions/client.rsdeleted file mode 100644index a93f03595b..0000000000--- a/crates/pa-core/src/extensions/client.rs+++ /dev/null@@ -1,571 +0,0 @@-//! RPC client half of the extension sidecar protocol (design stage 1).-//!-//! Owns correlation ids, request/response dispatch, notification fan-out, and-//! the reverse direction: ctx-action requests that extension code makes while-//! a handler runs (`sendMessage`, `exec`, ...), routed to a [`CtxCallHandler`]-//! on the Rust side so secrets and session state never cross to the sidecar-//! (design doc §2.3, §2.5).--use std::collections::HashMap;-use std::sync::atomic::{AtomicBool, AtomicU64, Ordering};-use std::sync::Arc;-use std::time::Duration;--use anyhow::{anyhow, Result};-use pa_types::extension_rpc::{- HostErrorReply, HostNotification, HostReply, HostRequest, RpcError, SidecarMessage,- METHOD_EXTENSION_ERROR, METHOD_REGISTRATION,-};-use serde_json::Value;-use tokio::io::{AsyncRead, AsyncReadExt, AsyncWrite, AsyncWriteExt};-use tokio::sync::{mpsc, oneshot, Mutex};-use tracing::{debug, warn};--use super::framing::{encode_line, LineDecoder, LineLimits};--/// One ctx-action call from extension code running in the sidecar.-#[derive(Debug, Clone)]-pub struct CtxCall {- /// Correlates the sidecar's request with the host's reply.- pub ctx_token: String,- pub method: String,- pub params: Value,-}--/// Answers [`CtxCall`]s from the sidecar. Runs on the Rust host: extension-/// code never receives secrets or live objects, only JSON results. Handlers-/// may be invoked concurrently (one call per in-flight extension handler) and-/// must be cheap or spawn their own work; a slow handler delays only the-/// extension that called it.-///-/// Boxed future instead of RPITIT because the host stores the handler as-/// `Arc<dyn CtxCallHandler>`; implementations return `async move { ... }.boxed()`.-pub trait CtxCallHandler: Send + Sync {- fn handle(&self, call: CtxCall)- -> futures::future::BoxFuture<'static, Result<Value, RpcError>>;-}--/// Notifications received from the sidecar, classified by method name.-#[derive(Debug, Clone)]-pub enum SidecarNotification {- /// `extension_error`: an error-boundary report (never fatal).- ExtensionError(pa_types::extension_rpc::ExtensionError),- /// `registration`: registrations changed after the handshake.- Registration(pa_types::extension_rpc::RegistrationNotification),- /// Any other notification, forwarded raw.- Other { method: String, params: Value },-}--type Pending = HashMap<u64, oneshot::Sender<Result<Value, RpcError>>>;--/// The host-side RPC client for one sidecar process incarnation.-pub struct RpcClient<W> {- writer: Mutex<W>,- pending: Mutex<Pending>,- next_id: AtomicU64,- notifications: mpsc::Sender<SidecarNotification>,- ctx_handler: Option<Arc<dyn CtxCallHandler>>,- alive: AtomicBool,- limits: LineLimits,-}--impl<W> RpcClient<W>-where- W: AsyncWrite + Unpin + Send + 'static,-{- pub fn new(- writer: W,- notifications: mpsc::Sender<SidecarNotification>,- ctx_handler: Option<Arc<dyn CtxCallHandler>>,- limits: LineLimits,- ) -> Arc<Self> {- Arc::new(RpcClient {- writer: Mutex::new(writer),- pending: Mutex::new(Pending::new()),- next_id: AtomicU64::new(1),- notifications,- ctx_handler,- alive: AtomicBool::new(true),- limits,- })- }-- pub fn is_alive(&self) -> bool {- self.alive.load(Ordering::SeqCst)- }-- /// Send a request and await its reply, bounded by `timeout`.- ///- /// # Errors- ///- /// Returns an error when the sidecar is not running, the request line- /// cannot be encoded or written, the sidecar replies with an RPC error or- /// stops before replying, or the reply does not arrive before `timeout`.- pub async fn request(- self: &Arc<Self>,- method: &str,- params: Value,- timeout: Duration,- ) -> Result<Value> {- if !self.is_alive() {- return Err(anyhow!("extension sidecar is not running"));- }- let id = self.next_id.fetch_add(1, Ordering::Relaxed);- let (tx, rx) = oneshot::channel();- self.pending.lock().await.insert(id, tx);- let line = encode_line(- &HostRequest {- id,- method: method.to_string(),- params,- },- self.limits,- )?;- if let Err(err) = self.write_line(line).await {- self.pending.lock().await.remove(&id);- self.mark_dead(&err.to_string()).await;- return Err(err.context("write extension RPC request"));- }- match tokio::time::timeout(timeout, rx).await {- Ok(Ok(Ok(value))) => Ok(value),- Ok(Ok(Err(rpc))) => Err(anyhow!(- "extension RPC call '{method}' failed: {}",- rpc.message- )),- Ok(Err(_dropped)) => Err(anyhow!(- "extension sidecar stopped while '{method}' was in flight"- )),- Err(_elapsed) => {- self.pending.lock().await.remove(&id);- Err(anyhow!(- "extension RPC call '{method}' timed out after {}ms",- timeout.as_millis()- ))- }- }- }-- /// Send a notification (no reply expected).- ///- /// # Errors- ///- /// Returns an error when the notification line cannot be encoded or- /// written to the sidecar.- pub async fn notify(self: &Arc<Self>, method: &str, params: Value) -> Result<()> {- let line = encode_line(- &HostNotification {- method: method.to_string(),- params,- },- self.limits,- )?;- if let Err(err) = self.write_line(line).await {- self.mark_dead(&err.to_string()).await;- return Err(err.context("write extension RPC notification"));- }- Ok(())- }-- async fn write_line(&self, line: Vec<u8>) -> Result<()> {- let mut writer = self.writer.lock().await;- writer.write_all(&line).await?;- writer.flush().await?;- Ok(())- }-- async fn reply_ctx(self: &Arc<Self>, reply: impl serde::Serialize) {- let line = match encode_line(&reply, self.limits) {- Ok(line) => line,- Err(err) => {- warn!(target: "extension_host", "cannot encode ctx reply: {err:#}");- return;- }- };- if let Err(err) = self.write_line(line).await {- // The sidecar is gone; its handler promise dies with it.- debug!(target: "extension_host", "ctx reply write failed: {err:#}");- }- }-- /// Fail every in-flight request with `error`. Idempotent: exactly one- /// caller wins the `alive` swap per incarnation.- pub(crate) async fn mark_dead(&self, error: &str) {- if !self.alive.swap(false, Ordering::SeqCst) {- return;- }- let mut pending = self.pending.lock().await;- for (_, sender) in pending.drain() {- let _ = sender.send(Err(RpcError::message(format!(- "extension sidecar stopped: {error}"- ))));- }- }-- async fn dispatch(self: &Arc<Self>, message: SidecarMessage) {- match message {- SidecarMessage::Response { id, result, error } => {- let mut pending = self.pending.lock().await;- match pending.remove(&id) {- Some(sender) => {- let outcome = match error {- Some(error) => Err(error),- None => Ok(result.unwrap_or(Value::Null)),- };- let _ = sender.send(outcome);- }- None => {- debug!(target: "extension_host", "orphan response for request {id}");- }- }- }- SidecarMessage::Request {- ctx_token,- method,- params,- } => {- let client = Arc::clone(self);- tokio::spawn(async move {- let outcome = match &client.ctx_handler {- Some(handler) => {- handler- .handle(CtxCall {- ctx_token: ctx_token.clone(),- method: method.clone(),- params,- })- .await- }- None => Err(not_bound(&method)),- };- match outcome {- Ok(result) => client.reply_ctx(HostReply { ctx_token, result }).await,- Err(error) => client.reply_ctx(HostErrorReply { ctx_token, error }).await,- }- });- }- SidecarMessage::Notification { method, params } => {- let notification = classify_notification(method.as_str(), params);- if self.notifications.send(notification).await.is_err() {- debug!(- target: "extension_host",- "no event listener for sidecar notification; dropping"- );- }- }- }- }-- /// Pump the sidecar's stdout until EOF or a protocol violation. Returns- /// only on death: `Err` carries the reason (EOF included). Process-- /// lifecycle reactions to the return belong to the caller.- ///- /// # Errors- ///- /// Returns an error carrying the reason for the death: the sidecar- /// closed the connection, reading its stdout failed, it violated the line- /// protocol, or it sent an unparsable line.- pub async fn read_loop<R>(self: &Arc<Self>, reader: R) -> Result<()>- where- R: AsyncRead + Unpin,- {- let mut reader = reader;- let mut decoder = LineDecoder::new(self.limits);- let mut chunk = [0u8; 16 * 1024];- loop {- let read = reader.read(&mut chunk).await;- let bytes = match read {- Ok(0) => {- self.mark_dead("stdout closed").await;- return Err(anyhow!("extension sidecar closed the connection"));- }- Ok(n) => &chunk[..n],- Err(err) => {- self.mark_dead(&err.to_string()).await;- return Err(anyhow!("reading extension sidecar stdout: {err}"));- }- };- let lines = match decoder.feed(bytes) {- Ok(lines) => lines,- Err(err) => {- self.mark_dead(&err.to_string()).await;- return Err(err.context("extension sidecar protocol violated"));- }- };- for line in lines {- let message: SidecarMessage = match serde_json::from_str(&line) {- Ok(message) => message,- Err(err) => {- self.mark_dead(&err.to_string()).await;- let excerpt: String = line.chars().take(120).collect();- return Err(anyhow!(- "extension sidecar sent an unparsable line ({err}): {excerpt}"- ));- }- };- self.dispatch(message).await;- }- }- }-}--fn classify_notification(method: &str, params: Value) -> SidecarNotification {- match method {- METHOD_EXTENSION_ERROR => match serde_json::from_value(params) {- Ok(error) => SidecarNotification::ExtensionError(error),- Err(err) => SidecarNotification::Other {- method: method.to_string(),- params: Value::String(err.to_string()),- },- },- METHOD_REGISTRATION => match serde_json::from_value(params) {- Ok(registration) => SidecarNotification::Registration(registration),- Err(err) => SidecarNotification::Other {- method: method.to_string(),- params: Value::String(err.to_string()),- },- },- _ => SidecarNotification::Other {- method: method.to_string(),- params,- },- }-}--fn not_bound(method: &str) -> RpcError {- RpcError::message(format!(- "Extension ctx action '{method}' is not bound in this session \- (the extension runtime actions are not integrated yet)"- ))-}--#[cfg(test)]-mod tests {- use super::*;- use futures::FutureExt;- use pa_types::extension_rpc::ExtensionError;- use serde_json::json;- use std::time::Duration;- use tokio::io::duplex;- use tokio::io::{AsyncBufReadExt, AsyncWriteExt, BufReader};-- type Duplex = tokio::io::DuplexStream;-- /// Drive one RPC request concurrently with the fake sidecar. The- /// request future only writes its line once polled, so tests that- /// first read the line must run the request as its own task.- fn spawn_request(- client: &Arc<RpcClient<Duplex>>,- method: &'static str,- params: Value,- timeout: Duration,- ) -> tokio::task::JoinHandle<Result<Value>> {- let client = Arc::clone(client);- tokio::spawn(async move { client.request(method, params, timeout).await })- }-- /// Client with both directions wired to a fake sidecar's ends and the- /// read loop already pumping. Returns the fake sidecar's read end- /// (lines the client writes) and write end (lines the sidecar sends).- fn spawn_client(- ctx_handler: Option<Arc<dyn CtxCallHandler>>,- ) -> (- Arc<RpcClient<Duplex>>,- Duplex,- Duplex,- mpsc::Receiver<SidecarNotification>,- ) {- let (host_to_sidecar, sidecar_reads) = duplex(64 * 1024);- let (sidecar_writes, sidecar_to_host) = duplex(64 * 1024);- let (tx, rx) = mpsc::channel(16);- let client: Arc<RpcClient<Duplex>> =- RpcClient::new(host_to_sidecar, tx, ctx_handler, LineLimits::default());- let pump = Arc::clone(&client);- tokio::spawn(async move {- let _ = pump.read_loop(sidecar_to_host).await;- });- (client, sidecar_reads, sidecar_writes, rx)- }-- async fn read_line(reader: &mut Duplex) -> Value {- let mut line = String::new();- let mut buf = BufReader::new(reader);- assert!(buf.read_line(&mut line).await.unwrap() > 0);- serde_json::from_str(line.trim()).unwrap()- }-- async fn write_line_raw(writer: &mut Duplex, value: Value) {- writer- .write_all(format!("{value}\n").as_bytes())- .await- .unwrap();- }-- #[tokio::test]- async fn request_response_roundtrip() {- let (client, mut reads, mut writes, _events) = spawn_client(None);- let request = spawn_request(&client, "ping", json!({"a": 1}), Duration::from_secs(5));- let msg = read_line(&mut reads).await;- let reply = json!({"id": msg["id"], "result": {"echo": msg["params"]}});- write_line_raw(&mut writes, reply).await;- let result = request.await.unwrap().unwrap();- assert_eq!(result, json!({"echo": {"a": 1}}));- }-- #[tokio::test]- async fn error_response_shape() {- let (client, mut reads, mut writes, _events) = spawn_client(None);- let request = spawn_request(&client, "hello", json!({}), Duration::from_secs(5));- let msg = read_line(&mut reads).await;- write_line_raw(- &mut writes,- json!({"id": msg["id"], "error": {"message": "boom", "stack": "at x"}}),- )- .await;- let err = request.await.unwrap().unwrap_err();- assert!(err.to_string().contains("failed: boom"), "got: {err}");- assert!(client.is_alive());- }-- #[tokio::test]- async fn timeout_leaves_client_alive() {- let (client, _reads, _writes, _events) = spawn_client(None);- let err = client- .request("ping", json!({}), Duration::from_millis(50))- .await- .unwrap_err();- assert!(err.to_string().contains("timed out"), "got: {err}");- assert!(client.is_alive());- }-- #[tokio::test]- async fn sidecar_death_fails_pending_requests() {- let (client, _reads, writes, _events) = spawn_client(None);- let request = client.request("ping", json!({}), Duration::from_secs(5));- drop(writes); // sidecar exits: stdout closes- let err = request.await.unwrap_err();- assert!(- err.to_string().contains("extension sidecar stopped"),- "got: {err}"- );- assert!(!client.is_alive());- }-- #[tokio::test]- async fn unparsable_line_kills_the_connection() {- let (client, _reads, mut writes, _events) = spawn_client(None);- let request = client.request("ping", json!({}), Duration::from_secs(5));- writes.write_all(b"this is not json\n").await.unwrap();- let err = request.await.unwrap_err();- assert!(- err.to_string().contains("extension sidecar stopped"),- "got: {err}"- );- assert!(!client.is_alive());- }-- struct RecordingCtx(Arc<std::sync::Mutex<Vec<CtxCall>>>);- impl CtxCallHandler for RecordingCtx {- fn handle(- &self,- call: CtxCall,- ) -> futures::future::BoxFuture<'static, Result<Value, RpcError>> {- let seen = Arc::clone(&self.0);- async move {- seen.lock().unwrap().push(call);- Ok(json!({"systemPrompt": "test prompt"}))- }- .boxed()- }- }-- #[tokio::test]- async fn ctx_request_routed_to_handler_and_replied() {- let recorder = Arc::new(RecordingCtx(Arc::new(std::sync::Mutex::new(Vec::new()))));- let (client, mut reads, mut writes, _events) =- spawn_client(Some(Arc::clone(&recorder) as Arc<dyn CtxCallHandler>));- // The fake sidecar answers the pending request only after making a- // ctx call of its own, exercising the reverse direction.- let request = spawn_request(- &client,- "event",- json!({"type": "x"}),- Duration::from_secs(5),- );- let msg = read_line(&mut reads).await;- write_line_raw(- &mut writes,- json!({"ctxToken": "ctx-1", "method": "get_system_prompt", "params": {}}),- )- .await;- let reply = read_line(&mut reads).await;- assert_eq!(- reply,- json!({"ctxToken": "ctx-1", "result": {"systemPrompt": "test prompt"}})- );- write_line_raw(&mut writes, json!({"id": msg["id"], "result": null})).await;- request.await.unwrap().unwrap();- let seen = recorder.0.lock().unwrap();- assert_eq!(seen.len(), 1);- assert_eq!(seen[0].method, "get_system_prompt");- assert_eq!(seen[0].ctx_token, "ctx-1");- }-- #[tokio::test]- async fn ctx_request_without_handler_gets_not_bound_error() {- let (client, mut reads, mut writes, _events) = spawn_client(None);- let request = spawn_request(- &client,- "event",- json!({"type": "x"}),- Duration::from_secs(5),- );- let msg = read_line(&mut reads).await;- write_line_raw(- &mut writes,- json!({"ctxToken": "ctx-9", "method": "send_message", "params": {}}),- )- .await;- let reply = read_line(&mut reads).await;- assert_eq!(reply["ctxToken"], "ctx-9");- let error = reply["error"].as_object().unwrap();- assert!(error["message"].as_str().unwrap().contains("not bound"));- write_line_raw(&mut writes, json!({"id": msg["id"], "result": null})).await;- request.await.unwrap().unwrap();- }-- #[tokio::test]- async fn notifications_are_classified() {- let (client, _reads, mut writes, mut events) = spawn_client(None);- write_line_raw(- &mut writes,- json!({- "method": "extension_error",- "params": {"extensionPath": "a.ts", "event": "session_start", "error": "boom"}- }),- )- .await;- write_line_raw(- &mut writes,- json!({"method": "mystery", "params": {"x": 1}}),- )- .await;- match events.recv().await.unwrap() {- SidecarNotification::ExtensionError(ExtensionError {- extension_path,- event,- error,- ..- }) => {- assert_eq!(extension_path, "a.ts");- assert_eq!(event, "session_start");- assert_eq!(error, "boom");- }- other => panic!("expected ExtensionError, got {other:?}"),- }- match events.recv().await.unwrap() {- SidecarNotification::Other { method, .. } => assert_eq!(method, "mystery"),- other => panic!("expected Other, got {other:?}"),- }- drop(client);- }-}diff --git a/crates/pa-core/src/extensions/framing.rs b/crates/pa-core/src/extensions/framing.rsdeleted file mode 100644index 711fac1b21..0000000000--- a/crates/pa-core/src/extensions/framing.rs+++ /dev/null@@ -1,230 +0,0 @@-//! NDJSON line framing for the extension sidecar RPC.-//!-//! The private protocol: one JSON-//! object per line over the sidecar's stdio, both directions. This module owns-//! the byte level: line encoding, incremental decoding, and size limits.--use anyhow::{anyhow, Context, Result};-use serde::Serialize;--/// Default cap for a single protocol line. Event payloads can be large (the-/// `context` event carries the whole message list), so this mirrors the-/// daemon frame limits' order of magnitude rather than a small RPC cap.-pub const DEFAULT_MAX_LINE_BYTES: usize = 256 * 1024 * 1024;--#[derive(Debug, Clone, Copy, PartialEq, Eq)]-pub struct LineLimits {- pub max_line_bytes: usize,-}--impl Default for LineLimits {- fn default() -> Self {- LineLimits {- max_line_bytes: DEFAULT_MAX_LINE_BYTES,- }- }-}--/// Serialize one protocol message as an NDJSON line (trailing `\n` included).-///-/// # Errors-///-/// Returns an error when the message cannot be serialized as JSON or the-/// encoded line exceeds `limits.max_line_bytes`.-pub fn encode_line<T: Serialize + ?Sized>(message: &T, limits: LineLimits) -> Result<Vec<u8>> {- let mut bytes = serde_json::to_vec(message).context("serialize extension RPC message")?;- if bytes.len() + 1 > limits.max_line_bytes {- return Err(anyhow!(- "extension RPC message exceeds the line limit: {} bytes",- bytes.len()- ));- }- bytes.push(b'\n');- Ok(bytes)-}--/// Incremental NDJSON decoder: feed raw socket/pipe chunks, drain complete-/// lines. Rejects oversized partial lines and invalid UTF-8.-#[derive(Debug)]-pub struct LineDecoder {- buffer: Vec<u8>,- limits: LineLimits,-}--impl LineDecoder {- #[must_use]- pub fn new(limits: LineLimits) -> Self {- LineDecoder {- buffer: Vec::new(),- limits,- }- }-- /// Bytes buffered waiting for a newline.- #[must_use]- pub fn buffered_bytes(&self) -> usize {- self.buffer.len()- }-- /// Feed one chunk and return every complete line it produced (plus any- /// completed by previously buffered bytes). Empty lines are skipped.- ///- /// # Errors- ///- /// Returns an error when a completed line is not valid UTF-8, or when the- /// unterminated buffered bytes exceed `limits.max_line_bytes`. An error- /// means the stream is corrupt: the decoder is not fed again.- pub fn feed(&mut self, chunk: &[u8]) -> Result<Vec<String>> {- // The buffer keeps only the newline-free tail of earlier feeds, so only- // the new bytes can hold a newline: a long line arriving in small- // chunks is scanned once, not once per chunk.- let mut scan_from = self.buffer.len();- self.buffer.extend_from_slice(chunk);- let mut lines = Vec::new();- // Consume by offset and drain once per feed: a drain per line would- // shift the remaining bytes each time.- let mut consumed = 0;- while let Some(rel) = self.buffer[scan_from..].iter().position(|&b| b == b'\n') {- let end = scan_from + rel;- let line = &self.buffer[consumed..end];- let line = line.strip_suffix(b"\r").unwrap_or(line);- consumed = end + 1;- scan_from = consumed;- if line.is_empty() {- continue;- }- match std::str::from_utf8(line) {- Ok(line) => lines.push(line.to_owned()),- Err(err) => {- self.buffer.drain(..consumed);- return Err(anyhow!("extension RPC line is not valid UTF-8: {err}"));- }- }- }- self.buffer.drain(..consumed);- if self.buffer.len() > self.limits.max_line_bytes {- return Err(anyhow!(- "extension RPC line exceeds the line limit: {} bytes without a newline",- self.buffer.len()- ));- }- Ok(lines)- }-}--#[cfg(test)]-mod tests {- use super::*;- use proptest::prelude::*;- use proptest::test_runner::RngSeed;- use serde_json::json;-- fn limits(max: usize) -> LineLimits {- LineLimits {- max_line_bytes: max,- }- }-- #[test]- fn encode_appends_newline() {- let out = encode_line(&json!({"id": 1}), LineLimits::default()).unwrap();- let mut expected = br#"{"id":1}"#.to_vec();- expected.push(b'\n');- assert_eq!(out, expected);- }-- #[test]- fn encode_rejects_oversized_messages() {- let big = "x".repeat(10);- let err = encode_line(&json!({"data": big}), limits(8)).unwrap_err();- assert!(err.to_string().contains("line limit"));- }-- #[test]- fn decoder_rejects_oversized_partial_line() {- let mut dec = LineDecoder::new(limits(4));- let err = dec.feed(b"aaaaaaaa").unwrap_err();- assert!(err.to_string().contains("line limit"));- }-- #[test]- fn decoder_rejects_invalid_utf8() {- let mut dec = LineDecoder::new(LineLimits::default());- let err = dec.feed(&[0xff, b'\n']).unwrap_err();- assert!(err.to_string().contains("UTF-8"));- }-- #[test]- fn decoder_scans_a_long_line_once_across_small_chunks() {- // 4 MiB in 1 KiB feeds: rescanning the buffered prefix per feed scans- // ~8.6 GB (~14 s in a debug build); one pass scans 4 MiB.- let line = "x".repeat(4 * 1024 * 1024);- let payload = format!("{line}\r\n{{\"id\":2}}\n");- let mut dec = LineDecoder::new(LineLimits::default());- let started = std::time::Instant::now();- let mut lines = Vec::new();- for chunk in payload.as_bytes().chunks(1024) {- lines.extend(dec.feed(chunk).unwrap());- }- let elapsed = started.elapsed();- assert_eq!(lines, vec![line, "{\"id\":2}".to_string()]);- assert_eq!(dec.buffered_bytes(), 0);- assert!(- elapsed < std::time::Duration::from_secs(2),- "4 MiB line took {elapsed:?}"- );- }-- // Any chunk partition decodes like `str::split('\n')`: one trailing `\r`- // stripped per line, blank lines dropped, the last segment buffered.- // Invalid UTF-8 and small byte limits stay with the example tests.- proptest! {- #![proptest_config(ProptestConfig {- rng_seed: RngSeed::Fixed(0x4652_414d),- ..ProptestConfig::default()- })]-- #[test]- fn chunked_feeds_decode_like_split_lines(- lines in prop::collection::vec((prop_oneof![- 4 => "[a-z{}\":, 界🙂\r]{0,24}",- 1 => "[a-z界]{1,8}".prop_map(|unit| unit.repeat(4096)),- ], "\n|\r\n"), 0..16),- tail in "[a-z界\r]{0,16}",- cuts in prop::collection::vec((any::<prop::sample::Index>(), any::<bool>()), 0..24),- ) {- let text: String = lines- .iter()- .map(|(line, end)| format!("{line}{end}"))- .chain([tail])- .collect();- let newlines: Vec<usize> = text.match_indices('\n').map(|(at, _)| at).collect();- // Flagged cuts land on a `\n` byte: they split CRLF and line ends.- let mut edges: Vec<usize> = cuts- .iter()- .map(|(index, on_newline)| {- if *on_newline && !newlines.is_empty() {- newlines[index.index(newlines.len())]- } else {- index.index(text.len() + 1)- }- })- .chain([0, text.len()])- .collect();- edges.sort_unstable();- let mut decoder = LineDecoder::new(LineLimits::default());- let mut decoded = Vec::new();- for window in edges.windows(2) {- decoded.extend(decoder.feed(&text.as_bytes()[window[0]..window[1]]).unwrap());- }- let mut segments = text.split('\n');- let tail = segments.next_back().unwrap();- let expected: Vec<&str> = segments- .map(|segment| segment.strip_suffix('\r').unwrap_or(segment))- .filter(|line| !line.is_empty())- .collect();- prop_assert_eq!(decoded, expected);- prop_assert_eq!(decoder.buffered_bytes(), tail.len());- }- }-}diff --git a/crates/pa-core/src/extensions/host.rs b/crates/pa-core/src/extensions/host.rsdeleted file mode 100644index 22f8c9c2d5..0000000000--- a/crates/pa-core/src/extensions/host.rs+++ /dev/null@@ -1,416 +0,0 @@-//! Extension sidecar process lifecycle (design doc stage 1): locate and-//! spawn `node` with the host script, run the protocol-1 `hello` handshake-//! over [`RpcClient`], ping health checks, and orderly shutdown-//! (§2.4: send `shutdown`, wait briefly, then kill). The sidecar is killed-//! with the rest of the process tree when this host is dropped without a-//! shutdown.-//!-//! Restart/backoff (§2.4) is deliberately absent in stage 1: the caller-//! observes death through `is_alive()` and the notifications channel, and-//! spawns a fresh host when it needs one. The session-engine seam that-//! decides *when* to restart is a later stage.--use std::path::PathBuf;-use std::sync::Arc;-use std::time::Duration;--use anyhow::{anyhow, Context, Result};-use pa_types::extension_rpc::{- EventParams, HelloParams, HelloResult, ShutdownParams, ToolExecuteParams, ToolExecuteResult,- EXTENSION_HOST_NODE_MAJOR_FLOOR, EXTENSION_RPC_PROTOCOL, METHOD_EVENT, METHOD_HELLO,- METHOD_PING, METHOD_SHUTDOWN, METHOD_TOOL_EXECUTE,-};-use pa_types::JsonMap;-use serde_json::Value;-use tokio::process::{Child, ChildStdin};-use tokio::sync::mpsc;-use tracing::{debug, warn};--use super::client::{CtxCallHandler, RpcClient, SidecarNotification};-use super::framing::LineLimits;-use super::script::materialize_host_script;--/// Timeouts for the sidecar lifecycle. Settings-owned defaults arrive with-/// the session-engine seam; these are the generous load-time defaults-/// (design doc §2.4).-#[derive(Debug, Clone, Copy)]-pub struct HostTimeouts {- /// `hello` handshake (includes stage-2 module loading).- pub hello: Duration,- /// Per-RPC request timeout (`ping`, `event` dispatch).- pub rpc: Duration,- /// How long `shutdown` waits for the exit before killing.- pub shutdown_wait: Duration,-}--impl Default for HostTimeouts {- fn default() -> Self {- HostTimeouts {- hello: Duration::from_secs(30),- rpc: Duration::from_secs(30),- shutdown_wait: Duration::from_secs(10),- }- }-}--/// Which host script the sidecar runs.-#[derive(Debug, Clone)]-pub enum HostScript {- /// The bundled stage-1 script, materialized content-addressed under- /// `<agent_dir>/extension-host/` ([`materialize_host_script`]).- Bundled,- /// A specific host script on disk (integration tests; the stage-2 jiti- /// bundle installs the same way).- At(PathBuf),-}--/// Everything needed to spawn one sidecar incarnation.-#[derive(Clone)]-pub struct ExtensionHostSpec {- /// The `node` binary to run. Not probed for version here: the host- /// script checks the major-version floor in the handshake so the- /// failure surfaces with a clear protocol message.- pub node: PathBuf,- pub cwd: PathBuf,- pub agent_dir: PathBuf,- pub script: HostScript,- /// Resolved extension paths (discovery runs in Rust; §1.1). Empty in- /// stage 1 - the bundled script loads nothing yet.- pub extension_paths: Vec<String>,- /// CLI flag values that override registered defaults.- pub flag_values: JsonMap,- /// Answers ctx-action calls the sidecar makes while a handler runs.- /// `None` rejects every ctx action with a `not bound` error.- pub ctx_handler: Option<Arc<dyn CtxCallHandler>>,- pub timeouts: HostTimeouts,-}--impl ExtensionHostSpec {- pub fn new(cwd: impl Into<PathBuf>, agent_dir: impl Into<PathBuf>) -> Self {- ExtensionHostSpec {- node: PathBuf::from("node"),- cwd: cwd.into(),- agent_dir: agent_dir.into(),- script: HostScript::Bundled,- extension_paths: Vec::new(),- flag_values: JsonMap::new(),- ctx_handler: None,- timeouts: HostTimeouts::default(),- }- }-}--/// One live extension sidecar: the child process plus its RPC client. The-/// read loop and stderr drain are spawned by [`ExtensionHost::start`].-pub struct ExtensionHost {- client: Arc<RpcClient<ChildStdin>>,- /// Taken by [`ExtensionHost::shutdown`]; a host dropped while the child- /// is still set kills the process group (§2.4 crash isolation).- child: Option<Child>,- notifications: Option<mpsc::Receiver<SidecarNotification>>,- timeouts: HostTimeouts,- /// The handshake result: the registrations the load produced, and the- /// per-path load errors (never fatal).- hello: HelloResult,-}--impl ExtensionHost {- /// Spawn the sidecar and complete the protocol-1 `hello` handshake.- /// On handshake failure the freshly spawned child is killed before- /// the error propagates (nothing leaks a live sidecar).- ///- /// # Errors- ///- /// Returns an error when the host script cannot be materialized or is- /// missing, the sidecar cannot be spawned (e.g. the Node binary is not- /// found), its stdio cannot be piped, the `hello` params or reply cannot- /// be (de)serialized, the handshake request fails, or the sidecar speaks- /// a different protocol version.- #[tracing::instrument(- skip_all,- fields(cwd = %spec.cwd.display(), agent_dir = %spec.agent_dir.display())- )]- pub async fn start(spec: ExtensionHostSpec) -> Result<ExtensionHost> {- let script_path = match &spec.script {- HostScript::Bundled => materialize_host_script(&spec.agent_dir)?,- HostScript::At(path) => path.clone(),- };- if !script_path.is_file() {- return Err(anyhow!(- "extension host script not found: {}",- script_path.display()- ));- }- let mut command = tokio::process::Command::new(&spec.node);- command- .arg(&script_path)- .stdin(std::process::Stdio::piped())- .stdout(std::process::Stdio::piped())- .stderr(std::process::Stdio::piped())- .kill_on_drop(true);- // Own process group: a hung sidecar is killed together with any- // descendants it spawns (stage-2 jiti workers).- crate::platform::set_new_process_group(command.as_std_mut());- let mut child = match command.spawn() {- Ok(child) => child,- Err(error) if error.kind() == std::io::ErrorKind::NotFound => {- return Err(anyhow!(- "node not found at '{}' (the extension host requires Node >= {EXTENSION_HOST_NODE_MAJOR_FLOOR})",- spec.node.display()- ));- }- Err(error) => {- return Err(anyhow!(- "spawning extension host `{} {}`: {error}",- spec.node.display(),- script_path.display()- ));- }- };- let stdin = child- .stdin- .take()- .context("extension host stdin was not piped")?;- let stdout = child- .stdout- .take()- .context("extension host stdout was not piped")?;- let stderr = child- .stderr- .take()- .context("extension host stderr was not piped")?;- drain_stderr(stderr);- let (notifications_tx, notifications) = mpsc::channel(64);- let client = RpcClient::new(- stdin,- notifications_tx,- spec.ctx_handler.clone(),- LineLimits::default(),- );- let pump = Arc::clone(&client);- tokio::spawn(async move {- // Only the death reason matters here; the caller observes it- // through request errors and `is_alive`.- let _ = pump.read_loop(stdout).await;- });-- let hello_params = serde_json::to_value(HelloParams {- protocol: EXTENSION_RPC_PROTOCOL,- cwd: spec.cwd.to_string_lossy().into_owned(),- agent_dir: spec.agent_dir.to_string_lossy().into_owned(),- extension_paths: spec.extension_paths.clone(),- flag_values: spec.flag_values.clone(),- })- .context("serializing extension host hello params")?;- let handshake = client- .request(METHOD_HELLO, hello_params, spec.timeouts.hello)- .await- .context("extension host handshake failed")?;- let hello: HelloResult =- serde_json::from_value(handshake).context("parsing extension host hello result")?;- if hello.protocol != EXTENSION_RPC_PROTOCOL {- return Err(anyhow!(- "extension host protocol mismatch: sidecar speaks {}, this build speaks {}",- hello.protocol,- EXTENSION_RPC_PROTOCOL- ));- }- for error in &hello.errors {- debug!(- target: "extension_host",- "extension load error ({}): {}",- error.path,- error.error- );- }- Ok(ExtensionHost {- client,- child: Some(child),- notifications: Some(notifications),- timeouts: spec.timeouts,- hello,- })- }-- /// The `hello` handshake result: registrations as loaded, plus- /// per-path load errors (the stage-2 registration landing).- #[must_use]- pub fn hello(&self) -> &HelloResult {- &self.hello- }-- /// The RPC client half: shared so bridged extension tools can execute- /// over the same connection while the host owns the process.- pub(crate) fn client(&self) -> &Arc<RpcClient<ChildStdin>> {- &self.client- }-- /// Whether the RPC side is still usable (§2.4: death never crashes the- /// session; emits degrade to no-ops and requests fail fast).- #[must_use]- pub fn is_alive(&self) -> bool {- self.client.is_alive()- }-- pub fn pid(&self) -> Option<u32> {- self.child.as_ref().and_then(Child::id)- }-- /// Sidecar notifications (`extension_error`, registration changes) in- /// arrival order. Dropping this receiver makes the sidecar's- /// notifications fall on the floor; hold it for the session lifetime.- ///- /// # Panics- ///- /// Panics when called more than once.- pub fn take_notifications(&mut self) -> mpsc::Receiver<SidecarNotification> {- self.notifications- .take()- .expect("notifications are taken exactly once")- }-- /// Liveness probe.- ///- /// # Errors- ///- /// Returns an error when the sidecar is not running, the ping request- /// fails or times out, or the reply is invalid.- pub async fn ping(&self) -> Result<Value> {- self.client- .request(METHOD_PING, Value::Null, self.timeouts.rpc)- .await- }-- /// Dispatch one extension event; the reply carries the accumulated- /// handler result (stage-1 scripts have no handlers, so `null`).- ///- /// # Errors- ///- /// Returns an error when the event params cannot be serialized or the- /// RPC request fails (sidecar dead, RPC error, or timeout).- pub async fn emit_event(&self, event_type: &str, payload: Value) -> Result<Value> {- let params = serde_json::to_value(EventParams {- event_id: uuid::Uuid::new_v4().to_string(),- event_type: event_type.to_string(),- payload,- })- .context("serializing extension event params")?;- self.client- .request(METHOD_EVENT, params, self.timeouts.rpc)- .await- }-- /// Execute one registered extension tool over the RPC (design doc §2.3- /// `tool_execute`); the sidecar streams `tool_update` notifications while- /// the tool runs, then replies with the final result.- ///- /// # Errors- ///- /// Returns an error when the tool params cannot be serialized, the RPC- /// request fails, or the reply cannot be parsed as a tool result.- pub async fn execute_tool(- &self,- tool_call_id: &str,- tool_name: &str,- args: Value,- ) -> Result<ToolExecuteResult> {- let params = serde_json::to_value(ToolExecuteParams {- tool_call_id: tool_call_id.to_string(),- tool_name: tool_name.to_string(),- args,- })- .context("serializing extension tool execute params")?;- let result = self- .client- .request(METHOD_TOOL_EXECUTE, params, self.timeouts.rpc)- .await- .context("extension tool execution failed")?;- serde_json::from_value(result).context("parsing extension tool result")- }-- /// Orderly shutdown (§2.4): send `shutdown`, wait briefly, then kill the- /// process group. Returns when the child is reaped, however it died.- ///- /// # Errors- ///- /// Returns an error only when waiting for the child fails: reaping its- /// exit status after a natural exit or after the kill times out. A- /// sidecar that ignores or rejects the `shutdown` request is killed and- /// reported as success.- ///- /// # Panics- ///- /// Panics when called more than once (the child handle is taken only by- /// shutdown).- #[tracing::instrument(skip_all, fields(pid = self.pid()))]- pub async fn shutdown(mut self, reason: &str) -> Result<()> {- let request = self- .client- .request(- METHOD_SHUTDOWN,- serde_json::to_value(ShutdownParams {- reason: reason.to_string(),- })- .context("serializing shutdown params")?,- self.timeouts.shutdown_wait,- )- .await;- if let Err(error) = request {- warn!(- target: "extension_host",- "extension sidecar did not confirm shutdown '{reason}': {error:#}"- );- }- let mut child = self.child.take().expect("child is taken only by shutdown");- match tokio::time::timeout(self.timeouts.shutdown_wait, child.wait()).await {- Ok(Ok(status)) => {- if !status.success() {- debug!(- target: "extension_host",- "extension sidecar exited with {status} on shutdown"- );- }- Ok(())- }- Ok(Err(error)) => Err(error).context("waiting for extension sidecar exit"),- Err(_) => {- if let Some(pid) = child.id() {- let _ = crate::platform::kill_process_group_or_pid(pid as i32);- }- let status = child- .wait()- .await- .context("reaping extension sidecar after kill")?;- warn!(- target: "extension_host",- "extension sidecar ignored shutdown '{reason}'; killed: {status}"- );- Ok(())- }- }- }-}--impl Drop for ExtensionHost {- fn drop(&mut self) {- if let Some(child) = self.child.as_mut() {- if let Some(pid) = child.id() {- // kill_on_drop reaps the direct child; the group kill also- // reaches any descendants the sidecar spawned.- let _ = crate::platform::kill_process_group_or_pid(pid as i32);- }- }- }-}--/// Log the sidecar's stderr at debug until EOF: node crashes land here when-/// they never reach the handshake.-fn drain_stderr(stderr: tokio::process::ChildStderr) {- use tokio::io::AsyncBufReadExt;- tokio::spawn(async move {- let mut lines = tokio::io::BufReader::new(stderr).lines();- while let Ok(Some(line)) = lines.next_line().await {- debug!(target: "extension_host", "sidecar stderr: {line}");- }- });-}diff --git a/crates/pa-core/src/extensions/host_script.mjs b/crates/pa-core/src/extensions/host_script.mjsdeleted file mode 100644index 0045bad360..0000000000--- a/crates/pa-core/src/extensions/host_script.mjs+++ /dev/null@@ -1,743 +0,0 @@-// Extension host script, stage 2 (protocol 2).-//-// The Rust half of this pair is `crates/pa-core/src/extensions/`-// (`host.rs` spawns this script and owns the lifecycle; `client.rs` +-// `framing.rs` own the dispatch; `script.rs` materializes this bundle next-// to the vendored jiti runtime). The protocol is private and versioned; both ends ship in the-// same release, so they always match.-//-// Stage 2 turns the stage-1 protocol peer into the extension runtime:-// - `hello` loads every resolved extension path with jiti/static-// (`moduleCache: false`, same loader as the TS product), runs each-// module's default factory against the `pi` API object, and reports the-// registrations that landed (tools, commands, flags, shortcuts,-// message-renderer types, providers) plus per-path load errors.-// - Post-hello registration methods forward a `registration` notification.-// - `tool_execute` dispatches a registered tool's `execute` with a ctx-// whose action methods call back into the host (`ctxToken` RPC);-// `onUpdate` streams `tool_update` notifications.-// - `event` dispatches handlers in load/registration order through the-// error boundary (chaining semantics per event type are stage 3).-// - `command_execute`/`shortcut_execute` dispatch registered handlers.-// - `shutdown` emits `session_shutdown` to handlers, then exits.-//-// Import aliasing (TS loader.ts `getAliases` / bundled-modules.ts): the-// `@earendil-works/*`, `@mariozechner/*`, and `typebox` specifiers resolve-// to the shim modules materialized next to this script. `typebox` /-// `pi-ai` get a real Type builder (JSON-Schema-compatible schemas) and-// `pi-coding-agent` the `defineTool` identity; packages with no-// sidecar-representable surface resolve to the empty `unsupported` module,-// whose absent exports degrade to `undefined` at use (v1 documented-// degradation, design doc §2.6/R3).-//-// Wire: newline-delimited JSON over stdio, both directions.-// host -> sidecar: `{"id":N,"method":...,"params":...}` requests,-// `{"method":...,"params":...}` notifications (no reply).-// sidecar -> host: `{"id":N,"result":...}` / `{"id":N,"error":{...}}` replies,-// `{"ctxToken":...,"method":...,"params":...}` ctx requests,-// `{"method":...,"params":...}` notifications-// (`extension_error`, `registration`, `tool_update`).-// Requests are handled one at a time in arrival order; a hanging handler-// is abandoned by the host's per-request timeout and the process kill.--import readline from "node:readline";--// Keep in sync with `pa_types::extension_rpc::EXTENSION_RPC_PROTOCOL`.-const PROTOCOL = 2;-// Keep in sync with `EXTENSION_HOST_NODE_MAJOR_FLOOR`.-const NODE_FLOOR = 18;--// The exact TS loader strings (loader.ts loadExtension / loadExtensions):-// user-visible copy, keep byte-identical.-const FACTORY_ERROR = (p) => `Extension does not export a valid factory function: ${p}`;-const LOAD_ERROR = (message) => `Failed to load extension: ${message}`;-const NOT_INITIALIZED =- "Extension runtime not initialized. Action methods cannot be called during extension loading.";--function nodeMajor() {- return Number(process.versions.node.split(".")[0] || 0);-}--function writeLine(value, done) {- process.stdout.write(JSON.stringify(value) + "\n", done);-}--function writeReply(id, result, error, done) {- const envelope = error !== undefined ? { id, error } : { id, result };- process.stdout.write(JSON.stringify(envelope) + "\n", done);-}--function notify(method, params) {- writeLine({ method, params });-}--function reportError(extensionPath, event, error) {- const err = error instanceof Error ? error : new Error(String(error));- notify("extension_error", {- extensionPath,- event,- error: err.message,- stack: err.stack,- });-}--// Drop non-JSON values (functions, symbols) from values that cross the wire:-// TypeBox schemas are JSON, but a custom schema may carry helpers.-function sanitize(value) {- return JSON.parse(- JSON.stringify(value, (key, item) => (typeof item === "function" ? undefined : item)),- );-}--// --- ctx RPC (sidecar -> host) ------------------------------------------------// ctxToken -> { resolve, reject } for ctx calls awaiting a host reply.-const pendingCtx = new Map();--function callCtx(method, params) {- const ctxToken = `ctx-${++ctxCounter}`;- return new Promise((resolve, reject) => {- pendingCtx.set(ctxToken, { resolve, reject });- writeLine({ ctxToken, method, params });- });-}-let ctxCounter = 0;--function settleCtxReply(line) {- const settled = pendingCtx.get(line.ctxToken);- if (!settled) return false;- pendingCtx.delete(line.ctxToken);- if (line.error !== undefined) {- settled.reject(Object.assign(new Error(line.error.message), line.error));- } else {- settled.resolve(line.result);- }- return true;-}--// --- host timers (TS runner.ts createTimerBindings: same error boundary) ------const activeTimers = new Set();--function hostTimer(kind, ownerPath, callback, ms) {- const handle = kind === "setTimeout" ? setTimeout(run, ms) : setInterval(run, ms);- function clear() {- clearTimeout(handle);- clearInterval(handle);- activeTimers.delete(clear);- }- function run() {- if (kind === "setTimeout") clear();- try {- Promise.resolve(callback()).catch((err) =>- reportError(ownerPath, `ctx.${kind}`, err),- );- } catch (err) {- reportError(ownerPath, `ctx.${kind}`, err);- }- }- activeTimers.add(clear);- return handle;-}--function clearHostTimers() {- for (const clear of activeTimers) clear();-}--// --- the loaded extension world -----------------------------------------------// One entry per successfully loaded extension, in load order. The shape-// mirrors the TS `Extension` object (loader.ts createExtension): live-// functions stay here, the serializable registration crosses the wire.-function createExtensionState(extensionPath, resolvedPath) {- return {- path: extensionPath,- resolvedPath,- handlers: new Map(),- tools: new Map(),- messageRenderers: new Map(),- commands: new Map(),- flags: new Map(),- shortcuts: new Map(),- providers: [],- };-}--const extensions = [];-// Extension-path -> state; registrations from a runtime notification replace-// one extension's contribution.-const extensionsByPath = new Map();-// Flag values: CLI-provided values (hello `flagValues`) seed the map so they-// override registered defaults, matching the TS `setFlagValue` end state.-const flagValues = new Map();--// The shared cross-extension event bus (TS core/event-bus.ts createEventBus).-const eventBus = (() => {- const channels = new Map();- return {- emit(channel, data) {- const listeners = channels.get(channel) || [];- for (const listener of listeners) listener(data);- },- on(channel, handler) {- const list = channels.get(channel) || [];- list.push(handler);- channels.set(channel, list);- return () => {- const next = (channels.get(channel) || []).filter((h) => h !== handler);- channels.set(channel, next);- };- },- };-})();--// `runtime` mirrors loader.ts createExtensionRuntime: action methods throw-// the fixed not-initialized message until the load cycle finished (bindCore-// equivalent); afterwards they call the host over ctx RPC.-let runtimeBound = false;--function actionMethod(name) {- return (...args) => {- if (!runtimeBound) {- throw new Error(NOT_INITIALIZED);- }- return callCtx(name, sanitize({ args }));- };-}--function piApiFor(extension) {- const assertActive = () => {};- const api = {- on(event, handler) {- assertActive();- const list = extension.handlers.get(event) ?? [];- list.push(handler);- extension.handlers.set(event, list);- if (runtimeBound) registrationChanged(extension);- },- registerTool(tool) {- assertActive();- extension.tools.set(tool.name, tool);- if (runtimeBound) registrationChanged(extension);- },- registerCommand(name, options) {- assertActive();- extension.commands.set(name, { name, ...options });- if (runtimeBound) registrationChanged(extension);- },- registerShortcut(key, options) {- assertActive();- extension.shortcuts.set(key, { key, extensionPath: extension.path, ...options });- if (runtimeBound) registrationChanged(extension);- },- registerFlag(name, options) {- assertActive();- extension.flags.set(name, { name, extensionPath: extension.path, ...options });- if (options.default !== undefined && !flagValues.has(name)) {- flagValues.set(name, options.default);- }- if (runtimeBound) registrationChanged(extension);- },- registerMessageRenderer(customType, renderer) {- assertActive();- extension.messageRenderers.set(customType, renderer);- if (runtimeBound) registrationChanged(extension);- },- getFlag(name) {- assertActive();- if (!extension.flags.has(name)) return undefined;- return flagValues.get(name);- },- // Action methods: pre-bind throwing stubs (TS createExtensionRuntime),- // post-load ctx RPC. Signatures match the TS ExtensionAPI; the arguments- // cross the wire sanitized.- sendMessage: actionMethod("send_message"),- sendUserMessage: actionMethod("send_user_message"),- appendEntry: actionMethod("append_entry"),- setSessionName: actionMethod("set_session_name"),- getSessionName: actionMethod("get_session_name"),- setLabel: actionMethod("set_label"),- exec: actionMethod("exec"),- getActiveTools: actionMethod("get_active_tools"),- getAllTools: actionMethod("get_all_tools"),- setActiveTools: actionMethod("set_active_tools"),- getCommands: actionMethod("get_commands"),- setModel: actionMethod("set_model"),- getThinkingLevel: actionMethod("get_thinking_level"),- setThinkingLevel: actionMethod("set_thinking_level"),- registerProvider(name, config) {- assertActive();- if (config && (config.streamSimple || config.oauth)) {- reportError(- extension.path,- "register_provider",- new Error(- `registerProvider('${name}') with streamSimple/oauth is not supported in the Rust extension host (v1)`,- ),- );- return;- }- extension.providers = extension.providers.filter((p) => p.name !== name);- extension.providers.push({ name, config });- if (runtimeBound) registrationChanged(extension);- },- unregisterProvider(name) {- assertActive();- extension.providers = extension.providers.filter((p) => p.name !== name);- if (runtimeBound) registrationChanged(extension);- },- events: eventBus,- };- return api;-}--function registrationOf(extension) {- const tools = [];- for (const tool of extension.tools.values()) {- const wire = {- name: tool.name,- label: tool.label ?? tool.name,- description: tool.description ?? "",- parameters: sanitize(tool.parameters ?? { type: "object" }),- };- if (tool.promptSnippet !== undefined) wire.promptSnippet = tool.promptSnippet;- if (tool.promptGuidelines !== undefined && tool.promptGuidelines.length > 0) {- wire.promptGuidelines = tool.promptGuidelines;- }- if (tool.executionMode !== undefined) wire.executionMode = tool.executionMode;- tools.push(wire);- }- const commands = [];- for (const command of extension.commands.values()) {- const wire = { name: command.name };- if (command.description !== undefined) wire.description = command.description;- commands.push(wire);- }- const flags = [];- for (const flag of extension.flags.values()) {- const wire = { name: flag.name, type: flag.type === "string" ? "string" : "boolean" };- if (flag.description !== undefined) wire.description = flag.description;- if (flag.default !== undefined) wire.default = flag.default;- flags.push(wire);- }- const shortcuts = [];- for (const shortcut of extension.shortcuts.values()) {- const wire = { key: shortcut.key };- if (shortcut.description !== undefined) wire.description = shortcut.description;- shortcuts.push(wire);- }- return {- path: extension.path,- resolvedPath: extension.resolvedPath,- events: [...extension.handlers.keys()],- tools,- commands,- flags,- shortcuts,- messageRendererTypes: [...extension.messageRenderers.keys()],- providers: extension.providers.map((p) => ({- name: p.name,- config: sanitize(p.config ?? {}),- })),- };-}--function registrationChanged(extension) {- notify("registration", {- extensionPath: extension.path,- registration: registrationOf(extension),- });-}--// --- module loading (TS loader.ts loadExtensionModule/loadExtension) ----------async function createLoader() {- const { createJiti } = await import(- new URL("./vendor/jiti/lib/jiti-static.mjs", import.meta.url).href- );- const here = (file) => new URL(file, import.meta.url).href;- const typebox = here("typebox.mjs");- const piAi = here("pi-ai.mjs");- const piCodingAgent = here("pi-coding-agent.mjs");- const unsupported = here("unsupported.mjs");- // The TS alias map (loader.ts getAliases) in full. The shims are ESM- // modules with named exports: jiti resolves aliased imports natively, and- // names a shim does not export resolve to `undefined` through jiti's- // interop (the v1 degradation, design doc §2.6).- const alias = {- "@earendil-works/pi-coding-agent": piCodingAgent,- "@earendil-works/pi-agent-core": unsupported,- "@earendil-works/pi-tui": unsupported,- "@earendil-works/pi-ai": piAi,- "@earendil-works/pi-ai/oauth": unsupported,- "@mariozechner/pi-coding-agent": piCodingAgent,- "@mariozechner/pi-agent-core": unsupported,- "@mariozechner/pi-tui": unsupported,- "@mariozechner/pi-ai": piAi,- "@mariozechner/pi-ai/oauth": unsupported,- typebox: typebox,- "typebox/compile": unsupported,- "typebox/value": unsupported,- "@sinclair/typebox": typebox,- "@sinclair/typebox/compile": unsupported,- "@sinclair/typebox/value": unsupported,- };- return createJiti(import.meta.url, {- moduleCache: false,- alias,- });-}--async function loadExtension(jiti, extensionPath) {- try {- const module = await jiti.import(extensionPath, { default: true });- if (typeof module !== "function") {- return { error: FACTORY_ERROR(extensionPath) };- }- const state = createExtensionState(extensionPath, extensionPath);- const api = piApiFor(state);- await module(api);- return { state };- } catch (err) {- const message = err instanceof Error ? err.message : String(err);- return { error: LOAD_ERROR(message) };- }-}--// --- first-wins lookups (TS runner.ts getAllRegisteredTools / getCommand) -----function findTool(toolName) {- for (const extension of extensions) {- const tool = extension.tools.get(toolName);- if (tool) return { extension, tool };- }- return undefined;-}--function findCommand(invocationName) {- for (const extension of extensions) {- for (const command of extension.commands.values()) {- if (command.name === invocationName) return { extension, command };- }- }- return undefined;-}--function findShortcut(key) {- const normalized = String(key).toLowerCase();- for (const extension of extensions) {- for (const [registered, shortcut] of extension.shortcuts) {- if (String(registered).toLowerCase() === normalized) {- return { extension, shortcut };- }- }- }- return undefined;-}--function hasHandlers(eventType) {- for (const extension of extensions) {- if (extension.handlers.has(eventType)) return true;- }- return false;-}--// --- dispatch through the error boundary (TS runner.ts emit) ------------------async function dispatchEvent(event) {- for (const extension of extensions) {- const handlers = extension.handlers.get(event.type) ?? [];- for (const handler of handlers) {- try {- await handler(event);- } catch (err) {- reportError(extension.path, event.type, err);- }- }- }-}--// --- ctx for tool execution / commands / handlers -----------------------------const NO_OP_UI = {- select: async () => undefined,- confirm: async () => false,- input: async () => undefined,- notify: () => {},- setStatus: () => {},- setWidget: () => {},- setFooter: () => {},- setHeader: () => {},- custom: async () => undefined,-};--function createContextFor(extension) {- return {- ui: NO_OP_UI,- hasUI: false,- cwd: helloCwd,- isIdle: () => callCtx("is_idle", {}),- signal: undefined,- abort: () => callCtx("abort", {}),- hasPendingMessages: () => callCtx("has_pending_messages", {}),- shutdown: () => callCtx("shutdown", {}),- getContextUsage: () => callCtx("get_context_usage", {}),- compact: (options) => callCtx("compact", sanitize({ args: [options] })),- getSystemPrompt: () => callCtx("get_system_prompt", {}),- setTimeout: (callback, ms) => hostTimer("setTimeout", extension.path, callback, ms),- clearTimeout: (handle) => {- clearTimeout(handle);- clearInterval(handle);- },- setInterval: (callback, ms) => hostTimer("setInterval", extension.path, callback, ms),- clearInterval: (handle) => {- clearTimeout(handle);- clearInterval(handle);- },- get sessionManager() {- throw new Error(- "ctx.sessionManager is not supported in the Rust extension host (v1)",- );- },- get modelRegistry() {- throw new Error(- "ctx.modelRegistry is not supported in the Rust extension host (v1)",- );- },- get model() {- return callCtx("get_model", {});- },- ...Object.fromEntries(- [- "sendMessage",- "sendUserMessage",- "appendEntry",- "setSessionName",- "getSessionName",- "setLabel",- "exec",- "getActiveTools",- "getAllTools",- "setActiveTools",- "getCommands",- "setModel",- "getThinkingLevel",- "setThinkingLevel",- ].map((method) => [- method,- (...args) => {- const snake = method.replace(/[A-Z]/g, (c) => "_" + c.toLowerCase());- return callCtx(snake, sanitize({ args }));- },- ]),- ),- };-}--// --- request handling ----------------------------------------------------------let helloCwd = process.cwd();--async function handleHello(params) {- if (params.protocol !== PROTOCOL) {- return {- error: {- message:- "extension host protocol mismatch: sidecar speaks " +- PROTOCOL +- ", host speaks " +- params.protocol,- },- };- }- if (nodeMajor() < NODE_FLOOR) {- return {- error: {- message:- "extension host requires Node >= " + NODE_FLOOR + " (found " + process.versions.node + ")",- },- };- }- helloCwd = typeof params.cwd === "string" && params.cwd ? params.cwd : process.cwd();- for (const [name, value] of Object.entries(params.flagValues || {})) {- flagValues.set(name, value);- }- const paths = Array.isArray(params.extensionPaths) ? params.extensionPaths : [];- const errors = [];- if (paths.length > 0) {- const jiti = await createLoader();- for (const extensionPath of paths) {- const { state, error } = await loadExtension(jiti, extensionPath);- if (error) {- errors.push({ path: extensionPath, error });- continue;- }- extensions.push(state);- extensionsByPath.set(state.path, state);- }- }- // The load cycle finished: action methods graduate from the throwing- // pre-bind stubs to ctx RPC (TS bindCore equivalent).- runtimeBound = true;- return {- result: {- protocol: PROTOCOL,- extensions: extensions.map(registrationOf),- errors,- },- };-}--async function handleToolExecute(params) {- const found = findTool(params.toolName);- if (!found) {- return { error: { message: `No extension tool named '${params.toolName}'` } };- }- const { extension, tool } = found;- const controller = new AbortController();- const onUpdate = (result) => {- notify("tool_update", {- toolCallId: params.toolCallId,- result: sanitize(result ?? {}),- });- };- try {- const result = await tool.execute(- params.toolCallId,- params.args ?? {},- controller.signal,- onUpdate,- createContextFor(extension),- );- const wire = sanitize(result ?? { content: [] });- return {- result: {- content: Array.isArray(wire.content) ? wire.content : [],- details: wire.details,- isError: wire.isError === true,- },- };- } catch (err) {- reportError(extension.path, "tool_execute", err);- return { error: { message: err instanceof Error ? err.message : String(err) } };- }-}--async function handleEvent(params) {- const event = { type: params.type, ...(params.payload || {}) };- await dispatchEvent(event);- // Chaining semantics per event type are stage 3; no handlers -> null.- return { result: null };-}--async function handleCommandExecute(params) {- const found = findCommand(params.invocationName);- if (!found) {- return { error: { message: `No extension command named '/${params.invocationName}'` } };- }- try {- await found.command.handler(params.args ?? "", createContextFor(found.extension));- return { result: { ok: true } };- } catch (err) {- reportError(found.extension.path, "command_execute", err);- return { error: { message: err instanceof Error ? err.message : String(err) } };- }-}--async function handleShortcutExecute(params) {- const found = findShortcut(params.key);- if (!found) {- return { error: { message: `No extension shortcut for key '${params.key}'` } };- }- try {- await found.shortcut.handler(createContextFor(found.extension));- return { result: { ok: true } };- } catch (err) {- reportError(found.extension.path, "shortcut_execute", err);- return { error: { message: err instanceof Error ? err.message : String(err) } };- }-}--async function handleRequest(msg) {- switch (msg.method) {- case "hello":- return handleHello(msg.params || {});- case "ping":- return { result: { ok: true } };- case "event":- return handleEvent(msg.params || {});- case "tool_execute":- return handleToolExecute(msg.params || {});- case "command_execute":- return handleCommandExecute(msg.params || {});- case "shortcut_execute":- return handleShortcutExecute(msg.params || {});- case "shutdown": {- // Orderly unload: emit session_shutdown to handlers (TS- // emitSessionShutdownEvent), then reply and exit.- if (hasHandlers("session_shutdown")) {- await dispatchEvent({- type: "session_shutdown",- reason: (msg.params && msg.params.reason) || "session_end",- });- }- clearHostTimers();- return { result: { ok: true }, exit: 0 };- }- default:- return {- error: { message: "extension host received unknown method '" + msg.method + "'" },- };- }-}--// --- main loop -----------------------------------------------------------------const rl = readline.createInterface({ input: process.stdin, terminal: false });-let queue = Promise.resolve();--rl.on("line", (line) => {- if (!line.trim()) return;- let msg;- try {- msg = JSON.parse(line);- } catch (err) {- process.stderr.write("extension host: unparsable line: " + line + " (" + err + ")\n");- process.exit(1);- }- // A reply to one of our ctx calls.- if (msg.ctxToken !== undefined && (msg.result !== undefined || msg.error !== undefined)) {- settleCtxReply(msg);- return;- }- // A ctx request from the host (none exist in protocol 2, but keep the- // direction honest): there is no id to correlate a reply, so it is a- // protocol violation worth failing loudly.- if (msg.ctxToken !== undefined) {- process.stderr.write("extension host: unexpected ctx request: " + line + "\n");- return;- }- // Host notifications (`cancel`): nothing is cancellable in stage 2;- // tool/event dispatch cancellation tokens arrive with stage 3.- if (!("id" in msg)) {- return;- }- queue = queue- .then(() => handleRequest(msg))- .then((outcome) => {- writeReply(msg.id, outcome.result, outcome.error, () => {- if (outcome.exit !== undefined) {- process.exit(outcome.exit);- }- });- })- .catch((err) => {- writeReply(msg.id, undefined, { message: String((err && err.message) || err) });- });-});--// Stdin closed: the host is gone, stop (unload timers with us).-rl.on("close", () => {- clearHostTimers();- process.exit(0);-});diff --git a/crates/pa-core/src/extensions/mod.rs b/crates/pa-core/src/extensions/mod.rsdeleted file mode 100644index c1bc1e3c5d..0000000000--- a/crates/pa-core/src/extensions/mod.rs+++ /dev/null@@ -1,37 +0,0 @@-//! Extension host: the Node sidecar that runs user-authored TS/JS extensions.-//!-//! One sidecar process per session, NDJSON JSON over stdio (protocol-//! [`pa_types::extension_rpc`]), with the host script and vendored jiti-//! materialized under `<agentDir>/extension-host/`. This module owns the-//! process lifecycle, the RPC protocol, and the host script runtime that-//! loads extension modules.-//!-//! Stage status (design doc §4, as landed): stage 1 = sidecar process-//! management + RPC framing/protocol (hello handshake, ping, orderly-//! shutdown). Stage 2 = the host script runtime (vendored jiti module-//! loading, registration landing, tool execution over RPC) plus the-//! registry mirror and the [`ExtensionRunner`] facade. Emission at the-//! session-engine seams, ctx-action binding, slash-command dispatch at the-//! product surface, and stale-ctx/timer semantics are later stages.-//!-//! TS ground truth: `packages/coding-agent/src/core/extensions/`-//! (loader.ts for the loading surface; runner.ts emit semantics arrive with-//! the event-surface stage).--mod client;-mod framing;-mod host;-mod registry;-mod runner;-mod script;-mod tool;--pub use client::{CtxCall, CtxCallHandler, RpcClient, SidecarNotification};-pub use framing::{encode_line, LineDecoder, LineLimits, DEFAULT_MAX_LINE_BYTES};-pub use host::{ExtensionHost, ExtensionHostSpec, HostScript, HostTimeouts};-pub use registry::{- BuiltinKeybindings, ExtensionRegistry, RegistrationDiagnostic, ResolvedExtensionCommand,- ResolvedShortcut, RESERVED_KEYBINDING_IDS,-};-pub use runner::ExtensionRunner;-pub use tool::ExtensionTool;diff --git a/crates/pa-core/src/extensions/pi-ai.mjs b/crates/pa-core/src/extensions/pi-ai.mjsdeleted file mode 100644index 9b3f07d183..0000000000--- a/crates/pa-core/src/extensions/pi-ai.mjs+++ /dev/null@@ -1,9 +0,0 @@-// @earendil-works/pi-ai shim for the extension host (stage 2).-//-// TS ground truth: `packages/ai/src/index.ts` re-exports `Type` from-// `typebox`; extensions import it for tool schemas. Everything else in the-// package (providers, streaming) is host machinery that cannot cross the-// sidecar boundary; those imports resolve to `undefined` through jiti's-// interop and throw at use time (v1 documented degradation).--export { Type } from "./typebox.mjs";diff --git a/crates/pa-core/src/extensions/pi-coding-agent.mjs b/crates/pa-core/src/extensions/pi-coding-agent.mjsdeleted file mode 100644index 452a5a8059..0000000000--- a/crates/pa-core/src/extensions/pi-coding-agent.mjs+++ /dev/null@@ -1,15 +0,0 @@-// @earendil-works/pi-coding-agent shim for the extension host (stage 2).-//-// TS ground truth: `packages/coding-agent/src/index.ts` exports `defineTool`-// (extensions/types.ts: the identity helper that preserves the-// ToolDefinition type) and re-exports `Type`. Extensions reach the rest of-// the product through the `pi` object the factory receives, not through this-// import; other value imports resolve to `undefined` through jiti's interop-// and throw at use time (design doc §2.6/R3).--export { Type } from "./typebox.mjs";--// types.ts defineTool: an identity function at runtime.-export function defineTool(tool) {- return tool;-}diff --git a/crates/pa-core/src/extensions/registry.rs b/crates/pa-core/src/extensions/registry.rsdeleted file mode 100644index f39868780c..0000000000--- a/crates/pa-core/src/extensions/registry.rs+++ /dev/null@@ -1,682 +0,0 @@-//! The in-Rust mirror of registered extension state (design doc §3.2-//! `registry.rs`): tools, commands, flags, shortcuts, message-renderer-//! types, and queued provider registrations collected from the sidecar.-//!-//! The registry keeps one [`ExtensionRegistration`] per loaded extension, in-//! load order, and derives every view with the TS runner's rules:-//! - tools: first registration per name wins across extensions-//! (runner.ts `getAllRegisteredTools`);-//! - commands: collision suffixing `name:2`, `name:3`, ... for the-//! invocation names (runner.ts `resolveRegisteredCommands`);-//! - flags: first registration per name wins (`getFlags`), with values from-//! CLI overrides (`flagValues`) over registered defaults;-//! - shortcuts: keys normalized to lowercase, extension-vs-extension-//! conflicts resolve last-wins with a diagnostic, reserved built-ins win-//! (`getShortcuts`);-//! - events: the set of event names with at least one handler-//! (`hasHandlers` gating).--use std::collections::{BTreeMap, HashMap, HashSet};--use pa_types::extension_rpc::{ExtensionRegistration, ToolRegistration};-use pa_types::JsonMap;-use serde_json::Value;--/// A command after collision resolution (TS `ResolvedCommand`, the fields-/// the session surfaces consume).-#[derive(Debug, Clone, PartialEq, Eq)]-pub struct ResolvedExtensionCommand {- /// The name the extension registered (`registerCommand` first argument).- pub name: String,- /// The name dispatch and autocomplete use: `name`, or `name:N` when- /// multiple extensions registered the same name.- pub invocation_name: String,- pub description: Option<String>,- pub extension_path: String,-}--/// A shortcut after the conflict rules (TS `getShortcuts` output entries).-#[derive(Debug, Clone, PartialEq, Eq)]-pub struct ResolvedShortcut {- /// Normalized (lowercase) key id.- pub key: String,- pub description: Option<String>,- pub extension_path: String,-}--/// A warning-level diagnostic from registration resolution (TS-/// `ResourceDiagnostic { type: "warning" }`; surfaces in startup notices).-#[derive(Debug, Clone, PartialEq, Eq)]-pub struct RegistrationDiagnostic {- pub message: String,- pub path: String,-}--/// The TS runner.ts `RESERVED_KEYBINDINGS_FOR_EXTENSION_CONFLICTS` list:-/// extension shortcuts lose against these canonical builtin ids. Ported as-/// data (runner.ts L63-83) so the conflict rules stay byte-comparable.-pub const RESERVED_KEYBINDING_IDS: &[&str] = &[- "app.interrupt",- "app.clear",- "app.exit",- "app.suspend",- "app.model.select",- "app.model.cycleForward",- "app.model.cycleBackward",- "app.tools.expand",- "app.subagents.focus",- "app.editor.external",- "app.message.followUp",- "tui.input.submit",- "tui.select.confirm",- "tui.select.cancel",- "tui.input.copy",- "tui.editor.deleteToLineEnd",-];--/// The builtin keybinding table the shortcut conflict rules need: normalized-/// key id -> (canonical binding id, whether extension overrides are blocked).-#[derive(Debug, Clone, Default)]-pub struct BuiltinKeybindings {- /// Key id -> (keybinding id, `restrict_override`).- pub by_key: HashMap<String, (String, bool)>,-}--impl BuiltinKeybindings {- /// Build the table from resolved builtin bindings (pa-tui's config- /// surface), the TS `buildBuiltinKeybindings` rules: keys normalize to- /// lowercase, and a reserved action wins over a non-reserved action- /// bound to the same key.- pub fn from_bindings(bindings: impl IntoIterator<Item = (String, Vec<String>)>) -> Self {- let mut by_key: HashMap<String, (String, bool)> = HashMap::new();- for (keybinding, keys) in bindings {- let restrict = RESERVED_KEYBINDING_IDS.contains(&keybinding.as_str());- for key in keys {- let normalized = key.to_lowercase();- match by_key.get(&normalized) {- Some((_, existing_restrict)) if *existing_restrict && !restrict => {}- _ => {- by_key.insert(normalized, (keybinding.clone(), restrict));- }- }- }- }- BuiltinKeybindings { by_key }- }-- fn conflict(&self, key: &str) -> Option<(&str, bool)> {- self.by_key- .get(key)- .map(|(keybinding, restrict)| (keybinding.as_str(), *restrict))- }-}--/// The registry: one registration per extension path, in load order.-#[derive(Debug, Clone, Default)]-pub struct ExtensionRegistry {- by_path: Vec<ExtensionRegistration>,-}--impl ExtensionRegistry {- #[must_use]- pub fn from_registrations(registrations: &[ExtensionRegistration]) -> Self {- ExtensionRegistry {- by_path: registrations.to_vec(),- }- }-- /// True when empty: no sidecar state landed (the session proceeds- /// without extension machinery, preserving the fast path).- #[must_use]- pub fn is_empty(&self) -> bool {- self.by_path.is_empty()- }-- /// Merge a full load cycle (the `hello` result registrations).- pub fn merge_load(&mut self, registrations: &[ExtensionRegistration]) {- for registration in registrations {- self.merge_notification(registration.clone());- }- }-- /// Merge one extension's (re)registration: a post-hello- /// `registration` notification replaces that extension's contribution- /// in place (load order preserved), or appends it when new.- pub fn merge_notification(&mut self, registration: ExtensionRegistration) {- if let Some(existing) = self- .by_path- .iter_mut()- .find(|existing| existing.path == registration.path)- {- *existing = registration;- } else {- self.by_path.push(registration);- }- }-- /// All loaded extensions, in load order.- #[must_use]- pub fn extensions(&self) -> &[ExtensionRegistration] {- &self.by_path- }-- /// Registered tools, first registration per name wins across- /// extensions (runner.ts `getAllRegisteredTools`).- #[must_use]- pub fn tools(&self) -> Vec<&ToolRegistration> {- let mut seen = HashSet::new();- let mut tools = Vec::new();- for extension in &self.by_path {- for tool in &extension.tools {- if seen.insert(tool.name.clone()) {- tools.push(tool);- }- }- }- tools- }-- /// A tool definition by name (first-wins, `getToolDefinition`).- #[must_use]- pub fn tool(&self, name: &str) -> Option<&ToolRegistration> {- self.tools().into_iter().find(|tool| tool.name == name)- }-- /// Commands with invocation names (runner.ts `resolveRegisteredCommands`- /// collision suffixing).- #[must_use]- pub fn commands(&self) -> Vec<ResolvedExtensionCommand> {- let mut commands = Vec::new();- let mut counts: HashMap<&str, usize> = HashMap::new();- for extension in &self.by_path {- for command in &extension.commands {- commands.push((extension, command));- *counts.entry(command.name.as_str()).or_default() += 1;- }- }- let mut seen: HashMap<&str, usize> = HashMap::new();- let mut taken: HashSet<String> = HashSet::new();- commands- .into_iter()- .map(|(extension, command)| {- let occurrence = seen.entry(command.name.as_str()).or_default();- *occurrence += 1;- let base = if counts[command.name.as_str()] > 1 {- format!("{}:{occurrence}", command.name)- } else {- command.name.clone()- };- let mut invocation_name = base;- if taken.contains(&invocation_name) {- let mut suffix = *occurrence;- loop {- suffix += 1;- invocation_name = format!("{}:{suffix}", command.name);- if !taken.contains(&invocation_name) {- break;- }- }- }- taken.insert(invocation_name.clone());- ResolvedExtensionCommand {- name: command.name.clone(),- invocation_name,- description: command.description.clone(),- extension_path: extension.path.clone(),- }- })- .collect()- }-- /// A command by invocation name (runner.ts `getCommand`).- #[must_use]- pub fn command(&self, invocation_name: &str) -> Option<ResolvedExtensionCommand> {- self.commands()- .into_iter()- .find(|command| command.invocation_name == invocation_name)- }-- /// Flags, first registration per name wins (runner.ts `getFlags`).- #[must_use]- pub fn flags(&self) -> Vec<&pa_types::extension_rpc::FlagRegistration> {- let mut seen = HashSet::new();- let mut flags = Vec::new();- for extension in &self.by_path {- for flag in &extension.flags {- if seen.insert(flag.name.clone()) {- flags.push(flag);- }- }- }- flags- }-- /// Resolved flag values: CLI-provided values win over registered- /// defaults (the `flagValues`/`setFlagValue` end state); the first- /// registration of a name owns the default.- #[must_use]- pub fn flag_values(&self, cli_values: &JsonMap) -> BTreeMap<String, Value> {- let mut values = BTreeMap::new();- for extension in &self.by_path {- for flag in &extension.flags {- if let Some(default) = &flag.default {- values- .entry(flag.name.clone())- .or_insert_with(|| default.clone());- }- }- }- for (name, value) in cli_values {- values.insert(name.clone(), value.clone());- }- values- }-- /// Shortcuts after the conflict rules (runner.ts `getShortcuts`):- /// reserved builtins win, non-reserved builtins lose to the extension- /// with a diagnostic, extension-vs-extension conflicts resolve- /// last-wins with a diagnostic. Returns the map plus diagnostics.- #[must_use]- pub fn shortcuts(- &self,- builtins: &BuiltinKeybindings,- ) -> (Vec<ResolvedShortcut>, Vec<RegistrationDiagnostic>) {- let mut resolved: HashMap<String, ResolvedShortcut> = HashMap::new();- let mut diagnostics = Vec::new();- for extension in &self.by_path {- for shortcut in &extension.shortcuts {- let key = shortcut.key.to_lowercase();- match builtins.conflict(&key) {- Some((_keybinding, true)) => {- diagnostics.push(RegistrationDiagnostic {- message: format!(- "Extension shortcut '{}' from {} conflicts with built-in shortcut. Skipping.",- shortcut.key, extension.path- ),- path: extension.path.clone(),- });- continue;- }- Some((keybinding, false)) => {- diagnostics.push(RegistrationDiagnostic {- message: format!(- "Extension shortcut conflict: '{}' is built-in shortcut for {} and {}. Using {}.",- shortcut.key, keybinding, extension.path, extension.path- ),- path: extension.path.clone(),- });- }- None => {}- }- if let Some(existing) = resolved.get(&key) {- diagnostics.push(RegistrationDiagnostic {- message: format!(- "Extension shortcut conflict: '{}' registered by both {} and {}. Using {}.",- shortcut.key, existing.extension_path, extension.path, extension.path- ),- path: extension.path.clone(),- });- }- resolved.insert(- key.clone(),- ResolvedShortcut {- key,- description: shortcut.description.clone(),- extension_path: extension.path.clone(),- },- );- }- }- let shortcuts = resolved.into_values().collect();- (shortcuts, diagnostics)- }-- /// Event names with at least one handler, for `hasHandlers` gating.- #[must_use]- pub fn handled_events(&self) -> HashSet<String> {- self.by_path- .iter()- .flat_map(|extension| extension.events.iter().cloned())- .collect()- }-- /// Whether any extension subscribes to `event` (runner.ts- /// `hasHandlers`: Rust only emits events with handlers).- #[must_use]- pub fn has_handlers(&self, event: &str) -> bool {- self.by_path- .iter()- .any(|extension| extension.events.iter().any(|name| name == event))- }-- /// Custom session message types with a registered renderer.- #[must_use]- pub fn message_renderer_types(&self) -> Vec<String> {- let mut types = Vec::new();- let mut seen = HashSet::new();- for extension in &self.by_path {- for custom_type in &extension.message_renderer_types {- if seen.insert(custom_type.clone()) {- types.push(custom_type.clone());- }- }- }- types- }-- /// Queued provider registrations, in load order, first registration of- /// a name wins (flushed at bind in TS; the provider seam lands with the- /// event-surface stage).- #[must_use]- pub fn providers(&self) -> Vec<&pa_types::extension_rpc::ProviderRegistration> {- let mut seen = HashSet::new();- let mut providers = Vec::new();- for extension in &self.by_path {- for provider in &extension.providers {- if seen.insert(provider.name.clone()) {- providers.push(provider);- }- }- }- providers- }-- /// Normalized prompt snippets: whitespace collapsed to one line,- /// empty-after-normalization dropped (TS agent-session.ts- /// `_normalizePromptSnippet`), keyed by tool name for the custom-prompt- /// path.- pub fn prompt_snippets(&self) -> BTreeMap<String, String> {- let mut snippets = BTreeMap::new();- for tool in self.tools() {- if let Some(snippet) = tool- .prompt_snippet- .as_deref()- .and_then(normalize_prompt_snippet)- {- snippets.insert(tool.name.clone(), snippet);- }- }- snippets- }-- /// Normalized prompt guidelines of the registered tools: trimmed,- /// empty dropped, deduplicated preserving order (TS agent-session.ts- /// `_normalizePromptGuidelines`).- #[must_use]- pub fn prompt_guidelines(&self) -> Vec<String> {- let mut seen = HashSet::new();- let mut guidelines = Vec::new();- for tool in self.tools() {- for guideline in tool.prompt_guidelines.iter().flatten() {- let normalized = guideline.trim();- if !normalized.is_empty() && seen.insert(normalized.to_string()) {- guidelines.push(normalized.to_string());- }- }- }- guidelines- }-}--/// TS `_normalizePromptSnippet`: collapse all whitespace runs to single-/// spaces, trim; `Some` only when non-empty.-pub(crate) fn normalize_prompt_snippet(text: &str) -> Option<String> {- let normalized = text.split_whitespace().collect::<Vec<_>>().join(" ");- (!normalized.is_empty()).then_some(normalized)-}--#[cfg(test)]-mod tests {- use super::*;- use pa_types::extension_rpc::{- CommandRegistration, FlagRegistration, FlagType, ShortcutRegistration,- };- use serde_json::json;-- fn tool(name: &str) -> ToolRegistration {- ToolRegistration {- name: name.to_string(),- label: name.to_string(),- description: format!("The {name} tool"),- prompt_snippet: None,- prompt_guidelines: None,- parameters: json!({"type": "object"}),- execution_mode: None,- }- }-- fn extension(path: &str, tools: Vec<ToolRegistration>) -> ExtensionRegistration {- ExtensionRegistration {- path: path.to_string(),- resolved_path: format!("/{path}"),- events: Vec::new(),- tools,- commands: Vec::new(),- flags: Vec::new(),- shortcuts: Vec::new(),- message_renderer_types: Vec::new(),- providers: Vec::new(),- }- }-- #[test]- fn tools_first_registration_per_name_wins() {- // runner.ts getAllRegisteredTools: extensions in load order, first- // registration per name wins.- let registry = ExtensionRegistry::from_registrations(&[- extension("first.ts", vec![tool("hello"), tool("only-first")]),- extension("second.ts", vec![tool("hello"), tool("world")]),- ]);- let names: Vec<&str> = registry.tools().iter().map(|t| t.name.as_str()).collect();- assert_eq!(names, ["hello", "only-first", "world"]);- assert_eq!(- registry.tool("hello").map(|t| t.description.as_str()),- Some("The hello tool")- );- // The winner is the first extension's registration.- assert_eq!(registry.tool("hello").unwrap().label, "hello");- }-- #[test]- fn registration_notification_replaces_in_place() {- let mut registry =- ExtensionRegistry::from_registrations(&[extension("a.ts", vec![tool("x")])]);- let mut updated = extension("a.ts", vec![tool("y")]);- updated.events = vec!["session_start".to_string()];- registry.merge_notification(updated);- assert_eq!(registry.extensions().len(), 1);- assert_eq!(registry.extensions()[0].events, ["session_start"]);- let names: Vec<&str> = registry.tools().iter().map(|t| t.name.as_str()).collect();- assert_eq!(names, ["y"]);- // New paths append (registration order preserved for the rest).- registry.merge_notification(extension("b.ts", vec![tool("x")]));- assert_eq!(registry.extensions().len(), 2);- assert!(registry.has_handlers("session_start"));- assert!(!registry.has_handlers("tool_call"));- }-- #[test]- fn command_collision_suffixes_follow_the_ts_algorithm() {- // runner.ts resolveRegisteredCommands: three `greet` commands- // become greet:1, greet:2, greet:3 (every occurrence of a duplicated- // name is suffixed, starting at 1); a distinct name stays bare.- let mut a = extension("a.ts", Vec::new());- a.commands = vec![CommandRegistration {- name: "greet".to_string(),- description: Some("a".to_string()),- }];- let mut b = extension("b.ts", Vec::new());- b.commands = vec![CommandRegistration {- name: "greet".to_string(),- description: Some("b".to_string()),- }];- let mut c = extension("c.ts", Vec::new());- c.commands = vec![- CommandRegistration {- name: "greet".to_string(),- description: None,- },- CommandRegistration {- name: "unique".to_string(),- description: None,- },- ];- let registry = ExtensionRegistry::from_registrations(&[a, b, c]);- let invocations: Vec<(String, String)> = registry- .commands()- .iter()- .map(|c| (c.invocation_name.clone(), c.extension_path.clone()))- .collect();- assert_eq!(- invocations,- [- ("greet:1".to_string(), "a.ts".to_string()),- ("greet:2".to_string(), "b.ts".to_string()),- ("greet:3".to_string(), "c.ts".to_string()),- ("unique".to_string(), "c.ts".to_string()),- ]- );- assert_eq!(registry.command("greet:2").unwrap().name, "greet");- assert_eq!(registry.command("greet:1").unwrap().extension_path, "a.ts");- assert!(registry.command("greet:4").is_none());- }-- #[test]- fn flags_and_values_cli_overrides_defaults() {- let mut a = extension("a.ts", Vec::new());- a.flags = vec![- FlagRegistration {- name: "fast".to_string(),- description: None,- r#type: FlagType::Boolean,- default: Some(json!(false)),- },- FlagRegistration {- name: "label".to_string(),- description: None,- r#type: FlagType::String,- default: Some(json!("a-label")),- },- ];- let mut b = extension("b.ts", Vec::new());- b.flags = vec![FlagRegistration {- name: "fast".to_string(),- description: None,- r#type: FlagType::Boolean,- default: Some(json!(true)),- }];- let registry = ExtensionRegistry::from_registrations(&[a, b]);- // First registration wins for the definition.- assert_eq!(registry.flags().len(), 2);- let mut cli = JsonMap::new();- cli.insert("fast".to_string(), json!(true));- let values = registry.flag_values(&cli);- assert_eq!(values.get("fast"), Some(&json!(true)));- assert_eq!(values.get("label"), Some(&json!("a-label")));- }-- #[test]- fn shortcuts_reserved_and_conflict_rules_match_ts() {- let mut a = extension("a.ts", Vec::new());- a.shortcuts = vec![- ShortcutRegistration {- key: "F1".to_string(),- description: Some("a f1".to_string()),- },- ShortcutRegistration {- key: "ctrl+c".to_string(),- description: None,- },- ];- let mut b = extension("b.ts", Vec::new());- b.shortcuts = vec![- ShortcutRegistration {- key: "f1".to_string(),- description: Some("b f1".to_string()),- },- ShortcutRegistration {- key: "f2".to_string(),- description: None,- },- ];- let registry = ExtensionRegistry::from_registrations(&[a, b]);- let builtins = BuiltinKeybindings::from_bindings([- ("app.interrupt".to_string(), vec!["ctrl+c".to_string()]),- ("tui.input.submit".to_string(), vec!["enter".to_string()]),- ]);- let (shortcuts, diagnostics) = registry.shortcuts(&builtins);- // Reserved ctrl+c is skipped; f1 normalizes and resolves last-wins.- assert_eq!(shortcuts.len(), 2, "{shortcuts:?}");- let f1 = shortcuts- .iter()- .find(|s| s.key == "f1")- .expect("normalized lowercase key");- assert_eq!(f1.extension_path, "b.ts");- assert!(shortcuts.iter().any(|s| s.key == "f2"));- let messages: Vec<&str> = diagnostics.iter().map(|d| d.message.as_str()).collect();- assert_eq!(messages.len(), 2, "{messages:?}");- assert!(messages[0].contains("conflicts with built-in shortcut"));- assert!(- messages[1].contains("registered by both a.ts and b.ts. Using b.ts."),- "{messages:?}"- );- }-- #[test]- fn builtin_keybindings_restricted_action_wins_on_shared_key() {- // buildBuiltinKeybindings: when two actions bind the same key, the- // reserved one wins regardless of iteration order.- let builtins = BuiltinKeybindings::from_bindings([- ("app.clear".to_string(), vec!["ctrl+l".to_string()]),- ("app.interrupt".to_string(), vec!["ctrl+l".to_string()]),- ]);- assert_eq!(- builtins.conflict("ctrl+l"),- Some(("app.interrupt", true)),- "reserved restrictOverride wins"- );- }-- #[test]- fn prompt_snippets_and_guidelines_normalize_like_ts() {- let mut t = tool("hello");- t.prompt_snippet = Some(" - hello: says\n hello\t ".to_string());- t.prompt_guidelines = Some(vec![- " Always greet. ".to_string(),- "Always greet.".to_string(),- " ".to_string(),- "Then stop.".to_string(),- ]);- let registry = ExtensionRegistry::from_registrations(&[extension("a.ts", vec![t])]);- let snippets = registry.prompt_snippets();- assert_eq!(- snippets.get("hello").map(String::as_str),- Some("- hello: says hello")- );- assert_eq!(- registry.prompt_guidelines(),- ["Always greet.", "Then stop."]- );- }-- #[test]- fn providers_first_registration_wins() {- use pa_types::extension_rpc::ProviderRegistration;- let mut a = extension("a.ts", Vec::new());- a.providers = vec![ProviderRegistration {- name: "custom".to_string(),- config: json!({"baseUrl": "https://a.example"}),- }];- let mut b = extension("b.ts", Vec::new());- b.providers = vec![ProviderRegistration {- name: "custom".to_string(),- config: json!({"baseUrl": "https://b.example"}),- }];- let registry = ExtensionRegistry::from_registrations(&[a, b]);- assert_eq!(registry.providers().len(), 1);- assert_eq!(- registry.providers()[0].config["baseUrl"],- json!("https://a.example")- );- }-}diff --git a/crates/pa-core/src/extensions/runner.rs b/crates/pa-core/src/extensions/runner.rsdeleted file mode 100644index d870a3e848..0000000000--- a/crates/pa-core/src/extensions/runner.rs+++ /dev/null@@ -1,322 +0,0 @@-//! The facade the session engine sees (design doc §3.2 `runner.rs`): owns-//! one extension sidecar host plus the registry, and exposes the stage-2-//! surface: registration views, `has_handlers` gating, tool execution over-//! RPC, and the bridged loop tools.-//!-//! The TS counterpart is `ExtensionRunner` (extensions/runner.ts): there the-//! extensions and their live objects sit in-process; here the sidecar owns-//! the live half and this runner mirrors the registrations. Emission at the-//! session-engine seams, ctx-action binding, stale-ctx invalidation, and-//! host timers on the Rust side are later stages; stage 2 lands the runner-//! with registration + tool execution.--use anyhow::Result;-use pa_agent::types::AgentTool;-use pa_types::extension_rpc::{- CommandExecuteParams, HelloResult, ShortcutExecuteParams, ToolExecuteResult,- METHOD_COMMAND_EXECUTE, METHOD_SHORTCUT_EXECUTE,-};-use std::sync::Arc;-use tokio::sync::Mutex;-use tracing::{debug, warn};--use super::client::SidecarNotification;-use super::host::{ExtensionHost, ExtensionHostSpec, HostTimeouts};-use super::registry::{ExtensionRegistry, ResolvedExtensionCommand};-use super::tool::ExtensionTool;--/// One extension world: a sidecar host plus the registry mirror.-pub struct ExtensionRunner {- host: ExtensionHost,- registry: Arc<Mutex<ExtensionRegistry>>,- timeouts: HostTimeouts,-}--impl ExtensionRunner {- /// Spawn the sidecar, run the `hello` load cycle, and land the- /// registrations. Load errors are carried in the runner (never fatal,- /// TS parity: `loadExtensions` reports them per-path).- ///- /// # Errors- ///- /// Returns an error when the sidecar fails to spawn or the `hello`- /// handshake fails (see [`ExtensionHost::start`]).- pub async fn start(spec: ExtensionHostSpec) -> Result<ExtensionRunner> {- let mut host = ExtensionHost::start(spec.clone()).await?;- let registry = Arc::new(Mutex::new(ExtensionRegistry::default()));- // Pump sidecar notifications for the runner's lifetime:- // post-hello registration changes merge into the registry;- // extension_error reports surface as warnings (they are already- // non-fatal in the sidecar's error boundary).- let pump_registry = Arc::clone(®istry);- let mut notifications = host.take_notifications();- tokio::spawn(async move {- while let Some(notification) = notifications.recv().await {- match notification {- SidecarNotification::Registration(registration) => {- pump_registry- .lock()- .await- .merge_notification(registration.registration);- }- SidecarNotification::ExtensionError(error) => {- warn!(- target: "extension_host",- "extension error ({} on {}): {}",- error.extension_path,- error.event,- error.error- );- }- SidecarNotification::Other { method, params } => {- debug!(- target: "extension_host",- "sidecar notification {method}: {params}"- );- }- }- }- });- registry.lock().await.merge_load(&host.hello().extensions);- Ok(ExtensionRunner {- host,- registry,- timeouts: spec.timeouts,- })- }-- /// The handshake result: registrations as loaded plus per-path errors.- #[must_use]- pub fn hello(&self) -> &HelloResult {- self.host.hello()- }-- /// Per-path load errors (never fatal; surfaced by the caller in- /// startup notices).- #[must_use]- pub fn load_errors(&self) -> &[pa_types::extension_rpc::ExtensionLoadError] {- &self.host.hello().errors- }-- /// The registration views through the registry mirror (TS collision- /// rules). The registry lives behind a mutex because the notification- /// pump merges post-hello registration changes; every view re-derives- /// from the same registration list.- pub async fn registry(&self) -> tokio::sync::MutexGuard<'_, ExtensionRegistry> {- self.registry.lock().await- }-- /// Whether the runner is still usable (§2.4: a dead sidecar degrades to- /// no-ops; requests fail fast).- #[must_use]- pub fn is_alive(&self) -> bool {- self.host.is_alive()- }-- /// The sidecar process id (diagnostics and tests).- #[must_use]- pub fn pid(&self) -> Option<u32> {- self.host.pid()- }-- /// Whether any loaded extension subscribed to `event` (runner.ts- /// `hasHandlers` gating).- pub async fn has_handlers(&self, event: &str) -> bool {- self.registry.lock().await.has_handlers(event)- }-- /// Registered commands with invocation names (collision suffixing).- pub async fn commands(&self) -> Vec<ResolvedExtensionCommand> {- self.registry.lock().await.commands()- }-- /// Dispatch one event; the reply carries the accumulated handler- /// result (chaining semantics land with the event-surface stage).- ///- /// # Errors- ///- /// Returns an error when the event params cannot be serialized or the- /// sidecar RPC request fails.- pub async fn emit_event(- &self,- event_type: &str,- payload: serde_json::Value,- ) -> Result<serde_json::Value> {- self.host.emit_event(event_type, payload).await- }-- /// Execute a registered extension tool by name (used directly by tests- /// and the tool bridge's fallback paths).- ///- /// # Errors- ///- /// Returns an error when the tool params cannot be serialized, the RPC- /// request fails, or the reply cannot be parsed as a tool result.- pub async fn execute_tool(- &self,- tool_call_id: &str,- tool_name: &str,- args: serde_json::Value,- ) -> Result<ToolExecuteResult> {- self.host.execute_tool(tool_call_id, tool_name, args).await- }-- /// Dispatch a slash command by invocation name.- ///- /// # Errors- ///- /// Returns an error when the command params cannot be serialized or the- /// sidecar RPC request fails.- pub async fn execute_command(&self, invocation_name: &str, args: &str) -> Result<()> {- let params = serde_json::to_value(CommandExecuteParams {- invocation_name: invocation_name.to_string(),- args: args.to_string(),- })?;- self.host_request(METHOD_COMMAND_EXECUTE, params).await?;- Ok(())- }-- /// Dispatch a keybinding shortcut by normalized key id.- ///- /// # Errors- ///- /// Returns an error when the shortcut params cannot be serialized or the- /// sidecar RPC request fails.- pub async fn execute_shortcut(&self, key: &str) -> Result<()> {- let params = serde_json::to_value(ShortcutExecuteParams {- key: key.to_string(),- })?;- self.host_request(METHOD_SHORTCUT_EXECUTE, params).await?;- Ok(())- }-- /// The loop-visible tools: every registered extension tool bridged over- /// the RPC, filtered by the optional name allow-list (`--tools`, TS- /// `isAllowedTool`: an absent list allows everything).- /// The loop-visible tools: every registered extension tool bridged over- /// the RPC, filtered by the optional name allow-list (`--tools`, TS- /// `isAllowedTool`: an absent list allows everything).- pub async fn bridge_tools(&self, allow_list: Option<&[String]>) -> Vec<Arc<dyn AgentTool>> {- let registrations: Vec<_> = self- .registry- .lock()- .await- .tools()- .into_iter()- .cloned()- .collect();- let client = self.host.client().clone();- registrations- .into_iter()- .filter(|tool| {- allow_list.is_none_or(|allowed| allowed.iter().any(|name| name == &tool.name))- })- .map(|tool| {- Arc::new(ExtensionTool::new(tool, client.clone(), self.timeouts.rpc))- as Arc<dyn AgentTool>- })- .collect()- }-- /// Liveness probe (Rust-side `ping`).- ///- /// # Errors- ///- /// Returns an error when the sidecar is not running or the ping request- /// fails or times out.- pub async fn ping(&self) -> Result<serde_json::Value> {- self.host.ping().await- }-- /// Orderly shutdown (§2.4): `shutdown` -> emit `session_shutdown` in the- /// sidecar -> wait briefly -> kill the process group.- ///- /// # Errors- ///- /// Returns an error only when waiting for the sidecar process fails (see- /// [`ExtensionHost::shutdown`]); an unresponsive sidecar is killed and- /// reported as success.- pub async fn shutdown(self, reason: &str) -> Result<()> {- self.host.shutdown(reason).await- }-- async fn host_request(- &self,- method: &str,- params: serde_json::Value,- ) -> Result<serde_json::Value> {- self.host- .client()- .request(method, params, self.timeouts.rpc)- .await- }-}--#[cfg(test)]-mod tests {- use super::*;- use crate::extensions::RpcClient;- use pa_agent::types::ToolExecutionMode;- use pa_types::extension_rpc::ToolRegistration;- use serde_json::json;- use std::time::Duration;-- fn registration(name: &str, mode: Option<&str>) -> ToolRegistration {- ToolRegistration {- name: name.to_string(),- label: name.to_string(),- description: "test".to_string(),- prompt_snippet: None,- prompt_guidelines: None,- parameters: json!({"type": "object"}),- execution_mode: mode.map(str::to_string),- }- }-- #[test]- fn extension_tool_maps_registration_to_the_loop_contract() {- let tool = registration("hello", Some("sequential"));- let bridge = ExtensionTool::new(- tool,- RpcClient::new(- tokio::io::sink(),- tokio::sync::mpsc::channel(1).0,- None,- super::super::framing::LineLimits::default(),- ),- Duration::from_secs(1),- );- assert_eq!(bridge.name(), "hello");- assert_eq!(bridge.label(), "hello");- assert_eq!(bridge.description(), "test");- assert_eq!(bridge.execution_mode(), Some(ToolExecutionMode::Sequential));- assert_eq!(bridge.parameters(), &json!({"type": "object"}));- assert!(bridge.prepare_arguments(&json!({})).is_none());- }-- #[test]- fn execution_mode_absent_and_unknown_map_to_none() {- let none = ExtensionTool::new(- registration("a", None),- RpcClient::new(- tokio::io::sink(),- tokio::sync::mpsc::channel(1).0,- None,- super::super::framing::LineLimits::default(),- ),- Duration::from_secs(1),- );- assert_eq!(none.execution_mode(), None);- let unknown = ExtensionTool::new(- registration("b", Some("weird")),- RpcClient::new(- tokio::io::sink(),- tokio::sync::mpsc::channel(1).0,- None,- super::super::framing::LineLimits::default(),- ),- Duration::from_secs(1),- );- assert_eq!(unknown.execution_mode(), None);- }-}diff --git a/crates/pa-core/src/extensions/script.rs b/crates/pa-core/src/extensions/script.rsdeleted file mode 100644index 1dbd18a7c5..0000000000--- a/crates/pa-core/src/extensions/script.rs+++ /dev/null@@ -1,184 +0,0 @@-//! Materialization of the bundled extension host runtime (design doc-//! §2.2): the host script, its shim modules, and the vendored jiti-//! (`jiti/static`) are shipped inside the binary and written under-//! `<agentDir>/extension-host/runtime-<sha256>/` at first use.-//!-//! The whole runtime is content-addressed as one unit: the digest covers-//! every file's name and bytes, so a stale runtime on disk (older agent dir)-//! fails the protocol handshake (R10) and every release writes a fresh-//! directory, leaving a running sidecar's files untouched. A partially-//! written runtime is unobservable (temp dir + rename), and a concurrent-//! materializer that loses the rename finds the winner in place.--use std::fmt::Write as _;-use std::path::{Path, PathBuf};--use anyhow::{Context, Result};-use sha2::{Digest, Sha256};--/// One file of the runtime bundle.-struct BundleFile {- /// Path relative to the runtime directory.- name: &'static str,- /// Content compiled into the binary.- bytes: &'static [u8],-}--const HOST_SCRIPT: &str = include_str!("host_script.mjs");--const RUNTIME_FILES: &[BundleFile] = &[- BundleFile {- name: "host.mjs",- bytes: HOST_SCRIPT.as_bytes(),- },- BundleFile {- name: "typebox.mjs",- bytes: include_bytes!("typebox.mjs"),- },- BundleFile {- name: "pi-ai.mjs",- bytes: include_bytes!("pi-ai.mjs"),- },- BundleFile {- name: "pi-coding-agent.mjs",- bytes: include_bytes!("pi-coding-agent.mjs"),- },- BundleFile {- name: "unsupported.mjs",- bytes: include_bytes!("unsupported.mjs"),- },- BundleFile {- name: "vendor/jiti/package.json",- bytes: include_bytes!("vendor/jiti/package.json"),- },- BundleFile {- name: "vendor/jiti/LICENSE",- bytes: include_bytes!("vendor/jiti/LICENSE"),- },- BundleFile {- name: "vendor/jiti/lib/jiti-static.mjs",- bytes: include_bytes!("vendor/jiti/lib/jiti-static.mjs"),- },- BundleFile {- name: "vendor/jiti/dist/jiti.cjs",- bytes: include_bytes!("vendor/jiti/dist/jiti.cjs"),- },- BundleFile {- name: "vendor/jiti/dist/babel.cjs",- bytes: include_bytes!("vendor/jiti/dist/babel.cjs"),- },-];--/// The digest of the runtime bundle: every file's name and content, in-/// bundle order. Two runs of the same build produce the same digest.-fn runtime_digest() -> String {- let mut hasher = Sha256::new();- for file in RUNTIME_FILES {- hasher.update(file.name.as_bytes());- hasher.update(file.bytes);- }- hasher- .finalize()- .iter()- .fold(String::new(), |mut output, b| {- let _ = write!(output, "{b:02x}");- output- })-}--/// Write the bundled runtime under `<agent_dir>/extension-host/` and return-/// the host script's path. Already-materialized runtimes are a cache hit;-/// the temp-directory + rename keeps a partial write unobservable, and a-/// concurrent materializer that loses the rename finds the winner in place.-pub(crate) fn materialize_host_script(agent_dir: &Path) -> Result<PathBuf> {- let digest = runtime_digest();- let root = agent_dir.join("extension-host");- let dir = root.join(format!("runtime-{digest}"));- let host = dir.join("host.mjs");- if host.is_file() {- return Ok(host);- }- let temp = root.join(format!(".runtime-{digest}.{}.tmp", std::process::id()));- if temp.exists() {- // A crashed earlier materializer left its temp dir behind.- let _ = std::fs::remove_dir_all(&temp);- }- for file in RUNTIME_FILES {- let path = temp.join(file.name);- if let Some(parent) = path.parent() {- std::fs::create_dir_all(parent)- .with_context(|| format!("creating {}", parent.display()))?;- }- std::fs::write(&path, file.bytes).with_context(|| format!("writing {}", path.display()))?;- }- if std::fs::rename(&temp, &dir).is_err() {- // Lost the race to another materializer: drop our temp copy, the- // winner's identical content is already in place.- let _ = std::fs::remove_dir_all(&temp);- }- if !host.is_file() {- return Err(anyhow::anyhow!(- "extension host runtime did not materialize: {}",- host.display()- ));- }- Ok(host)-}--#[cfg(test)]-mod tests {- use super::*;-- #[test]- fn runtime_is_content_addressed_and_complete() {- let temp = tempfile::tempdir().unwrap();- let host = materialize_host_script(temp.path()).unwrap();- let dir = host.parent().unwrap();- let name = dir.file_name().unwrap().to_str().unwrap();- assert!(name.starts_with("runtime-"), "got {name}");- assert_eq!(runtime_digest().len(), 64);- // Every bundle file is present next to the host script.- for file in RUNTIME_FILES {- assert!(dir.join(file.name).is_file(), "missing {}", file.name);- }- // The materialized host script matches the bundled source.- let content = std::fs::read_to_string(&host).unwrap();- assert_eq!(content, HOST_SCRIPT);- // A second materialization is a cache hit on the same directory.- assert_eq!(materialize_host_script(temp.path()).unwrap(), host);- }-- #[test]- fn content_address_excludes_leftover_temp_dirs() {- let temp = tempfile::tempdir().unwrap();- materialize_host_script(temp.path()).unwrap();- let entries: Vec<_> = std::fs::read_dir(temp.path().join("extension-host"))- .unwrap()- .map(|entry| entry.unwrap().file_name().to_string_lossy().into_owned())- .collect();- assert_eq!(entries.len(), 1, "no temp dirs survive: {entries:?}");- assert!(entries[0].starts_with("runtime-"));- }-- #[test]- fn vendored_jiti_matches_the_upstream_dist() {- // The vendored jiti is a dependency of the shipped binary; assert- // the pieces the static entry imports exist and are the real dists- // (not zero-byte truncations).- let static_entry = std::str::from_utf8(- RUNTIME_FILES- .iter()- .find(|file| file.name == "vendor/jiti/lib/jiti-static.mjs")- .unwrap()- .bytes,- )- .unwrap();- assert!(static_entry.contains("export function createJiti"));- let jiti = RUNTIME_FILES- .iter()- .find(|file| file.name == "vendor/jiti/dist/jiti.cjs")- .unwrap()- .bytes;- assert!(jiti.len() > 100_000, "jiti dist truncated: {}", jiti.len());- }-}diff --git a/crates/pa-core/src/extensions/tool.rs b/crates/pa-core/src/extensions/tool.rsdeleted file mode 100644index 70bbe3f422..0000000000--- a/crates/pa-core/src/extensions/tool.rs+++ /dev/null@@ -1,185 +0,0 @@-//! The loop-visible bridge for extension tools (design doc §3.3): an-//! `AgentTool` whose `execute` dispatches `tool_execute` over the sidecar-//! RPC. The registration (name/label/description/JSON Schema parameters)-//! crossed the wire at load; the live `execute` stays in the sidecar.-//!-//! Port role: TS `wrapRegisteredTool` (extensions/wrapper.ts) adapts a-//! `RegisteredTool` into the loop's `AgentTool`; this is the Rust equivalent-//! for the sidecar world. Name allow-list filtering (`--tools`, TS-//! agent-session.ts `isAllowedTool`) applies before bridging-//! ([`crate::extensions::ExtensionRunner::bridge_tools`]).-//!-//! Stage-2 deviations (documented, design doc §2.3/§2.6):-//! - `prepareArguments` is a function and cannot cross the wire; extension-//! tools receive raw validated args.-//! - `renderCall`/`renderResult` components cannot cross; the default tool-//! rendering applies.-//! - tool `signal`/cancellation tokens arrive with the event-surface stage.--use std::sync::Arc;-use std::time::Duration;--use super::client::RpcClient;-use pa_agent::abort::AbortSignal;-use pa_agent::types::{- AgentTool, AgentToolResult, AgentToolUpdateCallback, ToolExecutionMode, ToolResultContent,-};-use pa_types::extension_rpc::{- ToolExecuteParams, ToolExecuteResult, ToolRegistration, ToolResultBlock, METHOD_TOOL_EXECUTE,-};-/// One extension tool bridged into the loop contract. Generic over the-/// RPC writer so tests can drive a duplex (the host uses the sidecar's-/// stdin pipe).-pub struct ExtensionTool<W> {- registration: ToolRegistration,- client: Arc<RpcClient<W>>,- rpc_timeout: Duration,-}--impl<W> ExtensionTool<W> {- pub fn new(- registration: ToolRegistration,- client: Arc<RpcClient<W>>,- rpc_timeout: Duration,- ) -> Self {- ExtensionTool {- registration,- client,- rpc_timeout,- }- }-- /// The registration this tool was bridged from (snippets/guidelines for- /// prompt assembly, schema provenance).- #[must_use]- pub fn registration(&self) -> &ToolRegistration {- &self.registration- }-}--fn convert_blocks(result: ToolExecuteResult) -> Vec<ToolResultContent> {- result- .content- .into_iter()- .map(|block| match block {- ToolResultBlock::Text { text } => ToolResultContent::text(text),- ToolResultBlock::Image { data, mime_type } => {- ToolResultContent::Image(pa_agent::types::ImageContent { data, mime_type })- }- })- .collect()-}--impl<W> AgentTool for ExtensionTool<W>-where- W: tokio::io::AsyncWrite + Unpin + Send + 'static,-{- fn name(&self) -> &str {- &self.registration.name- }-- fn description(&self) -> &str {- &self.registration.description- }-- fn parameters(&self) -> &serde_json::Value {- &self.registration.parameters- }-- fn label(&self) -> &str {- &self.registration.label- }-- fn prepare_arguments(&self, _args: &serde_json::Value) -> Option<serde_json::Value> {- // prepareArguments is a function and cannot cross the wire.- None- }-- fn execute(- self: Arc<Self>,- tool_call_id: String,- params: serde_json::Value,- _signal: AbortSignal,- _on_update: AgentToolUpdateCallback,- ) -> pa_agent::BoxFut<'static, anyhow::Result<AgentToolResult>> {- let tool = self;- Box::pin(async move {- let request = serde_json::to_value(ToolExecuteParams {- tool_call_id,- tool_name: tool.registration.name.clone(),- args: params,- })- .map_err(|error| anyhow::anyhow!("serializing extension tool params: {error}"))?;- let reply = tool- .client- .request(METHOD_TOOL_EXECUTE, request, tool.rpc_timeout)- .await?;- let result: ToolExecuteResult = serde_json::from_value(reply)- .map_err(|error| anyhow::anyhow!("parsing extension tool result: {error}"))?;- let result_is_error = result.is_error;- let details = result.details.clone().unwrap_or(serde_json::Value::Null);- let content = convert_blocks(result);- // `isError` crossed the wire, but the loop's `AgentToolResult`- // has no error flag; surface it the way a thrown tool error- // does in TS - the loop records an error tool result carrying- // the (text) content in the message.- if result_is_error {- let text = content- .iter()- .map(|block| match block {- ToolResultContent::Text(text) => text.text.clone(),- ToolResultContent::Image(_) => String::new(),- })- .collect::<Vec<_>>()- .join("\n");- return Err(anyhow::anyhow!(text));- }- Ok(AgentToolResult {- content,- details,- terminate: None,- })- })- }-- fn execution_mode(&self) -> Option<ToolExecutionMode> {- match self.registration.execution_mode.as_deref() {- Some("sequential") => Some(ToolExecutionMode::Sequential),- Some("parallel") => Some(ToolExecutionMode::Parallel),- _ => None,- }- }-}--#[cfg(test)]-mod tests {- use super::*;- use pa_agent::types::ImageContent;- use serde_json::json;-- #[test]- fn wire_blocks_convert_to_loop_content() {- let result = ToolExecuteResult {- content: vec![- ToolResultBlock::Text {- text: "Hello, world!".to_string(),- },- ToolResultBlock::Image {- data: "aGk=".to_string(),- mime_type: "image/png".to_string(),- },- ],- details: Some(json!({"greeted": "world"})),- is_error: false,- };- let blocks = convert_blocks(result);- assert_eq!(blocks[0], ToolResultContent::text("Hello, world!"));- assert_eq!(- blocks[1],- ToolResultContent::Image(ImageContent {- data: "aGk=".to_string(),- mime_type: "image/png".to_string()- })- );- }-}diff --git a/crates/pa-core/src/extensions/typebox.mjs b/crates/pa-core/src/extensions/typebox.mjsdeleted file mode 100644index 33956d4fe6..0000000000--- a/crates/pa-core/src/extensions/typebox.mjs+++ /dev/null@@ -1,64 +0,0 @@-// typebox shim for the extension host (stage 2).-//-// TS ground truth: the typebox Type builder the TS product serves under the-// `typebox` / `@sinclair/typebox` aliases (loader.ts getAliases);-// `packages/ai/src/index.ts` re-exports it from `typebox`. Extensions build-// their tool parameter schemas with it, and the result is JSON-Schema-// compatible, so the host passes it through as the tool wire schema exactly-// like the TS agent registry does.-//-// This shim implements the builder subset the extension corpus uses.-// Imports of names this module does not export (Value, Compile, ...) resolve-// to `undefined` through jiti's interop and throw at use time - the v1-// documented degradation (design doc §2.6).--const OPT = Symbol("piOptional");--function stripOptional(schema) {- const copy = { ...schema };- delete copy[OPT];- return copy;-}--function isOptional(schema) {- return Boolean(schema && schema[OPT]);-}--const factory = (schema) => (options = {}) => ({ ...schema, ...options });--export const Type = {- Object: (properties, options = {}) => {- const props = {};- const required = [];- for (const [key, schema] of Object.entries(properties)) {- props[key] = stripOptional(schema);- if (!isOptional(schema)) required.push(key);- }- return {- type: "object",- properties: props,- ...(required.length > 0 ? { required } : {}),- ...options,- };- },- Array: (items, options = {}) => ({ type: "array", items, ...options }),- String: factory({ type: "string" }),- Number: factory({ type: "number" }),- Integer: factory({ type: "integer" }),- Boolean: factory({ type: "boolean" }),- Null: factory({ type: "null" }),- Any: factory({}),- Unknown: factory({}),- Literal: (value) => ({ const: value }),- Union: (schemas, options = {}) => ({ anyOf: schemas, ...options }),- Record: (key, values, options = {}) => ({- type: "object",- propertyNames: key,- additionalProperties: values,- ...options,- }),- Optional: (schema) => ({ ...schema, [OPT]: true }),- Enum: (values, options = {}) => ({ enum: [...values], ...options }),-};--export default { Type, ...Type };diff --git a/crates/pa-core/src/extensions/unsupported.mjs b/crates/pa-core/src/extensions/unsupported.mjsdeleted file mode 100644index 09f846edd9..0000000000--- a/crates/pa-core/src/extensions/unsupported.mjs+++ /dev/null@@ -1,10 +0,0 @@-// Shim for pi packages with no sidecar-representable value surface-// (@earendil-works/pi-tui components, pi-agent-core internals,-// typebox/compile, typebox/value, oauth flows). TS parity note: in the-// compiled TS binary these are real virtual modules; over the sidecar-// boundary components and callbacks cannot cross, so v1 exposes no exports:-// imports resolve to `undefined` through jiti's interop and throw at use-// time - degrade with a diagnostic, never fail the load (design doc-// §2.6/R3).--export {};diff --git a/crates/pa-core/src/extensions/vendor/jiti/LICENSE b/crates/pa-core/src/extensions/vendor/jiti/LICENSEdeleted file mode 100644index e739abce46..0000000000--- a/crates/pa-core/src/extensions/vendor/jiti/LICENSE+++ /dev/null@@ -1,21 +0,0 @@-MIT License--Copyright (c) Pooya Parsa <[email protected]>--Permission is hereby granted, free of charge, to any person obtaining a copy-of this software and associated documentation files (the "Software"), to deal-in the Software without restriction, including without limitation the rights-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell-copies of the Software, and to permit persons to whom the Software is-furnished to do so, subject to the following conditions:--The above copyright notice and this permission notice shall be included in all-copies or substantial portions of the Software.--THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE-SOFTWARE.diff --git a/crates/pa-core/src/extensions/vendor/jiti/VENDOR-NOTE.md b/crates/pa-core/src/extensions/vendor/jiti/VENDOR-NOTE.mddeleted file mode 100644index 9d6f61fb39..0000000000--- a/crates/pa-core/src/extensions/vendor/jiti/VENDOR-NOTE.md+++ /dev/null@@ -1,21 +0,0 @@-# Vendored jiti--jiti v2.7.0 (MIT, https://github.com/unjs/jiti), vendored as the-`jiti/static` dist files so the extension host runs the same module loader-the TS product uses (`packages/coding-agent/src/core/extensions/loader.ts`-`loadExtensionModule`: `createJiti` from `jiti/static`, `moduleCache: false`)-without an `npm install` at runtime or a network dependency in CI.--Contents: `lib/jiti-static.mjs`, `dist/jiti.cjs`, `dist/babel.cjs`-(the three files the static entry needs at runtime), plus `package.json` and-`LICENSE` for provenance and attribution. To update: download the jiti-release tarball, copy the same five files, and re-run the extension-host tests-(`cargo test -p pa-core extension`).--Materialized under `<agentDir>/extension-host/runtime-<sha256>/` at first use-(`script.rs`), next to the host script that imports it.--Provenance check: the vendored files are byte-identical to the official-`jiti-2.7.0.tgz` npm tarball (sha256-verified for all three runtime files;-the tarball's own dist carries a stale internal `rE: "2.6.1"` version-string - upstream's, not ours).diff --git a/crates/pa-core/src/extensions/vendor/jiti/dist/babel.cjs b/crates/pa-core/src/extensions/vendor/jiti/dist/babel.cjsdeleted file mode 100644index 1e6b684f9f..0000000000--- a/crates/pa-core/src/extensions/vendor/jiti/dist/babel.cjs+++ /dev/null@@ -1,257 +0,0 @@-(()=>{var e={"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/files lazy recursive"(e){function webpackEmptyAsyncContext(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}webpackEmptyAsyncContext.keys=()=>[],webpackEmptyAsyncContext.resolve=webpackEmptyAsyncContext,webpackEmptyAsyncContext.id="./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/files lazy recursive",e.exports=webpackEmptyAsyncContext},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/files sync recursive"(e){function webpackEmptyContext(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/files sync recursive",e.exports=webpackEmptyContext},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-syntax-class-properties/lib/index.js"(e,t,r){"use strict";t.A=void 0;var n=(0,r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-plugin-utils/lib/index.js").declare)(e=>(e.assertVersion(7),{name:"syntax-class-properties",manipulateOptions(e,t){t.plugins.push("classProperties","classPrivateProperties","classPrivateMethods")}}));t.A=n},"./node_modules/.pnpm/@[email protected]/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js"(e,t,r){var n;!function(e,t,r){"use strict";var n=Object.create,s=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,__commonJS=(e,t)=>function(){return t||(0,e[o(e)[0]])((t={exports:{}}).exports,t),t.exports},__export=(e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:!0})},__copyProps=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of o(t))l.call(e,a)||a===r||s(e,a,{get:()=>t[a],enumerable:!(n=i(t,a))||n.enumerable});return e},__toESM=(e,t,r)=>(r=null!=e?n(a(e)):{},__copyProps(!t&&e&&e.__esModule?r:s(r,"default",{value:e,enumerable:!0}),e)),__toCommonJS=e=>__copyProps(s({},"__esModule",{value:!0}),e),p=__commonJS({"umd:@jridgewell/sourcemap-codec"(e,r){r.exports=t}}),c=__commonJS({"umd:@jridgewell/trace-mapping"(e,t){t.exports=r}}),u={};__export(u,{GenMapping:()=>E,addMapping:()=>addMapping,addSegment:()=>addSegment,allMappings:()=>allMappings,fromMap:()=>fromMap,maybeAddMapping:()=>maybeAddMapping,maybeAddSegment:()=>maybeAddSegment,setIgnore:()=>setIgnore,setSourceContent:()=>setSourceContent,toDecodedMap:()=>toDecodedMap,toEncodedMap:()=>toEncodedMap}),e.exports=__toCommonJS(u);var d=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function cast(e){return e}function get(e,t){return cast(e)._indexes[t]}function put(e,t){const r=get(e,t);if(void 0!==r)return r;const{array:n,_indexes:s}=cast(e),i=n.push(t);return s[t]=i-1}function remove(e,t){const r=get(e,t);if(void 0===r)return;const{array:n,_indexes:s}=cast(e);for(let e=r+1;e<n.length;e++){const t=n[e];n[e-1]=t,s[t]--}s[t]=void 0,n.pop()}var h=__toESM(p()),m=__toESM(c()),f=0,y=1,b=2,g=3,x=4,v=-1,E=class{constructor({file:e,sourceRoot:t}={}){this._names=new d,this._sources=new d,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new d}};function cast2(e){return e}function addSegment(e,t,r,n,s,i,o,a){return addSegmentInternal(!1,e,t,r,n,s,i,o,a)}function addMapping(e,t){return addMappingInternal(!1,e,t)}var maybeAddSegment=(e,t,r,n,s,i,o,a)=>addSegmentInternal(!0,e,t,r,n,s,i,o,a),maybeAddMapping=(e,t)=>addMappingInternal(!0,e,t);function setSourceContent(e,t,r){const{_sources:n,_sourcesContent:s}=cast2(e);s[put(n,t)]=r}function setIgnore(e,t,r=!0){const{_sources:n,_sourcesContent:s,_ignoreList:i}=cast2(e),o=put(n,t);o===s.length&&(s[o]=null),r?put(i,o):remove(i,o)}function toDecodedMap(e){const{_mappings:t,_sources:r,_sourcesContent:n,_names:s,_ignoreList:i}=cast2(e);return removeEmptyFinalLines(t),{version:3,file:e.file||void 0,names:s.array,sourceRoot:e.sourceRoot||void 0,sources:r.array,sourcesContent:n,mappings:t,ignoreList:i.array}}function toEncodedMap(e){const t=toDecodedMap(e);return Object.assign({},t,{mappings:(0,h.encode)(t.mappings)})}function fromMap(e){const t=new m.TraceMap(e),r=new E({file:t.file,sourceRoot:t.sourceRoot});return putAll(cast2(r)._names,t.names),putAll(cast2(r)._sources,t.sources),cast2(r)._sourcesContent=t.sourcesContent||t.sources.map(()=>null),cast2(r)._mappings=(0,m.decodedMappings)(t),t.ignoreList&&putAll(cast2(r)._ignoreList,t.ignoreList),r}function allMappings(e){const t=[],{_mappings:r,_sources:n,_names:s}=cast2(e);for(let e=0;e<r.length;e++){const i=r[e];for(let r=0;r<i.length;r++){const o=i[r],a={line:e+1,column:o[f]};let l,p,c;1!==o.length&&(l=n.array[o[y]],p={line:o[b]+1,column:o[g]},5===o.length&&(c=s.array[o[x]])),t.push({generated:a,source:l,original:p,name:c})}}return t}function addSegmentInternal(e,t,r,n,s,i,o,a,l){const{_mappings:p,_sources:c,_sourcesContent:u,_names:d}=cast2(t),h=getIndex(p,r),m=getColumnIndex(h,n);if(!s){if(e&&skipSourceless(h,m))return;return insert(h,m,[n])}assert(i),assert(o);const f=put(c,s),y=a?put(d,a):v;if(f===u.length&&(u[f]=null!=l?l:null),!e||!skipSource(h,m,f,i,o,y))return insert(h,m,a?[n,f,i,o,y]:[n,f,i,o])}function assert(e){}function getIndex(e,t){for(let r=e.length;r<=t;r++)e[r]=[];return e[t]}function getColumnIndex(e,t){let r=e.length;for(let n=r-1;n>=0&&!(t>=e[n][f]);r=n--);return r}function insert(e,t,r){for(let r=e.length;r>t;r--)e[r]=e[r-1];e[t]=r}function removeEmptyFinalLines(e){const{length:t}=e;let r=t;for(let t=r-1;t>=0&&!(e[t].length>0);r=t,t--);r<t&&(e.length=r)}function putAll(e,t){for(let r=0;r<t.length;r++)put(e,t[r])}function skipSourceless(e,t){return 0===t||1===e[t-1].length}function skipSource(e,t,r,n,s,i){if(0===t)return!1;const o=e[t-1];return 1!==o.length&&r===o[y]&&n===o[b]&&s===o[g]&&i===(5===o.length?o[x]:v)}function addMappingInternal(e,t,r){const{generated:n,source:s,original:i,name:o,content:a}=r;return s?(assert(i),addSegmentInternal(e,t,n.line-1,n.column,s,i.line-1,i.column,o,a)):addSegmentInternal(e,t,n.line-1,n.column,null,null,null,null,null)}}(e=r.nmd(e),r("./node_modules/.pnpm/@[email protected]/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js"),r("./node_modules/.pnpm/@[email protected]/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js")),e.exports="default"in(n=e).exports?n.exports.default:n.exports},"./node_modules/.pnpm/@[email protected]/node_modules/@jridgewell/remapping/dist/remapping.umd.js"(e,t,r){var n;!function(e,t,r){"use strict";var n=Object.create,s=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,__commonJS=(e,t)=>function(){return t||(0,e[o(e)[0]])((t={exports:{}}).exports,t),t.exports},__export=(e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:!0})},__copyProps=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of o(t))l.call(e,a)||a===r||s(e,a,{get:()=>t[a],enumerable:!(n=i(t,a))||n.enumerable});return e},__toESM=(e,t,r)=>(r=null!=e?n(a(e)):{},__copyProps(!t&&e&&e.__esModule?r:s(r,"default",{value:e,enumerable:!0}),e)),__toCommonJS=e=>__copyProps(s({},"__esModule",{value:!0}),e),p=__commonJS({"umd:@jridgewell/trace-mapping"(e,t){t.exports=r}}),c=__commonJS({"umd:@jridgewell/gen-mapping"(e,r){r.exports=t}}),u={};__export(u,{default:()=>remapping}),e.exports=__toCommonJS(u);var d=__toESM(p()),h=__toESM(c()),m=__toESM(p()),f=SegmentObject("",-1,-1,"",null,!1),y=[];function SegmentObject(e,t,r,n,s,i){return{source:e,line:t,column:r,name:n,content:s,ignore:i}}function Source(e,t,r,n,s){return{map:e,sources:t,source:r,content:n,ignore:s}}function MapSource(e,t){return Source(e,t,"",null,!1)}function OriginalSource(e,t,r){return Source(null,y,e,t,r)}function traceMappings(e){const t=new h.GenMapping({file:e.map.file}),{sources:r,map:n}=e,s=n.names,i=(0,m.decodedMappings)(n);for(let e=0;e<i.length;e++){const n=i[e];for(let i=0;i<n.length;i++){const o=n[i],a=o[0];let l=f;if(1!==o.length&&(l=originalPositionFor(r[o[1]],o[2],o[3],5===o.length?s[o[4]]:""),null==l))continue;const{column:p,line:c,name:u,content:d,source:m,ignore:y}=l;(0,h.maybeAddSegment)(t,e,a,m,c,p,u),m&&null!=d&&(0,h.setSourceContent)(t,m,d),y&&(0,h.setIgnore)(t,m,!0)}}return t}function originalPositionFor(e,t,r,n){if(!e.map)return SegmentObject(e.source,t,r,n,e.content,e.ignore);const s=(0,m.traceSegment)(e.map,t,r);return null==s?null:1===s.length?f:originalPositionFor(e.sources[s[1]],s[2],s[3],5===s.length?e.map.names[s[4]]:n)}function asArray(e){return Array.isArray(e)?e:[e]}function buildSourceMapTree(e,t){const r=asArray(e).map(e=>new d.TraceMap(e,"")),n=r.pop();for(let e=0;e<r.length;e++)if(r[e].sources.length>1)throw new Error(`Transformation map ${e} must have exactly one source file.\nDid you specify these with the most recent transformation maps first?`);let s=build(n,t,"",0);for(let e=r.length-1;e>=0;e--)s=MapSource(r[e],[s]);return s}function build(e,t,r,n){const{resolvedSources:s,sourcesContent:i,ignoreList:o}=e,a=n+1;return MapSource(e,s.map((e,n)=>{const s={importer:r,depth:a,source:e||"",content:void 0,ignore:void 0},l=t(s.source,s),{source:p,content:c,ignore:u}=s;return l?build(new d.TraceMap(l,p),t,p,a):OriginalSource(p,void 0!==c?c:i?i[n]:null,void 0!==u?u:!!o&&o.includes(n))}))}var b=__toESM(c()),g=class{constructor(e,t){const r=t.decodedMappings?(0,b.toDecodedMap)(e):(0,b.toEncodedMap)(e);this.version=r.version,this.file=r.file,this.mappings=r.mappings,this.names=r.names,this.ignoreList=r.ignoreList,this.sourceRoot=r.sourceRoot,this.sources=r.sources,t.excludeContent||(this.sourcesContent=r.sourcesContent)}toString(){return JSON.stringify(this)}};function remapping(e,t,r){const n="object"==typeof r?r:{excludeContent:!!r,decodedMappings:!1},s=buildSourceMapTree(e,t);return new g(traceMappings(s),n)}}(e=r.nmd(e),r("./node_modules/.pnpm/@[email protected]/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js"),r("./node_modules/.pnpm/@[email protected]/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js")),e.exports="default"in(n=e).exports?n.exports.default:n.exports},"./node_modules/.pnpm/@[email protected]/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js"(e){e.exports=function(){"use strict";const e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function isAbsoluteUrl(t){return e.test(t)}function isSchemeRelativeUrl(e){return e.startsWith("//")}function isAbsolutePath(e){return e.startsWith("/")}function isFileUrl(e){return e.startsWith("file:")}function isRelative(e){return/^[.?#]/.test(e)}function parseAbsoluteUrl(e){const r=t.exec(e);return makeUrl(r[1],r[2]||"",r[3],r[4]||"",r[5]||"/",r[6]||"",r[7]||"")}function parseFileUrl(e){const t=r.exec(e),n=t[2];return makeUrl("file:","",t[1]||"","",isAbsolutePath(n)?n:"/"+n,t[3]||"",t[4]||"")}function makeUrl(e,t,r,n,s,i,o){return{scheme:e,user:t,host:r,port:n,path:s,query:i,hash:o,type:7}}function parseUrl(e){if(isSchemeRelativeUrl(e)){const t=parseAbsoluteUrl("http:"+e);return t.scheme="",t.type=6,t}if(isAbsolutePath(e)){const t=parseAbsoluteUrl("http://foo.com"+e);return t.scheme="",t.host="",t.type=5,t}if(isFileUrl(e))return parseFileUrl(e);if(isAbsoluteUrl(e))return parseAbsoluteUrl(e);const t=parseAbsoluteUrl("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?3:e.startsWith("#")?2:4:1,t}function stripPathFilename(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function mergePaths(e,t){normalizePath(t,t.type),"/"===e.path?e.path=t.path:e.path=stripPathFilename(t.path)+e.path}function normalizePath(e,t){const r=t<=4,n=e.path.split("/");let s=1,i=0,o=!1;for(let e=1;e<n.length;e++){const t=n[e];t?(o=!1,"."!==t&&(".."!==t?(n[s++]=t,i++):i?(o=!0,i--,s--):r&&(n[s++]=t))):o=!0}let a="";for(let e=1;e<s;e++)a+="/"+n[e];(!a||o&&!a.endsWith("/.."))&&(a+="/"),e.path=a}function resolve(e,t){if(!e&&!t)return"";const r=parseUrl(e);let n=r.type;if(t&&7!==n){const e=parseUrl(t),s=e.type;switch(n){case 1:r.hash=e.hash;case 2:r.query=e.query;case 3:case 4:mergePaths(r,e);case 5:r.user=e.user,r.host=e.host,r.port=e.port;case 6:r.scheme=e.scheme}s>n&&(n=s)}normalizePath(r,n);const s=r.query+r.hash;switch(n){case 2:case 3:return s;case 4:{const n=r.path.slice(1);return n?isRelative(t||e)&&!isRelative(n)?"./"+n+s:n+s:s||"."}case 5:return r.path+s;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+s}}return resolve}()},"./node_modules/.pnpm/@[email protected]/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js"(e,t,r){var n;!function(e){"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,__copyProps=(e,i,o,a)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let l of n(i))s.call(e,l)||l===o||t(e,l,{get:()=>i[l],enumerable:!(a=r(i,l))||a.enumerable});return e},__toCommonJS=e=>__copyProps(t({},"__esModule",{value:!0}),e),i={};((e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})})(i,{decode:()=>decode,decodeGeneratedRanges:()=>decodeGeneratedRanges,decodeOriginalScopes:()=>decodeOriginalScopes,encode:()=>encode,encodeGeneratedRanges:()=>encodeGeneratedRanges,encodeOriginalScopes:()=>encodeOriginalScopes}),e.exports=__toCommonJS(i);var o=",".charCodeAt(0),a=";".charCodeAt(0),l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=new Uint8Array(64),c=new Uint8Array(128);for(let e=0;e<l.length;e++){const t=l.charCodeAt(e);p[e]=t,c[t]=e}function decodeInteger(e,t){let r=0,n=0,s=0;do{const t=e.next();s=c[t],r|=(31&s)<<n,n+=5}while(32&s);const i=1&r;return r>>>=1,i&&(r=-2147483648|-r),t+r}function encodeInteger(e,t,r){let n=t-r;n=n<0?-n<<1|1:n<<1;do{let t=31&n;n>>>=5,n>0&&(t|=32),e.write(p[t])}while(n>0);return t}function hasMoreVlq(e,t){return!(e.pos>=t)&&e.peek()!==o}var u=16384,d="undefined"!=typeof TextDecoder?new TextDecoder:"undefined"!=typeof Buffer?{decode:e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}},h=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(u)}write(e){const{buffer:t}=this;t[this.pos++]=e,this.pos===u&&(this.out+=d.decode(t),this.pos=0)}flush(){const{buffer:e,out:t,pos:r}=this;return r>0?t+d.decode(e.subarray(0,r)):t}},m=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:r}=this,n=t.indexOf(e,r);return-1===n?t.length:n}},f=[];function decodeOriginalScopes(e){const{length:t}=e,r=new m(e),n=[],s=[];let i=0;for(;r.pos<t;r.pos++){i=decodeInteger(r,i);const e=decodeInteger(r,0);if(!hasMoreVlq(r,t)){const t=s.pop();t[2]=i,t[3]=e;continue}const o=decodeInteger(r,0),a=1&decodeInteger(r,0)?[i,e,0,0,o,decodeInteger(r,0)]:[i,e,0,0,o];let l=f;if(hasMoreVlq(r,t)){l=[];do{const e=decodeInteger(r,0);l.push(e)}while(hasMoreVlq(r,t))}a.vars=l,n.push(a),s.push(a)}return n}function encodeOriginalScopes(e){const t=new h;for(let r=0;r<e.length;)r=_encodeOriginalScopes(e,r,t,[0]);return t.flush()}function _encodeOriginalScopes(e,t,r,n){const s=e[t],{0:i,1:a,2:l,3:p,4:c,vars:u}=s;t>0&&r.write(o),n[0]=encodeInteger(r,i,n[0]),encodeInteger(r,a,0),encodeInteger(r,c,0),encodeInteger(r,6===s.length?1:0,0),6===s.length&&encodeInteger(r,s[5],0);for(const e of u)encodeInteger(r,e,0);for(t++;t<e.length;){const s=e[t],{0:i,1:o}=s;if(i>l||i===l&&o>=p)break;t=_encodeOriginalScopes(e,t,r,n)}return r.write(o),n[0]=encodeInteger(r,l,n[0]),encodeInteger(r,p,0),t}function decodeGeneratedRanges(e){const{length:t}=e,r=new m(e),n=[],s=[];let i=0,o=0,a=0,l=0,p=0,c=0,u=0,d=0;do{const e=r.indexOf(";");let t=0;for(;r.pos<e;r.pos++){if(t=decodeInteger(r,t),!hasMoreVlq(r,e)){const e=s.pop();e[2]=i,e[3]=t;continue}const h=decodeInteger(r,0),m=2&h,y=4&h;let b,g=null,x=f;if(1&h){const e=decodeInteger(r,o);a=decodeInteger(r,o===e?a:0),o=e,b=[i,t,0,0,e,a]}else b=[i,t,0,0];if(b.isScope=!!y,m){const e=l,t=p;l=decodeInteger(r,l);const n=e===l;p=decodeInteger(r,n?p:0),c=decodeInteger(r,n&&t===p?c:0),g=[l,p,c]}if(b.callsite=g,hasMoreVlq(r,e)){x=[];do{u=i,d=t;const e=decodeInteger(r,0);let n;if(e<-1){n=[[decodeInteger(r,0)]];for(let t=-1;t>e;t--){const e=u;u=decodeInteger(r,u),d=decodeInteger(r,u===e?d:0);const t=decodeInteger(r,0);n.push([t,u,d])}}else n=[[e]];x.push(n)}while(hasMoreVlq(r,e))}b.bindings=x,n.push(b),s.push(b)}i++,r.pos=e+1}while(r.pos<t);return n}function encodeGeneratedRanges(e){if(0===e.length)return"";const t=new h;for(let r=0;r<e.length;)r=_encodeGeneratedRanges(e,r,t,[0,0,0,0,0,0,0]);return t.flush()}function _encodeGeneratedRanges(e,t,r,n){const s=e[t],{0:i,1:a,2:l,3:p,isScope:c,callsite:u,bindings:d}=s;if(n[0]<i?(catchupLine(r,n[0],i),n[0]=i,n[1]=0):t>0&&r.write(o),n[1]=encodeInteger(r,s[1],n[1]),encodeInteger(r,(6===s.length?1:0)|(u?2:0)|(c?4:0),0),6===s.length){const{4:e,5:t}=s;e!==n[2]&&(n[3]=0),n[2]=encodeInteger(r,e,n[2]),n[3]=encodeInteger(r,t,n[3])}if(u){const{0:e,1:t,2:i}=s.callsite;e!==n[4]?(n[5]=0,n[6]=0):t!==n[5]&&(n[6]=0),n[4]=encodeInteger(r,e,n[4]),n[5]=encodeInteger(r,t,n[5]),n[6]=encodeInteger(r,i,n[6])}if(d)for(const e of d){e.length>1&&encodeInteger(r,-e.length,0),encodeInteger(r,e[0][0],0);let t=i,n=a;for(let s=1;s<e.length;s++){const i=e[s];t=encodeInteger(r,i[1],t),n=encodeInteger(r,i[2],n),encodeInteger(r,i[0],0)}}for(t++;t<e.length;){const s=e[t],{0:i,1:o}=s;if(i>l||i===l&&o>=p)break;t=_encodeGeneratedRanges(e,t,r,n)}return n[0]<l?(catchupLine(r,n[0],l),n[0]=l,n[1]=0):r.write(o),n[1]=encodeInteger(r,p,n[1]),t}function catchupLine(e,t,r){do{e.write(a)}while(++t<r)}function decode(e){const{length:t}=e,r=new m(e),n=[];let s=0,i=0,o=0,a=0,l=0;do{const e=r.indexOf(";"),t=[];let p=!0,c=0;for(s=0;r.pos<e;){let n;s=decodeInteger(r,s),s<c&&(p=!1),c=s,hasMoreVlq(r,e)?(i=decodeInteger(r,i),o=decodeInteger(r,o),a=decodeInteger(r,a),hasMoreVlq(r,e)?(l=decodeInteger(r,l),n=[s,i,o,a,l]):n=[s,i,o,a]):n=[s],t.push(n),r.pos++}p||sort(t),n.push(t),r.pos=e+1}while(r.pos<=t);return n}function sort(e){e.sort(sortComparator)}function sortComparator(e,t){return e[0]-t[0]}function encode(e){const t=new h;let r=0,n=0,s=0,i=0;for(let l=0;l<e.length;l++){const p=e[l];if(l>0&&t.write(a),0===p.length)continue;let c=0;for(let e=0;e<p.length;e++){const a=p[e];e>0&&t.write(o),c=encodeInteger(t,a[0],c),1!==a.length&&(r=encodeInteger(t,a[1],r),n=encodeInteger(t,a[2],n),s=encodeInteger(t,a[3],s),4!==a.length&&(i=encodeInteger(t,a[4],i)))}}return t.flush()}}(e=r.nmd(e)),e.exports="default"in(n=e).exports?n.exports.default:n.exports},"./node_modules/.pnpm/@[email protected]/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js"(e,t,r){var n;!function(e,t,r){"use strict";var n=Object.create,s=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,__commonJS=(e,t)=>function(){return t||(0,e[o(e)[0]])((t={exports:{}}).exports,t),t.exports},__export=(e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:!0})},__copyProps=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of o(t))l.call(e,a)||a===r||s(e,a,{get:()=>t[a],enumerable:!(n=i(t,a))||n.enumerable});return e},__toESM=(e,t,r)=>(r=null!=e?n(a(e)):{},__copyProps(!t&&e&&e.__esModule?r:s(r,"default",{value:e,enumerable:!0}),e)),__toCommonJS=e=>__copyProps(s({},"__esModule",{value:!0}),e),p=__commonJS({"umd:@jridgewell/sourcemap-codec"(e,t){t.exports=r}}),c=__commonJS({"umd:@jridgewell/resolve-uri"(e,r){r.exports=t}}),u={};__export(u,{AnyMap:()=>FlattenMap,FlattenMap:()=>FlattenMap,GREATEST_LOWER_BOUND:()=>_,LEAST_UPPER_BOUND:()=>P,TraceMap:()=>A,allGeneratedPositionsFor:()=>allGeneratedPositionsFor,decodedMap:()=>decodedMap,decodedMappings:()=>decodedMappings,eachMapping:()=>eachMapping,encodedMap:()=>encodedMap,encodedMappings:()=>encodedMappings,generatedPositionFor:()=>generatedPositionFor,isIgnored:()=>isIgnored,originalPositionFor:()=>originalPositionFor,presortedDecodedMap:()=>presortedDecodedMap,sourceContentFor:()=>sourceContentFor,traceSegment:()=>traceSegment}),e.exports=__toCommonJS(u);var d=__toESM(p()),h=__toESM(c());function stripFilename(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}function resolver(e,t){const r=stripFilename(e),n=t?t+"/":"";return e=>(0,h.default)(n+(e||""),r)}var m=0,f=1,y=2,b=3,g=4,x=1,v=2;function maybeSort(e,t){const r=nextUnsortedSegmentLine(e,0);if(r===e.length)return e;t||(e=e.slice());for(let n=r;n<e.length;n=nextUnsortedSegmentLine(e,n+1))e[n]=sortSegments(e[n],t);return e}function nextUnsortedSegmentLine(e,t){for(let r=t;r<e.length;r++)if(!isSorted(e[r]))return r;return e.length}function isSorted(e){for(let t=1;t<e.length;t++)if(e[t][m]<e[t-1][m])return!1;return!0}function sortSegments(e,t){return t||(e=e.slice()),e.sort(sortComparator)}function sortComparator(e,t){return e[m]-t[m]}function buildBySources(e,t){const r=t.map(()=>[]);for(let t=0;t<e.length;t++){const n=e[t];for(let e=0;e<n.length;e++){const s=n[e];if(1===s.length)continue;const i=s[f],o=s[y],a=s[b],l=r[i];(l[o]||(l[o]=[])).push([a,t,s[m]])}}for(let e=0;e<r.length;e++){const t=r[e];for(let e=0;e<t.length;e++){const r=t[e];r&&r.sort(sortComparator)}}return r}var E=!1;function binarySearch(e,t,r,n){for(;r<=n;){const s=r+(n-r>>1),i=e[s][m]-t;if(0===i)return E=!0,s;i<0?r=s+1:n=s-1}return E=!1,r-1}function upperBound(e,t,r){for(let n=r+1;n<e.length&&e[n][m]===t;r=n++);return r}function lowerBound(e,t,r){for(let n=r-1;n>=0&&e[n][m]===t;r=n--);return r}function memoizedState(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function memoizedBinarySearch(e,t,r,n){const{lastKey:s,lastNeedle:i,lastIndex:o}=r;let a=0,l=e.length-1;if(n===s){if(t===i)return E=-1!==o&&e[o][m]===t,o;t>=i?a=-1===o?0:o:l=o}return r.lastKey=n,r.lastNeedle=t,r.lastIndex=binarySearch(e,t,a,l)}function parse(e){return"string"==typeof e?JSON.parse(e):e}var FlattenMap=function(e,t){const r=parse(e);if(!("sections"in r))return new A(r,t);const n=[],s=[],i=[],o=[],a=[];return recurse(r,t,n,s,i,o,a,0,0,1/0,1/0),presortedDecodedMap({version:3,file:r.file,names:o,sources:s,sourcesContent:i,mappings:n,ignoreList:a})};function recurse(e,t,r,n,s,i,o,a,l,p,c){const{sections:u}=e;for(let e=0;e<u.length;e++){const{map:d,offset:h}=u[e];let m=p,f=c;if(e+1<u.length){const t=u[e+1].offset;m=Math.min(p,a+t.line),m===p?f=Math.min(c,l+t.column):m<p&&(f=l+t.column)}addSection(d,t,r,n,s,i,o,a+h.line,l+h.column,m,f)}}function addSection(e,t,r,n,s,i,o,a,l,p,c){const u=parse(e);if("sections"in u)return recurse(...arguments);const d=new A(u,t),h=n.length,x=i.length,v=decodedMappings(d),{resolvedSources:E,sourcesContent:T,ignoreList:S}=d;if(append(n,E),append(i,d.names),T)append(s,T);else for(let e=0;e<E.length;e++)s.push(null);if(S)for(let e=0;e<S.length;e++)o.push(S[e]+h);for(let e=0;e<v.length;e++){const t=a+e;if(t>p)return;const n=getLine(r,t),s=0===e?l:0,i=v[e];for(let e=0;e<i.length;e++){const r=i[e],o=s+r[m];if(t===p&&o>=c)return;if(1===r.length){n.push([o]);continue}const a=h+r[f],l=r[y],u=r[b];n.push(4===r.length?[o,a,l,u]:[o,a,l,u,x+r[g]])}}}function append(e,t){for(let r=0;r<t.length;r++)e.push(t[r])}function getLine(e,t){for(let r=e.length;r<=t;r++)e[r]=[];return e[t]}var T="`line` must be greater than 0 (lines start at line 1)",S="`column` must be greater than or equal to 0 (columns start at column 0)",P=-1,_=1,A=class{constructor(e,t){const r="string"==typeof e;if(!r&&e._decodedMemo)return e;const n=parse(e),{version:s,file:i,names:o,sourceRoot:a,sources:l,sourcesContent:p}=n;this.version=s,this.file=i,this.names=o||[],this.sourceRoot=a,this.sources=l,this.sourcesContent=p,this.ignoreList=n.ignoreList||n.x_google_ignoreList||void 0;const c=resolver(t,a);this.resolvedSources=l.map(c);const{mappings:u}=n;if("string"==typeof u)this._encoded=u,this._decoded=void 0;else{if(!Array.isArray(u))throw n.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(n)}`);this._encoded=void 0,this._decoded=maybeSort(u,r)}this._decodedMemo=memoizedState(),this._bySources=void 0,this._bySourceMemos=void 0}};function cast(e){return e}function encodedMappings(e){var t,r;return null!=(r=(t=cast(e))._encoded)?r:t._encoded=(0,d.encode)(cast(e)._decoded)}function decodedMappings(e){var t;return(t=cast(e))._decoded||(t._decoded=(0,d.decode)(cast(e)._encoded))}function traceSegment(e,t,r){const n=decodedMappings(e);if(t>=n.length)return null;const s=n[t],i=traceSegmentInternal(s,cast(e)._decodedMemo,t,r,_);return-1===i?null:s[i]}function originalPositionFor(e,t){let{line:r,column:n,bias:s}=t;if(r--,r<0)throw new Error(T);if(n<0)throw new Error(S);const i=decodedMappings(e);if(r>=i.length)return OMapping(null,null,null,null);const o=i[r],a=traceSegmentInternal(o,cast(e)._decodedMemo,r,n,s||_);if(-1===a)return OMapping(null,null,null,null);const l=o[a];if(1===l.length)return OMapping(null,null,null,null);const{names:p,resolvedSources:c}=e;return OMapping(c[l[f]],l[y]+1,l[b],5===l.length?p[l[g]]:null)}function generatedPositionFor(e,t){const{source:r,line:n,column:s,bias:i}=t;return generatedPosition(e,r,n,s,i||_,!1)}function allGeneratedPositionsFor(e,t){const{source:r,line:n,column:s,bias:i}=t;return generatedPosition(e,r,n,s,i||P,!0)}function eachMapping(e,t){const r=decodedMappings(e),{names:n,resolvedSources:s}=e;for(let e=0;e<r.length;e++){const i=r[e];for(let r=0;r<i.length;r++){const o=i[r],a=e+1,l=o[0];let p=null,c=null,u=null,d=null;1!==o.length&&(p=s[o[1]],c=o[2]+1,u=o[3]),5===o.length&&(d=n[o[4]]),t({generatedLine:a,generatedColumn:l,source:p,originalLine:c,originalColumn:u,name:d})}}}function sourceIndex(e,t){const{sources:r,resolvedSources:n}=e;let s=r.indexOf(t);return-1===s&&(s=n.indexOf(t)),s}function sourceContentFor(e,t){const{sourcesContent:r}=e;if(null==r)return null;const n=sourceIndex(e,t);return-1===n?null:r[n]}function isIgnored(e,t){const{ignoreList:r}=e;if(null==r)return!1;const n=sourceIndex(e,t);return-1!==n&&r.includes(n)}function presortedDecodedMap(e,t){const r=new A(clone(e,[]),t);return cast(r)._decoded=e.mappings,r}function decodedMap(e){return clone(e,decodedMappings(e))}function encodedMap(e){return clone(e,encodedMappings(e))}function clone(e,t){return{version:e.version,file:e.file,names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,mappings:t,ignoreList:e.ignoreList||e.x_google_ignoreList}}function OMapping(e,t,r,n){return{source:e,line:t,column:r,name:n}}function GMapping(e,t){return{line:e,column:t}}function traceSegmentInternal(e,t,r,n,s){let i=memoizedBinarySearch(e,n,t,r);return E?i=(s===P?upperBound:lowerBound)(e,n,i):s===P&&i++,-1===i||i===e.length?-1:i}function sliceGeneratedPositions(e,t,r,n,s){let i=traceSegmentInternal(e,t,r,n,_);if(E||s!==P||i++,-1===i||i===e.length)return[];const o=E?n:e[i][m];E||(i=lowerBound(e,o,i));const a=upperBound(e,o,i),l=[];for(;i<=a;i++){const t=e[i];l.push(GMapping(t[x]+1,t[v]))}return l}function generatedPosition(e,t,r,n,s,i){var o,a;if(--r<0)throw new Error(T);if(n<0)throw new Error(S);const{sources:l,resolvedSources:p}=e;let c=l.indexOf(t);if(-1===c&&(c=p.indexOf(t)),-1===c)return i?[]:GMapping(null,null);const u=(o=cast(e))._bySourceMemos||(o._bySourceMemos=l.map(memoizedState)),d=((a=cast(e))._bySources||(a._bySources=buildBySources(decodedMappings(e),u)))[c][r];if(null==d)return i?[]:GMapping(null,null);const h=u[c];if(i)return sliceGeneratedPositions(d,h,r,n,s);const m=traceSegmentInternal(d,h,r,n,s);if(-1===m)return GMapping(null,null);const f=d[m];return GMapping(f[x]+1,f[v])}}(e=r.nmd(e),r("./node_modules/.pnpm/@[email protected]/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js"),r("./node_modules/.pnpm/@[email protected]/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js")),e.exports="default"in(n=e).exports?n.exports.default:n.exports},"./node_modules/.pnpm/[email protected]/node_modules/babel-plugin-parameter-decorator/lib/index.js"(e,t,r){"use strict";var n=r("path");function isInType(e){switch(e.parent.type){case"TSTypeReference":case"TSQualifiedName":case"TSExpressionWithTypeArguments":case"TSTypeQuery":return!0;default:return!1}}e.exports=function(e){var t=e.types,decoratorExpressionForConstructor=function(e,r){return function(n){var s=t.callExpression(e.expression,[t.Identifier(n),t.Identifier("undefined"),t.NumericLiteral(r.key)]),i=t.logicalExpression("||",s,t.Identifier(n)),o=t.assignmentExpression("=",t.Identifier(n),i);return t.expressionStatement(o)}},decoratorExpressionForMethod=function(e,r){return function(n,s){var i=t.callExpression(e.expression,[t.Identifier("".concat(n,".prototype")),t.StringLiteral(s),t.NumericLiteral(r.key)]);return t.expressionStatement(i)}};return{visitor:{Program:function(e,t){var r=(0,n.extname)(t.file.opts.filename);".ts"!==r&&".tsx"!==r||function(){var t=Object.create(null);e.node.body.filter(function(e){var t=e.type,r=e.declaration;switch(t){case"ClassDeclaration":return!0;case"ExportNamedDeclaration":case"ExportDefaultDeclaration":return r&&"ClassDeclaration"===r.type;default:return!1}}).map(function(e){return"ClassDeclaration"===e.type?e:e.declaration}).forEach(function(e){e.body.body.forEach(function(e){(e.params||[]).forEach(function(e){(e.decorators||[]).forEach(function(e){e.expression.callee?t[e.expression.callee.name]=e:t[e.expression.name]=e})})})});var r=!0,n=!1,s=void 0;try{for(var i,o=e.get("body")[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var a=i.value;if("ImportDeclaration"===a.node.type){if(0===a.node.specifiers.length)continue;var l=!0,p=!1,c=void 0;try{for(var u,_loop=function(){var e=u.value,r=a.scope.getBinding(e.local.name);r.referencePaths.length?r.referencePaths.reduce(function(e,t){return e||isInType(t)},!1)&&Object.keys(t).forEach(function(n){var s=t[n];(s.expression.arguments||[]).forEach(function(t){t.name===e.local.name&&r.referencePaths.push({parent:s.expression})})}):t[e.local.name]&&r.referencePaths.push({parent:t[e.local.name]})},d=a.node.specifiers[Symbol.iterator]();!(l=(u=d.next()).done);l=!0)_loop()}catch(e){p=!0,c=e}finally{try{l||null==d.return||d.return()}finally{if(p)throw c}}}}}catch(e){n=!0,s=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw s}}}()},Function:function(e){var r="";e.node.id?r=e.node.id.name:e.node.key&&(r=e.node.key.name),(e.get("params")||[]).slice().forEach(function(n){var s=n.node.decorators||[],i=s.length;if(s.slice().forEach(function(t){if("ClassMethod"===e.type){var s,i=e.parentPath.parentPath,o=e.findParent(function(e){return"ClassDeclaration"===e.type});if(o?s=o.node.id.name:(i.insertAfter(null),s=function(e){var t=e.findParent(function(e){return"AssignmentExpression"===e.node.type});return"SequenceExpression"===t.node.right.type?t.node.right.expressions[1].name:"ClassExpression"===t.node.right.type?t.node.left.name:null}(e)),"constructor"===r){var a=decoratorExpressionForConstructor(t,n)(s);i.insertAfter(a)}else{var l=decoratorExpressionForMethod(t,n)(s,r);i.insertAfter(l)}}else{var p=e.findParent(function(e){return"VariableDeclarator"===e.node.type}).node.id.name;if(r===p){var c=decoratorExpressionForConstructor(t,n)(p);if("body"===e.parentKey)e.insertAfter(c);else e.findParent(function(e){return"body"===e.parentKey}).insertAfter(c)}else{var u=e.findParent(function(e){return"CallExpression"===e.node.type}),d=decoratorExpressionForMethod(t,n)(p,r);u.insertAfter(d)}}}),i){var o=function(e){switch(e.node.type){case"ObjectPattern":return t.ObjectPattern(e.node.properties);case"AssignmentPattern":return t.AssignmentPattern(e.node.left,e.node.right);case"TSParameterProperty":return t.Identifier(e.node.parameter.name);default:return t.Identifier(e.node.name)}}(n);n.replaceWith(o)}})}}}}},"./node_modules/.pnpm/[email protected]/node_modules/convert-source-map/index.js"(e,t){"use strict";var r;function Converter(e,t){(t=t||{}).hasComment&&(e=function(e){return e.split(",").pop()}(e)),"base64"===t.encoding?e=r(e):"uri"===t.encoding&&(e=decodeURIComponent(e)),(t.isJSON||t.encoding)&&(e=JSON.parse(e)),this.sourcemap=e}function makeConverter(e){return new Converter(e,{isJSON:!0})}Object.defineProperty(t,"commentRegex",{get:function(){return/^\s*?\/[\/\*][@#]\s+?sourceMappingURL=data:(((?:application|text)\/json)(?:;charset=([^;,]+?)?)?)?(?:;(base64))?,(.*?)$/gm}}),Object.defineProperty(t,"mapFileCommentRegex",{get:function(){return/(?:\/\/[@#][ \t]+?sourceMappingURL=([^\s'"`]+?)[ \t]*?$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*?(?:\*\/){1}[ \t]*?$)/gm}}),r="undefined"!=typeof Buffer?"function"==typeof Buffer.from?function(e){return Buffer.from(e,"base64").toString()}:function(e){if("number"==typeof value)throw new TypeError("The value to decode must not be of type number.");return new Buffer(e,"base64").toString()}:function(e){return decodeURIComponent(escape(atob(e)))},Converter.prototype.toJSON=function(e){return JSON.stringify(this.sourcemap,null,e)},"undefined"!=typeof Buffer?"function"==typeof Buffer.from?Converter.prototype.toBase64=function(){var e=this.toJSON();return Buffer.from(e,"utf8").toString("base64")}:Converter.prototype.toBase64=function(){var e=this.toJSON();if("number"==typeof e)throw new TypeError("The json to encode must not be of type number.");return new Buffer(e,"utf8").toString("base64")}:Converter.prototype.toBase64=function(){var e=this.toJSON();return btoa(unescape(encodeURIComponent(e)))},Converter.prototype.toURI=function(){var e=this.toJSON();return encodeURIComponent(e)},Converter.prototype.toComment=function(e){var t,r,n;return null!=e&&"uri"===e.encoding?(t="",r=this.toURI()):(t=";base64",r=this.toBase64()),n="sourceMappingURL=data:application/json;charset=utf-8"+t+","+r,null!=e&&e.multiline?"/*# "+n+" */":"//# "+n},Converter.prototype.toObject=function(){return JSON.parse(this.toJSON())},Converter.prototype.addProperty=function(e,t){if(this.sourcemap.hasOwnProperty(e))throw new Error('property "'+e+'" already exists on the sourcemap, use set property instead');return this.setProperty(e,t)},Converter.prototype.setProperty=function(e,t){return this.sourcemap[e]=t,this},Converter.prototype.getProperty=function(e){return this.sourcemap[e]},t.fromObject=function(e){return new Converter(e)},t.fromJSON=function(e){return new Converter(e,{isJSON:!0})},t.fromURI=function(e){return new Converter(e,{encoding:"uri"})},t.fromBase64=function(e){return new Converter(e,{encoding:"base64"})},t.fromComment=function(e){var r;return new Converter(e=e.replace(/^\/\*/g,"//").replace(/\*\/$/g,""),{encoding:(r=t.commentRegex.exec(e))&&r[4]||"uri",hasComment:!0})},t.fromMapFileComment=function(e,r){if("string"==typeof r)throw new Error("String directory paths are no longer supported with `fromMapFileComment`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading");var n=function(e,r){var n=t.mapFileCommentRegex.exec(e),s=n[1]||n[2];try{return null!=(e=r(s))&&"function"==typeof e.catch?e.catch(throwError):e}catch(e){throwError(e)}function throwError(e){throw new Error("An error occurred while trying to read the map file at "+s+"\n"+e.stack)}}(e,r);return null!=n&&"function"==typeof n.then?n.then(makeConverter):makeConverter(n)},t.fromSource=function(e){var r=e.match(t.commentRegex);return r?t.fromComment(r.pop()):null},t.fromMapFileSource=function(e,r){if("string"==typeof r)throw new Error("String directory paths are no longer supported with `fromMapFileSource`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading");var n=e.match(t.mapFileCommentRegex);return n?t.fromMapFileComment(n.pop(),r):null},t.removeComments=function(e){return e.replace(t.commentRegex,"")},t.removeMapFileComments=function(e){return e.replace(t.mapFileCommentRegex,"")},t.generateMapFileComment=function(e,t){var r="sourceMappingURL="+e;return t&&t.multiline?"/*# "+r+" */":"//# "+r}},"./node_modules/.pnpm/[email protected]/node_modules/debug/src/browser.js"(e,t,r){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,s=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(s=n))}),t.splice(s,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r("./node_modules/.pnpm/[email protected]/node_modules/debug/src/common.js")(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},"./node_modules/.pnpm/[email protected]/node_modules/debug/src/common.js"(e,t,r){e.exports=function(e){function createDebug(e){let t,r,n,s=null;function debug(...e){if(!debug.enabled)return;const r=debug,n=Number(new Date),s=n-(t||n);r.diff=s,r.prev=t,r.curr=n,t=n,e[0]=createDebug.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,n)=>{if("%%"===t)return"%";i++;const s=createDebug.formatters[n];if("function"==typeof s){const n=e[i];t=s.call(r,n),e.splice(i,1),i--}return t}),createDebug.formatArgs.call(r,e);(r.log||createDebug.log).apply(r,e)}return debug.namespace=e,debug.useColors=createDebug.useColors(),debug.color=createDebug.selectColor(e),debug.extend=extend,debug.destroy=createDebug.destroy,Object.defineProperty(debug,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(r!==createDebug.namespaces&&(r=createDebug.namespaces,n=createDebug.enabled(e)),n),set:e=>{s=e}}),"function"==typeof createDebug.init&&createDebug.init(debug),debug}function extend(e,t){const r=createDebug(this.namespace+(void 0===t?":":t)+e);return r.log=this.log,r}function matchesTemplate(e,t){let r=0,n=0,s=-1,i=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(s=n,i=r,n++):(r++,n++);else{if(-1===s)return!1;n=s+1,i++,r=i}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return createDebug.debug=createDebug,createDebug.default=createDebug,createDebug.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},createDebug.disable=function(){const e=[...createDebug.names,...createDebug.skips.map(e=>"-"+e)].join(",");return createDebug.enable(""),e},createDebug.enable=function(e){createDebug.save(e),createDebug.namespaces=e,createDebug.names=[],createDebug.skips=[];const t=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of t)"-"===e[0]?createDebug.skips.push(e.slice(1)):createDebug.names.push(e)},createDebug.enabled=function(e){for(const t of createDebug.skips)if(matchesTemplate(e,t))return!1;for(const t of createDebug.names)if(matchesTemplate(e,t))return!0;return!1},createDebug.humanize=r("./node_modules/.pnpm/[email protected]/node_modules/ms/index.js"),createDebug.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(t=>{createDebug[t]=e[t]}),createDebug.names=[],createDebug.skips=[],createDebug.formatters={},createDebug.selectColor=function(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return createDebug.colors[Math.abs(t)%createDebug.colors.length]},createDebug.enable(createDebug.load()),createDebug}},"./node_modules/.pnpm/[email protected]/node_modules/debug/src/index.js"(e,t,r){"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=r("./node_modules/.pnpm/[email protected]/node_modules/debug/src/browser.js"):e.exports=r("./node_modules/.pnpm/[email protected]/node_modules/debug/src/node.js")},"./node_modules/.pnpm/[email protected]/node_modules/debug/src/node.js"(e,t,r){const n=r("tty"),s=r("util");t.init=function(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n<r.length;n++)e.inspectOpts[r[n]]=t.inspectOpts[r[n]]},t.log=function(...e){return process.stderr.write(s.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(r){const{namespace:n,useColors:s}=this;if(s){const t=this.color,s="[3"+(t<8?t:"8;5;"+t),i=` ${s};1m${n} [0m`;r[0]=i+r[0].split("\n").join("\n"+i),r.push(s+"m+"+e.exports.humanize(this.diff)+"[0m")}else r[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+n+" "+r[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)},t.destroy=s.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=r("./node_modules/.pnpm/[email protected]/node_modules/supports-color/index.js");e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase());let n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e},{}),e.exports=r("./node_modules/.pnpm/[email protected]/node_modules/debug/src/common.js")(t);const{formatters:i}=e.exports;i.o=function(e){return this.inspectOpts.colors=this.useColors,s.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},i.O=function(e){return this.inspectOpts.colors=this.useColors,s.inspect(e,this.inspectOpts)}},"./node_modules/.pnpm/[email protected]/node_modules/gensync/index.js"(e){"use strict";const t=Symbol.for("gensync:v1:start"),r=Symbol.for("gensync:v1:suspend"),n="GENSYNC_OPTIONS_ERROR",s="GENSYNC_RACE_NONEMPTY",i="GENSYNC_ERRBACK_NO_CALLBACK";function assertTypeof(e,t,r,s){if(typeof r===e||s&&void 0===r)return;let i;throw i=s?`Expected opts.${t} to be either a ${e}, or undefined.`:`Expected opts.${t} to be a ${e}.`,makeError(i,n)}function makeError(e,t){return Object.assign(new Error(e),{code:t})}function buildOperation({name:e,arity:n,sync:s,async:i}){return setFunctionMetadata(e,n,function*(...e){const n=yield t;if(!n){return s.call(this,e)}let o;try{i.call(this,e,e=>{o||(o={value:e},n())},e=>{o||(o={err:e},n())})}catch(e){o={err:e},n()}if(yield r,o.hasOwnProperty("err"))throw o.err;return o.value})}function evaluateSync(e){let t;for(;!({value:t}=e.next()).done;)assertStart(t,e);return t}function evaluateAsync(e,t,r){!function step(){try{let r;for(;!({value:r}=e.next()).done;){assertStart(r,e);let t=!0,n=!1;const s=e.next(()=>{t?n=!0:step()});if(t=!1,assertSuspend(s,e),!n)return}return t(r)}catch(e){return r(e)}}()}function assertStart(e,r){e!==t&&throwError(r,makeError(`Got unexpected yielded value in gensync generator: ${JSON.stringify(e)}. Did you perhaps mean to use 'yield*' instead of 'yield'?`,"GENSYNC_EXPECTED_START"))}function assertSuspend({value:e,done:t},n){(t||e!==r)&&throwError(n,makeError(t?"Unexpected generator completion. If you get this, it is probably a gensync bug.":`Expected GENSYNC_SUSPEND, got ${JSON.stringify(e)}. If you get this, it is probably a gensync bug.`,"GENSYNC_EXPECTED_SUSPEND"))}function throwError(e,t){throw e.throw&&e.throw(t),t}function setFunctionMetadata(e,t,r){if("string"==typeof e){const t=Object.getOwnPropertyDescriptor(r,"name");t&&!t.configurable||Object.defineProperty(r,"name",Object.assign(t||{},{configurable:!0,value:e}))}if("number"==typeof t){const e=Object.getOwnPropertyDescriptor(r,"length");e&&!e.configurable||Object.defineProperty(r,"length",Object.assign(e||{},{configurable:!0,value:t}))}return r}e.exports=Object.assign(function(e){let t=e;return t="function"!=typeof e?function({name:e,arity:t,sync:r,async:s,errback:i}){if(assertTypeof("string","name",e,!0),assertTypeof("number","arity",t,!0),assertTypeof("function","sync",r),assertTypeof("function","async",s,!0),assertTypeof("function","errback",i,!0),s&&i)throw makeError("Expected one of either opts.async or opts.errback, but got _both_.",n);if("string"!=typeof e){let t;i&&i.name&&"errback"!==i.name&&(t=i.name),s&&s.name&&"async"!==s.name&&(t=s.name.replace(/Async$/,"")),r&&r.name&&"sync"!==r.name&&(t=r.name.replace(/Sync$/,"")),"string"==typeof t&&(e=t)}"number"!=typeof t&&(t=r.length);return buildOperation({name:e,arity:t,sync:function(e){return r.apply(this,e)},async:function(e,t,n){s?s.apply(this,e).then(t,n):i?i.call(this,...e,(e,r)=>{null==e?t(r):n(e)}):t(r.apply(this,e))}})}(e):function(e){return setFunctionMetadata(e.name,e.length,function(...t){return e.apply(this,t)})}(e),Object.assign(t,function(e){const t={sync:function(...t){return evaluateSync(e.apply(this,t))},async:function(...t){return new Promise((r,n)=>{evaluateAsync(e.apply(this,t),r,n)})},errback:function(...t){const r=t.pop();if("function"!=typeof r)throw makeError("Asynchronous function called without callback",i);let n;try{n=e.apply(this,t)}catch(e){return void r(e)}evaluateAsync(n,e=>r(void 0,e),e=>r(e))}};return t}(t))},{all:buildOperation({name:"all",arity:1,sync:function(e){return Array.from(e[0]).map(e=>evaluateSync(e))},async:function(e,t,r){const n=Array.from(e[0]);if(0===n.length)return void Promise.resolve().then(()=>t([]));let s=0;const i=n.map(()=>{});n.forEach((e,n)=>{evaluateAsync(e,e=>{i[n]=e,s+=1,s===i.length&&t(i)},r)})}}),race:buildOperation({name:"race",arity:1,sync:function(e){const t=Array.from(e[0]);if(0===t.length)throw makeError("Must race at least 1 item",s);return evaluateSync(t[0])},async:function(e,t,r){const n=Array.from(e[0]);if(0===n.length)throw makeError("Must race at least 1 item",s);for(const e of n)evaluateAsync(e,t,r)}})})},"./node_modules/.pnpm/[email protected]/node_modules/has-flag/index.js"(e){"use strict";e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),s=t.indexOf("--");return-1!==n&&(-1===s||n<s)}},"./node_modules/.pnpm/[email protected]/node_modules/jsesc/jsesc.js"(e){"use strict";const t={},r=t.hasOwnProperty,forOwn=(e,t)=>{for(const n in e)r.call(e,n)&&t(n,e[n])},fourHexEscape=e=>"\\u"+("0000"+e).slice(-4),hexadecimal=(e,t)=>{let r=e.toString(16);return t?r:r.toUpperCase()},n=t.toString,s=Array.isArray,isBigInt=e=>"bigint"==typeof e,i={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},o=/[\\\b\f\n\r\t]/,a=/[0-9]/,l=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,p=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,c=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,jsesc=(e,t)=>{const increaseIndentation=()=>{g=b,++t.indentLevel,b=t.indent.repeat(t.indentLevel)},r={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:!1,__inline2__:!1},u=t&&t.json;var d,h;u&&(r.quotes="double",r.wrap=!0),d=r,"single"!=(t=(h=t)?(forOwn(h,(e,t)=>{d[e]=t}),d):d).quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");const m="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",f=t.compact,y=t.lowercaseHex;let b=t.indent.repeat(t.indentLevel),g="";const x=t.__inline1__,v=t.__inline2__,E=f?"":"\n";let T,S=!0;const P="binary"==t.numbers,_="octal"==t.numbers,A="decimal"==t.numbers,C="hexadecimal"==t.numbers;if(u&&e&&(e=>"function"==typeof e)(e.toJSON)&&(e=e.toJSON()),!(e=>"string"==typeof e||"[object String]"==n.call(e))(e)){if((e=>"[object Map]"==n.call(e))(e))return 0==e.size?"new Map()":(f||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+jsesc(Array.from(e),t)+")");if((e=>"[object Set]"==n.call(e))(e))return 0==e.size?"new Set()":"new Set("+jsesc(Array.from(e),t)+")";if((e=>"function"==typeof Buffer&&Buffer.isBuffer(e))(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+jsesc(Array.from(e),t)+")";if(s(e))return T=[],t.wrap=!0,x&&(t.__inline1__=!1,t.__inline2__=!0),v||increaseIndentation(),((e,t)=>{const r=e.length;let n=-1;for(;++n<r;)t(e[n])})(e,e=>{S=!1,v&&(t.__inline2__=!1),T.push((f||v?"":b)+jsesc(e,t))}),S?"[]":v?"["+T.join(", ")+"]":"["+E+T.join(","+E)+E+(f?"":g)+"]";if((e=>"number"==typeof e||"[object Number]"==n.call(e))(e)||isBigInt(e)){if(u)return JSON.stringify(Number(e));let t;if(A)t=String(e);else if(C){let r=e.toString(16);y||(r=r.toUpperCase()),t="0x"+r}else P?t="0b"+e.toString(2):_&&(t="0o"+e.toString(8));return isBigInt(e)?t+"n":t}return isBigInt(e)?u?JSON.stringify(Number(e)):e+"n":(e=>"[object Object]"==n.call(e))(e)?(T=[],t.wrap=!0,increaseIndentation(),forOwn(e,(e,r)=>{S=!1,T.push((f?"":b)+jsesc(e,t)+":"+(f?"":" ")+jsesc(r,t))}),S?"{}":"{"+E+T.join(","+E)+E+(f?"":g)+"}"):u?JSON.stringify(e)||"null":String(e)}const w=t.escapeEverything?p:c;return T=e.replace(w,(e,r,n,s,p,c)=>{if(r){if(t.minimal)return r;const e=r.charCodeAt(0),n=r.charCodeAt(1);if(t.es6){return"\\u{"+hexadecimal(1024*(e-55296)+n-56320+65536,y)+"}"}return fourHexEscape(hexadecimal(e,y))+fourHexEscape(hexadecimal(n,y))}if(n)return fourHexEscape(hexadecimal(n.charCodeAt(0),y));if("\0"==e&&!u&&!a.test(c.charAt(p+1)))return"\\0";if(s)return s==m||t.escapeEverything?"\\"+s:s;if(o.test(e))return i[e];if(t.minimal&&!l.test(e))return e;const d=hexadecimal(e.charCodeAt(0),y);return u||d.length>2?fourHexEscape(d):"\\x"+("00"+d).slice(-2)}),"`"==m&&(T=T.replace(/\$\{/g,"\\${")),t.isScriptContext&&(T=T.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,u?"\\u003C!--":"\\x3C!--")),t.wrap&&(T=m+T+m),T};jsesc.version="3.0.2",e.exports=jsesc},"./node_modules/.pnpm/[email protected]/node_modules/mlly/dist lazy recursive"(e){function webpackEmptyAsyncContext(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}webpackEmptyAsyncContext.keys=()=>[],webpackEmptyAsyncContext.resolve=webpackEmptyAsyncContext,webpackEmptyAsyncContext.id="./node_modules/.pnpm/[email protected]/node_modules/mlly/dist lazy recursive",e.exports=webpackEmptyAsyncContext},"./node_modules/.pnpm/[email protected]/node_modules/ms/index.js"(e){var t=1e3,r=60*t,n=60*r,s=24*n,i=7*s,o=365.25*s;function plural(e,t,r,n){var s=t>=1.5*r;return Math.round(e/r)+" "+n+(s?"s":"")}e.exports=function(e,a){a=a||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a)return;var l=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*o;case"weeks":case"week":case"w":return l*i;case"days":case"day":case"d":return l*s;case"hours":case"hour":case"hrs":case"hr":case"h":return l*n;case"minutes":case"minute":case"mins":case"min":case"m":return l*r;case"seconds":case"second":case"secs":case"sec":case"s":return l*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}(e);if("number"===l&&isFinite(e))return a.long?function(e){var i=Math.abs(e);if(i>=s)return plural(e,i,s,"day");if(i>=n)return plural(e,i,n,"hour");if(i>=r)return plural(e,i,r,"minute");if(i>=t)return plural(e,i,t,"second");return e+" ms"}(e):function(e){var i=Math.abs(e);if(i>=s)return Math.round(e/s)+"d";if(i>=n)return Math.round(e/n)+"h";if(i>=r)return Math.round(e/r)+"m";if(i>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},"./node_modules/.pnpm/[email protected]/node_modules/semver/semver.js"(e,t){var r;t=e.exports=SemVer,r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var n=256,s=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.safeRe=[],a=t.src=[],l=t.tokens={},p=0;function tok(e){l[e]=p++}var c="[a-zA-Z0-9-]",u=[["\\s",1],["\\d",n],[c,250]];function makeSafeRe(e){for(var t=0;t<u.length;t++){var r=u[t][0],n=u[t][1];e=e.split(r+"*").join(r+"{0,"+n+"}").split(r+"+").join(r+"{1,"+n+"}")}return e}tok("NUMERICIDENTIFIER"),a[l.NUMERICIDENTIFIER]="0|[1-9]\\d*",tok("NUMERICIDENTIFIERLOOSE"),a[l.NUMERICIDENTIFIERLOOSE]="\\d+",tok("NONNUMERICIDENTIFIER"),a[l.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+c+"*",tok("MAINVERSION"),a[l.MAINVERSION]="("+a[l.NUMERICIDENTIFIER]+")\\.("+a[l.NUMERICIDENTIFIER]+")\\.("+a[l.NUMERICIDENTIFIER]+")",tok("MAINVERSIONLOOSE"),a[l.MAINVERSIONLOOSE]="("+a[l.NUMERICIDENTIFIERLOOSE]+")\\.("+a[l.NUMERICIDENTIFIERLOOSE]+")\\.("+a[l.NUMERICIDENTIFIERLOOSE]+")",tok("PRERELEASEIDENTIFIER"),a[l.PRERELEASEIDENTIFIER]="(?:"+a[l.NUMERICIDENTIFIER]+"|"+a[l.NONNUMERICIDENTIFIER]+")",tok("PRERELEASEIDENTIFIERLOOSE"),a[l.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[l.NUMERICIDENTIFIERLOOSE]+"|"+a[l.NONNUMERICIDENTIFIER]+")",tok("PRERELEASE"),a[l.PRERELEASE]="(?:-("+a[l.PRERELEASEIDENTIFIER]+"(?:\\."+a[l.PRERELEASEIDENTIFIER]+")*))",tok("PRERELEASELOOSE"),a[l.PRERELEASELOOSE]="(?:-?("+a[l.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[l.PRERELEASEIDENTIFIERLOOSE]+")*))",tok("BUILDIDENTIFIER"),a[l.BUILDIDENTIFIER]=c+"+",tok("BUILD"),a[l.BUILD]="(?:\\+("+a[l.BUILDIDENTIFIER]+"(?:\\."+a[l.BUILDIDENTIFIER]+")*))",tok("FULL"),tok("FULLPLAIN"),a[l.FULLPLAIN]="v?"+a[l.MAINVERSION]+a[l.PRERELEASE]+"?"+a[l.BUILD]+"?",a[l.FULL]="^"+a[l.FULLPLAIN]+"$",tok("LOOSEPLAIN"),a[l.LOOSEPLAIN]="[v=\\s]*"+a[l.MAINVERSIONLOOSE]+a[l.PRERELEASELOOSE]+"?"+a[l.BUILD]+"?",tok("LOOSE"),a[l.LOOSE]="^"+a[l.LOOSEPLAIN]+"$",tok("GTLT"),a[l.GTLT]="((?:<|>)?=?)",tok("XRANGEIDENTIFIERLOOSE"),a[l.XRANGEIDENTIFIERLOOSE]=a[l.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",tok("XRANGEIDENTIFIER"),a[l.XRANGEIDENTIFIER]=a[l.NUMERICIDENTIFIER]+"|x|X|\\*",tok("XRANGEPLAIN"),a[l.XRANGEPLAIN]="[v=\\s]*("+a[l.XRANGEIDENTIFIER]+")(?:\\.("+a[l.XRANGEIDENTIFIER]+")(?:\\.("+a[l.XRANGEIDENTIFIER]+")(?:"+a[l.PRERELEASE]+")?"+a[l.BUILD]+"?)?)?",tok("XRANGEPLAINLOOSE"),a[l.XRANGEPLAINLOOSE]="[v=\\s]*("+a[l.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[l.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[l.XRANGEIDENTIFIERLOOSE]+")(?:"+a[l.PRERELEASELOOSE]+")?"+a[l.BUILD]+"?)?)?",tok("XRANGE"),a[l.XRANGE]="^"+a[l.GTLT]+"\\s*"+a[l.XRANGEPLAIN]+"$",tok("XRANGELOOSE"),a[l.XRANGELOOSE]="^"+a[l.GTLT]+"\\s*"+a[l.XRANGEPLAINLOOSE]+"$",tok("COERCE"),a[l.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",tok("COERCERTL"),i[l.COERCERTL]=new RegExp(a[l.COERCE],"g"),o[l.COERCERTL]=new RegExp(makeSafeRe(a[l.COERCE]),"g"),tok("LONETILDE"),a[l.LONETILDE]="(?:~>?)",tok("TILDETRIM"),a[l.TILDETRIM]="(\\s*)"+a[l.LONETILDE]+"\\s+",i[l.TILDETRIM]=new RegExp(a[l.TILDETRIM],"g"),o[l.TILDETRIM]=new RegExp(makeSafeRe(a[l.TILDETRIM]),"g");tok("TILDE"),a[l.TILDE]="^"+a[l.LONETILDE]+a[l.XRANGEPLAIN]+"$",tok("TILDELOOSE"),a[l.TILDELOOSE]="^"+a[l.LONETILDE]+a[l.XRANGEPLAINLOOSE]+"$",tok("LONECARET"),a[l.LONECARET]="(?:\\^)",tok("CARETTRIM"),a[l.CARETTRIM]="(\\s*)"+a[l.LONECARET]+"\\s+",i[l.CARETTRIM]=new RegExp(a[l.CARETTRIM],"g"),o[l.CARETTRIM]=new RegExp(makeSafeRe(a[l.CARETTRIM]),"g");tok("CARET"),a[l.CARET]="^"+a[l.LONECARET]+a[l.XRANGEPLAIN]+"$",tok("CARETLOOSE"),a[l.CARETLOOSE]="^"+a[l.LONECARET]+a[l.XRANGEPLAINLOOSE]+"$",tok("COMPARATORLOOSE"),a[l.COMPARATORLOOSE]="^"+a[l.GTLT]+"\\s*("+a[l.LOOSEPLAIN]+")$|^$",tok("COMPARATOR"),a[l.COMPARATOR]="^"+a[l.GTLT]+"\\s*("+a[l.FULLPLAIN]+")$|^$",tok("COMPARATORTRIM"),a[l.COMPARATORTRIM]="(\\s*)"+a[l.GTLT]+"\\s*("+a[l.LOOSEPLAIN]+"|"+a[l.XRANGEPLAIN]+")",i[l.COMPARATORTRIM]=new RegExp(a[l.COMPARATORTRIM],"g"),o[l.COMPARATORTRIM]=new RegExp(makeSafeRe(a[l.COMPARATORTRIM]),"g");tok("HYPHENRANGE"),a[l.HYPHENRANGE]="^\\s*("+a[l.XRANGEPLAIN]+")\\s+-\\s+("+a[l.XRANGEPLAIN]+")\\s*$",tok("HYPHENRANGELOOSE"),a[l.HYPHENRANGELOOSE]="^\\s*("+a[l.XRANGEPLAINLOOSE]+")\\s+-\\s+("+a[l.XRANGEPLAINLOOSE]+")\\s*$",tok("STAR"),a[l.STAR]="(<|>)?=?\\s*\\*";for(var d=0;d<p;d++)r(d,a[d]),i[d]||(i[d]=new RegExp(a[d]),o[d]=new RegExp(makeSafeRe(a[d])));function parse(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof SemVer)return e;if("string"!=typeof e)return null;if(e.length>n)return null;if(!(t.loose?o[l.LOOSE]:o[l.FULL]).test(e))return null;try{return new SemVer(e,t)}catch(e){return null}}function SemVer(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof SemVer){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>n)throw new TypeError("version is longer than 256 characters");if(!(this instanceof SemVer))return new SemVer(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var i=e.trim().match(t.loose?o[l.LOOSE]:o[l.FULL]);if(!i)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<s)return t}return e}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}t.parse=parse,t.valid=function(e,t){var r=parse(e,t);return r?r.version:null},t.clean=function(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},t.SemVer=SemVer,SemVer.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},SemVer.prototype.toString=function(){return this.version},SemVer.prototype.compare=function(e){return r("SemVer.compare",this.version,this.options,e),e instanceof SemVer||(e=new SemVer(e,this.options)),this.compareMain(e)||this.comparePre(e)},SemVer.prototype.compareMain=function(e){return e instanceof SemVer||(e=new SemVer(e,this.options)),compareIdentifiers(this.major,e.major)||compareIdentifiers(this.minor,e.minor)||compareIdentifiers(this.patch,e.patch)},SemVer.prototype.comparePre=function(e){if(e instanceof SemVer||(e=new SemVer(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var n=this.prerelease[t],s=e.prerelease[t];if(r("prerelease compare",t,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return-1;if(n!==s)return compareIdentifiers(n,s)}while(++t)},SemVer.prototype.compareBuild=function(e){e instanceof SemVer||(e=new SemVer(e,this.options));var t=0;do{var n=this.build[t],s=e.build[t];if(r("prerelease compare",t,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return-1;if(n!==s)return compareIdentifiers(n,s)}while(++t)},SemVer.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}},t.diff=function(e,t){if(eq(e,t))return null;var r=parse(e),n=parse(t),s="";if(r.prerelease.length||n.prerelease.length){s="pre";var i="prerelease"}for(var o in r)if(("major"===o||"minor"===o||"patch"===o)&&r[o]!==n[o])return s+o;return i},t.compareIdentifiers=compareIdentifiers;var h=/^[0-9]+$/;function compareIdentifiers(e,t){var r=h.test(e),n=h.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1}function compare(e,t,r){return new SemVer(e,r).compare(new SemVer(t,r))}function gt(e,t,r){return compare(e,t,r)>0}function lt(e,t,r){return compare(e,t,r)<0}function eq(e,t,r){return 0===compare(e,t,r)}function neq(e,t,r){return 0!==compare(e,t,r)}function gte(e,t,r){return compare(e,t,r)>=0}function lte(e,t,r){return compare(e,t,r)<=0}function cmp(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}function Comparator(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof Comparator){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof Comparator))return new Comparator(e,t);e=e.trim().split(/\s+/).join(" "),r("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===m?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return compareIdentifiers(t,e)},t.major=function(e,t){return new SemVer(e,t).major},t.minor=function(e,t){return new SemVer(e,t).minor},t.patch=function(e,t){return new SemVer(e,t).patch},t.compare=compare,t.compareLoose=function(e,t){return compare(e,t,!0)},t.compareBuild=function(e,t,r){var n=new SemVer(e,r),s=new SemVer(t,r);return n.compare(s)||n.compareBuild(s)},t.rcompare=function(e,t,r){return compare(t,e,r)},t.sort=function(e,r){return e.sort(function(e,n){return t.compareBuild(e,n,r)})},t.rsort=function(e,r){return e.sort(function(e,n){return t.compareBuild(n,e,r)})},t.gt=gt,t.lt=lt,t.eq=eq,t.neq=neq,t.gte=gte,t.lte=lte,t.cmp=cmp,t.Comparator=Comparator;var m={};function Range(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof Range)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new Range(e.raw,t);if(e instanceof Comparator)return new Range(e.value,t);if(!(this instanceof Range))return new Range(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}function isSatisfiable(e,t){for(var r=!0,n=e.slice(),s=n.pop();r&&n.length;)r=n.every(function(e){return s.intersects(e,t)}),s=n.pop();return r}function isX(e){return!e||"x"===e.toLowerCase()||"*"===e}function hyphenReplace(e,t,r,n,s,i,o,a,l,p,c,u,d){return((t=isX(r)?"":isX(n)?">="+r+".0.0":isX(s)?">="+r+"."+n+".0":">="+t)+" "+(a=isX(l)?"":isX(p)?"<"+(+l+1)+".0.0":isX(c)?"<"+l+"."+(+p+1)+".0":u?"<="+l+"."+p+"."+c+"-"+u:"<="+a)).trim()}function testSet(e,t,n){for(var s=0;s<e.length;s++)if(!e[s].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(s=0;s<e.length;s++)if(r(e[s].semver),e[s].semver!==m&&e[s].semver.prerelease.length>0){var i=e[s].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return!1}return t.test(e)}function outside(e,t,r,n){var s,i,o,a,l;switch(e=new SemVer(e,n),t=new Range(t,n),r){case">":s=gt,i=lte,o=lt,a=">",l=">=";break;case"<":s=lt,i=gte,o=gt,a="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n))return!1;for(var p=0;p<t.set.length;++p){var c=t.set[p],u=null,d=null;if(c.forEach(function(e){e.semver===m&&(e=new Comparator(">=0.0.0")),u=u||e,d=d||e,s(e.semver,u.semver,n)?u=e:o(e.semver,d.semver,n)&&(d=e)}),u.operator===a||u.operator===l)return!1;if((!d.operator||d.operator===a)&&i(e,d.semver))return!1;if(d.operator===l&&o(e,d.semver))return!1}return!0}Comparator.prototype.parse=function(e){var t=this.options.loose?o[l.COMPARATORLOOSE]:o[l.COMPARATOR],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new SemVer(r[2],this.options.loose):this.semver=m},Comparator.prototype.toString=function(){return this.value},Comparator.prototype.test=function(e){if(r("Comparator.test",e,this.options.loose),this.semver===m||e===m)return!0;if("string"==typeof e)try{e=new SemVer(e,this.options)}catch(e){return!1}return cmp(e,this.operator,this.semver,this.options)},Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator))throw new TypeError("a Comparator is required");var r;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new Range(e.value,t),satisfies(this.value,r,t));if(""===e.operator)return""===e.value||(r=new Range(this.value,t),satisfies(e.semver,r,t));var n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),s=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=cmp(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=cmp(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||s||i&&o||a||l},t.Range=Range,Range.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},Range.prototype.toString=function(){return this.range},Range.prototype.parseRange=function(e){var t=this.options.loose,n=t?o[l.HYPHENRANGELOOSE]:o[l.HYPHENRANGE];e=e.replace(n,hyphenReplace),r("hyphen replace",e),e=e.replace(o[l.COMPARATORTRIM],"$1$2$3"),r("comparator trim",e,o[l.COMPARATORTRIM]),e=(e=(e=e.replace(o[l.TILDETRIM],"$1~")).replace(o[l.CARETTRIM],"$1^")).split(/\s+/).join(" ");var s=t?o[l.COMPARATORLOOSE]:o[l.COMPARATOR],i=e.split(" ").map(function(e){return function(e,t){return r("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){r("caret",e,t);var n=t.loose?o[l.CARETLOOSE]:o[l.CARET];return e.replace(n,function(t,n,s,i,o){var a;return r("caret",e,t,n,s,i,o),isX(n)?a="":isX(s)?a=">="+n+".0.0 <"+(+n+1)+".0.0":isX(i)?a="0"===n?">="+n+"."+s+".0 <"+n+"."+(+s+1)+".0":">="+n+"."+s+".0 <"+(+n+1)+".0.0":o?(r("replaceCaret pr",o),a="0"===n?"0"===s?">="+n+"."+s+"."+i+"-"+o+" <"+n+"."+s+"."+(+i+1):">="+n+"."+s+"."+i+"-"+o+" <"+n+"."+(+s+1)+".0":">="+n+"."+s+"."+i+"-"+o+" <"+(+n+1)+".0.0"):(r("no pr"),a="0"===n?"0"===s?">="+n+"."+s+"."+i+" <"+n+"."+s+"."+(+i+1):">="+n+"."+s+"."+i+" <"+n+"."+(+s+1)+".0":">="+n+"."+s+"."+i+" <"+(+n+1)+".0.0"),r("caret return",a),a})}(e,t)}).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){var n=t.loose?o[l.TILDELOOSE]:o[l.TILDE];return e.replace(n,function(t,n,s,i,o){var a;return r("tilde",e,t,n,s,i,o),isX(n)?a="":isX(s)?a=">="+n+".0.0 <"+(+n+1)+".0.0":isX(i)?a=">="+n+"."+s+".0 <"+n+"."+(+s+1)+".0":o?(r("replaceTilde pr",o),a=">="+n+"."+s+"."+i+"-"+o+" <"+n+"."+(+s+1)+".0"):a=">="+n+"."+s+"."+i+" <"+n+"."+(+s+1)+".0",r("tilde return",a),a})}(e,t)}).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return function(e,t){e=e.trim();var n=t.loose?o[l.XRANGELOOSE]:o[l.XRANGE];return e.replace(n,function(n,s,i,o,a,l){r("xRange",e,n,s,i,o,a,l);var p=isX(i),c=p||isX(o),u=c||isX(a),d=u;return"="===s&&d&&(s=""),l=t.includePrerelease?"-0":"",p?n=">"===s||"<"===s?"<0.0.0-0":"*":s&&d?(c&&(o=0),a=0,">"===s?(s=">=",c?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===s&&(s="<",c?i=+i+1:o=+o+1),n=s+i+"."+o+"."+a+l):c?n=">="+i+".0.0"+l+" <"+(+i+1)+".0.0"+l:u&&(n=">="+i+"."+o+".0"+l+" <"+i+"."+(+o+1)+".0"+l),r("xRange return",n),n})}(e,t)}).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(o[l.STAR],"")}(e,t),r("stars",e),e}(e,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter(function(e){return!!e.match(s)})),i=i.map(function(e){return new Comparator(e,this.options)},this)},Range.prototype.intersects=function(e,t){if(!(e instanceof Range))throw new TypeError("a Range is required");return this.set.some(function(r){return isSatisfiable(r,t)&&e.set.some(function(e){return isSatisfiable(e,t)&&r.every(function(r){return e.every(function(e){return r.intersects(e,t)})})})})},t.toComparators=function(e,t){return new Range(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})},Range.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new SemVer(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(testSet(this.set[t],e,this.options))return!0;return!1},t.satisfies=satisfies,t.maxSatisfying=function(e,t,r){var n=null,s=null;try{var i=new Range(t,r)}catch(e){return null}return e.forEach(function(e){i.test(e)&&(n&&-1!==s.compare(e)||(s=new SemVer(n=e,r)))}),n},t.minSatisfying=function(e,t,r){var n=null,s=null;try{var i=new Range(t,r)}catch(e){return null}return e.forEach(function(e){i.test(e)&&(n&&1!==s.compare(e)||(s=new SemVer(n=e,r)))}),n},t.minVersion=function(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r))return r;if(r=new SemVer("0.0.0-0"),e.test(r))return r;r=null;for(var n=0;n<e.set.length;++n){e.set[n].forEach(function(e){var t=new SemVer(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!gt(r,t)||(r=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(r&&e.test(r))return r;return null},t.validRange=function(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,r){return outside(e,t,"<",r)},t.gtr=function(e,t,r){return outside(e,t,">",r)},t.outside=outside,t.prerelease=function(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,r){return e=new Range(e,r),t=new Range(t,r),e.intersects(t)},t.coerce=function(e,t){if(e instanceof SemVer)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var r=null;if((t=t||{}).rtl){for(var n;(n=o[l.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&n.index+n[0].length===r.index+r[0].length||(r=n),o[l.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;o[l.COERCERTL].lastIndex=-1}else r=e.match(o[l.COERCE]);if(null===r)return null;return parse(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}},"./node_modules/.pnpm/[email protected]/node_modules/supports-color/index.js"(e,t,r){"use strict";const n=r("os"),s=r("tty"),i=r("./node_modules/.pnpm/[email protected]/node_modules/has-flag/index.js"),{env:o}=process;let a;function translateLevel(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(0===a)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!t&&void 0===a)return 0;const r=a||0;if("dumb"===o.TERM)return r;if("win32"===process.platform){const e=n.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(e=>e in o)||"codeship"===o.CI_NAME?1:r;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:r}i("no-color")||i("no-colors")||i("color=false")||i("color=never")?a=0:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(a=1),"FORCE_COLOR"in o&&(a="true"===o.FORCE_COLOR?1:"false"===o.FORCE_COLOR?0:0===o.FORCE_COLOR.length?1:Math.min(parseInt(o.FORCE_COLOR,10),3)),e.exports={supportsColor:function(e){return translateLevel(supportsColor(e,e&&e.isTTY))},stdout:translateLevel(supportsColor(!0,s.isatty(1))),stderr:translateLevel(supportsColor(!0,s.isatty(2)))}},assert(e){"use strict";e.exports=require("assert")},fs(e){"use strict";e.exports=require("fs")},module(e){"use strict";e.exports=require("module")},os(e){"use strict";e.exports=require("os")},path(e){"use strict";e.exports=require("path")},process(e){"use strict";e.exports=require("process")},tty(e){"use strict";e.exports=require("tty")},url(e){"use strict";e.exports=require("url")},util(e){"use strict";e.exports=require("util")},v8(e){"use strict";e.exports=require("v8")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/caching.js"(e,t,r){"use strict";function _gensync(){const e=r("./node_modules/.pnpm/[email protected]/node_modules/gensync/index.js");return _gensync=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.assertSimpleType=assertSimpleType,t.makeStrongCache=makeStrongCache,t.makeStrongCacheSync=function(e){return synchronize(makeStrongCache(e))},t.makeWeakCache=makeWeakCache,t.makeWeakCacheSync=function(e){return synchronize(makeWeakCache(e))};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/gensync-utils/async.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/util.js");const synchronize=e=>_gensync()(e).sync;function*genTrue(){return!0}function makeWeakCache(e){return makeCachedFunction(WeakMap,e)}function makeStrongCache(e){return makeCachedFunction(Map,e)}function makeCachedFunction(e,t){const r=new e,i=new e,o=new e;return function*(e,a){const l=yield*(0,n.isAsync)(),p=l?i:r,c=yield*function*(e,t,r,s,i){const o=yield*getCachedValue(t,s,i);if(o.valid)return o;if(e){const e=yield*getCachedValue(r,s,i);if(e.valid){return{valid:!0,value:yield*(0,n.waitFor)(e.value.promise)}}}return{valid:!1,value:null}}(l,p,o,e,a);if(c.valid)return c.value;const u=new CacheConfigurator(a),d=t(e,u);let h,m;return m=(0,s.isIterableIterator)(d)?yield*(0,n.onFirstPause)(d,()=>{h=function(e,t,r){const n=new Lock;return updateFunctionCache(t,e,r,n),n}(u,o,e)}):d,updateFunctionCache(p,u,e,m),h&&(o.delete(e),h.release(m)),m}}function*getCachedValue(e,t,r){const n=e.get(t);if(n)for(const{value:e,valid:t}of n)if(yield*t(r))return{valid:!0,value:e};return{valid:!1,value:null}}function updateFunctionCache(e,t,r,n){t.configured()||t.forever();let s=e.get(r);switch(t.deactivate(),t.mode()){case"forever":s=[{value:n,valid:genTrue}],e.set(r,s);break;case"invalidate":s=[{value:n,valid:t.validator()}],e.set(r,s);break;case"valid":s?s.push({value:n,valid:t.validator()}):(s=[{value:n,valid:t.validator()}],e.set(r,s))}}class CacheConfigurator{constructor(e){this._active=!0,this._never=!1,this._forever=!1,this._invalidate=!1,this._configured=!1,this._pairs=[],this._data=void 0,this._data=e}simple(){return function(e){function cacheFn(t){if("boolean"!=typeof t)return e.using(()=>assertSimpleType(t()));t?e.forever():e.never()}return cacheFn.forever=()=>e.forever(),cacheFn.never=()=>e.never(),cacheFn.using=t=>e.using(()=>assertSimpleType(t())),cacheFn.invalidate=t=>e.invalidate(()=>assertSimpleType(t())),cacheFn}(this)}mode(){return this._never?"never":this._forever?"forever":this._invalidate?"invalidate":"valid"}forever(){if(!this._active)throw new Error("Cannot change caching after evaluation has completed.");if(this._never)throw new Error("Caching has already been configured with .never()");this._forever=!0,this._configured=!0}never(){if(!this._active)throw new Error("Cannot change caching after evaluation has completed.");if(this._forever)throw new Error("Caching has already been configured with .forever()");this._never=!0,this._configured=!0}using(e){if(!this._active)throw new Error("Cannot change caching after evaluation has completed.");if(this._never||this._forever)throw new Error("Caching has already been configured with .never or .forever()");this._configured=!0;const t=e(this._data),r=(0,n.maybeAsync)(e,"You appear to be using an async cache handler, but Babel has been called synchronously");return(0,n.isThenable)(t)?t.then(e=>(this._pairs.push([e,r]),e)):(this._pairs.push([t,r]),t)}invalidate(e){return this._invalidate=!0,this.using(e)}validator(){const e=this._pairs;return function*(t){for(const[r,n]of e)if(r!==(yield*n(t)))return!1;return!0}}deactivate(){this._active=!1}configured(){return this._configured}}function assertSimpleType(e){if((0,n.isThenable)(e))throw new Error("You appear to be using an async cache handler, which your current version of Babel does not support. We may add support for this in the future, but if you're on the most recent version of @babel/core and still seeing this error, then you'll need to synchronously handle your caching logic.");if(null!=e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e)throw new Error("Cache keys must be either string, boolean, number, null, or undefined.");return e}class Lock{constructor(){this.released=!1,this.promise=void 0,this._resolve=void 0,this.promise=new Promise(e=>{this._resolve=e})}release(e){this.released=!0,this._resolve(e)}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/config-chain.js"(e,t,r){"use strict";function _path(){const e=r("path");return _path=function(){return e},e}function _debug(){const e=r("./node_modules/.pnpm/[email protected]/node_modules/debug/src/index.js");return _debug=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.buildPresetChain=function*(e,t){const r=yield*d(e,t);return r?{plugins:dedupDescriptors(r.plugins),presets:dedupDescriptors(r.presets),options:r.options.map(e=>createConfigChainOptions(e)),files:new Set}:null},t.buildPresetChainWalker=void 0,t.buildRootChain=function*(e,t){let r,n;const o=new i.ConfigPrinter,a=yield*v({options:e,dirname:t.cwd},t,void 0,o);if(!a)return null;const p=yield*o.output();let c;"string"==typeof e.configFile?c=yield*(0,l.loadConfig)(e.configFile,t.cwd,t.envName,t.caller):!1!==e.configFile&&(c=yield*(0,l.findRootConfig)(t.root,t.envName,t.caller));let{babelrc:u,babelrcRoots:d}=e,h=t.cwd;const m=emptyChain(),f=new i.ConfigPrinter;if(c){const e=b(c),n=yield*loadFileChain(e,t,void 0,f);if(!n)return null;r=yield*f.output(),void 0===u&&(u=e.options.babelrc),void 0===d&&(h=e.dirname,d=e.options.babelrcRoots),mergeChain(m,n)}let y,x,E=!1;const T=emptyChain();if((!0===u||void 0===u)&&"string"==typeof t.filename){const e=yield*(0,l.findPackageData)(t.filename);if(e&&function(e,t,r,n){if("boolean"==typeof r)return r;const i=e.root;if(void 0===r)return t.directories.includes(i);let o=r;Array.isArray(o)||(o=[o]);if(o=o.map(e=>"string"==typeof e?_path().resolve(n,e):e),1===o.length&&o[0]===i)return t.directories.includes(i);return o.some(r=>("string"==typeof r&&(r=(0,s.default)(r,n)),t.directories.some(t=>matchPattern(r,n,t,e))))}(t,e,d,h)){if(({ignore:y,config:x}=yield*(0,l.findRelativeConfig)(e,t.envName,t.caller)),y&&T.files.add(y.filepath),y&&shouldIgnore(t,y.ignore,null,y.dirname)&&(E=!0),x&&!E){const e=g(x),r=new i.ConfigPrinter,s=yield*loadFileChain(e,t,void 0,r);s?(n=yield*r.output(),mergeChain(T,s)):E=!0}x&&E&&T.files.add(x.filepath)}}t.showConfig&&console.log(`Babel configs on "${t.filename}" (ascending priority):\n`+[r,n,p].filter(e=>!!e).join("\n\n")+"\n-----End Babel configs-----");const S=mergeChain(mergeChain(mergeChain(emptyChain(),m),T),a);return{plugins:E?[]:dedupDescriptors(S.plugins),presets:E?[]:dedupDescriptors(S.presets),options:E?[]:S.options.map(e=>createConfigChainOptions(e)),fileHandling:E?"ignored":"transpile",ignore:y||void 0,babelrc:x||void 0,config:c||void 0,files:S.files}};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/validation/options.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/pattern-to-regex.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/printer.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js"),a=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/errors/config-error.js"),l=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/files/index.js"),p=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/caching.js"),c=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/config-descriptors.js");const u=_debug()("babel:config:config-chain");const d=t.buildPresetChainWalker=makeChainWalker({root:e=>h(e),env:(e,t)=>m(e)(t),overrides:(e,t)=>f(e)(t),overridesEnv:(e,t,r)=>y(e)(t)(r),createLogger:()=>()=>{}}),h=(0,p.makeWeakCacheSync)(e=>buildRootDescriptors(e,e.alias,c.createUncachedDescriptors)),m=(0,p.makeWeakCacheSync)(e=>(0,p.makeStrongCacheSync)(t=>buildEnvDescriptors(e,e.alias,c.createUncachedDescriptors,t))),f=(0,p.makeWeakCacheSync)(e=>(0,p.makeStrongCacheSync)(t=>buildOverrideDescriptors(e,e.alias,c.createUncachedDescriptors,t))),y=(0,p.makeWeakCacheSync)(e=>(0,p.makeStrongCacheSync)(t=>(0,p.makeStrongCacheSync)(r=>buildOverrideEnvDescriptors(e,e.alias,c.createUncachedDescriptors,t,r))));const b=(0,p.makeWeakCacheSync)(e=>({filepath:e.filepath,dirname:e.dirname,options:(0,n.validate)("configfile",e.options,e.filepath)})),g=(0,p.makeWeakCacheSync)(e=>({filepath:e.filepath,dirname:e.dirname,options:(0,n.validate)("babelrcfile",e.options,e.filepath)})),x=(0,p.makeWeakCacheSync)(e=>({filepath:e.filepath,dirname:e.dirname,options:(0,n.validate)("extendsfile",e.options,e.filepath)})),v=makeChainWalker({root:e=>buildRootDescriptors(e,"base",c.createCachedDescriptors),env:(e,t)=>buildEnvDescriptors(e,"base",c.createCachedDescriptors,t),overrides:(e,t)=>buildOverrideDescriptors(e,"base",c.createCachedDescriptors,t),overridesEnv:(e,t,r)=>buildOverrideEnvDescriptors(e,"base",c.createCachedDescriptors,t,r),createLogger:(e,t,r)=>function(e,t,r){var n;if(!r)return()=>{};return r.configure(t.showConfig,i.ChainFormatter.Programmatic,{callerName:null==(n=t.caller)?void 0:n.name})}(0,t,r)}),E=makeChainWalker({root:e=>T(e),env:(e,t)=>S(e)(t),overrides:(e,t)=>P(e)(t),overridesEnv:(e,t,r)=>_(e)(t)(r),createLogger:(e,t,r)=>function(e,t,r){if(!r)return()=>{};return r.configure(t.showConfig,i.ChainFormatter.Config,{filepath:e})}(e.filepath,t,r)});function*loadFileChain(e,t,r,n){const s=yield*E(e,t,r,n);return null==s||s.files.add(e.filepath),s}const T=(0,p.makeWeakCacheSync)(e=>buildRootDescriptors(e,e.filepath,c.createUncachedDescriptors)),S=(0,p.makeWeakCacheSync)(e=>(0,p.makeStrongCacheSync)(t=>buildEnvDescriptors(e,e.filepath,c.createUncachedDescriptors,t))),P=(0,p.makeWeakCacheSync)(e=>(0,p.makeStrongCacheSync)(t=>buildOverrideDescriptors(e,e.filepath,c.createUncachedDescriptors,t))),_=(0,p.makeWeakCacheSync)(e=>(0,p.makeStrongCacheSync)(t=>(0,p.makeStrongCacheSync)(r=>buildOverrideEnvDescriptors(e,e.filepath,c.createUncachedDescriptors,t,r))));function buildRootDescriptors({dirname:e,options:t},r,n){return n(e,t,r)}function buildEnvDescriptors({dirname:e,options:t},r,n,s){var i;const o=null==(i=t.env)?void 0:i[s];return o?n(e,o,`${r}.env["${s}"]`):null}function buildOverrideDescriptors({dirname:e,options:t},r,n,s){var i;const o=null==(i=t.overrides)?void 0:i[s];if(!o)throw new Error("Assertion failure - missing override");return n(e,o,`${r}.overrides[${s}]`)}function buildOverrideEnvDescriptors({dirname:e,options:t},r,n,s,i){var o,a;const l=null==(o=t.overrides)?void 0:o[s];if(!l)throw new Error("Assertion failure - missing override");const p=null==(a=l.env)?void 0:a[i];return p?n(e,p,`${r}.overrides[${s}].env["${i}"]`):null}function makeChainWalker({root:e,env:t,overrides:r,overridesEnv:n,createLogger:s}){return function*(i,o,a=new Set,l){const{dirname:p}=i,c=[],u=e(i);if(configIsApplicable(u,p,o,i.filepath)){c.push({config:u,envName:void 0,index:void 0});const e=t(i,o.envName);e&&configIsApplicable(e,p,o,i.filepath)&&c.push({config:e,envName:o.envName,index:void 0}),(u.options.overrides||[]).forEach((e,t)=>{const s=r(i,t);if(configIsApplicable(s,p,o,i.filepath)){c.push({config:s,index:t,envName:void 0});const e=n(i,t,o.envName);e&&configIsApplicable(e,p,o,i.filepath)&&c.push({config:e,index:t,envName:o.envName})}})}if(c.some(({config:{options:{ignore:e,only:t}}})=>shouldIgnore(o,e,t,p)))return null;const d=emptyChain(),h=s(i,o,l);for(const{config:e,index:t,envName:r}of c){if(!(yield*mergeExtendsChain(d,e.options,p,o,a,l)))return null;h(e,t,r),yield*mergeChainOpts(d,e)}return d}}function*mergeExtendsChain(e,t,r,n,s,i){if(void 0===t.extends)return!0;const o=yield*(0,l.loadConfig)(t.extends,r,n.envName,n.caller);if(s.has(o))throw new Error(`Configuration cycle detected loading ${o.filepath}.\nFile already loaded following the config chain:\n`+Array.from(s,e=>` - ${e.filepath}`).join("\n"));s.add(o);const a=yield*loadFileChain(x(o),n,s,i);return s.delete(o),!!a&&(mergeChain(e,a),!0)}function mergeChain(e,t){e.options.push(...t.options),e.plugins.push(...t.plugins),e.presets.push(...t.presets);for(const r of t.files)e.files.add(r);return e}function*mergeChainOpts(e,{options:t,plugins:r,presets:n}){return e.options.push(t),e.plugins.push(...yield*r()),e.presets.push(...yield*n()),e}function emptyChain(){return{options:[],presets:[],plugins:[],files:new Set}}function createConfigChainOptions(e){const t=Object.assign({},e);return delete t.extends,delete t.env,delete t.overrides,delete t.plugins,delete t.presets,delete t.passPerPreset,delete t.ignore,delete t.only,delete t.test,delete t.include,delete t.exclude,hasOwnProperty.call(t,"sourceMap")&&(t.sourceMaps=t.sourceMap,delete t.sourceMap),t}function dedupDescriptors(e){const t=new Map,r=[];for(const n of e)if("function"==typeof n.value){const e=n.value;let s=t.get(e);s||(s=new Map,t.set(e,s));let i=s.get(n.name);i?i.value=n:(i={value:n},r.push(i),n.ownPass||s.set(n.name,i))}else r.push({value:n});return r.reduce((e,t)=>(e.push(t.value),e),[])}function configIsApplicable({options:e},t,r,n){return(void 0===e.test||configFieldIsApplicable(r,e.test,t,n))&&(void 0===e.include||configFieldIsApplicable(r,e.include,t,n))&&(void 0===e.exclude||!configFieldIsApplicable(r,e.exclude,t,n))}function configFieldIsApplicable(e,t,r,n){return matchesPatterns(e,Array.isArray(t)?t:[t],r,n)}function ignoreListReplacer(e,t){return t instanceof RegExp?String(t):t}function shouldIgnore(e,t,r,n){if(t&&matchesPatterns(e,t,n)){var s;const r=`No config is applied to "${null!=(s=e.filename)?s:"(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(t,ignoreListReplacer)}\` from "${n}"`;return u(r),e.showConfig&&console.log(r),!0}if(r&&!matchesPatterns(e,r,n)){var i;const t=`No config is applied to "${null!=(i=e.filename)?i:"(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(r,ignoreListReplacer)}\` from "${n}"`;return u(t),e.showConfig&&console.log(t),!0}return!1}function matchesPatterns(e,t,r,n){return t.some(t=>matchPattern(t,r,e.filename,e,n))}function matchPattern(e,t,r,n,i){if("function"==typeof e)return!!(0,o.endHiddenCallStack)(e)(r,{dirname:t,envName:n.envName,caller:n.caller});if("string"!=typeof r)throw new a.default("Configuration contains string/RegExp pattern, but no filename was passed to Babel",i);return"string"==typeof e&&(e=(0,s.default)(e,t)),e.test(r)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/config-descriptors.js"(e,t,r){"use strict";function _gensync(){const e=r("./node_modules/.pnpm/[email protected]/node_modules/gensync/index.js");return _gensync=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.createCachedDescriptors=function(e,t,r){const{plugins:n,presets:s,passPerPreset:i}=t;return{options:optionsWithResolvedBrowserslistConfigFile(t,e),plugins:n?()=>u(n,e)(r):()=>handlerOf([]),presets:s?()=>p(s,e)(r)(!!i):()=>handlerOf([])}},t.createDescriptor=createDescriptor,t.createUncachedDescriptors=function(e,t,r){return{options:optionsWithResolvedBrowserslistConfigFile(t,e),plugins:(0,n.once)(()=>createPluginDescriptors(t.plugins||[],e,r)),presets:(0,n.once)(()=>createPresetDescriptors(t.presets||[],e,r,!!t.passPerPreset))}};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/gensync-utils/functional.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/files/index.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/item.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/caching.js"),a=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/resolve-targets.js");function*handlerOf(e){return e}function optionsWithResolvedBrowserslistConfigFile(e,t){return"string"==typeof e.browserslistConfigFile&&(e.browserslistConfigFile=(0,a.resolveBrowserslistConfigFile)(e.browserslistConfigFile,t)),e}const l=new WeakMap,p=(0,o.makeWeakCacheSync)((e,t)=>{const r=t.using(e=>e);return(0,o.makeStrongCacheSync)(t=>(0,o.makeStrongCache)(function*(n){return(yield*createPresetDescriptors(e,r,t,n)).map(e=>loadCachedDescriptor(l,e))}))}),c=new WeakMap,u=(0,o.makeWeakCacheSync)((e,t)=>{const r=t.using(e=>e);return(0,o.makeStrongCache)(function*(t){return(yield*createPluginDescriptors(e,r,t)).map(e=>loadCachedDescriptor(c,e))})}),d={};function loadCachedDescriptor(e,t){const{value:r,options:n=d}=t;if(!1===n)return t;let s=e.get(r);s||(s=new WeakMap,e.set(r,s));let i=s.get(n);if(i||(i=[],s.set(n,i)),!i.includes(t)){const e=i.filter(e=>{return n=t,(r=e).name===n.name&&r.value===n.value&&r.options===n.options&&r.dirname===n.dirname&&r.alias===n.alias&&r.ownPass===n.ownPass&&(null==(s=r.file)?void 0:s.request)===(null==(i=n.file)?void 0:i.request)&&(null==(o=r.file)?void 0:o.resolved)===(null==(a=n.file)?void 0:a.resolved);var r,n,s,i,o,a});if(e.length>0)return e[0];i.push(t)}return t}function*createPresetDescriptors(e,t,r,n){return yield*createDescriptors("preset",e,t,r,n)}function*createPluginDescriptors(e,t,r){return yield*createDescriptors("plugin",e,t,r)}function*createDescriptors(e,t,r,n,s){const i=yield*_gensync().all(t.map((t,i)=>createDescriptor(t,r,{type:e,alias:`${n}$${i}`,ownPass:!!s})));return function(e){const t=new Map;for(const r of e){if("function"!=typeof r.value)continue;let n=t.get(r.value);if(n||(n=new Set,t.set(r.value,n)),n.has(r.name)){const t=e.filter(e=>e.value===r.value);throw new Error(["Duplicate plugin/preset detected.","If you'd like to use two separate instances of a plugin,","they need separate names, e.g.",""," plugins: ["," ['some-plugin', {}],"," ['some-plugin', {}, 'some unique name'],"," ]","","Duplicates detected are:",`${JSON.stringify(t,null,2)}`].join("\n"))}n.add(r.name)}}(i),i}function*createDescriptor(e,t,{type:r,alias:n,ownPass:o}){const a=(0,i.getItemDescriptor)(e);if(a)return a;let l,p,c,u=e;Array.isArray(u)&&(3===u.length?[u,p,l]=u:[u,p]=u);let d=null;if("string"==typeof u){if("string"!=typeof r)throw new Error("To resolve a string-based item, the type of item must be given");const e="plugin"===r?s.loadPlugin:s.loadPreset,n=u;({filepath:d,value:u}=yield*e(u,t)),c={request:n,resolved:d}}if(!u)throw new Error(`Unexpected falsy value: ${String(u)}`);if("object"==typeof u&&u.__esModule){if(!u.default)throw new Error("Must export a default export when using ES6 modules.");u=u.default}if("object"!=typeof u&&"function"!=typeof u)throw new Error(`Unsupported format: ${typeof u}. Expected an object or a function.`);if(null!==d&&"object"==typeof u&&u)throw new Error(`Plugin/Preset files are not allowed to export objects, only functions. In ${d}`);return{name:l,alias:d||n,value:u,options:p,dirname:t,ownPass:o,file:c}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/files/configuration.js"(e,t,r){"use strict";function _debug(){const e=r("./node_modules/.pnpm/[email protected]/node_modules/debug/src/index.js");return _debug=function(){return e},e}function _fs(){const e=r("fs");return _fs=function(){return e},e}function _path(){const e=r("path");return _path=function(){return e},e}function _json(){const e=r("./node_modules/.pnpm/[email protected]/node_modules/json5/dist/index.mjs");return _json=function(){return e},e}function _gensync(){const e=r("./node_modules/.pnpm/[email protected]/node_modules/gensync/index.js");return _gensync=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.ROOT_CONFIG_FILENAMES=void 0,t.findConfigUpwards=function(e){let t=e;for(;;){for(const e of h)if(_fs().existsSync(_path().join(t,e)))return t;const e=_path().dirname(t);if(t===e)break;t=e}return null},t.findRelativeConfig=function*(e,t,r){let n=null,s=null;const i=_path().dirname(e.filepath);for(const a of e.directories){var o;if(!n)n=yield*loadOneConfig(m,a,t,r,(null==(o=e.pkg)?void 0:o.dirname)===a?b(e.pkg):null);if(!s){const e=_path().join(a,".babelignore");s=yield*x(e),s&&d("Found ignore %o from %o.",s.filepath,i)}}return{config:n,ignore:s}},t.findRootConfig=function(e,t,r){return loadOneConfig(h,e,t,r)},t.loadConfig=function*(e,t,n,s){const i=(a=process.versions.node,p="8.9",a=a.split("."),p=p.split("."),+a[0]>+p[0]||a[0]==p[0]&&+a[1]>=+p[1]?r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/files sync recursive").resolve:(e,{paths:[t]},n=r("module"))=>{let s=n._findPath(e,n._nodeModulePaths(t).concat(t));if(s)return s;throw s=new Error(`Cannot resolve module '${e}'`),s.code="MODULE_NOT_FOUND",s})(e,{paths:[t]}),o=yield*readConfig(i,n,s);var a,p;if(!o)throw new l.default("Config file contains no configuration data",i);return d("Loaded config %o from %o.",e,t),o},t.resolveShowConfigPath=function*(e){const t=process.env.BABEL_SHOW_CONFIG_FOR;if(null!=t){const r=_path().resolve(e,t);if(!(yield*p.stat(r)).isFile())throw new Error(`${r}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`);return r}return null};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/caching.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/helpers/config-api.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/files/utils.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/files/module-types.js"),a=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/pattern-to-regex.js"),l=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/errors/config-error.js"),p=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/gensync-utils/fs.js");r("module");var c=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js"),u=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/gensync-utils/async.js");const d=_debug()("babel:config:loading:files:configuration"),h=t.ROOT_CONFIG_FILENAMES=["babel.config.js","babel.config.cjs","babel.config.mjs","babel.config.json","babel.config.cts","babel.config.ts","babel.config.mts"],m=[".babelrc",".babelrc.js",".babelrc.cjs",".babelrc.mjs",".babelrc.json",".babelrc.cts"],f=(0,n.makeWeakCache)(function*(e,t){return yield*[],{options:(0,c.endHiddenCallStack)(e)((0,s.makeConfigAPI)(t)),cacheNeedsConfiguration:!t.configured()}});function*readConfigCode(e,t){if(!_fs().existsSync(e))return null;let r=yield*(0,o.default)(e,(yield*(0,u.isAsync)())?"auto":"require","You appear to be using a native ECMAScript module configuration file, which is only supported when running Babel asynchronously or when using the Node.js `--experimental-require-module` flag.","You appear to be using a configuration file that contains top-level await, which is only supported when running Babel asynchronously."),n=!1;if("function"==typeof r&&({options:r,cacheNeedsConfiguration:n}=yield*f(r,t)),!r||"object"!=typeof r||Array.isArray(r))throw new l.default("Configuration should be an exported JavaScript object.",e);if("function"==typeof r.then)throw null==r.catch||r.catch(()=>{}),new l.default("You appear to be using an async configuration, which your current version of Babel does not support. We may add support for this in the future, but if you're on the most recent version of @babel/core and still seeing this error, then you'll need to synchronously return your config.",e);return n&&function(e){throw new l.default('Caching was left unconfigured. Babel\'s plugins, presets, and .babelrc.js files can be configured\nfor various types of caching, using the first param of their handler functions:\n\nmodule.exports = function(api) {\n // The API exposes the following:\n\n // Cache the returned value forever and don\'t call this function again.\n api.cache(true);\n\n // Don\'t cache at all. Not recommended because it will be very slow.\n api.cache(false);\n\n // Cached based on the value of some function. If this function returns a value different from\n // a previously-encountered value, the plugins will re-evaluate.\n var env = api.cache(() => process.env.NODE_ENV);\n\n // If testing for a specific env, we recommend specifics to avoid instantiating a plugin for\n // any possible NODE_ENV value that might come up during plugin execution.\n var isProd = api.cache(() => process.env.NODE_ENV === "production");\n\n // .cache(fn) will perform a linear search though instances to find the matching plugin based\n // based on previous instantiated plugins. If you want to recreate the plugin and discard the\n // previous instance whenever something changes, you may use:\n var isProd = api.cache.invalidate(() => process.env.NODE_ENV === "production");\n\n // Note, we also expose the following more-verbose versions of the above examples:\n api.cache.forever(); // api.cache(true)\n api.cache.never(); // api.cache(false)\n api.cache.using(fn); // api.cache(fn)\n\n // Return the value that will be cached.\n return { };\n};',e)}(e),function(e,t){let r=y.get(e);r||y.set(e,r=new Map);let n=r.get(t);n||(n={filepath:t,dirname:_path().dirname(t),options:e},r.set(t,n));return n}(r,e)}const y=new WeakMap;const b=(0,n.makeWeakCacheSync)(e=>{const t=e.options.babel;if(void 0===t)return null;if("object"!=typeof t||Array.isArray(t)||null===t)throw new l.default(".babel property must be an object",e.filepath);return{filepath:e.filepath,dirname:e.dirname,options:t}}),g=(0,i.makeStaticFileCache)((e,t)=>{let r;try{r=_json().parse(t)}catch(t){throw new l.default(`Error while parsing config - ${t.message}`,e)}if(!r)throw new l.default("No config detected",e);if("object"!=typeof r)throw new l.default("Config returned typeof "+typeof r,e);if(Array.isArray(r))throw new l.default("Expected config object but found array",e);return delete r.$schema,{filepath:e,dirname:_path().dirname(e),options:r}}),x=(0,i.makeStaticFileCache)((e,t)=>{const r=_path().dirname(e),n=t.split("\n").map(e=>e.replace(/#.*$/,"").trim()).filter(Boolean);for(const t of n)if(t.startsWith("!"))throw new l.default("Negation of file paths is not supported.",e);return{filepath:e,dirname:_path().dirname(e),ignore:n.map(e=>(0,a.default)(e,r))}});function*loadOneConfig(e,t,r,n,s=null){const i=(yield*_gensync().all(e.map(e=>readConfig(_path().join(t,e),r,n)))).reduce((e,r)=>{if(r&&e)throw new l.default(`Multiple configuration files found. Please remove one:\n - ${_path().basename(e.filepath)}\n - ${r.filepath}\nfrom ${t}`);return r||e},s);return i&&d("Found configuration %o from %o.",i.filepath,t),i}function readConfig(e,t,r){switch(_path().extname(e)){case".js":case".cjs":case".mjs":case".ts":case".cts":case".mts":return readConfigCode(e,{envName:t,caller:r});default:return g(e)}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/files/import.cjs"(e,t,r){e.exports=function(e){return r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/files lazy recursive")(e)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/files/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ROOT_CONFIG_FILENAMES",{enumerable:!0,get:function(){return s.ROOT_CONFIG_FILENAMES}}),Object.defineProperty(t,"findConfigUpwards",{enumerable:!0,get:function(){return s.findConfigUpwards}}),Object.defineProperty(t,"findPackageData",{enumerable:!0,get:function(){return n.findPackageData}}),Object.defineProperty(t,"findRelativeConfig",{enumerable:!0,get:function(){return s.findRelativeConfig}}),Object.defineProperty(t,"findRootConfig",{enumerable:!0,get:function(){return s.findRootConfig}}),Object.defineProperty(t,"loadConfig",{enumerable:!0,get:function(){return s.loadConfig}}),Object.defineProperty(t,"loadPlugin",{enumerable:!0,get:function(){return i.loadPlugin}}),Object.defineProperty(t,"loadPreset",{enumerable:!0,get:function(){return i.loadPreset}}),Object.defineProperty(t,"resolvePlugin",{enumerable:!0,get:function(){return i.resolvePlugin}}),Object.defineProperty(t,"resolvePreset",{enumerable:!0,get:function(){return i.resolvePreset}}),Object.defineProperty(t,"resolveShowConfigPath",{enumerable:!0,get:function(){return s.resolveShowConfigPath}});var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/files/package.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/files/configuration.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/files/plugins.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/files/module-types.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function*(e,t,r,s){let o;const a=_path().extname(e),l=".ts"===a||".cts"===a||".mts"===a,p=h[hasOwnProperty.call(h,a)?a:".js"];switch(`${t} ${p}`){case"require cjs":case"auto cjs":return l?ensureTsSupport(e,a,()=>loadCjsDefault(e)):loadCjsDefault(e,arguments[2]);case"auto unknown":case"require unknown":case"require esm":try{return l?ensureTsSupport(e,a,()=>loadCjsDefault(e)):loadCjsDefault(e,arguments[2])}catch(t){if("ERR_REQUIRE_ASYNC_MODULE"===t.code||"ERR_REQUIRE_CYCLE_MODULE"===t.code&&m.has(e)){if(m.add(e),!(null!=o?o:o=yield*(0,n.isAsync)()))throw new i.default(s,e)}else if("ERR_REQUIRE_ESM"!==t.code&&"esm"!==p)throw t}case"auto esm":if(null!=o?o:o=yield*(0,n.isAsync)()){const t=l?ensureTsSupport(e,a,()=>c(e)):c(e);return(yield*(0,n.waitFor)(t)).default}throw l?new i.default(tsNotSupportedError(a),e):new i.default(r,e);default:throw new Error("Internal Babel error: unreachable code.")}},t.supportsESM=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/gensync-utils/async.js");function _path(){const e=r("path");return _path=function(){return e},e}function _url(){const e=r("url");return _url=function(){return e},e}function _semver(){const e=r("./node_modules/.pnpm/[email protected]/node_modules/semver/semver.js");return _semver=function(){return e},e}function _debug(){const e=r("./node_modules/.pnpm/[email protected]/node_modules/debug/src/index.js");return _debug=function(){return e},e}r("module");var s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/errors/config-error.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transform-file.js");function asyncGeneratorStep(e,t,r,n,s,i,o){try{var a=e[i](o),l=a.value}catch(e){return void r(e)}a.done?t(l):Promise.resolve(l).then(n,s)}const a=_debug()("babel:config:loading:files:module-types");try{var l=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/files/import.cjs")}catch(e){}t.supportsESM=_semver().satisfies(process.versions.node,"^12.17 || >=13.2");const p=new Set;function loadCjsDefault(e){if(p.has(e))return a("Auto-ignoring usage of config %o.",e),{};let t;try{p.add(e),t=(0,s.endHiddenCallStack)(r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/files sync recursive"))(e)}finally{p.delete(e)}return null==t||!t.__esModule&&"Module"!==t[Symbol.toStringTag]?t:t.default||(arguments[1]?t:void 0)}const c=(0,s.endHiddenCallStack)((u=function*(e){const t=(0,_url().pathToFileURL)(e).toString()+"?import";if(!l)throw new i.default("Internal error: Native ECMAScript modules aren't supported by this platform.\n",e);return yield l(t)},d=function(){var e=this,t=arguments;return new Promise(function(r,n){var s=u.apply(e,t);function _next(e){asyncGeneratorStep(s,r,n,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,r,n,_next,_throw,"throw",e)}_next(void 0)})},function(e){return d.apply(this,arguments)}));var u,d;const tsNotSupportedError=e=>`You are using a ${e} config file, but Babel only supports transpiling .cts configs. Either:\n- Use a .cts config file\n- Update to Node.js 23.6.0, which has native TypeScript support\n- Install tsx to transpile ${e} files on the fly`,h={".js":"unknown",".mjs":"esm",".cjs":"cjs",".ts":"unknown",".mts":"esm",".cts":"cjs"},m=new Set;function ensureTsSupport(e,t,n){if(process.features.typescript||(void 0)[".ts"]||(void 0)[".cts"]||(void 0)[".mts"])return n();if(".cts"!==t)throw new i.default(tsNotSupportedError(t),e);const s={babelrc:!1,configFile:!1,sourceType:"unambiguous",sourceMaps:"inline",sourceFileName:_path().basename(e),presets:[[getTSPreset(e),Object.assign({onlyRemoveTypeImports:!0,optimizeConstEnums:!0},{allowDeclareFields:!0})]]};let handler=function(e,t){if(handler&&t.endsWith(".cts"))try{return e._compile((0,o.transformFileSync)(t,Object.assign({},s,{filename:t})).code,t)}catch(e){const t=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/preset-typescript/package.json");throw _semver().lt(t.version,"7.21.4")&&console.error("`.cts` configuration file failed to load, please try to update `@babel/preset-typescript`."),e}return(void 0)[".js"](e,t)};(void 0)[t]=handler;try{return n()}finally{(void 0)[t]===handler&&delete(void 0)[t],handler=void 0}}function getTSPreset(e){try{return r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/preset-typescript/lib/index.js")}catch(t){if("MODULE_NOT_FOUND"!==t.code)throw t;let r="You appear to be using a .cts file as Babel configuration, but the `@babel/preset-typescript` package was not found: please install it!";throw process.versions.pnp&&(r+='\nIf you are using Yarn Plug\'n\'Play, you may also need to add the following configuration to your .yarnrc.yml file:\n\npackageExtensions:\n\t"@babel/core@*":\n\t\tpeerDependencies:\n\t\t\t"@babel/preset-typescript": "*"\n'),new i.default(r,e)}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/files/package.js"(e,t,r){"use strict";function _path(){const e=r("path");return _path=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.findPackageData=function*(e){let t=null;const r=[];let n=!0,s=_path().dirname(e);for(;!t&&"node_modules"!==_path().basename(s);){r.push(s),t=yield*i(_path().join(s,"package.json"));const e=_path().dirname(s);if(s===e){n=!1;break}s=e}return{filepath:e,directories:r,pkg:t,isPackage:n}};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/files/utils.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/errors/config-error.js");const i=(0,n.makeStaticFileCache)((e,t)=>{let r;try{r=JSON.parse(t)}catch(t){throw new s.default(`Error while parsing JSON - ${t.message}`,e)}if(!r)throw new Error(`${e}: No config detected`);if("object"!=typeof r)throw new s.default("Config returned typeof "+typeof r,e);if(Array.isArray(r))throw new s.default("Expected config object but found array",e);return{filepath:e,dirname:_path().dirname(e),options:r}})},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/files/plugins.js"(e,t,r){"use strict";function _debug(){const e=r("./node_modules/.pnpm/[email protected]/node_modules/debug/src/index.js");return _debug=function(){return e},e}function _path(){const e=r("path");return _path=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.loadPlugin=function*(e,t){const{filepath:r,loader:s}=f(e,t,yield*(0,n.isAsync)()),i=yield*requireModule("plugin",s,r);return o("Loaded plugin %o from %o.",e,t),{filepath:r,value:i}},t.loadPreset=function*(e,t){const{filepath:r,loader:s}=y(e,t,yield*(0,n.isAsync)()),i=yield*requireModule("preset",s,r);return o("Loaded preset %o from %o.",e,t),{filepath:r,value:i}},t.resolvePreset=t.resolvePlugin=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/gensync-utils/async.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/files/module-types.js");function _url(){const e=r("url");return _url=function(){return e},e}var i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/vendor/import-meta-resolve.js");function _fs(){const e=r("fs");return _fs=function(){return e},e}r("module");const o=_debug()("babel:config:loading:files:plugins"),a=/^module:/,l=/^(?!@|module:|[^/]+\/|babel-plugin-)/,p=/^(?!@|module:|[^/]+\/|babel-preset-)/,c=/^(@babel\/)(?!plugin-|[^/]+\/)/,u=/^(@babel\/)(?!preset-|[^/]+\/)/,d=/^(@(?!babel\/)[^/]+\/)(?![^/]*babel-plugin(?:-|\/|$)|[^/]+\/)/,h=/^(@(?!babel\/)[^/]+\/)(?![^/]*babel-preset(?:-|\/|$)|[^/]+\/)/,m=/^(@(?!babel$)[^/]+)$/,f=t.resolvePlugin=resolveStandardizedName.bind(null,"plugin"),y=t.resolvePreset=resolveStandardizedName.bind(null,"preset");function standardizeName(e,t){if(_path().isAbsolute(t))return t;const r="preset"===e;return t.replace(r?p:l,`babel-${e}-`).replace(r?u:c,`$1${e}-`).replace(r?h:d,`$1babel-${e}-`).replace(m,`$1/babel-${e}`).replace(a,"")}function*resolveAlternativesHelper(e,t){const r=standardizeName(e,t),{error:n,value:s}=yield r;if(!n)return s;if("MODULE_NOT_FOUND"!==n.code)throw n;r===t||(yield t).error||(n.message+=`\n- If you want to resolve "${t}", use "module:${t}"`),(yield standardizeName(e,"@babel/"+t)).error||(n.message+=`\n- Did you mean "@babel/${t}"?`);const i="preset"===e?"plugin":"preset";if((yield standardizeName(i,t)).error||(n.message+=`\n- Did you accidentally pass a ${i} as a ${e}?`),"plugin"===e){const e=r.replace("-proposal-","-transform-");e===r||(yield e).error||(n.message+=`\n- Did you mean "${e}"?`)}throw n.message+="\n\nMake sure that all the Babel plugins and presets you are using\nare defined as dependencies or devDependencies in your package.json\nfile. It's possible that the missing plugin is loaded by a preset\nyou are using that forgot to add the plugin to its dependencies: you\ncan workaround this problem by explicitly adding the missing package\nto your top-level package.json.\n",n}function tryRequireResolve(e,t){try{return t?{error:null,value:(n=process.versions.node,s="8.9",n=n.split("."),s=s.split("."),+n[0]>+s[0]||n[0]==s[0]&&+n[1]>=+s[1]?r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/files sync recursive").resolve:(e,{paths:[t]},n=r("module"))=>{let s=n._findPath(e,n._nodeModulePaths(t).concat(t));if(s)return s;throw s=new Error(`Cannot resolve module '${e}'`),s.code="MODULE_NOT_FOUND",s})(e,{paths:[t]})}:{error:null,value:r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/files sync recursive").resolve(e)}}catch(e){return{error:e,value:null}}var n,s}function tryImportMetaResolve(e,t){try{return{error:null,value:(0,i.resolve)(e,t)}}catch(e){return{error:e,value:null}}}function resolveStandardizedNameForRequire(e,t,r){const n=resolveAlternativesHelper(e,t);let s=n.next();for(;!s.done;)s=n.next(tryRequireResolve(s.value,r));return{loader:"require",filepath:s.value}}function resolveStandardizedName(e,t,r,n){if(!s.supportsESM||!n)return resolveStandardizedNameForRequire(e,t,r);try{const n=function(e,t,r){const n=(0,_url().pathToFileURL)(_path().join(r,"./babel-virtual-resolve-base.js")).href,s=resolveAlternativesHelper(e,t);let i=s.next();for(;!i.done;)i=s.next(tryImportMetaResolve(i.value,n));return{loader:"auto",filepath:(0,_url().fileURLToPath)(i.value)}}(e,t,r);if(!(0,_fs().existsSync)(n.filepath))throw Object.assign(new Error(`Could not resolve "${t}" in file ${r}.`),{type:"MODULE_NOT_FOUND"});return n}catch(n){try{return resolveStandardizedNameForRequire(e,t,r)}catch(e){if("MODULE_NOT_FOUND"===n.type)throw n;if("MODULE_NOT_FOUND"===e.type)throw e;throw n}}}var b=new Set;function*requireModule(e,t,r){if(!(yield*(0,n.isAsync)())&&b.has(r))throw new Error(`Reentrant ${e} detected trying to load "${r}". This module is not ignored and is trying to load itself while compiling itself, leading to a dependency cycle. We recommend adding it to your "ignore" list in your babelrc, or to a .babelignore.`);try{return b.add(r),yield*(0,s.default)(r,t,`You appear to be using a native ECMAScript module ${e}, which is only supported when running Babel asynchronously or when using the Node.js \`--experimental-require-module\` flag.`,`You appear to be using a ${e} that contains top-level await, which is only supported when running Babel asynchronously.`,!0)}catch(e){throw e.message=`[BABEL]: ${e.message} (While processing: ${r})`,e}finally{b.delete(r)}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/files/utils.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeStaticFileCache=function(e){return(0,n.makeStrongCache)(function*(t,r){const n=r.invalidate(()=>function(e){if(!_fs2().existsSync(e))return null;try{return+_fs2().statSync(e).mtime}catch(e){if("ENOENT"!==e.code&&"ENOTDIR"!==e.code)throw e}return null}(t));return null===n?null:e(t,yield*s.readFile(t,"utf8"))})};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/caching.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/gensync-utils/fs.js");function _fs2(){const e=r("fs");return _fs2=function(){return e},e}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/full.js"(e,t,r){"use strict";function _gensync(){const e=r("./node_modules/.pnpm/[email protected]/node_modules/gensync/index.js");return _gensync=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/gensync-utils/async.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/util.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/index.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/plugin.js"),a=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/item.js"),l=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/config-chain.js"),p=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/helpers/deep-array.js");function _traverse(){const e=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/index.js");return _traverse=function(){return e},e}var c=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/caching.js"),u=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/validation/options.js"),d=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/validation/plugins.js"),h=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/helpers/config-api.js"),m=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/partial.js"),f=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/errors/config-error.js");t.default=_gensync()(function*(e){var t;const r=yield*(0,m.default)(e);if(!r)return null;const{options:n,context:i,fileHandling:o}=r;if("ignored"===o)return null;const l={},{plugins:c,presets:d}=n;if(!c||!d)throw new Error("Assertion failure - plugins and presets exist");const h=Object.assign({},i,{targets:n.targets}),toDescriptor=e=>{const t=(0,a.getItemDescriptor)(e);if(!t)throw new Error("Assertion failure - must be config item");return t},f=d.map(toDescriptor),y=c.map(toDescriptor),b=[[]],g=[],x=[],v=yield*enhanceError(i,function*recursePresetDescriptors(e,t){const r=[];for(let s=0;s<e.length;s++){const i=e[s];if(!1!==i.options){try{var n=yield*loadPresetDescriptor(i,h)}catch(t){throw"BABEL_UNKNOWN_OPTION"===t.code&&(0,u.checkNoUnwrappedItemOptionPairs)(e,s,"preset",t),t}x.push(n.externalDependencies),i.ownPass?r.push({preset:n.chain,pass:[]}):r.unshift({preset:n.chain,pass:t})}}if(r.length>0){b.splice(1,0,...r.map(e=>e.pass).filter(e=>e!==t));for(const{preset:e,pass:t}of r){if(!e)return!0;t.push(...e.plugins);if(yield*recursePresetDescriptors(e.presets,t))return!0;e.options.forEach(e=>{(0,s.mergeOptions)(l,e)})}}})(f,b[0]);if(v)return null;const E=l;(0,s.mergeOptions)(E,n);const T=Object.assign({},h,{assumptions:null!=(t=E.assumptions)?t:{}});return yield*enhanceError(i,function*(){b[0].unshift(...y);for(const t of b){const r=[];g.push(r);for(let n=0;n<t.length;n++){const s=t[n];if(!1!==s.options){try{var e=yield*loadPluginDescriptor(s,T)}catch(e){throw"BABEL_UNKNOWN_PLUGIN_PROPERTY"===e.code&&(0,u.checkNoUnwrappedItemOptionPairs)(t,n,"plugin",e),e}r.push(e),x.push(e.externalDependencies)}}}})(),E.plugins=g[0],E.presets=g.slice(1).filter(e=>e.length>0).map(e=>({plugins:e})),E.passPerPreset=E.presets.length>0,{options:E,passes:g,externalDependencies:(0,p.finalize)(x)}});function enhanceError(e,t){return function*(r,n){try{return yield*t(r,n)}catch(t){var s;if(!t.message.startsWith("[BABEL]"))t.message=`[BABEL] ${null!=(s=e.filename)?s:"unknown file"}: ${t.message}`;throw t}}}const makeDescriptorLoader=e=>(0,c.makeWeakCache)(function*({value:t,options:r,dirname:s,alias:o},a){if(!1===r)throw new Error("Assertion failure");r=r||{};const l=[];let c=t;if("function"==typeof t){const p=(0,n.maybeAsync)(t,"You appear to be using an async plugin/preset, but Babel has been called synchronously"),u=Object.assign({},i,e(a,l));try{c=yield*p(u,r,s)}catch(e){throw o&&(e.message+=` (While processing: ${JSON.stringify(o)})`),e}}if(!c||"object"!=typeof c)throw new Error("Plugin/Preset did not return an object.");if((0,n.isThenable)(c))throw yield*[],new Error(`You appear to be using a promise as a plugin, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version. As an alternative, you can prefix the promise with "await". (While processing: ${JSON.stringify(o)})`);if(l.length>0&&(!a.configured()||"forever"===a.mode())){let e=`A plugin/preset has external untracked dependencies (${l[0]}), but the cache `;throw a.configured()?e+=" has been configured to never be invalidated. ":e+="has not been configured to be invalidated when the external dependencies change. ",e+=`Plugins/presets should configure their cache to be invalidated when the external dependencies change, for example using \`api.cache.invalidate(() => statSync(filepath).mtimeMs)\` or \`api.cache.never()\`\n(While processing: ${JSON.stringify(o)})`,new Error(e)}return{value:c,options:r,dirname:s,alias:o,externalDependencies:(0,p.finalize)(l)}}),y=makeDescriptorLoader(h.makePluginAPI),b=makeDescriptorLoader(h.makePresetAPI),g=(0,c.makeWeakCache)(function*({value:e,options:t,dirname:r,alias:s,externalDependencies:i},a){const l=(0,d.validatePluginObject)(e),c=Object.assign({},l);if(c.visitor&&(c.visitor=_traverse().default.explode(Object.assign({},c.visitor))),c.inherits){const e={name:void 0,alias:`${s}$inherits`,value:c.inherits,options:t,dirname:r},o=yield*(0,n.forwardAsync)(loadPluginDescriptor,t=>a.invalidate(r=>t(e,r)));c.pre=chainMaybeAsync(o.pre,c.pre),c.post=chainMaybeAsync(o.post,c.post),c.manipulateOptions=chainMaybeAsync(o.manipulateOptions,c.manipulateOptions),c.visitor=_traverse().default.visitors.merge([o.visitor||{},c.visitor||{}]),o.externalDependencies.length>0&&(i=0===i.length?o.externalDependencies:(0,p.finalize)([i,o.externalDependencies]))}return new o.default(c,t,s,i)});function*loadPluginDescriptor(e,t){if(e.value instanceof o.default){if(e.options)throw new Error("Passed options to an existing Plugin instance will not work.");return e.value}return yield*g(yield*y(e,t),t)}const needsFilename=e=>e&&"function"!=typeof e,validateIfOptionNeedsFilename=(e,t)=>{if(needsFilename(e.test)||needsFilename(e.include)||needsFilename(e.exclude)){const e=t.name?`"${t.name}"`:"/* your preset */";throw new f.default([`Preset ${e} requires a filename to be set when babel is called directly,`,"```",`babel.transformSync(code, { filename: 'file.ts', presets: [${e}] });`,"```","See https://babeljs.io/docs/en/options#filename for more information."].join("\n"))}},x=(0,c.makeWeakCacheSync)(({value:e,dirname:t,alias:r,externalDependencies:n})=>({options:(0,u.validate)("preset",e),alias:r,dirname:t,externalDependencies:n}));function*loadPresetDescriptor(e,t){const r=x(yield*b(e,t));return((e,t,r)=>{if(!t.filename){var n;const{options:t}=e;validateIfOptionNeedsFilename(t,r),null==(n=t.overrides)||n.forEach(e=>validateIfOptionNeedsFilename(e,r))}})(r,t,e),{chain:yield*(0,l.buildPresetChain)(r,t),externalDependencies:r.externalDependencies}}function chainMaybeAsync(e,t){return e?t?function(...r){const n=e.apply(this,r);return n&&"function"==typeof n.then?n.then(()=>t.apply(this,r)):t.apply(this,r)}:e:t}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/helpers/config-api.js"(e,t,r){"use strict";function _semver(){const e=r("./node_modules/.pnpm/[email protected]/node_modules/semver/semver.js");return _semver=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.makeConfigAPI=makeConfigAPI,t.makePluginAPI=function(e,t){return Object.assign({},makePresetAPI(e,t),{assumption:t=>e.using(e=>e.assumptions[t])})},t.makePresetAPI=makePresetAPI;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/caching.js");function makeConfigAPI(e){return{version:n.version,cache:e.simple(),env:t=>e.using(e=>void 0===t?e.envName:"function"==typeof t?(0,s.assertSimpleType)(t(e.envName)):(Array.isArray(t)?t:[t]).some(t=>{if("string"!=typeof t)throw new Error("Unexpected non-string value");return t===e.envName})),async:()=>!1,caller:t=>e.using(e=>(0,s.assertSimpleType)(t(e.caller))),assertVersion}}function makePresetAPI(e,t){return Object.assign({},makeConfigAPI(e),{targets:()=>JSON.parse(e.using(e=>JSON.stringify(e.targets))),addExternalDependency:e=>{t.push(e)}})}function assertVersion(e){if("number"==typeof e){if(!Number.isInteger(e))throw new Error("Expected string or integer value.");e=`^${e}.0.0-0`}if("string"!=typeof e)throw new Error("Expected string or integer value.");if("*"===e||_semver().satisfies(n.version,e))return;const t=`Requires Babel "${e}", but was loaded with "${n.version}". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`,r=Error.stackTraceLimit;"number"==typeof r&&r<25&&(Error.stackTraceLimit=25);const s=new Error(t);throw"number"==typeof r&&(Error.stackTraceLimit=r),Object.assign(s,{code:"BABEL_VERSION_UNSUPPORTED",version:n.version,range:e})}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/helpers/deep-array.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.finalize=function(e){return Object.freeze(e)},t.flattenToSet=function(e){const t=new Set,r=[e];for(;r.length>0;)for(const e of r.pop())Array.isArray(e)?r.push(e):t.add(e);return t}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/helpers/environment.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEnv=function(e="development"){return process.env.BABEL_ENV||process.env.NODE_ENV||e}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/index.js"(e,t,r){"use strict";function _gensync(){const e=r("./node_modules/.pnpm/[email protected]/node_modules/gensync/index.js");return _gensync=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.createConfigItem=function(e,t,r){if(void 0!==r)(0,o.beginHiddenCallStack)(p.errback)(e,t,r);else{if("function"!=typeof t)return createConfigItemSync(e,t);(0,o.beginHiddenCallStack)(p.errback)(e,void 0,r)}},t.createConfigItemAsync=function(...e){return(0,o.beginHiddenCallStack)(p.async)(...e)},t.createConfigItemSync=createConfigItemSync,Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.default}}),t.loadOptions=function(e,t){if(void 0!==t)(0,o.beginHiddenCallStack)(l.errback)(e,t);else{if("function"!=typeof e)return loadOptionsSync(e);(0,o.beginHiddenCallStack)(l.errback)(void 0,e)}},t.loadOptionsAsync=function(...e){return(0,o.beginHiddenCallStack)(l.async)(...e)},t.loadOptionsSync=loadOptionsSync,t.loadPartialConfig=function(e,t){if(void 0!==t)(0,o.beginHiddenCallStack)(a.errback)(e,t);else{if("function"!=typeof e)return loadPartialConfigSync(e);(0,o.beginHiddenCallStack)(a.errback)(void 0,e)}},t.loadPartialConfigAsync=function(...e){return(0,o.beginHiddenCallStack)(a.async)(...e)},t.loadPartialConfigSync=loadPartialConfigSync;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/full.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/partial.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/item.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js");const a=_gensync()(s.loadPartialConfig);function loadPartialConfigSync(...e){return(0,o.beginHiddenCallStack)(a.sync)(...e)}const l=_gensync()(function*(e){var t;const r=yield*(0,n.default)(e);return null!=(t=null==r?void 0:r.options)?t:null});function loadOptionsSync(...e){return(0,o.beginHiddenCallStack)(l.sync)(...e)}const p=_gensync()(i.createConfigItem);function createConfigItemSync(...e){return(0,o.beginHiddenCallStack)(p.sync)(...e)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/item.js"(e,t,r){"use strict";function _path(){const e=r("path");return _path=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.createConfigItem=function*(e,{dirname:t=".",type:r}={}){return createItemFromDescriptor(yield*(0,n.createDescriptor)(e,_path().resolve(t),{type:r,alias:"programmatic item"}))},t.createItemFromDescriptor=createItemFromDescriptor,t.getItemDescriptor=function(e){if(null!=e&&e[s])return e._descriptor;return};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/config-descriptors.js");function createItemFromDescriptor(e){return new ConfigItem(e)}const s=Symbol.for("@babel/core@7 - ConfigItem");class ConfigItem{constructor(e){this._descriptor=void 0,this[s]=!0,this.value=void 0,this.options=void 0,this.dirname=void 0,this.name=void 0,this.file=void 0,this._descriptor=e,Object.defineProperty(this,"_descriptor",{enumerable:!1}),Object.defineProperty(this,s,{enumerable:!1}),this.value=this._descriptor.value,this.options=this._descriptor.options,this.dirname=this._descriptor.dirname,this.name=this._descriptor.name,this.file=this._descriptor.file?{request:this._descriptor.file.request,resolved:this._descriptor.file.resolved}:void 0,Object.freeze(this)}}Object.freeze(ConfigItem.prototype)},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/partial.js"(e,t,r){"use strict";function _path(){const e=r("path");return _path=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=loadPrivatePartialConfig,t.loadPartialConfig=function*(e){let t=!1;if("object"==typeof e&&null!==e&&!Array.isArray(e)){var r=e;({showIgnoredFiles:t}=r),e=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(r,u)}const s=yield*loadPrivatePartialConfig(e);if(!s)return null;const{options:i,babelrc:o,ignore:a,config:l,fileHandling:p,files:c}=s;if("ignored"===p&&!t)return null;return(i.plugins||[]).forEach(e=>{if(e.value instanceof n.default)throw new Error("Passing cached plugin instances is not supported in babel.loadPartialConfig()")}),new PartialConfig(i,o?o.filepath:void 0,a?a.filepath:void 0,l?l.filepath:void 0,p,c)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/plugin.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/util.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/item.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/config-chain.js"),a=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/helpers/environment.js"),l=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/validation/options.js"),p=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/files/index.js"),c=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/resolve-targets.js");const u=["showIgnoredFiles"];function*loadPrivatePartialConfig(e){if(null!=e&&("object"!=typeof e||Array.isArray(e)))throw new Error("Babel options must be an object, null, or undefined");const t=e?(0,l.validate)("arguments",e):{},{envName:r=(0,a.getEnv)(),cwd:n=".",root:u=".",rootMode:d="root",caller:h,cloneInputAst:m=!0}=t,f=_path().resolve(n),y=function(e,t){switch(t){case"root":return e;case"upward-optional":{const t=(0,p.findConfigUpwards)(e);return null===t?e:t}case"upward":{const t=(0,p.findConfigUpwards)(e);if(null!==t)return t;throw Object.assign(new Error(`Babel was run with rootMode:"upward" but a root could not be found when searching upward from "${e}".\nOne of the following config files must be in the directory tree: "${p.ROOT_CONFIG_FILENAMES.join(", ")}".`),{code:"BABEL_ROOT_NOT_FOUND",dirname:e})}default:throw new Error("Assertion failure - unknown rootMode value.")}}(_path().resolve(f,u),d),b="string"==typeof t.filename?_path().resolve(n,t.filename):void 0,g={filename:b,cwd:f,root:y,envName:r,caller:h,showConfig:(yield*(0,p.resolveShowConfigPath)(f))===b},x=yield*(0,o.buildRootChain)(t,g);if(!x)return null;const v={assumptions:{}};x.options.forEach(e=>{(0,s.mergeOptions)(v,e)});return{options:Object.assign({},v,{targets:(0,c.resolveTargets)(v,y),cloneInputAst:m,babelrc:!1,configFile:!1,browserslistConfigFile:!1,passPerPreset:!1,envName:g.envName,cwd:g.cwd,root:g.root,rootMode:"root",filename:"string"==typeof g.filename?g.filename:void 0,plugins:x.plugins.map(e=>(0,i.createItemFromDescriptor)(e)),presets:x.presets.map(e=>(0,i.createItemFromDescriptor)(e))}),context:g,fileHandling:x.fileHandling,ignore:x.ignore,babelrc:x.babelrc,config:x.config,files:x.files}}class PartialConfig{constructor(e,t,r,n,s,i){this.options=void 0,this.babelrc=void 0,this.babelignore=void 0,this.config=void 0,this.fileHandling=void 0,this.files=void 0,this.options=e,this.babelignore=r,this.babelrc=t,this.config=n,this.fileHandling=s,this.files=i,Object.freeze(this)}hasFilesystemConfig(){return void 0!==this.babelrc||void 0!==this.config}}Object.freeze(PartialConfig.prototype)},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/pattern-to-regex.js"(e,t,r){"use strict";function _path(){const e=r("path");return _path=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const r=_path().resolve(t,e).split(_path().sep);return new RegExp(["^",...r.map((e,t)=>{const c=t===r.length-1;return"**"===e?c?p:l:"*"===e?c?a:o:e.startsWith("*.")?i+escapeRegExp(e.slice(1))+(c?s:n):escapeRegExp(e)+(c?s:n)})].join(""))};const n=`\\${_path().sep}`,s=`(?:${n}|$)`,i=`[^${n}]+`,o=`(?:${i}${n})`,a=`(?:${i}${s})`,l=`${o}*?`,p=`${o}*?${a}?`;function escapeRegExp(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/plugin.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/helpers/deep-array.js");t.default=class{constructor(e,t,r,s=(0,n.finalize)([])){this.key=void 0,this.manipulateOptions=void 0,this.post=void 0,this.pre=void 0,this.visitor=void 0,this.parserOverride=void 0,this.generatorOverride=void 0,this.options=void 0,this.externalDependencies=void 0,this.key=e.name||r,this.manipulateOptions=e.manipulateOptions,this.post=e.post,this.pre=e.pre,this.visitor=e.visitor||{},this.parserOverride=e.parserOverride,this.generatorOverride=e.generatorOverride,this.options=t,this.externalDependencies=s}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/printer.js"(e,t,r){"use strict";function _gensync(){const e=r("./node_modules/.pnpm/[email protected]/node_modules/gensync/index.js");return _gensync=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigPrinter=t.ChainFormatter=void 0;const n=t.ChainFormatter={Programmatic:0,Config:1},s={title(e,t,r){let s="";return e===n.Programmatic?(s="programmatic options",t&&(s+=" from "+t)):s="config "+r,s},loc(e,t){let r="";return null!=e&&(r+=`.overrides[${e}]`),null!=t&&(r+=`.env["${t}"]`),r},*optionsAndDescriptors(e){const t=Object.assign({},e.options);delete t.overrides,delete t.env;const r=[...yield*e.plugins()];r.length&&(t.plugins=r.map(e=>descriptorToConfig(e)));const n=[...yield*e.presets()];return n.length&&(t.presets=[...n].map(e=>descriptorToConfig(e))),JSON.stringify(t,void 0,2)}};function descriptorToConfig(e){var t;let r=null==(t=e.file)?void 0:t.request;return null==r&&("object"==typeof e.value?r=e.value:"function"==typeof e.value&&(r=`[Function: ${e.value.toString().slice(0,50)} ... ]`)),null==r&&(r="[Unknown]"),void 0===e.options?r:null==e.name?[r,e.options]:[r,e.options,e.name]}class ConfigPrinter{constructor(){this._stack=[]}configure(e,t,{callerName:r,filepath:n}){return e?(e,s,i)=>{this._stack.push({type:t,callerName:r,filepath:n,content:e,index:s,envName:i})}:()=>{}}static*format(e){let t=s.title(e.type,e.callerName,e.filepath);const r=s.loc(e.index,e.envName);r&&(t+=` ${r}`);return`${t}\n${yield*s.optionsAndDescriptors(e.content)}`}*output(){if(0===this._stack.length)return"";return(yield*_gensync().all(this._stack.map(e=>ConfigPrinter.format(e)))).join("\n\n")}}t.ConfigPrinter=ConfigPrinter},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/resolve-targets.js"(e,t,r){"use strict";function _path(){const e=r("path");return _path=function(){return e},e}function _helperCompilationTargets(){const e=r("./stubs/helper-compilation-targets.mjs");return _helperCompilationTargets=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.resolveBrowserslistConfigFile=function(e,t){return _path().resolve(t,e)},t.resolveTargets=function(e,t){const r=e.targets;let n;"string"==typeof r||Array.isArray(r)?n={browsers:r}:r&&(n="esmodules"in r?Object.assign({},r,{esmodules:"intersect"}):r);const{browserslistConfigFile:s}=e;let i,o=!1;"string"==typeof s?i=s:o=!1===s;return(0,_helperCompilationTargets().default)(n,{ignoreBrowserslistConfig:o,configFile:i,configPath:t,browserslistEnv:e.browserslistEnv})}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/util.js"(e,t){"use strict";function mergeDefaultFields(e,t){for(const r of Object.keys(t)){const n=t[r];void 0!==n&&(e[r]=n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.isIterableIterator=function(e){return!!e&&"function"==typeof e.next&&"function"==typeof e[Symbol.iterator]},t.mergeOptions=function(e,t){for(const r of Object.keys(t))if("parserOpts"!==r&&"generatorOpts"!==r&&"assumptions"!==r||!t[r]){const n=t[r];void 0!==n&&(e[r]=n)}else{const n=t[r];mergeDefaultFields(e[r]||(e[r]={}),n)}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/validation/option-assertions.js"(e,t,r){"use strict";function _helperCompilationTargets(){const e=r("./stubs/helper-compilation-targets.mjs");return _helperCompilationTargets=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.access=access,t.assertArray=assertArray,t.assertAssumptions=function(e,t){if(void 0===t)return;if("object"!=typeof t||null===t)throw new Error(`${msg(e)} must be an object or undefined.`);let r=e;do{r=r.parent}while("root"!==r.type);const s="preset"===r.source;for(const r of Object.keys(t)){const i=access(e,r);if(!n.assumptionsNames.has(r))throw new Error(`${msg(i)} is not a supported assumption.`);if("boolean"!=typeof t[r])throw new Error(`${msg(i)} must be a boolean.`);if(s&&!1===t[r])throw new Error(`${msg(i)} cannot be set to 'false' inside presets.`)}return t},t.assertBabelrcSearch=function(e,t){if(void 0===t||"boolean"==typeof t)return t;if(Array.isArray(t))t.forEach((t,r)=>{if(!checkValidTest(t))throw new Error(`${msg(access(e,r))} must be a string/Function/RegExp.`)});else if(!checkValidTest(t))throw new Error(`${msg(e)} must be a undefined, a boolean, a string/Function/RegExp or an array of those, got ${JSON.stringify(t)}`);return t},t.assertBoolean=assertBoolean,t.assertCallerMetadata=function(e,t){const r=assertObject(e,t);if(r){if("string"!=typeof r.name)throw new Error(`${msg(e)} set but does not contain "name" property string`);for(const t of Object.keys(r)){const n=access(e,t),s=r[t];if(null!=s&&"boolean"!=typeof s&&"string"!=typeof s&&"number"!=typeof s)throw new Error(`${msg(n)} must be null, undefined, a boolean, a string, or a number.`)}}return t},t.assertCompact=function(e,t){if(void 0!==t&&"boolean"!=typeof t&&"auto"!==t)throw new Error(`${msg(e)} must be a boolean, "auto", or undefined`);return t},t.assertConfigApplicableTest=function(e,t){if(void 0===t)return t;if(Array.isArray(t))t.forEach((t,r)=>{if(!checkValidTest(t))throw new Error(`${msg(access(e,r))} must be a string/Function/RegExp.`)});else if(!checkValidTest(t))throw new Error(`${msg(e)} must be a string/Function/RegExp, or an array of those`);return t},t.assertConfigFileSearch=function(e,t){if(void 0!==t&&"boolean"!=typeof t&&"string"!=typeof t)throw new Error(`${msg(e)} must be a undefined, a boolean, a string, got ${JSON.stringify(t)}`);return t},t.assertFunction=function(e,t){if(void 0!==t&&"function"!=typeof t)throw new Error(`${msg(e)} must be a function, or undefined`);return t},t.assertIgnoreList=function(e,t){const r=assertArray(e,t);return null==r||r.forEach((t,r)=>function(e,t){if("string"!=typeof t&&"function"!=typeof t&&!(t instanceof RegExp))throw new Error(`${msg(e)} must be an array of string/Function/RegExp values, or undefined`);return t}(access(e,r),t)),r},t.assertInputSourceMap=function(e,t){if(void 0!==t&&"boolean"!=typeof t&&("object"!=typeof t||!t))throw new Error(`${msg(e)} must be a boolean, object, or undefined`);return t},t.assertObject=assertObject,t.assertPluginList=function(e,t){const r=assertArray(e,t);r&&r.forEach((t,r)=>function(e,t){if(Array.isArray(t)){if(0===t.length)throw new Error(`${msg(e)} must include an object`);if(t.length>3)throw new Error(`${msg(e)} may only be a two-tuple or three-tuple`);if(assertPluginTarget(access(e,0),t[0]),t.length>1){const r=t[1];if(void 0!==r&&!1!==r&&("object"!=typeof r||Array.isArray(r)||null===r))throw new Error(`${msg(access(e,1))} must be an object, false, or undefined`)}if(3===t.length){const r=t[2];if(void 0!==r&&"string"!=typeof r)throw new Error(`${msg(access(e,2))} must be a string, or undefined`)}}else assertPluginTarget(e,t);return t}(access(e,r),t));return r},t.assertRootMode=function(e,t){if(void 0!==t&&"root"!==t&&"upward"!==t&&"upward-optional"!==t)throw new Error(`${msg(e)} must be a "root", "upward", "upward-optional" or undefined`);return t},t.assertSourceMaps=function(e,t){if(void 0!==t&&"boolean"!=typeof t&&"inline"!==t&&"both"!==t)throw new Error(`${msg(e)} must be a boolean, "inline", "both", or undefined`);return t},t.assertSourceType=function(e,t){if(void 0!==t&&"module"!==t&&"commonjs"!==t&&"script"!==t&&"unambiguous"!==t)throw new Error(`${msg(e)} must be "module", "commonjs", "script", "unambiguous", or undefined`);return t},t.assertString=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new Error(`${msg(e)} must be a string, or undefined`);return t},t.assertTargets=function(e,t){if((0,_helperCompilationTargets().isBrowsersQueryValid)(t))return t;if("object"!=typeof t||!t||Array.isArray(t))throw new Error(`${msg(e)} must be a string, an array of strings or an object`);const r=access(e,"browsers"),n=access(e,"esmodules");assertBrowsersList(r,t.browsers),assertBoolean(n,t.esmodules);for(const r of Object.keys(t)){const n=t[r],s=access(e,r);if("esmodules"===r)assertBoolean(s,n);else if("browsers"===r)assertBrowsersList(s,n);else{if(!hasOwnProperty.call(_helperCompilationTargets().TargetNames,r)){const e=Object.keys(_helperCompilationTargets().TargetNames).join(", ");throw new Error(`${msg(s)} is not a valid target. Supported targets are ${e}`)}assertBrowserVersion(s,n)}}return t},t.msg=msg;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/validation/options.js");function msg(e){switch(e.type){case"root":return"";case"env":return`${msg(e.parent)}.env["${e.name}"]`;case"overrides":return`${msg(e.parent)}.overrides[${e.index}]`;case"option":return`${msg(e.parent)}.${e.name}`;case"access":return`${msg(e.parent)}[${JSON.stringify(e.name)}]`;default:throw new Error(`Assertion failure: Unknown type ${e.type}`)}}function access(e,t){return{type:"access",name:t,parent:e}}function assertBoolean(e,t){if(void 0!==t&&"boolean"!=typeof t)throw new Error(`${msg(e)} must be a boolean, or undefined`);return t}function assertObject(e,t){if(void 0!==t&&("object"!=typeof t||Array.isArray(t)||!t))throw new Error(`${msg(e)} must be an object, or undefined`);return t}function assertArray(e,t){if(null!=t&&!Array.isArray(t))throw new Error(`${msg(e)} must be an array, or undefined`);return t}function checkValidTest(e){return"string"==typeof e||"function"==typeof e||e instanceof RegExp}function assertPluginTarget(e,t){if(("object"!=typeof t||!t)&&"string"!=typeof t&&"function"!=typeof t)throw new Error(`${msg(e)} must be a string, object, function`);return t}function assertBrowsersList(e,t){if(void 0!==t&&!(0,_helperCompilationTargets().isBrowsersQueryValid)(t))throw new Error(`${msg(e)} must be undefined, a string or an array of strings`)}function assertBrowserVersion(e,t){if(("number"!=typeof t||Math.round(t)!==t)&&"string"!=typeof t)throw new Error(`${msg(e)} must be a string or an integer number`)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/validation/options.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assumptionsNames=void 0,t.checkNoUnwrappedItemOptionPairs=function(e,t,r,n){if(0===t)return;const s=e[t-1],i=e[t];s.file&&void 0===s.options&&"object"==typeof i.value&&(n.message+=`\n- Maybe you meant to use\n"${r}s": [\n ["${s.file.request}", ${JSON.stringify(i.value,void 0,2)}]\n]\nTo be a valid ${r}, its name and options should be wrapped in a pair of brackets`)},t.validate=function(e,t,r){try{return validateNested({type:"root",source:e},t)}catch(e){const t=new i.default(e.message,r);throw e.code&&(t.code=e.code),t}};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/validation/removed.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/validation/option-assertions.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/errors/config-error.js");const o={cwd:s.assertString,root:s.assertString,rootMode:s.assertRootMode,configFile:s.assertConfigFileSearch,caller:s.assertCallerMetadata,filename:s.assertString,filenameRelative:s.assertString,code:s.assertBoolean,ast:s.assertBoolean,cloneInputAst:s.assertBoolean,envName:s.assertString},a={babelrc:s.assertBoolean,babelrcRoots:s.assertBabelrcSearch},l={extends:s.assertString,ignore:s.assertIgnoreList,only:s.assertIgnoreList,targets:s.assertTargets,browserslistConfigFile:s.assertConfigFileSearch,browserslistEnv:s.assertString},p={inputSourceMap:s.assertInputSourceMap,presets:s.assertPluginList,plugins:s.assertPluginList,passPerPreset:s.assertBoolean,assumptions:s.assertAssumptions,env:function(e,t){if("env"===e.parent.type)throw new Error(`${(0,s.msg)(e)} is not allowed inside of another .env block`);const r=e.parent,n=(0,s.assertObject)(e,t);if(n)for(const t of Object.keys(n)){const i=(0,s.assertObject)((0,s.access)(e,t),n[t]);if(!i)continue;validateNested({type:"env",name:t,parent:r},i)}return n},overrides:function(e,t){if("env"===e.parent.type)throw new Error(`${(0,s.msg)(e)} is not allowed inside an .env block`);if("overrides"===e.parent.type)throw new Error(`${(0,s.msg)(e)} is not allowed inside an .overrides block`);const r=e.parent,n=(0,s.assertArray)(e,t);if(n)for(const[t,i]of n.entries()){const n=(0,s.access)(e,t),o=(0,s.assertObject)(n,i);if(!o)throw new Error(`${(0,s.msg)(n)} must be an object`);validateNested({type:"overrides",index:t,parent:r},o)}return n},test:s.assertConfigApplicableTest,include:s.assertConfigApplicableTest,exclude:s.assertConfigApplicableTest,retainLines:s.assertBoolean,comments:s.assertBoolean,shouldPrintComment:s.assertFunction,compact:s.assertCompact,minified:s.assertBoolean,auxiliaryCommentBefore:s.assertString,auxiliaryCommentAfter:s.assertString,sourceType:s.assertSourceType,wrapPluginVisitorMethod:s.assertFunction,highlightCode:s.assertBoolean,sourceMaps:s.assertSourceMaps,sourceMap:s.assertSourceMaps,sourceFileName:s.assertString,sourceRoot:s.assertString,parserOpts:s.assertObject,generatorOpts:s.assertObject};Object.assign(p,{getModuleId:s.assertFunction,moduleRoot:s.assertString,moduleIds:s.assertBoolean,moduleId:s.assertString});t.assumptionsNames=new Set(["arrayLikeIsIterable","constantReexports","constantSuper","enumerableModuleMeta","ignoreFunctionLength","ignoreToPrimitiveHint","iterableIsArray","mutableTemplateObject","noClassCalls","noDocumentAll","noIncompleteNsImportDetection","noNewArrows","noUninitializedPrivateFieldAccess","objectRestNoSymbols","privateFieldsAsSymbols","privateFieldsAsProperties","pureGetters","setClassMethods","setComputedProperties","setPublicClassFields","setSpreadProperties","skipForOfIteratorClosing","superIsCallableConstructor"]);function getSource(e){return"root"===e.type?e.source:getSource(e.parent)}function validateNested(e,t){const r=getSource(e);return function(e){if(hasOwnProperty.call(e,"sourceMap")&&hasOwnProperty.call(e,"sourceMaps"))throw new Error(".sourceMap is an alias for .sourceMaps, cannot use both")}(t),Object.keys(t).forEach(n=>{const i={type:"option",name:n,parent:e};if("preset"===r&&l[n])throw new Error(`${(0,s.msg)(i)} is not allowed in preset options`);if("arguments"!==r&&o[n])throw new Error(`${(0,s.msg)(i)} is only allowed in root programmatic options`);if("arguments"!==r&&"configfile"!==r&&a[n]){if("babelrcfile"===r||"extendsfile"===r)throw new Error(`${(0,s.msg)(i)} is not allowed in .babelrc or "extends"ed files, only in root programmatic options, or babel.config.js/config file options`);throw new Error(`${(0,s.msg)(i)} is only allowed in root programmatic options, or babel.config.js/config file options`)}(p[n]||l[n]||a[n]||o[n]||throwUnknownError)(i,t[n])}),t}function throwUnknownError(e){const t=e.name;if(n.default[t]){const{message:r,version:i=5}=n.default[t];throw new Error(`Using removed Babel ${i} option: ${(0,s.msg)(e)} - ${r}`)}{const t=new Error(`Unknown option: ${(0,s.msg)(e)}. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.`);throw t.code="BABEL_UNKNOWN_OPTION",t}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/validation/plugins.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validatePluginObject=function(e){const t={type:"root",source:"plugin"};return Object.keys(e).forEach(r=>{const n=s[r];if(!n){const e=new Error(`.${r} is not a valid Plugin property`);throw e.code="BABEL_UNKNOWN_PLUGIN_PROPERTY",e}n({type:"option",name:r,parent:t},e[r])}),e};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/validation/option-assertions.js");const s={name:n.assertString,manipulateOptions:n.assertFunction,pre:n.assertFunction,post:n.assertFunction,inherits:n.assertFunction,visitor:function(e,t){const r=(0,n.assertObject)(e,t);if(r&&(Object.keys(r).forEach(e=>{"_exploded"!==e&&"_verified"!==e&&function(e,t){if(t&&"object"==typeof t)Object.keys(t).forEach(t=>{if("enter"!==t&&"exit"!==t)throw new Error(`.visitor["${e}"] may only have .enter and/or .exit handlers.`)});else if("function"!=typeof t)throw new Error(`.visitor["${e}"] must be a function`)}(e,r[e])}),r.enter||r.exit))throw new Error(`${(0,n.msg)(e)} cannot contain catch-all "enter" or "exit" handlers. Please target individual nodes.`);return r},parserOverride:n.assertFunction,generatorOverride:n.assertFunction}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/validation/removed.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auxiliaryComment:{message:"Use `auxiliaryCommentBefore` or `auxiliaryCommentAfter`"},blacklist:{message:"Put the specific transforms you want in the `plugins` option"},breakConfig:{message:"This is not a necessary option in Babel 6"},experimental:{message:"Put the specific transforms you want in the `plugins` option"},externalHelpers:{message:"Use the `external-helpers` plugin instead. Check out http://babeljs.io/docs/plugins/external-helpers/"},extra:{message:""},jsxPragma:{message:"use the `pragma` option in the `react-jsx` plugin. Check out http://babeljs.io/docs/plugins/transform-react-jsx/"},loose:{message:"Specify the `loose` option for the relevant plugin you are using or use a preset that sets the option."},metadataUsedHelpers:{message:"Not required anymore as this is enabled by default"},modules:{message:"Use the corresponding module transform plugin in the `plugins` option. Check out http://babeljs.io/docs/plugins/#modules"},nonStandard:{message:"Use the `react-jsx` and `flow-strip-types` plugins to support JSX and Flow. Also check out the react preset http://babeljs.io/docs/plugins/preset-react/"},optional:{message:"Put the specific transforms you want in the `plugins` option"},sourceMapName:{message:"The `sourceMapName` option has been removed because it makes more sense for the tooling that calls Babel to assign `map.file` themselves."},stage:{message:"Check out the corresponding stage-x presets http://babeljs.io/docs/plugins/#presets"},whitelist:{message:"Put the specific transforms you want in the `plugins` option"},resolveModuleSource:{version:6,message:"Use `babel-plugin-module-resolver@3`'s 'resolvePath' options"},metadata:{version:6,message:"Generated plugin metadata is always included in the output result"},sourceMapTarget:{version:6,message:"The `sourceMapTarget` option has been removed because it makes more sense for the tooling that calls Babel to assign `map.file` themselves."}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/errors/config-error.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js");class ConfigError extends Error{constructor(e,t){super(e),(0,n.expectedError)(this),t&&(0,n.injectVirtualStackFrame)(this,t)}}t.default=ConfigError},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js"(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.beginHiddenCallStack=function(e){return s?Object.defineProperty(function(...t){return setupPrepareStackTrace(),e(...t)},"name",{value:o}):e},t.endHiddenCallStack=function(e){return s?Object.defineProperty(function(...t){return e(...t)},"name",{value:i}):e},t.expectedError=function(e){if(!s)return;return a.add(e),e},t.injectVirtualStackFrame=function(e,t){if(!s)return;let r=l.get(e);r||l.set(e,r=[]);return r.push(function(e){return Object.create({isNative:()=>!1,isConstructor:()=>!1,isToplevel:()=>!0,getFileName:()=>e,getLineNumber:()=>{},getColumnNumber:()=>{},getFunctionName:()=>{},getMethodName:()=>{},getTypeName:()=>{},toString:()=>e})}(t)),e};const n=Function.call.bind(Error.prototype.toString),s=!!Error.captureStackTrace&&!0===(null==(r=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit"))?void 0:r.writable),i="startHiding - secret - don't use this - v1",o="stopHiding - secret - don't use this - v1",a=new WeakSet,l=new WeakMap;function setupPrepareStackTrace(){setupPrepareStackTrace=()=>{};const{prepareStackTrace:e=defaultPrepareStackTrace}=Error;Error.stackTraceLimit&&(Error.stackTraceLimit=Math.max(Error.stackTraceLimit,50)),Error.prepareStackTrace=function(t,r){let n=[];let s=a.has(t)?"hiding":"unknown";for(let e=0;e<r.length;e++){const a=r[e].getFunctionName();if(a===i)s="hiding";else if(a===o){if("hiding"===s)s="showing",l.has(t)&&n.unshift(...l.get(t));else if("unknown"===s){n=r;break}}else"hiding"!==s&&n.push(r[e])}return e(t,n)}}function defaultPrepareStackTrace(e,t){return 0===t.length?n(e):`${n(e)}\n at ${t.join("\n at ")}`}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/gensync-utils/async.js"(e,t,r){"use strict";function _gensync(){const e=r("./node_modules/.pnpm/[email protected]/node_modules/gensync/index.js");return _gensync=function(){return e},e}function asyncGeneratorStep(e,t,r,n,s,i,o){try{var a=e[i](o),l=a.value}catch(e){return void r(e)}a.done?t(l):Promise.resolve(l).then(n,s)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise(function(n,s){var i=e.apply(t,r);function _next(e){asyncGeneratorStep(i,n,s,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(i,n,s,_next,_throw,"throw",e)}_next(void 0)})}}Object.defineProperty(t,"__esModule",{value:!0}),t.forwardAsync=function(e,t){const r=_gensync()(e);return s(e=>{const n=r[e];return t(n)})},t.isAsync=void 0,t.isThenable=isThenable,t.maybeAsync=function(e,t){return _gensync()({sync(...r){const n=e.apply(this,r);if(isThenable(n))throw new Error(t);return n},async(...t){return Promise.resolve(e.apply(this,t))}})},t.waitFor=t.onFirstPause=void 0;const n=_gensync()(function*(e){return yield*e});t.isAsync=_gensync()({sync:()=>!1,errback:e=>e(null,!0)});const s=_gensync()({sync:e=>e("sync"),async:(i=_asyncToGenerator(function*(e){return e("async")}),function(e){return i.apply(this,arguments)})});var i;t.onFirstPause=_gensync()({name:"onFirstPause",arity:2,sync:function(e){return n.sync(e)},errback:function(e,t,r){let s=!1;n.errback(e,(e,t)=>{s=!0,r(e,t)}),s||t()}}),t.waitFor=_gensync()({sync:e=>e,async:(o=_asyncToGenerator(function*(e){return e}),function(e){return o.apply(this,arguments)})});var o;function isThenable(e){return!(!e||"object"!=typeof e&&"function"!=typeof e||!e.then||"function"!=typeof e.then)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/gensync-utils/fs.js"(e,t,r){"use strict";function _fs(){const e=r("fs");return _fs=function(){return e},e}function _gensync(){const e=r("./node_modules/.pnpm/[email protected]/node_modules/gensync/index.js");return _gensync=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.stat=t.readFile=void 0;t.readFile=_gensync()({sync:_fs().readFileSync,errback:_fs().readFile}),t.stat=_gensync()({sync:_fs().statSync,errback:_fs().stat})},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/gensync-utils/functional.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.once=function(e){let t,r,s=!1;return function*(){if(!t){if(r)return s=!0,yield*(0,n.waitFor)(r);if(yield*(0,n.isAsync)()){let n,i;r=new Promise((e,t)=>{n=e,i=t});try{t={ok:!0,value:yield*e()},r=null,s&&n(t.value)}catch(e){t={ok:!1,value:e},r=null,s&&i(e)}}else try{t={ok:!0,value:yield*e()}}catch(e){t={ok:!1,value:e}}}if(t.ok)return t.value;throw t.value}};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/gensync-utils/async.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_EXTENSIONS=void 0,Object.defineProperty(t,"File",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"buildExternalHelpers",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"createConfigItem",{enumerable:!0,get:function(){return a.createConfigItem}}),Object.defineProperty(t,"createConfigItemAsync",{enumerable:!0,get:function(){return a.createConfigItemAsync}}),Object.defineProperty(t,"createConfigItemSync",{enumerable:!0,get:function(){return a.createConfigItemSync}}),Object.defineProperty(t,"getEnv",{enumerable:!0,get:function(){return o.getEnv}}),Object.defineProperty(t,"loadOptions",{enumerable:!0,get:function(){return a.loadOptions}}),Object.defineProperty(t,"loadOptionsAsync",{enumerable:!0,get:function(){return a.loadOptionsAsync}}),Object.defineProperty(t,"loadOptionsSync",{enumerable:!0,get:function(){return a.loadOptionsSync}}),Object.defineProperty(t,"loadPartialConfig",{enumerable:!0,get:function(){return a.loadPartialConfig}}),Object.defineProperty(t,"loadPartialConfigAsync",{enumerable:!0,get:function(){return a.loadPartialConfigAsync}}),Object.defineProperty(t,"loadPartialConfigSync",{enumerable:!0,get:function(){return a.loadPartialConfigSync}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return u.parse}}),Object.defineProperty(t,"parseAsync",{enumerable:!0,get:function(){return u.parseAsync}}),Object.defineProperty(t,"parseSync",{enumerable:!0,get:function(){return u.parseSync}}),t.resolvePreset=t.resolvePlugin=void 0,Object.defineProperty(t,"template",{enumerable:!0,get:function(){return _template().default}}),Object.defineProperty(t,"tokTypes",{enumerable:!0,get:function(){return _parser().tokTypes}}),Object.defineProperty(t,"transform",{enumerable:!0,get:function(){return l.transform}}),Object.defineProperty(t,"transformAsync",{enumerable:!0,get:function(){return l.transformAsync}}),Object.defineProperty(t,"transformFile",{enumerable:!0,get:function(){return p.transformFile}}),Object.defineProperty(t,"transformFileAsync",{enumerable:!0,get:function(){return p.transformFileAsync}}),Object.defineProperty(t,"transformFileSync",{enumerable:!0,get:function(){return p.transformFileSync}}),Object.defineProperty(t,"transformFromAst",{enumerable:!0,get:function(){return c.transformFromAst}}),Object.defineProperty(t,"transformFromAstAsync",{enumerable:!0,get:function(){return c.transformFromAstAsync}}),Object.defineProperty(t,"transformFromAstSync",{enumerable:!0,get:function(){return c.transformFromAstSync}}),Object.defineProperty(t,"transformSync",{enumerable:!0,get:function(){return l.transformSync}}),Object.defineProperty(t,"traverse",{enumerable:!0,get:function(){return _traverse().default}}),t.version=t.types=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transformation/file/file.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/tools/build-external-helpers.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/files/index.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/helpers/environment.js");function _types(){const e=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js");return _types=function(){return e},e}function _parser(){const e=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/parser/lib/index.js");return _parser=function(){return e},e}function _traverse(){const e=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/index.js");return _traverse=function(){return e},e}function _template(){const e=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/template/lib/index.js");return _template=function(){return e},e}Object.defineProperty(t,"types",{enumerable:!0,get:function(){return _types()}});var a=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/index.js"),l=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transform.js"),p=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transform-file.js"),c=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transform-ast.js"),u=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/parse.js");t.version="7.29.0";t.resolvePlugin=(e,t)=>i.resolvePlugin(e,t,!1).filepath;t.resolvePreset=(e,t)=>i.resolvePreset(e,t,!1).filepath;t.DEFAULT_EXTENSIONS=Object.freeze([".js",".jsx",".es6",".es",".mjs",".cjs"]);t.OptionManager=class{init(e){return(0,a.loadOptionsSync)(e)}},t.Plugin=function(e){throw new Error(`The (${e}) Babel 5 plugin is being run with an unsupported Babel version.`)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/parse.js"(e,t,r){"use strict";function _gensync(){const e=r("./node_modules/.pnpm/[email protected]/node_modules/gensync/index.js");return _gensync=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0,t.parseAsync=function(...e){return(0,o.beginHiddenCallStack)(a.async)(...e)},t.parseSync=function(...e){return(0,o.beginHiddenCallStack)(a.sync)(...e)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/parser/index.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transformation/normalize-opts.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js");const a=_gensync()(function*(e,t){const r=yield*(0,n.default)(t);return null===r?null:yield*(0,s.default)(r.passes,(0,i.default)(r),e)});t.parse=function(e,t,r){if("function"==typeof t&&(r=t,t=void 0),void 0===r)return(0,o.beginHiddenCallStack)(a.sync)(e,t);(0,o.beginHiddenCallStack)(a.errback)(e,t,r)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/parser/index.js"(e,t,r){"use strict";function _parser(){const e=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/parser/lib/index.js");return _parser=function(){return e},e}function _codeFrame(){const e=r("./stubs/babel-codeframe.mjs");return _codeFrame=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function*(e,{parserOpts:t,highlightCode:r=!0,filename:s="unknown"},i){try{const r=[];for(const n of e)for(const e of n){const{parserOverride:n}=e;if(n){const e=n(i,t,_parser().parse);void 0!==e&&r.push(e)}}if(0===r.length)return(0,_parser().parse)(i,t);if(1===r.length){if(yield*[],"function"==typeof r[0].then)throw new Error("You appear to be using an async parser plugin, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");return r[0]}throw new Error("More than one plugin attempted to override parsing.")}catch(e){"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"===e.code&&(e.message+="\nConsider renaming the file to '.mjs', or setting sourceType:module or sourceType:unambiguous in your Babel config for this file.");const o=null==t?void 0:t.startLine,a=null==t?void 0:t.startColumn;null!=a&&(i=" ".repeat(a)+i);const{loc:l,missingPlugin:p}=e;if(l){const t=(0,_codeFrame().codeFrameColumns)(i,{start:{line:l.line,column:l.column+1}},{highlightCode:r,startLine:o});e.message=p?`${s}: `+(0,n.default)(p[0],l,t,s):`${s}: ${e.message}\n\n`+t,e.code="BABEL_PARSE_ERROR"}throw e}};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,s){let i=`Support for the experimental syntax '${e}' isn't currently enabled (${t.line}:${t.column+1}):\n\n`+n;const o=r[e];if(o){const{syntax:e,transform:t}=o;if(e){const r=getNameURLCombination(e);if(t){i+=`\n\nAdd ${getNameURLCombination(t)} to the '${t.name.startsWith("@babel/plugin")?"plugins":"presets"}' section of your Babel config to enable transformation.\nIf you want to leave it as-is, add ${r} to the 'plugins' section to enable parsing.`}else i+=`\n\nAdd ${r} to the 'plugins' section of your Babel config to enable parsing.`}}return i+=`\n\nIf you already added the plugin for this syntax to your config, it's possible that your config isn't being loaded.\nYou can re-run Babel with the BABEL_SHOW_CONFIG_FOR environment variable to show the loaded configuration:\n\tnpx cross-env BABEL_SHOW_CONFIG_FOR=${s==="unknown"?"<name of the input file>":s} <your build command>\nSee https://babeljs.io/docs/configuration#print-effective-configs for more info.\n`,i};const r={asyncDoExpressions:{syntax:{name:"@babel/plugin-syntax-async-do-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-do-expressions"}},decimal:{syntax:{name:"@babel/plugin-syntax-decimal",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decimal"}},decorators:{syntax:{name:"@babel/plugin-syntax-decorators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decorators"},transform:{name:"@babel/plugin-proposal-decorators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-decorators"}},doExpressions:{syntax:{name:"@babel/plugin-syntax-do-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-do-expressions"},transform:{name:"@babel/plugin-proposal-do-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-do-expressions"}},exportDefaultFrom:{syntax:{name:"@babel/plugin-syntax-export-default-from",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-export-default-from"},transform:{name:"@babel/plugin-proposal-export-default-from",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-export-default-from"}},flow:{syntax:{name:"@babel/plugin-syntax-flow",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-flow"},transform:{name:"@babel/preset-flow",url:"https://github.com/babel/babel/tree/main/packages/babel-preset-flow"}},functionBind:{syntax:{name:"@babel/plugin-syntax-function-bind",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-function-bind"},transform:{name:"@babel/plugin-proposal-function-bind",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-function-bind"}},functionSent:{syntax:{name:"@babel/plugin-syntax-function-sent",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-function-sent"},transform:{name:"@babel/plugin-proposal-function-sent",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-function-sent"}},jsx:{syntax:{name:"@babel/plugin-syntax-jsx",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-jsx"},transform:{name:"@babel/preset-react",url:"https://github.com/babel/babel/tree/main/packages/babel-preset-react"}},pipelineOperator:{syntax:{name:"@babel/plugin-syntax-pipeline-operator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-pipeline-operator"},transform:{name:"@babel/plugin-proposal-pipeline-operator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-pipeline-operator"}},recordAndTuple:{syntax:{name:"@babel/plugin-syntax-record-and-tuple",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-record-and-tuple"}},throwExpressions:{syntax:{name:"@babel/plugin-syntax-throw-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-throw-expressions"},transform:{name:"@babel/plugin-proposal-throw-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-throw-expressions"}},typescript:{syntax:{name:"@babel/plugin-syntax-typescript",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-typescript"},transform:{name:"@babel/preset-typescript",url:"https://github.com/babel/babel/tree/main/packages/babel-preset-typescript"}}};Object.assign(r,{asyncGenerators:{syntax:{name:"@babel/plugin-syntax-async-generators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-generators"},transform:{name:"@babel/plugin-transform-async-generator-functions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-async-generator-functions"}},classProperties:{syntax:{name:"@babel/plugin-syntax-class-properties",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties"},transform:{name:"@babel/plugin-transform-class-properties",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-class-properties"}},classPrivateProperties:{syntax:{name:"@babel/plugin-syntax-class-properties",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties"},transform:{name:"@babel/plugin-transform-class-properties",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-class-properties"}},classPrivateMethods:{syntax:{name:"@babel/plugin-syntax-class-properties",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties"},transform:{name:"@babel/plugin-transform-private-methods",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-private-methods"}},classStaticBlock:{syntax:{name:"@babel/plugin-syntax-class-static-block",url:"https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-syntax-class-static-block"},transform:{name:"@babel/plugin-transform-class-static-block",url:"https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-class-static-block"}},dynamicImport:{syntax:{name:"@babel/plugin-syntax-dynamic-import",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-dynamic-import"}},exportNamespaceFrom:{syntax:{name:"@babel/plugin-syntax-export-namespace-from",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-export-namespace-from"},transform:{name:"@babel/plugin-transform-export-namespace-from",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-export-namespace-from"}},importAssertions:{syntax:{name:"@babel/plugin-syntax-import-assertions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-assertions"}},importAttributes:{syntax:{name:"@babel/plugin-syntax-import-attributes",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-attributes"}},importMeta:{syntax:{name:"@babel/plugin-syntax-import-meta",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-meta"}},logicalAssignment:{syntax:{name:"@babel/plugin-syntax-logical-assignment-operators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-logical-assignment-operators"},transform:{name:"@babel/plugin-transform-logical-assignment-operators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-logical-assignment-operators"}},moduleStringNames:{syntax:{name:"@babel/plugin-syntax-module-string-names",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-module-string-names"}},numericSeparator:{syntax:{name:"@babel/plugin-syntax-numeric-separator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-numeric-separator"},transform:{name:"@babel/plugin-transform-numeric-separator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-numeric-separator"}},nullishCoalescingOperator:{syntax:{name:"@babel/plugin-syntax-nullish-coalescing-operator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-nullish-coalescing-operator"},transform:{name:"@babel/plugin-transform-nullish-coalescing-operator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-nullish-coalescing-opearator"}},objectRestSpread:{syntax:{name:"@babel/plugin-syntax-object-rest-spread",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-object-rest-spread"},transform:{name:"@babel/plugin-transform-object-rest-spread",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-object-rest-spread"}},optionalCatchBinding:{syntax:{name:"@babel/plugin-syntax-optional-catch-binding",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-optional-catch-binding"},transform:{name:"@babel/plugin-transform-optional-catch-binding",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-optional-catch-binding"}},optionalChaining:{syntax:{name:"@babel/plugin-syntax-optional-chaining",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-optional-chaining"},transform:{name:"@babel/plugin-transform-optional-chaining",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-optional-chaining"}},privateIn:{syntax:{name:"@babel/plugin-syntax-private-property-in-object",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-private-property-in-object"},transform:{name:"@babel/plugin-transform-private-property-in-object",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-private-property-in-object"}},regexpUnicodeSets:{syntax:{name:"@babel/plugin-syntax-unicode-sets-regex",url:"https://github.com/babel/babel/blob/main/packages/babel-plugin-syntax-unicode-sets-regex/README.md"},transform:{name:"@babel/plugin-transform-unicode-sets-regex",url:"https://github.com/babel/babel/blob/main/packages/babel-plugin-proposalunicode-sets-regex/README.md"}}});const getNameURLCombination=({name:e,url:t})=>`${e} (${t})`},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/tools/build-external-helpers.js"(e,t,r){"use strict";function helpers(){const e=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helpers/lib/index.js");return helpers=function(){return e},e}function _generator(){const e=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/index.js");return _generator=function(){return e},e}function _template(){const e=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/template/lib/index.js");return _template=function(){return e},e}function _t(){const e=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js");return _t=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t="global"){let r;const n={global:buildGlobal,module:buildModule,umd:buildUmd,var:buildVar}[t];if(!n)throw new Error(`Unsupported output type ${t}`);r=n(e);return(0,_generator().default)(r).code};const{arrayExpression:n,assignmentExpression:s,binaryExpression:i,blockStatement:o,callExpression:a,cloneNode:l,conditionalExpression:p,exportNamedDeclaration:c,exportSpecifier:u,expressionStatement:d,functionExpression:h,identifier:m,memberExpression:f,objectExpression:y,program:b,stringLiteral:g,unaryExpression:x,variableDeclaration:v,variableDeclarator:E}=_t();function buildGlobal(e){const t=m("babelHelpers"),r=[],n=h(null,[m("global")],o(r)),l=b([d(a(n,[p(i("===",x("typeof",m("global")),g("undefined")),m("self"),m("global"))]))]);return r.push(v("var",[E(t,s("=",f(m("global"),t),y([])))])),buildHelpers(r,t,e),l}function buildModule(e){const t=[],r=buildHelpers(t,null,e);return t.unshift(c(null,Object.keys(r).map(e=>u(l(r[e]),m(e))))),b(t,[],"module")}function buildUmd(e){const t=m("babelHelpers"),r=[];return r.push(v("var",[E(t,m("global"))])),buildHelpers(r,t,e),b([(i={FACTORY_PARAMETERS:m("global"),BROWSER_ARGUMENTS:s("=",f(m("root"),t),y([])),COMMON_ARGUMENTS:m("exports"),AMD_ARGUMENTS:n([g("exports")]),FACTORY_BODY:r,UMD_ROOT:m("this")},_template().default.statement`- (function (root, factory) {- if (typeof define === "function" && define.amd) {- define(AMD_ARGUMENTS, factory);- } else if (typeof exports === "object") {- factory(COMMON_ARGUMENTS);- } else {- factory(BROWSER_ARGUMENTS);- }- })(UMD_ROOT, function (FACTORY_PARAMETERS) {- FACTORY_BODY- });- `(i))]);var i}function buildVar(e){const t=m("babelHelpers"),r=[];r.push(v("var",[E(t,y([]))]));const n=b(r);return buildHelpers(r,t,e),r.push(d(t)),n}function buildHelpers(e,t,r){const getHelperReference=e=>t?f(t,m(e)):m(`_${e}`),n={};return helpers().list.forEach(function(i){if(r&&!r.includes(i))return;const o=n[i]=getHelperReference(i),{nodes:a}=helpers().get(i,getHelperReference,t?null:`_${i}`,[],t?(e,t,r)=>{r(e=>s("=",o,e)),e.body.push(d(s("=",o,m(t))))}:null);e.push(...a)}),n}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transform-ast.js"(e,t,r){"use strict";function _gensync(){const e=r("./node_modules/.pnpm/[email protected]/node_modules/gensync/index.js");return _gensync=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.transformFromAst=void 0,t.transformFromAstAsync=function(...e){return(0,i.beginHiddenCallStack)(o.async)(...e)},t.transformFromAstSync=function(...e){return(0,i.beginHiddenCallStack)(o.sync)(...e)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transformation/index.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js");const o=_gensync()(function*(e,t,r){const i=yield*(0,n.default)(r);if(null===i)return null;if(!e)throw new Error("No AST given");return yield*(0,s.run)(i,t,e)});t.transformFromAst=function(e,t,r,n){let s,a;if("function"==typeof r?(a=r,s=void 0):(s=r,a=n),void 0===a)return(0,i.beginHiddenCallStack)(o.sync)(e,t,s);(0,i.beginHiddenCallStack)(o.errback)(e,t,s,a)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transform-file.js"(e,t,r){"use strict";function _gensync(){const e=r("./node_modules/.pnpm/[email protected]/node_modules/gensync/index.js");return _gensync=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.transformFile=function(...e){o.errback(...e)},t.transformFileAsync=function(...e){return o.async(...e)},t.transformFileSync=function(...e){return o.sync(...e)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transformation/index.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/gensync-utils/fs.js");const o=_gensync()(function*(e,t){const r=Object.assign({},t,{filename:e}),o=yield*(0,n.default)(r);if(null===o)return null;const a=yield*i.readFile(e,"utf8");return yield*(0,s.run)(o,a)})},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transform.js"(e,t,r){"use strict";function _gensync(){const e=r("./node_modules/.pnpm/[email protected]/node_modules/gensync/index.js");return _gensync=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.transform=void 0,t.transformAsync=function(...e){return(0,i.beginHiddenCallStack)(o.async)(...e)},t.transformSync=function(...e){return(0,i.beginHiddenCallStack)(o.sync)(...e)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transformation/index.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js");const o=_gensync()(function*(e,t){const r=yield*(0,n.default)(t);return null===r?null:yield*(0,s.run)(r,e)});t.transform=function(e,t,r){let n,s;if("function"==typeof t?(s=t,n=void 0):(n=t,s=r),void 0===s)return(0,i.beginHiddenCallStack)(o.sync)(e,n);(0,i.beginHiddenCallStack)(o.errback)(e,n,s)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transformation/block-hoist-plugin.js"(e,t,r){"use strict";function _traverse(){const e=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/index.js");return _traverse=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){s||(s=new n.default(Object.assign({},i,{visitor:_traverse().default.explode(i.visitor)}),{}));return s};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/plugin.js");let s;const i={name:"internal.blockHoist",visitor:{Block:{exit({node:e}){e.body=performHoisting(e.body)}},SwitchCase:{exit({node:e}){e.consequent=performHoisting(e.consequent)}}}};function performHoisting(e){let t=Math.pow(2,30)-1,r=!1;for(let n=0;n<e.length;n++){const s=priority(e[n]);if(s>t){r=!0;break}t=s}return r?function(e){const t=Object.create(null);for(let r=0;r<e.length;r++){const n=e[r],s=priority(n);(t[s]||(t[s]=[])).push(n)}const r=Object.keys(t).map(e=>+e).sort((e,t)=>t-e);let n=0;for(const s of r){const r=t[s];for(const t of r)e[n++]=t}return e}(e.slice()):e}function priority(e){const t=null==e?void 0:e._blockHoist;return null==t?1:!0===t?2:t}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs"(e,t,r){t.getModuleName=()=>r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-module-transforms/lib/index.js").getModuleName},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transformation/file/file.js"(e,t,r){"use strict";function helpers(){const e=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helpers/lib/index.js");return helpers=function(){return e},e}function _traverse(){const e=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/index.js");return _traverse=function(){return e},e}function _codeFrame(){const e=r("./stubs/babel-codeframe.mjs");return _codeFrame=function(){return e},e}function _t(){const e=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js");return _t=function(){return e},e}function _semver(){const e=r("./node_modules/.pnpm/[email protected]/node_modules/semver/semver.js");return _semver=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs");const{cloneNode:s,interpreterDirective:i,traverseFast:o}=_t();class File{constructor(e,{code:t,ast:r,inputMap:n}){this._map=new Map,this.opts=void 0,this.declarations={},this.path=void 0,this.ast=void 0,this.scope=void 0,this.metadata={},this.code="",this.inputMap=void 0,this.hub={file:this,getCode:()=>this.code,getScope:()=>this.scope,addHelper:this.addHelper.bind(this),buildError:this.buildCodeFrameError.bind(this)},this.opts=e,this.code=t,this.ast=r,this.inputMap=n,this.path=_traverse().NodePath.get({hub:this.hub,parentPath:null,parent:this.ast,container:this.ast,key:"program"}).setContext(),this.scope=this.path.scope}get shebang(){const{interpreter:e}=this.path.node;return e?e.value:""}set shebang(e){e?this.path.get("interpreter").replaceWith(i(e)):this.path.get("interpreter").remove()}set(e,t){if("helpersNamespace"===e)throw new Error("Babel 7.0.0-beta.56 has dropped support for the 'helpersNamespace' utility.If you are using @babel/plugin-external-helpers you will need to use a newer version than the one you currently have installed. If you have your own implementation, you'll want to explore using 'helperGenerator' alongside 'file.availableHelper()'.");this._map.set(e,t)}get(e){return this._map.get(e)}has(e){return this._map.has(e)}availableHelper(e,t){if(helpers().isInternal(e))return!1;let r;try{r=helpers().minVersion(e)}catch(e){if("BABEL_HELPER_UNKNOWN"!==e.code)throw e;return!1}return"string"!=typeof t||(_semver().valid(t)&&(t=`^${t}`),!_semver().intersects(`<${r}`,t)&&!_semver().intersects(">=8.0.0",t))}addHelper(e){if(helpers().isInternal(e))throw new Error("Cannot use internal helper "+e);return this._addHelper(e)}_addHelper(e){const t=this.declarations[e];if(t)return s(t);const r=this.get("helperGenerator");if(r){const t=r(e);if(t)return t}helpers().minVersion(e);const n=this.declarations[e]=this.scope.generateUidIdentifier(e),i={};for(const t of helpers().getDependencies(e))i[t]=this._addHelper(t);const{nodes:o,globals:a}=helpers().get(e,e=>i[e],n.name,Object.keys(this.scope.getAllBindings()));a.forEach(e=>{this.path.scope.hasBinding(e,!0)&&this.path.scope.rename(e)}),o.forEach(e=>{e._compact=!0});const l=this.path.unshiftContainer("body",o);for(const e of l)e.isVariableDeclaration()&&this.scope.registerDeclaration(e);return n}buildCodeFrameError(e,t,r=SyntaxError){let n=null==e?void 0:e.loc;if(!n&&e){o(e,function(e){if(e.loc)return n=e.loc,o.stop});let r="This is an error on an internal node. Probably an internal error.";n&&(r+=" Location has been estimated."),t+=` (${r})`}if(n){const{highlightCode:e=!0}=this.opts;t+="\n"+(0,_codeFrame().codeFrameColumns)(this.code,{start:{line:n.start.line,column:n.start.column+1},end:n.end&&n.start.line===n.end.line?{line:n.end.line,column:n.end.column+1}:void 0},{highlightCode:e})}return new r(t)}}t.default=File,File.prototype.addImport=function(){throw new Error("This API has been removed. If you're looking for this functionality in Babel 7, you should import the '@babel/helper-module-imports' module and use the functions exposed from that module, such as 'addNamed' or 'addDefault'.")},File.prototype.addTemplateObject=function(){throw new Error("This function has been moved into the template literal transform itself.")},File.prototype.getModuleName=function(){return n.getModuleName()(this.opts,this.opts)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transformation/file/generate.js"(e,t,r){"use strict";function _convertSourceMap(){const e=r("./node_modules/.pnpm/[email protected]/node_modules/convert-source-map/index.js");return _convertSourceMap=function(){return e},e}function _generator(){const e=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/index.js");return _generator=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const{opts:r,ast:s,code:i,inputMap:o}=t,{generatorOpts:a}=r;a.inputSourceMap=null==o?void 0:o.toObject();const l=[];for(const t of e)for(const e of t){const{generatorOverride:t}=e;if(t){const e=t(s,a,i,_generator().default);void 0!==e&&l.push(e)}}let p;if(0===l.length)p=(0,_generator().default)(s,a,i);else{if(1!==l.length)throw new Error("More than one plugin attempted to override codegen.");if(p=l[0],"function"==typeof p.then)throw new Error("You appear to be using an async codegen plugin, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.")}let{code:c,decodedMap:u=p.map}=p;p.__mergedMap?u=Object.assign({},p.map):u&&(u=o?(0,n.default)(o.toObject(),u,a.sourceFileName):p.map);"inline"!==r.sourceMaps&&"both"!==r.sourceMaps||(c+="\n"+_convertSourceMap().fromObject(u).toComment());"inline"===r.sourceMaps&&(u=null);return{outputCode:c,outputMap:u}};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transformation/file/merge-map.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transformation/file/merge-map.js"(e,t,r){"use strict";function _remapping(){const e=r("./node_modules/.pnpm/@[email protected]/node_modules/@jridgewell/remapping/dist/remapping.umd.js");return _remapping=function(){return e},e}function rootless(e){return Object.assign({},e,{sourceRoot:null})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){const n=r.replace(/\\/g,"/");let s=!1;const i=_remapping()(rootless(t),(t,r)=>t!==n||s?null:(s=!0,r.source="",rootless(e)));"string"==typeof e.sourceRoot&&(i.sourceRoot=e.sourceRoot);return Object.assign({},i)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transformation/index.js"(e,t,r){"use strict";function _traverse(){const e=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/index.js");return _traverse=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.run=function*(e,t,r){const c=yield*(0,o.default)(e.passes,(0,i.default)(e),t,r),u=c.opts;try{yield*function*(e,t){const r=yield*(0,p.isAsync)();for(const i of t){const t=[],o=[],a=[];for(const l of i.concat([(0,s.default)()])){const s=new n.default(e,l.key,l.options,r);t.push([l,s]),o.push(s),a.push(l.visitor)}for(const[r,n]of t)if(r.pre){const t=(0,p.maybeAsync)(r.pre,"You appear to be using an async plugin/preset, but Babel has been called synchronously");yield*t.call(n,e)}const l=_traverse().default.visitors.merge(a,o,e.opts.wrapPluginVisitorMethod);(0,_traverse().default)(e.ast,l,e.scope);for(const[r,n]of t)if(r.post){const t=(0,p.maybeAsync)(r.post,"You appear to be using an async plugin/preset, but Babel has been called synchronously");yield*t.call(n,e)}}}(c,e.passes)}catch(e){var d;throw e.message=`${null!=(d=u.filename)?d:"unknown file"}: ${e.message}`,e.code||(e.code="BABEL_TRANSFORM_ERROR"),e}let h,m;try{!1!==u.code&&({outputCode:h,outputMap:m}=(0,a.default)(e.passes,c))}catch(e){var f;throw e.message=`${null!=(f=u.filename)?f:"unknown file"}: ${e.message}`,e.code||(e.code="BABEL_GENERATE_ERROR"),e}return{metadata:c.metadata,options:u,ast:!0===u.ast?c.ast:null,code:void 0===h?null:h,map:void 0===m?null:m,sourceType:c.ast.program.sourceType,externalDependencies:(0,l.flattenToSet)(e.externalDependencies)}};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transformation/plugin-pass.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transformation/block-hoist-plugin.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transformation/normalize-opts.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transformation/normalize-file.js"),a=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transformation/file/generate.js"),l=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/config/helpers/deep-array.js"),p=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/gensync-utils/async.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transformation/normalize-file.js"(e,t,r){"use strict";function _fs(){const e=r("fs");return _fs=function(){return e},e}function _path(){const e=r("path");return _path=function(){return e},e}function _debug(){const e=r("./node_modules/.pnpm/[email protected]/node_modules/debug/src/index.js");return _debug=function(){return e},e}function _t(){const e=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js");return _t=function(){return e},e}function _convertSourceMap(){const e=r("./node_modules/.pnpm/[email protected]/node_modules/convert-source-map/index.js");return _convertSourceMap=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function*(e,t,r,a){if(r=`${r||""}`,a){if("Program"===a.type)a=o(a,[],[]);else if("File"!==a.type)throw new Error("AST root must be a Program or File node");t.cloneInputAst&&(a=(0,i.default)(a))}else a=yield*(0,s.default)(e,t,r);let u=null;if(!1!==t.inputSourceMap){if("object"==typeof t.inputSourceMap&&(u=_convertSourceMap().fromObject(t.inputSourceMap)),!u){const e=extractComments(p,a);if(e)try{u=_convertSourceMap().fromComment("//"+e)}catch(e){l("discarding unknown inline input sourcemap")}}if(!u){const e=extractComments(c,a);if("string"==typeof t.filename&&e)try{const r=c.exec(e),n=_fs().readFileSync(_path().resolve(_path().dirname(t.filename),r[1]),"utf8");u=_convertSourceMap().fromJSON(n)}catch(e){l("discarding unknown file input sourcemap",e)}else e&&l("discarding un-loadable file input sourcemap")}}return new n.default(t,{code:r,ast:a,inputMap:u})};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transformation/file/file.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/parser/index.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transformation/util/clone-deep.js");const{file:o,traverseFast:a}=_t(),l=_debug()("babel:transform:file"),p=/^[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,.*$/,c=/^[@#][ \t]+sourceMappingURL=([^\s'"`]+)[ \t]*$/;function extractCommentsFromList(e,t,r){return t&&(t=t.filter(({value:t})=>!e.test(t)||(r=t,!1))),[t,r]}function extractComments(e,t){let r=null;return a(t,t=>{[t.leadingComments,r]=extractCommentsFromList(e,t.leadingComments,r),[t.innerComments,r]=extractCommentsFromList(e,t.innerComments,r),[t.trailingComments,r]=extractCommentsFromList(e,t.trailingComments,r)}),r}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transformation/normalize-opts.js"(e,t,r){"use strict";function _path(){const e=r("path");return _path=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const{filename:t,cwd:r,filenameRelative:n=("string"==typeof t?_path().relative(r,t):"unknown"),sourceType:s="module",inputSourceMap:i,sourceMaps:o=!!i,sourceRoot:a=e.options.moduleRoot,sourceFileName:l=_path().basename(n),comments:p=!0,compact:c="auto"}=e.options,u=e.options,d=Object.assign({},u,{parserOpts:Object.assign({sourceType:".mjs"===_path().extname(n)?"module":s,sourceFileName:t,plugins:[]},u.parserOpts),generatorOpts:Object.assign({filename:t,auxiliaryCommentBefore:u.auxiliaryCommentBefore,auxiliaryCommentAfter:u.auxiliaryCommentAfter,retainLines:u.retainLines,comments:p,shouldPrintComment:u.shouldPrintComment,compact:c,minified:u.minified,sourceMaps:!!o,sourceRoot:a,sourceFileName:l},u.generatorOpts)});for(const t of e.passes)for(const e of t)e.manipulateOptions&&e.manipulateOptions(d,d.parserOpts);return d}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transformation/plugin-pass.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class PluginPass{constructor(e,t,r,n){this._map=new Map,this.key=void 0,this.file=void 0,this.opts=void 0,this.cwd=void 0,this.filename=void 0,this.isAsync=void 0,this.key=t,this.file=e,this.opts=r||{},this.cwd=e.opts.cwd,this.filename=e.opts.filename,this.isAsync=n}set(e,t){this._map.set(e,t)}get(e){return this._map.get(e)}availableHelper(e,t){return this.file.availableHelper(e,t)}addHelper(e){return this.file.addHelper(e)}buildCodeFrameError(e,t,r){return this.file.buildCodeFrameError(e,t,r)}}t.default=PluginPass,PluginPass.prototype.getModuleName=function(){return this.file.getModuleName()},PluginPass.prototype.addImport=function(){this.file.addImport()}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transformation/util/clone-deep.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("object"!=typeof e)return e;try{return deepClone(e,new Map,!0)}catch(t){return structuredClone(e)}};const r=new Set;let n=0;function deepClone(e,t,s){if(null!==e){if(s){if(t.has(e))return t.get(e)}else if(++n>250){if(r.has(e))throw n=0,r.clear(),new Error("Babel-deepClone: Cycles are not allowed in AST");r.add(e)}let i;if(Array.isArray(e)){i=new Array(e.length),s&&t.set(e,i);for(let r=0;r<e.length;r++)i[r]="object"!=typeof e[r]?e[r]:deepClone(e[r],t,s)}else{i={},s&&t.set(e,i);const r=Object.keys(e);for(let n=0;n<r.length;n++){const o=r[n];i[o]="object"!=typeof e[o]?e[o]:deepClone(e[o],t,s||"leadingComments"===o||"innerComments"===o||"trailingComments"===o||"extra"===o)}}return s||n-- >250&&r.delete(e),i}return e}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/vendor/import-meta-resolve.js"(e,t,r){"use strict";function _assert(){const e=r("assert");return _assert=function(){return e},e}function _fs(){const e=_interopRequireWildcard(r("fs"),!0);return _fs=function(){return e},e}function _process(){const e=r("process");return _process=function(){return e},e}function _url(){const e=r("url");return _url=function(){return e},e}function _path(){const e=r("path");return _path=function(){return e},e}function _module(){const e=r("module");return _module=function(){return e},e}function _v(){const e=r("v8");return _v=function(){return e},e}function _util(){const e=r("util");return _util=function(){return e},e}function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(_interopRequireWildcard=function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o})(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.moduleResolve=moduleResolve,t.resolve=function(e,t){if(!t)throw new Error("Please pass `parent`: `import-meta-resolve` cannot ponyfill that");try{return function(e,t={}){const{parentURL:r}=t;let n,s,i;if(_assert()(void 0!==r,"expected `parentURL` to be defined"),function(e){if(void 0===e)return;if("string"!=typeof e&&(t=e,!Boolean(t&&"object"==typeof t&&"href"in t&&"string"==typeof t.href&&"protocol"in t&&"string"==typeof t.protocol&&t.href&&t.protocol)))throw new o.ERR_INVALID_ARG_TYPE("parentURL",["string","URL"],e);var t}(r),r)try{n=new(_url().URL)(r)}catch(e){}try{if(s=shouldBeTreatedAsRelativeOrAbsolutePath(e)?new(_url().URL)(e,n):new(_url().URL)(e),i=s.protocol,"data:"===i)return{url:s.href,format:null}}catch(e){}const a=function(e,t,r){if(r){const n=r.protocol;if("http:"===n||"https:"===n){if(shouldBeTreatedAsRelativeOrAbsolutePath(e)){const n=null==t?void 0:t.protocol;if(n&&"https:"!==n&&"http:"!==n)throw new E(e,r,"remote imports cannot import from a local location.");return{url:(null==t?void 0:t.href)||""}}if(_module().builtinModules.includes(e))throw new E(e,r,"remote imports cannot import from a local location.");throw new E(e,r,"only relative and absolute specifiers are supported.")}}}(e,s,n);if(a)return a;void 0===i&&s&&(i=s.protocol);if("node:"===i)return{url:e};if(s&&"node:"===s.protocol)return{url:e};const l=function(e){if(void 0!==e&&e!==g){if(!Array.isArray(e))throw new b("conditions",e,"expected an array");return new Set(e)}return x}(t.conditions),p=moduleResolve(e,new(_url().URL)(r),l,!1);return{url:p.href,format:defaultGetFormatWithoutErrors(p,{parentURL:r})}}(e,{parentURL:t}).url}catch(e){const t=e;if(("ERR_UNSUPPORTED_DIR_IMPORT"===t.code||"ERR_MODULE_NOT_FOUND"===t.code)&&"string"==typeof t.url)return t.url;throw e}};const n={}.hasOwnProperty,s=/^([A-Z][a-z\d]*)+$/,i=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),o={};function formatList(e,t="and"){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}const a=new Map;let l;function createError(e,t,r){return a.set(e,t),function(e,t){return NodeError;function NodeError(...r){const n=Error.stackTraceLimit;isErrorStackTraceLimitWritable()&&(Error.stackTraceLimit=0);const s=new e;isErrorStackTraceLimitWritable()&&(Error.stackTraceLimit=n);const i=function(e,t,r){const n=a.get(e);if(_assert()(void 0!==n,"expected `message` to be found"),"function"==typeof n)return _assert()(n.length<=t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${n.length}).`),Reflect.apply(n,r,t);const s=/%[dfijoOs]/g;let i=0;for(;null!==s.exec(n);)i++;return _assert()(i===t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${i}).`),0===t.length?n:(t.unshift(n),Reflect.apply(_util().format,null,t))}(t,r,s);return Object.defineProperties(s,{message:{value:i,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),p(s),s.code=t,s}}(r,e)}function isErrorStackTraceLimitWritable(){try{if(_v().startupSnapshot.isBuildingSnapshot())return!1}catch(e){}const e=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return void 0===e?Object.isExtensible(Error):n.call(e,"writable")&&void 0!==e.writable?e.writable:void 0!==e.set}o.ERR_INVALID_ARG_TYPE=createError("ERR_INVALID_ARG_TYPE",(e,t,r)=>{_assert()("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let n="The ";if(e.endsWith(" argument"))n+=`${e} `;else{const t=e.includes(".")?"property":"argument";n+=`"${e}" ${t} `}n+="must be ";const o=[],a=[],l=[];for(const e of t)_assert()("string"==typeof e,"All expected entries have to be of type string"),i.has(e)?o.push(e.toLowerCase()):null===s.exec(e)?(_assert()("object"!==e,'The value "object" should be written as "Object"'),l.push(e)):a.push(e);if(a.length>0){const e=o.indexOf("object");-1!==e&&(o.slice(e,1),a.push("Object"))}return o.length>0&&(n+=`${o.length>1?"one of type":"of type"} ${formatList(o,"or")}`,(a.length>0||l.length>0)&&(n+=" or ")),a.length>0&&(n+=`an instance of ${formatList(a,"or")}`,l.length>0&&(n+=" or ")),l.length>0&&(l.length>1?n+=`one of ${formatList(l,"or")}`:(l[0].toLowerCase()!==l[0]&&(n+="an "),n+=`${l[0]}`)),n+=`. Received ${function(e){if(null==e)return String(e);if("function"==typeof e&&e.name)return`function ${e.name}`;if("object"==typeof e)return e.constructor&&e.constructor.name?`an instance of ${e.constructor.name}`:`${(0,_util().inspect)(e,{depth:-1})}`;let t=(0,_util().inspect)(e,{colors:!1});t.length>28&&(t=`${t.slice(0,25)}...`);return`type ${typeof e} (${t})`}(r)}`,n},TypeError),o.ERR_INVALID_MODULE_SPECIFIER=createError("ERR_INVALID_MODULE_SPECIFIER",(e,t,r=void 0)=>`Invalid module "${e}" ${t}${r?` imported from ${r}`:""}`,TypeError),o.ERR_INVALID_PACKAGE_CONFIG=createError("ERR_INVALID_PACKAGE_CONFIG",(e,t,r)=>`Invalid package config ${e}${t?` while importing ${t}`:""}${r?`. ${r}`:""}`,Error),o.ERR_INVALID_PACKAGE_TARGET=createError("ERR_INVALID_PACKAGE_TARGET",(e,t,r,n=!1,s=void 0)=>{const i="string"==typeof r&&!n&&r.length>0&&!r.startsWith("./");return"."===t?(_assert()(!1===n),`Invalid "exports" main target ${JSON.stringify(r)} defined in the package config ${e}package.json${s?` imported from ${s}`:""}${i?'; targets must start with "./"':""}`):`Invalid "${n?"imports":"exports"}" target ${JSON.stringify(r)} defined for '${t}' in the package config ${e}package.json${s?` imported from ${s}`:""}${i?'; targets must start with "./"':""}`},Error),o.ERR_MODULE_NOT_FOUND=createError("ERR_MODULE_NOT_FOUND",(e,t,r=!1)=>`Cannot find ${r?"module":"package"} '${e}' imported from ${t}`,Error),o.ERR_NETWORK_IMPORT_DISALLOWED=createError("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error),o.ERR_PACKAGE_IMPORT_NOT_DEFINED=createError("ERR_PACKAGE_IMPORT_NOT_DEFINED",(e,t,r)=>`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:""} imported from ${r}`,TypeError),o.ERR_PACKAGE_PATH_NOT_EXPORTED=createError("ERR_PACKAGE_PATH_NOT_EXPORTED",(e,t,r=void 0)=>"."===t?`No "exports" main defined in ${e}package.json${r?` imported from ${r}`:""}`:`Package subpath '${t}' is not defined by "exports" in ${e}package.json${r?` imported from ${r}`:""}`,Error),o.ERR_UNSUPPORTED_DIR_IMPORT=createError("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error),o.ERR_UNSUPPORTED_RESOLVE_REQUEST=createError("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError),o.ERR_UNKNOWN_FILE_EXTENSION=createError("ERR_UNKNOWN_FILE_EXTENSION",(e,t)=>`Unknown file extension "${e}" for ${t}`,TypeError),o.ERR_INVALID_ARG_VALUE=createError("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let n=(0,_util().inspect)(t);n.length>128&&(n=`${n.slice(0,128)}...`);return`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${n}`},TypeError);const p=function(e){const t="__node_internal_"+e.name;return Object.defineProperty(e,"name",{value:t}),e}(function(e){const t=isErrorStackTraceLimitWritable();return t&&(l=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(e),t&&(Error.stackTraceLimit=l),e});const c={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:u}=o,d=new Map;function read(e,{base:t,specifier:r}){const n=d.get(e);if(n)return n;let s;try{s=_fs().default.readFileSync(_path().toNamespacedPath(e),"utf8")}catch(e){const t=e;if("ENOENT"!==t.code)throw t}const i={exists:!1,pjsonPath:e,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(void 0!==s){let n;try{n=JSON.parse(s)}catch(n){const s=n,i=new u(e,(t?`"${r}" from `:"")+(0,_url().fileURLToPath)(t||r),s.message);throw i.cause=s,i}i.exists=!0,c.call(n,"name")&&"string"==typeof n.name&&(i.name=n.name),c.call(n,"main")&&"string"==typeof n.main&&(i.main=n.main),c.call(n,"exports")&&(i.exports=n.exports),c.call(n,"imports")&&(i.imports=n.imports),!c.call(n,"type")||"commonjs"!==n.type&&"module"!==n.type||(i.type=n.type)}return d.set(e,i),i}function getPackageScopeConfig(e){let t=new URL("package.json",e);for(;;){if(t.pathname.endsWith("node_modules/package.json"))break;const r=read((0,_url().fileURLToPath)(t),{specifier:e});if(r.exists)return r;const n=t;if(t=new URL("../package.json",t),t.pathname===n.pathname)break}return{pjsonPath:(0,_url().fileURLToPath)(t),exists:!1,type:"none"}}function getPackageType(e){return getPackageScopeConfig(e).type}const{ERR_UNKNOWN_FILE_EXTENSION:h}=o,m={}.hasOwnProperty,f={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"};const y={__proto__:null,"data:":function(e){const{1:t}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e.pathname)||[null,null,null];return function(e){return e&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(e)?"module":"application/json"===e?"json":null}(t)},"file:":function(e,t,r){const n=function(e){const t=e.pathname;let r=t.length;for(;r--;){const e=t.codePointAt(r);if(47===e)return"";if(46===e)return 47===t.codePointAt(r-1)?"":t.slice(r)}return""}(e);if(".js"===n){const t=getPackageType(e);return"none"!==t?t:"commonjs"}if(""===n){const t=getPackageType(e);return"none"===t||"commonjs"===t?"commonjs":"module"}const s=f[n];if(s)return s;if(r)return;const i=(0,_url().fileURLToPath)(e);throw new h(n,i)},"http:":getHttpProtocolModuleFormat,"https:":getHttpProtocolModuleFormat,"node:":()=>"builtin"};function getHttpProtocolModuleFormat(){}function defaultGetFormatWithoutErrors(e,t){const r=e.protocol;return m.call(y,r)&&y[r](e,t,!0)||null}const{ERR_INVALID_ARG_VALUE:b}=o,g=Object.freeze(["node","import"]),x=new Set(g);const v=RegExp.prototype[Symbol.replace],{ERR_NETWORK_IMPORT_DISALLOWED:E,ERR_INVALID_MODULE_SPECIFIER:T,ERR_INVALID_PACKAGE_CONFIG:S,ERR_INVALID_PACKAGE_TARGET:P,ERR_MODULE_NOT_FOUND:_,ERR_PACKAGE_IMPORT_NOT_DEFINED:A,ERR_PACKAGE_PATH_NOT_EXPORTED:C,ERR_UNSUPPORTED_DIR_IMPORT:w,ERR_UNSUPPORTED_RESOLVE_REQUEST:I}=o,D={}.hasOwnProperty,k=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,N=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,O=/^\.|%|\\/,j=/\*/g,F=/%2f|%5c/i,L=new Set,M=/[/\\]{2}/;function emitInvalidSegmentDeprecation(e,t,r,n,s,i,o){if(_process().noDeprecation)return;const a=(0,_url().fileURLToPath)(n),l=null!==M.exec(o?e:t);_process().emitWarning(`Use of deprecated ${l?"double slash":"leading or trailing slash matching"} resolving "${e}" for module request "${t}" ${t===r?"":`matched to "${r}" `}in the "${s?"imports":"exports"}" field module resolution of the package at ${a}${i?` imported from ${(0,_url().fileURLToPath)(i)}`:""}.`,"DeprecationWarning","DEP0166")}function emitLegacyIndexDeprecation(e,t,r,n){if(_process().noDeprecation)return;if("module"!==defaultGetFormatWithoutErrors(e,{parentURL:r.href}))return;const s=(0,_url().fileURLToPath)(e.href),i=(0,_url().fileURLToPath)(new(_url().URL)(".",t)),o=(0,_url().fileURLToPath)(r);n?_path().resolve(i,n)!==s&&_process().emitWarning(`Package ${i} has a "main" field set to "${n}", excluding the full filename and extension to the resolved file at "${s.slice(i.length)}", imported from ${o}.\n Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151"):_process().emitWarning(`No "main" or "exports" field defined in the package.json for ${i} resolving the main entry point "${s.slice(i.length)}", imported from ${o}.\nDefault "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function tryStatSync(e){try{return(0,_fs().statSync)(e)}catch(e){}}function fileExists(e){const t=(0,_fs().statSync)(e,{throwIfNoEntry:!1}),r=t?t.isFile():void 0;return null!=r&&r}function legacyMainResolve(e,t,r){let n;if(void 0!==t.main){if(n=new(_url().URL)(t.main,e),fileExists(n))return n;const s=[`./${t.main}.js`,`./${t.main}.json`,`./${t.main}.node`,`./${t.main}/index.js`,`./${t.main}/index.json`,`./${t.main}/index.node`];let i=-1;for(;++i<s.length&&(n=new(_url().URL)(s[i],e),!fileExists(n));)n=void 0;if(n)return emitLegacyIndexDeprecation(n,e,r,t.main),n}const s=["./index.js","./index.json","./index.node"];let i=-1;for(;++i<s.length&&(n=new(_url().URL)(s[i],e),!fileExists(n));)n=void 0;if(n)return emitLegacyIndexDeprecation(n,e,r,t.main),n;throw new _((0,_url().fileURLToPath)(new(_url().URL)(".",e)),(0,_url().fileURLToPath)(r))}function exportsNotFound(e,t,r){return new C((0,_url().fileURLToPath)(new(_url().URL)(".",t)),e,r&&(0,_url().fileURLToPath)(r))}function invalidPackageTarget(e,t,r,n,s){return t="object"==typeof t&&null!==t?JSON.stringify(t,null,""):`${t}`,new P((0,_url().fileURLToPath)(new(_url().URL)(".",r)),e,t,n,s&&(0,_url().fileURLToPath)(s))}function resolvePackageTargetString(e,t,r,n,s,i,o,a,l){if(""!==t&&!i&&"/"!==e[e.length-1])throw invalidPackageTarget(r,e,n,o,s);if(!e.startsWith("./")){if(o&&!e.startsWith("../")&&!e.startsWith("/")){let r=!1;try{new(_url().URL)(e),r=!0}catch(e){}if(!r){return packageResolve(i?v.call(j,e,()=>t):e+t,n,l)}}throw invalidPackageTarget(r,e,n,o,s)}if(null!==k.exec(e.slice(2))){if(null!==N.exec(e.slice(2)))throw invalidPackageTarget(r,e,n,o,s);if(!a){const a=i?r.replace("*",()=>t):r+t;emitInvalidSegmentDeprecation(i?v.call(j,e,()=>t):e,a,r,n,o,s,!0)}}const p=new(_url().URL)(e,n),c=p.pathname,u=new(_url().URL)(".",n).pathname;if(!c.startsWith(u))throw invalidPackageTarget(r,e,n,o,s);if(""===t)return p;if(null!==k.exec(t)){const l=i?r.replace("*",()=>t):r+t;if(null===N.exec(t)){if(!a){emitInvalidSegmentDeprecation(i?v.call(j,e,()=>t):e,l,r,n,o,s,!1)}}else!function(e,t,r,n,s){const i=`request is not a valid match in pattern "${t}" for the "${n?"imports":"exports"}" resolution of ${(0,_url().fileURLToPath)(r)}`;throw new T(e,i,s&&(0,_url().fileURLToPath)(s))}(l,r,n,o,s)}return i?new(_url().URL)(v.call(j,p.href,()=>t)):new(_url().URL)(t,p)}function isArrayIndex(e){const t=Number(e);return`${t}`===e&&(t>=0&&t<4294967295)}function resolvePackageTarget(e,t,r,n,s,i,o,a,l){if("string"==typeof t)return resolvePackageTargetString(t,r,n,e,s,i,o,a,l);if(Array.isArray(t)){const p=t;if(0===p.length)return null;let c,u=-1;for(;++u<p.length;){const t=p[u];let d;try{d=resolvePackageTarget(e,t,r,n,s,i,o,a,l)}catch(e){if(c=e,"ERR_INVALID_PACKAGE_TARGET"===e.code)continue;throw e}if(void 0!==d){if(null!==d)return d;c=null}}if(null==c)return null;throw c}if("object"==typeof t&&null!==t){const p=Object.getOwnPropertyNames(t);let c=-1;for(;++c<p.length;){if(isArrayIndex(p[c]))throw new S((0,_url().fileURLToPath)(e),s,'"exports" cannot contain numeric property keys.')}for(c=-1;++c<p.length;){const u=p[c];if("default"===u||l&&l.has(u)){const p=resolvePackageTarget(e,t[u],r,n,s,i,o,a,l);if(void 0===p)continue;return p}}return null}if(null===t)return null;throw invalidPackageTarget(n,t,e,o,s)}function emitTrailingSlashPatternDeprecation(e,t,r){if(_process().noDeprecation)return;const n=(0,_url().fileURLToPath)(t);L.has(n+"|"+e)||(L.add(n+"|"+e),_process().emitWarning(`Use of deprecated trailing slash pattern mapping "${e}" in the "exports" field module resolution of the package at ${n}${r?` imported from ${(0,_url().fileURLToPath)(r)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155"))}function packageExportsResolve(e,t,r,n,s){let i=r.exports;if(function(e,t,r){if("string"==typeof e||Array.isArray(e))return!0;if("object"!=typeof e||null===e)return!1;const n=Object.getOwnPropertyNames(e);let s=!1,i=0,o=-1;for(;++o<n.length;){const e=n[o],a=""===e||"."!==e[0];if(0===i++)s=a;else if(s!==a)throw new S((0,_url().fileURLToPath)(t),r,"\"exports\" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.")}return s}(i,e,n)&&(i={".":i}),D.call(i,t)&&!t.includes("*")&&!t.endsWith("/")){const r=resolvePackageTarget(e,i[t],"",t,n,!1,!1,!1,s);if(null==r)throw exportsNotFound(t,e,n);return r}let o="",a="";const l=Object.getOwnPropertyNames(i);let p=-1;for(;++p<l.length;){const r=l[p],s=r.indexOf("*");if(-1!==s&&t.startsWith(r.slice(0,s))){t.endsWith("/")&&emitTrailingSlashPatternDeprecation(t,e,n);const i=r.slice(s+1);t.length>=r.length&&t.endsWith(i)&&1===patternKeyCompare(o,r)&&r.lastIndexOf("*")===s&&(o=r,a=t.slice(s,t.length-i.length))}}if(o){const r=resolvePackageTarget(e,i[o],a,o,n,!0,!1,t.endsWith("/"),s);if(null==r)throw exportsNotFound(t,e,n);return r}throw exportsNotFound(t,e,n)}function patternKeyCompare(e,t){const r=e.indexOf("*"),n=t.indexOf("*"),s=-1===r?e.length:r+1,i=-1===n?t.length:n+1;return s>i?-1:i>s||-1===r?1:-1===n||e.length>t.length?-1:t.length>e.length?1:0}function packageImportsResolve(e,t,r){if("#"===e||e.startsWith("#/")||e.endsWith("/")){throw new T(e,"is not a valid internal imports specifier name",(0,_url().fileURLToPath)(t))}let n;const s=getPackageScopeConfig(t);if(s.exists){n=(0,_url().pathToFileURL)(s.pjsonPath);const i=s.imports;if(i)if(D.call(i,e)&&!e.includes("*")){const s=resolvePackageTarget(n,i[e],"",e,t,!1,!0,!1,r);if(null!=s)return s}else{let s="",o="";const a=Object.getOwnPropertyNames(i);let l=-1;for(;++l<a.length;){const t=a[l],r=t.indexOf("*");if(-1!==r&&e.startsWith(t.slice(0,-1))){const n=t.slice(r+1);e.length>=t.length&&e.endsWith(n)&&1===patternKeyCompare(s,t)&&t.lastIndexOf("*")===r&&(s=t,o=e.slice(r,e.length-n.length))}}if(s){const e=resolvePackageTarget(n,i[s],o,s,t,!0,!0,!1,r);if(null!=e)return e}}}throw function(e,t,r){return new A(e,t&&(0,_url().fileURLToPath)(new(_url().URL)(".",t)),(0,_url().fileURLToPath)(r))}(e,n,t)}function packageResolve(e,t,r){if(_module().builtinModules.includes(e))return new(_url().URL)("node:"+e);const{packageName:n,packageSubpath:s,isScoped:i}=function(e,t){let r=e.indexOf("/"),n=!0,s=!1;"@"===e[0]&&(s=!0,-1===r||0===e.length?n=!1:r=e.indexOf("/",r+1));const i=-1===r?e:e.slice(0,r);if(null!==O.exec(i)&&(n=!1),!n)throw new T(e,"is not a valid package name",(0,_url().fileURLToPath)(t));return{packageName:i,packageSubpath:"."+(-1===r?"":e.slice(r)),isScoped:s}}(e,t),o=getPackageScopeConfig(t);if(o.exists){const e=(0,_url().pathToFileURL)(o.pjsonPath);if(o.name===n&&void 0!==o.exports&&null!==o.exports)return packageExportsResolve(e,s,o,t,r)}let a,l=new(_url().URL)("./node_modules/"+n+"/package.json",t),p=(0,_url().fileURLToPath)(l);do{const o=tryStatSync(p.slice(0,-13));if(!o||!o.isDirectory()){a=p,l=new(_url().URL)((i?"../../../../node_modules/":"../../../node_modules/")+n+"/package.json",l),p=(0,_url().fileURLToPath)(l);continue}const c=read(p,{base:t,specifier:e});return void 0!==c.exports&&null!==c.exports?packageExportsResolve(l,s,c,t,r):"."===s?legacyMainResolve(l,c,t):new(_url().URL)(s,l)}while(p.length!==a.length)}function shouldBeTreatedAsRelativeOrAbsolutePath(e){return""!==e&&("/"===e[0]||function(e){if("."===e[0]){if(1===e.length||"/"===e[1])return!0;if("."===e[1]&&(2===e.length||"/"===e[2]))return!0}return!1}(e))}function moduleResolve(e,t,r,n){const s=t.protocol,i="data:"===s||"http:"===s||"https:"===s;let o;if(shouldBeTreatedAsRelativeOrAbsolutePath(e))try{o=new(_url().URL)(e,t)}catch(r){const n=new I(e,t);throw n.cause=r,n}else if("file:"===s&&"#"===e[0])o=packageImportsResolve(e,t,r);else try{o=new(_url().URL)(e)}catch(n){if(i&&!_module().builtinModules.includes(e)){const r=new I(e,t);throw r.cause=n,r}o=packageResolve(e,t,r)}return _assert()(void 0!==o,"expected to be defined"),"file:"!==o.protocol?o:function(e,t,r){if(null!==F.exec(e.pathname))throw new T(e.pathname,'must not include encoded "/" or "\\" characters',(0,_url().fileURLToPath)(t));let n;try{n=(0,_url().fileURLToPath)(e)}catch(r){const n=r;throw Object.defineProperty(n,"input",{value:String(e)}),Object.defineProperty(n,"module",{value:String(t)}),n}const s=tryStatSync(n.endsWith("/")?n.slice(-1):n);if(s&&s.isDirectory()){const r=new w(n,(0,_url().fileURLToPath)(t));throw r.url=String(e),r}if(!s||!s.isFile()){const r=new _(n||e.pathname,t&&(0,_url().fileURLToPath)(t),!0);throw r.url=String(e),r}if(!r){const t=(0,_fs().realpathSync)(n),{search:r,hash:s}=e;(e=(0,_url().pathToFileURL)(t+(n.endsWith(_path().sep)?"/":""))).search=r,e.hash=s}return e}(o,t,n)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/buffer.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const r=[];for(let e=0;e<32;e++)r.push(" ".repeat(2*e));t.default=class{constructor(e,t){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._canMarkIdName=!0,this._indentChar="",this._queuedChar=0,this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=e,this._indentChar=t}get(){const{_map:e,_last:t}=this;32!==this._queuedChar&&this._flush();const r=10===t?(this._buf+this._str).trimRight():this._buf+this._str;if(null===e)return{code:r,decodedMap:void 0,map:null,rawMappings:void 0};const n={code:r,decodedMap:e.getDecoded(),get __mergedMap(){return this.map},get map(){const t=e.get();return n.map=t,t},set map(e){Object.defineProperty(n,"map",{value:e,writable:!0})},get rawMappings(){const t=e.getRawMappings();return n.rawMappings=t,t},set rawMappings(e){Object.defineProperty(n,"rawMappings",{value:e,writable:!0})}};return n}append(e,t){this._flush(),this._append(e,t)}appendChar(e){this._flush(),this._appendChar(e,1,!0)}queue(e){this._flush(),this._queuedChar=e}_flush(){const e=this._queuedChar;0!==e&&(this._appendChar(e,1,!0),this._queuedChar=0)}_appendChar(e,t,n){if(this._last=e,-1===e){const e=t>=64?this._indentChar.repeat(t):r[t/2];this._str+=e}else this._str+=t>1?String.fromCharCode(e).repeat(t):String.fromCharCode(e);const s=32===e,i=this._position;if(10!==e){if(this._map){const e=this._sourcePosition;n&&e?(this._map.mark(i,e.line,e.column,s?void 0:e.identifierName,s?void 0:e.identifierNamePos,e.filename),!s&&this._canMarkIdName&&(e.identifierName=void 0,e.identifierNamePos=void 0)):this._map.mark(i)}i.column+=t}else i.line++,i.column=0}_append(e,t){const r=e.length,n=this._position,s=this._sourcePosition;this._last=-1,++this._appendCount>4096?(this._str,this._buf+=this._str,this._str=e,this._appendCount=0):this._str+=e;const i=null!==this._map;if(!t&&!i)return void(n.column+=r);const{column:o,identifierName:a,identifierNamePos:l,filename:p}=s;let c=s.line;null==a&&null==l||!this._canMarkIdName||(s.identifierName=void 0,s.identifierNamePos=void 0);let u=e.indexOf("\n"),d=0;for(i&&0!==u&&this._map.mark(n,c,o,a,l,p);-1!==u;)n.line++,n.column=0,d=u+1,d<r&&void 0!==c&&(c++,i&&this._map.mark(n,c,0,void 0,void 0,p)),u=e.indexOf("\n",d);n.column+=r-d}removeLastSemicolon(){59===this._queuedChar&&(this._queuedChar=0)}getLastChar(e){if(!e)return this._last;const t=this._queuedChar;return 0!==t?t:this._last}getNewlineCount(){return 0===this._queuedChar&&10===this._last?1:0}hasContent(){return 0!==this._last}exactSource(e,t){if(!this._map)return void t();this.source("start",e);const r=e.identifierName,n=this._sourcePosition;null!=r&&(this._canMarkIdName=!1,n.identifierName=r),t(),null!=r&&(this._canMarkIdName=!0,n.identifierName=void 0,n.identifierNamePos=void 0),this.source("end",e)}source(e,t){this._map&&this._normalizePosition(e,t,0)}sourceWithOffset(e,t,r){this._map&&this._normalizePosition(e,t,r)}_normalizePosition(e,t,r){this._flush();const n=t[e],s=this._sourcePosition;n&&(s.line=n.line,s.column=Math.max(n.column+r,0),s.filename=t.filename)}getCurrentColumn(){return this._position.column+(this._queuedChar?1:0)}getCurrentLine(){return this._position.line}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/base.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockStatement=function(e){var t;this.tokenChar(123);const r=this.enterDelimited(),n=null==(t=e.directives)?void 0:t.length;if(n){var s;const t=e.body.length?2:1;this.printSequence(e.directives,!0,!0,t),null!=(s=e.directives[n-1].trailingComments)&&s.length||this.newline(t)}this.printSequence(e.body,!0,!0),this._noLineTerminatorAfterNode=r,this.rightBrace(e)},t.Directive=function(e){this.print(e.value),this.semicolon()},t.DirectiveLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.token(t);const{value:s}=e;if(n.test(s)){if(r.test(s))throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");this.token(`'${s}'`)}else this.token(`"${s}"`)},t.File=function(e){e.program&&this.print(e.program.interpreter);this.print(e.program)},t.InterpreterDirective=function(e){this.token(`#!${e.value}`),this._newline()},t.Placeholder=function(e){this.token("%%"),this.print(e.name),this.token("%%"),"Statement"===e.expectedNode&&this.semicolon()},t.Program=function(e){var t;this.printInnerComments(!1);const r=null==(t=e.directives)?void 0:t.length;if(r){var n;const t=e.body.length?2:1;this.printSequence(e.directives,void 0,void 0,t),null!=(n=e.directives[r-1].trailingComments)&&n.length||this.newline(t)}this.printSequence(e.body)};const r=/(?:^|[^\\])(?:\\\\)*'/,n=/(?:^|[^\\])(?:\\\\)*"/},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/classes.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClassAccessorProperty=function(e){var t;this.printJoin(e.decorators);const r=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;r&&this.catchUp(r);i._tsPrintClassMemberModifiers.call(this,e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(o._variance.call(this,e),this.print(e.key));e.optional&&this.tokenChar(63);e.definite&&this.tokenChar(33);this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value));this.semicolon()},t.ClassBody=function(e){if(this.tokenChar(123),0===e.body.length)this.tokenChar(125);else{const t=function(e,t){if(!e.tokenMap||null==t.start||null==t.end)return null;const r=e.tokenMap.getIndexes(t);if(!r)return null;let n=1,s=0,i=0;const advanceNextLocIndex=()=>{for(;i<t.body.length&&null==t.body[i].start;)i++};return advanceNextLocIndex(),o=>{i<=o&&(i=o+1,advanceNextLocIndex());const a=i===t.body.length?t.end:t.body[i].start;let l;for(;n<r.length&&e.tokenMap.matchesOriginal(l=e._tokens[r[n]],";")&&l.start<a;)e.tokenChar(59,s++),n++}}(this,e);null==t||t(-1);const r=this.enterDelimited();this.printJoin(e.body,!0,!0,t,!0,!0),this._noLineTerminatorAfterNode=r,this.endsWith(10)||this.newline(),this.rightBrace(e)}},t.ClassExpression=t.ClassDeclaration=function(e,t){(l(t)||p(t))&&s._shouldPrintDecoratorsBeforeExport.call(this,t)||this.printJoin(e.decorators);e.declare&&(this.word("declare"),this.space());e.abstract&&(this.word("abstract"),this.space());this.word("class"),e.id&&(this.space(),this.print(e.id));this.print(e.typeParameters),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeParameters));e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements));this.space(),this.print(e.body)},t.ClassMethod=function(e){_classMethodHead.call(this,e),this.space(),this.print(e.body)},t.ClassPrivateMethod=function(e){_classMethodHead.call(this,e),this.space(),this.print(e.body)},t.ClassPrivateProperty=function(e){this.printJoin(e.decorators),i._tsPrintClassMemberModifiers.call(this,e),this.print(e.key),e.optional&&this.tokenChar(63);e.definite&&this.tokenChar(33);this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value));this.semicolon()},t.ClassProperty=function(e){if(this.printJoin(e.decorators),!e.static&&!this.format.preserveFormat){var t;const r=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;r&&this.catchUp(r)}i._tsPrintClassMemberModifiers.call(this,e),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(o._variance.call(this,e),this.print(e.key));e.optional&&this.tokenChar(63);e.definite&&this.tokenChar(33);this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value));this.semicolon()},t.StaticBlock=function(e){this.word("static"),this.space(),this.tokenChar(123),0===e.body.length?this.tokenChar(125):(this.newline(),this.printSequence(e.body,!0),this.rightBrace(e))},t._classMethodHead=_classMethodHead;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/expressions.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/typescript.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/flow.js"),a=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/methods.js");const{isExportDefaultDeclaration:l,isExportNamedDeclaration:p}=n;function _classMethodHead(e){if(this.printJoin(e.decorators),!this.format.preserveFormat){var t;const r=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;r&&this.catchUp(r)}i._tsPrintClassMemberModifiers.call(this,e),a._methodHead.call(this,e)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/deprecated.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DecimalLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.word(t);this.word(e.value+"m")},t.Noop=function(){},t.RecordExpression=function(e){const t=e.properties;let r,n;if("bar"===this.format.recordAndTupleSyntaxType)r="{|",n="|}";else{if("hash"!==this.format.recordAndTupleSyntaxType&&null!=this.format.recordAndTupleSyntaxType)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);r="#{",n="}"}this.token(r),t.length&&(this.space(),this.printList(t,this.shouldPrintTrailingComma(n),!0,!0),this.space());this.token(n)},t.TSExpressionWithTypeArguments=function(e){this.print(e.expression),this.print(e.typeParameters)},t.TupleExpression=function(e){const t=e.elements,r=t.length;let n,s;if("bar"===this.format.recordAndTupleSyntaxType)n="[|",s="|]";else{if("hash"!==this.format.recordAndTupleSyntaxType)throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);n="#[",s="]"}this.token(n);for(let e=0;e<t.length;e++){const n=t[e];n&&(e>0&&this.space(),this.print(n),(e<r-1||this.shouldPrintTrailingComma(s))&&this.token(",",!1,e))}this.token(s)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/expressions.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogicalExpression=t.AssignmentExpression=function(e){this.print(e.left),this.space(),this.token(e.operator,!1,0,!0),this.space(),this.print(e.right)},t.AssignmentPattern=function(e){this.print(e.left),("Identifier"===e.left.type||p(e.left))&&(e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation));this.space(),this.tokenChar(61),this.space(),this.print(e.right)},t.AwaitExpression=function(e){this.word("await"),this.space(),this.print(e.argument)},t.BinaryExpression=function(e){this.print(e.left),this.space();const{operator:t}=e;105===t.charCodeAt(0)?this.word(t):(this.token(t,!1,0,!0),this.setLastChar(t.charCodeAt(t.length-1)));this.space(),this.print(e.right)},t.BindExpression=function(e){this.print(e.object),this.token("::"),this.print(e.callee)},t.CallExpression=function(e){this.print(e.callee),this.print(e.typeArguments),this.print(e.typeParameters),this.tokenChar(40);const t=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")"),void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)},t.ConditionalExpression=function(e){this.print(e.test),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate)},t.Decorator=function(e){this.tokenChar(64);const{expression:t}=e;this.print(t),this.newline()},t.DoExpression=function(e){e.async&&(this.word("async",!0),this.space());this.word("do"),this.space(),this.print(e.body)},t.EmptyStatement=function(){this.semicolon(!0)},t.ExpressionStatement=function(e){this.tokenContext|=s.TokenContext.expressionStatement,this.print(e.expression),this.semicolon()},t.Import=function(){this.word("import")},t.MemberExpression=function(e){if(this.print(e.object),!e.computed&&a(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;o(e.property)&&"number"==typeof e.property.value&&(t=!0);if(t){const t=this.enterDelimited();this.tokenChar(91),this.print(e.property,void 0,!0),this.tokenChar(93),this._noLineTerminatorAfterNode=t}else this.tokenChar(46),this.print(e.property)},t.MetaProperty=function(e){this.print(e.meta),this.tokenChar(46),this.print(e.property)},t.ModuleExpression=function(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();const{body:t}=e;(t.body.length||t.directives.length)&&this.newline();this.print(t),this.dedent(),this.rightBrace(e)},t.NewExpression=function(e,t){if(this.word("new"),this.space(),this.print(e.callee),this.format.minified&&0===e.arguments.length&&!e.optional&&!i(t,{callee:e})&&!a(t)&&!l(t))return;this.print(e.typeArguments),this.print(e.typeParameters),e.optional&&this.token("?.");if(0===e.arguments.length&&this.tokenMap&&!this.tokenMap.endMatches(e,")"))return;this.tokenChar(40);const r=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")"),void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=r,this.rightParens(e)},t.OptionalCallExpression=function(e){this.print(e.callee),this.print(e.typeParameters),e.optional&&this.token("?.");this.print(e.typeArguments),this.tokenChar(40);const t=this.enterDelimited();this.printList(e.arguments,void 0,void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)},t.OptionalMemberExpression=function(e){let{computed:t}=e;const{optional:r,property:n}=e;if(this.print(e.object),!t&&a(n))throw new TypeError("Got a MemberExpression for MemberExpression property");o(n)&&"number"==typeof n.value&&(t=!0);r&&this.token("?.");t?(this.tokenChar(91),this.print(n),this.tokenChar(93)):(r||this.tokenChar(46),this.print(n))},t.ParenthesizedExpression=function(e){this.tokenChar(40);const t=this.enterDelimited();this.print(e.expression,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)},t.PrivateName=function(e){this.tokenChar(35),this.print(e.id)},t.SequenceExpression=function(e){this.printList(e.expressions)},t.Super=function(){this.word("super")},t.ThisExpression=function(){this.word("this")},t.UnaryExpression=function(e){const{operator:t}=e,r=t.charCodeAt(0);r>=97&&r<=122?(this.word(t),this.space()):this.tokenChar(r);this.print(e.argument)},t.UpdateExpression=function(e){e.prefix?(this.token(e.operator,!1,0,!0),this.print(e.argument)):(this.print(e.argument,!0),this.token(e.operator,!1,0,!0))},t.V8IntrinsicIdentifier=function(e){this.tokenChar(37),this.word(e.name)},t.YieldExpression=function(e){e.delegate?(this.word("yield",!0),this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument))):e.argument?(this.word("yield",!0),this.space(),this.print(e.argument)):this.word("yield")},t._shouldPrintDecoratorsBeforeExport=function(e){if("boolean"==typeof this.format.decoratorsBeforeExport)return this.format.decoratorsBeforeExport;return"number"==typeof e.start&&e.start===e.declaration.start};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/node/index.js");const{isCallExpression:i,isLiteral:o,isMemberExpression:a,isNewExpression:l,isPattern:p}=n},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/flow.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnyTypeAnnotation=function(){this.word("any")},t.ArrayTypeAnnotation=function(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},t.BooleanLiteralTypeAnnotation=function(e){this.word(e.value?"true":"false")},t.BooleanTypeAnnotation=function(){this.word("boolean")},t.DeclareClass=function(e,t){a(t)||(this.word("declare"),this.space());this.word("class"),this.space(),_interfaceish.call(this,e)},t.DeclareExportAllDeclaration=function(e){this.word("declare"),this.space(),s.ExportAllDeclaration.call(this,e)},t.DeclareExportDeclaration=function(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space());FlowExportDeclaration.call(this,e)},t.DeclareFunction=function(e,t){a(t)||(this.word("declare"),this.space());this.word("function"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation.typeAnnotation),e.predicate&&(this.space(),this.print(e.predicate));this.semicolon()},t.DeclareInterface=function(e){this.word("declare"),this.space(),InterfaceDeclaration.call(this,e)},t.DeclareModule=function(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id),this.space(),this.print(e.body)},t.DeclareModuleExports=function(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation)},t.DeclareOpaqueType=function(e,t){a(t)||(this.word("declare"),this.space());OpaqueType.call(this,e)},t.DeclareTypeAlias=function(e){this.word("declare"),this.space(),TypeAlias.call(this,e)},t.DeclareVariable=function(e,t){a(t)||(this.word("declare"),this.space());this.word("var"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation),this.semicolon()},t.DeclaredPredicate=function(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value),this.tokenChar(41)},t.EmptyTypeAnnotation=function(){this.word("empty")},t.EnumBooleanBody=function(e){const{explicitType:t}=e;enumExplicitType(this,"boolean",t),enumBody(this,e)},t.EnumBooleanMember=function(e){enumInitializedMember(this,e)},t.EnumDeclaration=function(e){const{id:t,body:r}=e;this.word("enum"),this.space(),this.print(t),this.print(r)},t.EnumDefaultedMember=function(e){const{id:t}=e;this.print(t),this.tokenChar(44)},t.EnumNumberBody=function(e){const{explicitType:t}=e;enumExplicitType(this,"number",t),enumBody(this,e)},t.EnumNumberMember=function(e){enumInitializedMember(this,e)},t.EnumStringBody=function(e){const{explicitType:t}=e;enumExplicitType(this,"string",t),enumBody(this,e)},t.EnumStringMember=function(e){enumInitializedMember(this,e)},t.EnumSymbolBody=function(e){enumExplicitType(this,"symbol",!0),enumBody(this,e)},t.ExistsTypeAnnotation=function(){this.tokenChar(42)},t.FunctionTypeAnnotation=function(e,t){this.print(e.typeParameters),this.tokenChar(40),e.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(e.this.typeAnnotation),(e.params.length||e.rest)&&(this.tokenChar(44),this.space()));this.printList(e.params),e.rest&&(e.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(e.rest));this.tokenChar(41);const r=null==t?void 0:t.type;null!=r&&("ObjectTypeCallProperty"===r||"ObjectTypeInternalSlot"===r||"DeclareFunction"===r||"ObjectTypeProperty"===r&&t.method)?this.tokenChar(58):(this.space(),this.token("=>"));this.space(),this.print(e.returnType)},t.FunctionTypeParam=function(e){this.print(e.name),e.optional&&this.tokenChar(63);e.name&&(this.tokenChar(58),this.space());this.print(e.typeAnnotation)},t.IndexedAccessType=function(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},t.InferredPredicate=function(){this.tokenChar(37),this.word("checks")},t.InterfaceDeclaration=InterfaceDeclaration,t.GenericTypeAnnotation=t.ClassImplements=t.InterfaceExtends=function(e){this.print(e.id),this.print(e.typeParameters,!0)},t.InterfaceTypeAnnotation=function(e){var t;this.word("interface"),null!=(t=e.extends)&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends));this.space(),this.print(e.body)},t.IntersectionTypeAnnotation=function(e){this.printJoin(e.types,void 0,void 0,andSeparator)},t.MixedTypeAnnotation=function(){this.word("mixed")},t.NullLiteralTypeAnnotation=function(){this.word("null")},t.NullableTypeAnnotation=function(e){this.tokenChar(63),this.print(e.typeAnnotation)},Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return o.NumericLiteral}}),t.NumberTypeAnnotation=function(){this.word("number")},t.ObjectTypeAnnotation=function(e){e.exact?this.token("{|"):this.tokenChar(123);const t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];t.length&&(this.newline(),this.space(),this.printJoin(t,!0,!0,()=>{(1!==t.length||e.inexact)&&(this.tokenChar(44),this.space())},!0),this.space());e.inexact&&(this.indent(),this.token("..."),t.length&&this.newline(),this.dedent());e.exact?this.token("|}"):this.tokenChar(125)},t.ObjectTypeCallProperty=function(e){e.static&&(this.word("static"),this.space());this.print(e.value)},t.ObjectTypeIndexer=function(e){e.static&&(this.word("static"),this.space());_variance.call(this,e),this.tokenChar(91),e.id&&(this.print(e.id),this.tokenChar(58),this.space());this.print(e.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(e.value)},t.ObjectTypeInternalSlot=function(e){e.static&&(this.word("static"),this.space());this.tokenChar(91),this.tokenChar(91),this.print(e.id),this.tokenChar(93),this.tokenChar(93),e.optional&&this.tokenChar(63);e.method||(this.tokenChar(58),this.space());this.print(e.value)},t.ObjectTypeProperty=function(e){e.proto&&(this.word("proto"),this.space());e.static&&(this.word("static"),this.space());"get"!==e.kind&&"set"!==e.kind||(this.word(e.kind),this.space());_variance.call(this,e),this.print(e.key),e.optional&&this.tokenChar(63);e.method||(this.tokenChar(58),this.space());this.print(e.value)},t.ObjectTypeSpreadProperty=function(e){this.token("..."),this.print(e.argument)},t.OpaqueType=OpaqueType,t.OptionalIndexedAccessType=function(e){this.print(e.objectType),e.optional&&this.token("?.");this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},t.QualifiedTypeIdentifier=function(e){this.print(e.qualification),this.tokenChar(46),this.print(e.id)},Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return o.StringLiteral}}),t.StringTypeAnnotation=function(){this.word("string")},t.SymbolTypeAnnotation=function(){this.word("symbol")},t.ThisTypeAnnotation=function(){this.word("this")},t.TupleTypeAnnotation=function(e){this.tokenChar(91),this.printList(e.types),this.tokenChar(93)},t.TypeAlias=TypeAlias,t.TypeAnnotation=function(e,t){this.tokenChar(58),this.space(),"ArrowFunctionExpression"===t.type?this.tokenContext|=i.TokenContext.arrowFlowReturnType:e.optional&&this.tokenChar(63);this.print(e.typeAnnotation)},t.TypeCastExpression=function(e){this.tokenChar(40),this.print(e.expression),this.print(e.typeAnnotation),this.tokenChar(41)},t.TypeParameter=function(e){_variance.call(this,e),this.word(e.name),e.bound&&this.print(e.bound);e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))},t.TypeParameterDeclaration=t.TypeParameterInstantiation=function(e){this.tokenChar(60),this.printList(e.params),this.tokenChar(62)},t.TypeofTypeAnnotation=function(e){this.word("typeof"),this.space(),this.print(e.argument)},t.UnionTypeAnnotation=function(e){this.printJoin(e.types,void 0,void 0,orSeparator)},t.Variance=function(e){"plus"===e.kind?this.tokenChar(43):this.tokenChar(45)},t.VoidTypeAnnotation=function(){this.word("void")},t._interfaceish=_interfaceish,t._variance=_variance;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/modules.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/node/index.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/types.js");const{isDeclareExportDeclaration:a,isStatement:l}=n;function enumExplicitType(e,t,r){r&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function enumBody(e,t){const{members:r}=t;e.token("{"),e.indent(),e.newline();for(const t of r)e.print(t),e.newline();t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function enumInitializedMember(e,t){e.print(t.id),e.space(),e.token("="),e.space(),e.print(t.init),e.token(",")}function FlowExportDeclaration(e){if(e.declaration){const t=e.declaration;this.print(t),l(t)||this.semicolon()}else this.tokenChar(123),e.specifiers.length&&(this.space(),this.printList(e.specifiers),this.space()),this.tokenChar(125),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source)),this.semicolon()}function _interfaceish(e){var t,r,n;(this.print(e.id),this.print(e.typeParameters),null!=(t=e.extends)&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),"DeclareClass"===e.type)&&(null!=(r=e.mixins)&&r.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins)),null!=(n=e.implements)&&n.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)));this.space(),this.print(e.body)}function _variance(e){var t;const r=null==(t=e.variance)?void 0:t.kind;null!=r&&("plus"===r?this.tokenChar(43):"minus"===r&&this.tokenChar(45))}function InterfaceDeclaration(e){this.word("interface"),this.space(),_interfaceish.call(this,e)}function andSeparator(e){this.space(),this.token("&",!1,e),this.space()}function TypeAlias(e){this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(e.right),this.semicolon()}function OpaqueType(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),e.supertype&&(this.tokenChar(58),this.space(),this.print(e.supertype)),e.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(e.impltype)),this.semicolon()}function orSeparator(e){this.space(),this.token("|",!1,e),this.space()}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/template-literals.js");Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))});var s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/expressions.js");Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))});var i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/statements.js");Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))});var o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/classes.js");Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))});var a=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/methods.js");Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))});var l=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/modules.js");Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))});var p=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/types.js");Object.keys(p).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))});var c=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/flow.js");Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))});var u=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/base.js");Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))});var d=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/jsx.js");Object.keys(d).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))});var h=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/typescript.js");Object.keys(h).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))})},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/jsx.js"(e,t){"use strict";function spaceSeparator(){this.space()}Object.defineProperty(t,"__esModule",{value:!0}),t.JSXAttribute=function(e){this.print(e.name),e.value&&(this.tokenChar(61),this.print(e.value))},t.JSXClosingElement=function(e){this.tokenChar(60),this.tokenChar(47),this.print(e.name),this.tokenChar(62)},t.JSXClosingFragment=function(){this.token("</"),this.tokenChar(62)},t.JSXElement=function(e){const t=e.openingElement;if(this.print(t),t.selfClosing)return;this.indent();for(const t of e.children)this.print(t);this.dedent(),this.print(e.closingElement)},t.JSXEmptyExpression=function(){this.printInnerComments()},t.JSXExpressionContainer=function(e){this.tokenChar(123),this.print(e.expression),this.rightBrace(e)},t.JSXFragment=function(e){this.print(e.openingFragment),this.indent();for(const t of e.children)this.print(t);this.dedent(),this.print(e.closingFragment)},t.JSXIdentifier=function(e){this.word(e.name)},t.JSXMemberExpression=function(e){this.print(e.object),this.tokenChar(46),this.print(e.property)},t.JSXNamespacedName=function(e){this.print(e.namespace),this.tokenChar(58),this.print(e.name)},t.JSXOpeningElement=function(e){this.tokenChar(60),this.print(e.name),e.typeArguments&&this.print(e.typeArguments);this.print(e.typeParameters),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,void 0,void 0,spaceSeparator));e.selfClosing&&(this.space(),this.tokenChar(47));this.tokenChar(62)},t.JSXOpeningFragment=function(){this.tokenChar(60),this.tokenChar(62)},t.JSXSpreadAttribute=function(e){this.tokenChar(123),this.token("..."),this.print(e.argument),this.rightBrace(e)},t.JSXSpreadChild=function(e){this.tokenChar(123),this.token("..."),this.print(e.expression),this.rightBrace(e)},t.JSXText=function(e){const t=this.getPossibleRaw(e);void 0!==t?this.token(t,!0):this.token(e.value,!0)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/methods.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowFunctionExpression=function(e,t){e.async&&(this.word("async",!0),this.space());_shouldPrintArrowParamsParens.call(this,e)?_params.call(this,e,!0,void 0,this._buf._map?t:void 0):this.print(e.params[0],!0);_predicate.call(this,e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=s.TokenContext.arrowBody,this.print(e.body)},t.FunctionDeclaration=t.FunctionExpression=function(e,t){_functionHead.call(this,e,t,!0),this.space(),this.print(e.body)},t._functionHead=_functionHead,t._methodHead=function(e){const t=e.kind,r=e.key;"get"!==t&&"set"!==t||(this.word(t),this.space());e.async&&(this.word("async",!0),this.space());"method"!==t&&"init"!==t||e.generator&&this.tokenChar(42);e.computed?(this.tokenChar(91),this.print(r),this.tokenChar(93)):this.print(r);e.optional&&this.tokenChar(63);this._buf._map?_params.call(this,e,!1,e.computed&&"StringLiteral"!==e.key.type?void 0:e.key):_params.call(this,e,!1)},t._param=_param,t._parameters=_parameters,t._params=_params,t._predicate=_predicate,t._shouldPrintArrowParamsParens=_shouldPrintArrowParamsParens;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/node/index.js");const{isIdentifier:i}=n;function _params(e,t,r,n){if(this.print(e.typeParameters),void 0!==r||void 0!==n){const e=_getFuncIdName.call(this,r,n);e&&this.sourceIdentifierName(e.name,e.pos)}this.tokenChar(40),_parameters.call(this,e.params,41),this.print(e.returnType,t),this._noLineTerminator=t}function _parameters(e,t){const r=this.enterDelimited(),n=this.shouldPrintTrailingComma(t),s=e.length;for(let t=0;t<s;t++)_param.call(this,e[t]),(n||t<s-1)&&(this.tokenChar(44,t),this.space());this.tokenChar(t),this._noLineTerminatorAfterNode=r}function _param(e){this.printJoin(e.decorators,void 0,void 0,void 0,void 0,!0),this.print(e,void 0,!0),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation,void 0,!0)}function _predicate(e,t){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,t))}function _functionHead(e,t,r){e.async&&(this.word("async"),this.format.preserveFormat||(this._innerCommentsState=0),this.space()),this.word("function"),e.generator&&(this.format.preserveFormat||(this._innerCommentsState=0),this.tokenChar(42)),this.space(),e.id&&this.print(e.id),this._buf._map?_params.call(this,e,!1,e.id,t):_params.call(this,e,!1),r&&_predicate.call(this,e)}function _shouldPrintArrowParamsParens(e){var t,r;if(1!==e.params.length)return!0;if(e.typeParameters||e.returnType||e.predicate)return!0;const n=e.params[0];if(!i(n)||n.typeAnnotation||n.optional||null!=(t=n.leadingComments)&&t.length||null!=(r=n.trailingComments)&&r.length)return!0;if(this.tokenMap){if(null==e.loc)return!0;if(null!==this.tokenMap.findMatching(e,"("))return!0;const t=this.tokenMap.findMatching(e,"=>");return null==(null==t?void 0:t.loc)||t.loc.start.line!==e.loc.start.line}return!!this.format.retainLines}function _getFuncIdName(e,t){let r,n=e;if(!n&&t){const e=t.type;"VariableDeclarator"===e?n=t.id:"AssignmentExpression"===e||"AssignmentPattern"===e?n=t.left:"ObjectProperty"===e||"ClassProperty"===e?t.computed&&"StringLiteral"!==t.key.type||(n=t.key):"ClassPrivateProperty"!==e&&"ClassAccessorProperty"!==e||(n=t.key)}if(n){var s,i;if("Identifier"===n.type)r={pos:null==(s=n.loc)?void 0:s.start,name:(null==(i=n.loc)?void 0:i.identifierName)||n.name};else if("PrivateName"===n.type){var o;r={pos:null==(o=n.loc)?void 0:o.start,name:"#"+n.id.name}}else if("StringLiteral"===n.type){var a;r={pos:null==(a=n.loc)?void 0:a.start,name:n.value}}return r}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/modules.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExportAllDeclaration=function(e){var t,r;this.word("export"),this.space(),"type"===e.exportKind&&(this.word("type"),this.space());this.tokenChar(42),this.space(),this.word("from"),this.space(),null!=(t=e.attributes)&&t.length||null!=(r=e.assertions)&&r.length?(this.print(e.source,!0),this.space(),_printAttributes.call(this,e,!1)):this.print(e.source);this.semicolon()},t.ExportDefaultDeclaration=function(e){maybePrintDecoratorsBeforeExport(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=s.TokenContext.exportDefault;const t=e.declaration;this.print(t),u(t)||this.semicolon()},t.ExportDefaultSpecifier=function(e){this.print(e.exported)},t.ExportNamedDeclaration=function(e){if(maybePrintDecoratorsBeforeExport(this,e),this.word("export"),this.space(),e.declaration){const t=e.declaration;this.print(t),u(t)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());const n=e.specifiers.slice(0);let s=!1;for(;;){const e=n[0];if(!a(e)&&!l(e))break;s=!0,this.print(n.shift()),n.length&&(this.tokenChar(44),this.space())}let i=!1;var t,r;if((n.length||!n.length&&!s)&&(i=!0,this.tokenChar(123),n.length&&(this.space(),this.printList(n,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),e.source)this.space(),this.word("from"),this.space(),null!=(t=e.attributes)&&t.length||null!=(r=e.assertions)&&r.length?(this.print(e.source,!0),this.space(),_printAttributes.call(this,e,i)):this.print(e.source);this.semicolon()}},t.ExportNamespaceSpecifier=function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)},t.ExportSpecifier=function(e){"type"===e.exportKind&&(this.word("type"),this.space());this.print(e.local),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported))},t.ImportAttribute=function(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)},t.ImportDeclaration=function(e){var t,r;this.word("import"),this.space();const n="type"===e.importKind||"typeof"===e.importKind;n?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());const s=e.specifiers.slice(0),i=!!s.length;for(;i;){const e=s[0];if(!p(e)&&!c(e))break;this.print(s.shift()),s.length&&(this.tokenChar(44),this.space())}let o=!1;s.length?(o=!0,this.tokenChar(123),this.space(),this.printList(s,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):n&&!i&&(o=!0,this.tokenChar(123),this.tokenChar(125));(i||n)&&(this.space(),this.word("from"),this.space());null!=(t=e.attributes)&&t.length||null!=(r=e.assertions)&&r.length?(this.print(e.source,!0),this.space(),_printAttributes.call(this,e,o)):this.print(e.source);this.semicolon()},t.ImportDefaultSpecifier=function(e){this.print(e.local)},t.ImportExpression=function(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase));this.tokenChar(40);const t=this.shouldPrintTrailingComma(")");this.print(e.source),null!=e.options&&(this.tokenChar(44),this.space(),this.print(e.options));t&&this.tokenChar(44);this.rightParens(e)},t.ImportNamespaceSpecifier=function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)},t.ImportSpecifier=function(e){"type"!==e.importKind&&"typeof"!==e.importKind||(this.word(e.importKind),this.space());this.print(e.imported),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local))},t._printAttributes=_printAttributes;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/node/index.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/expressions.js");const{isClassDeclaration:o,isExportDefaultSpecifier:a,isExportNamespaceSpecifier:l,isImportDefaultSpecifier:p,isImportNamespaceSpecifier:c,isStatement:u}=n;let d=!1;function _printAttributes(e,t){var r;const{attributes:n}=e;var{assertions:s}=e;const{importAttributesKeyword:i}=this.format;n&&!i&&e.extra&&(e.extra.deprecatedAssertSyntax||e.extra.deprecatedWithLegacySyntax)&&!d&&(d=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));const o="assert"===i||!i&&s;if(this.word(o?"assert":"with"),this.space(),!o&&("with-legacy"===i||!i&&null!=(r=e.extra)&&r.deprecatedWithLegacySyntax))return void this.printList(n||s);const a=t?1:0;this.token("{",void 0,a),this.space(),this.printList(n||s,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",void 0,a)}function maybePrintDecoratorsBeforeExport(e,t){o(t.declaration)&&i._shouldPrintDecoratorsBeforeExport.call(e,t)&&e.printJoin(t.declaration.decorators)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/statements.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BreakStatement=function(e){this.word("break"),printStatementAfterKeyword(this,e.label)},t.CatchClause=function(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param),this.print(e.param.typeAnnotation),this.tokenChar(41),this.space());this.print(e.body)},t.ContinueStatement=function(e){this.word("continue"),printStatementAfterKeyword(this,e.label)},t.DebuggerStatement=function(){this.word("debugger"),this.semicolon()},t.DoWhileStatement=function(e){this.word("do"),this.space(),this.print(e.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.semicolon()},t.ForInStatement=function(e){this.word("for"),this.space(),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.tokenContext|=s.TokenContext.forInHead|s.TokenContext.forInOrInitHeadAccumulate,this.print(e.left),this.tokenContext=s.TokenContext.normal,this.space(),this.word("in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e.body)},t.ForOfStatement=function(e){this.word("for"),this.space(),e.await&&(this.word("await"),this.space());this.noIndentInnerCommentsHere(),this.tokenChar(40),this.tokenContext|=s.TokenContext.forOfHead,this.print(e.left),this.space(),this.word("of"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e.body)},t.ForStatement=function(e){this.word("for"),this.space(),this.tokenChar(40),this.tokenContext|=s.TokenContext.forInitHead|s.TokenContext.forInOrInitHeadAccumulate,this.print(e.init),this.tokenContext=s.TokenContext.normal,this.tokenChar(59),e.test&&(this.space(),this.print(e.test));this.tokenChar(59,1),e.update&&(this.space(),this.print(e.update));this.tokenChar(41),this.printBlock(e.body)},t.IfStatement=function(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();const t=e.alternate&&o(getLastStatement(e.consequent));t&&(this.tokenChar(123),this.newline(),this.indent());this.printAndIndentOnComments(e.consequent),t&&(this.dedent(),this.newline(),this.tokenChar(125));e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate))},t.LabeledStatement=function(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body)},t.ReturnStatement=function(e){this.word("return"),printStatementAfterKeyword(this,e.argument)},t.SwitchCase=function(e){e.test?(this.word("case"),this.space(),this.print(e.test),this.tokenChar(58)):(this.word("default"),this.tokenChar(58));e.consequent.length&&(this.newline(),this.printSequence(e.consequent,!0))},t.SwitchStatement=function(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,!0),this.rightBrace(e)},t.ThrowStatement=function(e){this.word("throw"),printStatementAfterKeyword(this,e.argument)},t.TryStatement=function(e){this.word("try"),this.space(),this.print(e.block),this.space(),e.handlers?this.print(e.handlers[0]):this.print(e.handler);e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer))},t.VariableDeclaration=function(e,t){e.declare&&(this.word("declare"),this.space());const{kind:r}=e;switch(r){case"await using":this.word("await"),this.space();case"using":this.word("using",!0);break;default:this.word(r)}this.space();let n=!1;if(!i(t))for(const t of e.declarations)if(t.init){n=!0;break}if(this.printList(e.declarations,void 0,void 0,e.declarations.length>1,n?commaSeparatorWithNewline:void 0),null!=t)switch(t.type){case"ForStatement":if(t.init===e)return;break;case"ForInStatement":case"ForOfStatement":if(t.left===e)return}this.semicolon()},t.VariableDeclarator=function(e){this.print(e.id),e.definite&&this.tokenChar(33);this.print(e.id.typeAnnotation),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init))},t.WhileStatement=function(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e.body)},t.WithStatement=function(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e.body)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/node/index.js");const{isFor:i,isIfStatement:o,isStatement:a}=n;function getLastStatement(e){const{body:t}=e;return!1===a(t)?e:getLastStatement(t)}function printStatementAfterKeyword(e,t){t&&(e.space(),e.printTerminatorless(t)),e.semicolon()}function commaSeparatorWithNewline(e){this.tokenChar(44,e),this.newline()}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/template-literals.js"(e,t){"use strict";function _printTemplate(e,t){const r=e.quasis;let n="`";for(let s=0;s<r.length-1;s++)if(n+=r[s].value.raw,this.token(n+"${",!0),this.print(t[s]),n="}",this.tokenMap){const t=this.tokenMap.findMatching(e,"}",s);t&&this._catchUpTo(t.loc.start)}n+=r[r.length-1].value.raw,this.token(n+"`",!0)}Object.defineProperty(t,"__esModule",{value:!0}),t.TaggedTemplateExpression=function(e){this.print(e.tag),this.print(e.typeParameters),this.print(e.quasi)},t.TemplateElement=function(){throw new Error("TemplateElement printing is handled in TemplateLiteral")},t.TemplateLiteral=function(e){_printTemplate.call(this,e,e.expressions)},t._printTemplate=_printTemplate},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/types.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentPlaceholder=function(){this.tokenChar(63)},t.ArrayPattern=t.ArrayExpression=function(e){const t=e.elements,r=t.length;this.tokenChar(91);const n=this.enterDelimited();for(let e=0;e<t.length;e++){const n=t[e];n?(e>0&&this.space(),this.print(n,void 0,!0),(e<r-1||this.shouldPrintTrailingComma("]"))&&this.tokenChar(44,e)):this.tokenChar(44,e)}this._noLineTerminatorAfterNode=n,this.tokenChar(93)},t.BigIntLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.word(t);this.word(e.value+"n")},t.BooleanLiteral=function(e){this.word(e.value?"true":"false")},t.Identifier=function(e){var t;this._buf._map&&this.sourceIdentifierName((null==(t=e.loc)?void 0:t.identifierName)||e.name);this.word(this.tokenMap?l:e.name)},t.NullLiteral=function(){this.word("null")},t.NumericLiteral=function(e){const t=this.getPossibleRaw(e),r=this.format.jsescOption,n=e.value,i=n+"";r.numbers?this.number(s(n,r),n):null==t?this.number(i,n):this.format.minified?this.number(t.length<i.length?t:i,n):this.number(t,n)},t.ObjectPattern=t.ObjectExpression=function(e){const t=e.properties;if(this.tokenChar(123),t.length){const e=this.enterDelimited();this.space(),this.printList(t,this.shouldPrintTrailingComma("}"),!0,!0,void 0,!0),this.space(),this._noLineTerminatorAfterNode=e}this.rightBrace(e)},t.ObjectMethod=function(e){this.printJoin(e.decorators),i._methodHead.call(this,e),this.space(),this.print(e.body)},t.ObjectProperty=function(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else{if(o(e.value)&&a(e.key)&&e.key.name===e.value.left.name)return void this.print(e.value);if(this.print(e.key),e.shorthand&&a(e.key)&&a(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value)},t.PipelineBareFunction=function(e){this.print(e.callee)},t.PipelinePrimaryTopicReference=function(){this.tokenChar(35)},t.PipelineTopicExpression=function(e){this.print(e.expression)},t.RegExpLiteral=function(e){this.word(`/${e.pattern}/${e.flags}`,!1)},t.SpreadElement=t.RestElement=function(e){this.token("..."),this.print(e.argument)},t.StringLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.token(t);const r=s(e.value,this.format.jsescOption);this.token(r)},t.TopicReference=function(){const{topicToken:e}=this.format;if(!p.has(e)){const t=JSON.stringify(e),r=Array.from(p,e=>JSON.stringify(e));throw new Error(`The "topicToken" generator option must be one of ${r.join(", ")} (${t} received instead).`)}this.token(e)},t.VoidPattern=function(){this.word("void")},t._getRawIdentifier=function(e){const{name:t}=e,r=this.tokenMap.find(e,e=>e.value===t);if(r)return l=this._originalCode.slice(r.start,r.end),l;return l=e.name};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"),s=r("./node_modules/.pnpm/[email protected]/node_modules/jsesc/jsesc.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/methods.js");const{isAssignmentPattern:o,isIdentifier:a}=n;let l="";const p=new Set(["^^","@@","^","%","#"])},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/typescript.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TSAnyKeyword=function(){this.word("any")},t.TSArrayType=function(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},t.TSAsExpression=function(e){const{expression:t,typeAnnotation:r}=e;this.print(t,!0),this.space(),this.word("as"),this.space(),this.print(r)},t.TSBigIntKeyword=function(){this.word("bigint")},t.TSBooleanKeyword=function(){this.word("boolean")},t.TSCallSignatureDeclaration=function(e){tsPrintSignatureDeclarationBase.call(this,e),maybePrintTrailingCommaOrSemicolon(this,e)},t.TSInterfaceHeritage=t.TSClassImplements=function(e){this.print(e.expression),this.print(e.typeArguments)},t.TSConditionalType=function(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType)},t.TSConstructSignatureDeclaration=function(e){this.word("new"),this.space(),tsPrintSignatureDeclarationBase.call(this,e),maybePrintTrailingCommaOrSemicolon(this,e)},t.TSConstructorType=function(e){e.abstract&&(this.word("abstract"),this.space());this.word("new"),this.space(),tsPrintFunctionOrConstructorType.call(this,e)},t.TSDeclareFunction=function(e,t){e.declare&&(this.word("declare"),this.space());n._functionHead.call(this,e,t,!1),this.semicolon()},t.TSDeclareMethod=function(e){s._classMethodHead.call(this,e),this.semicolon()},t.TSEnumBody=TSEnumBody,t.TSEnumDeclaration=function(e){const{declare:t,const:r,id:n}=e;t&&(this.word("declare"),this.space());r&&(this.word("const"),this.space());this.word("enum"),this.space(),this.print(n),this.space(),TSEnumBody.call(this,e)},t.TSEnumMember=function(e){const{id:t,initializer:r}=e;this.print(t),r&&(this.space(),this.tokenChar(61),this.space(),this.print(r))},t.TSExportAssignment=function(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression),this.semicolon()},t.TSExternalModuleReference=function(e){this.token("require("),this.print(e.expression),this.tokenChar(41)},t.TSFunctionType=function(e){tsPrintFunctionOrConstructorType.call(this,e)},t.TSImportEqualsDeclaration=function(e){const{id:t,moduleReference:r}=e;e.isExport&&(this.word("export"),this.space());this.word("import"),this.space(),this.print(t),this.space(),this.tokenChar(61),this.space(),this.print(r),this.semicolon()},t.TSImportType=function(e){const{qualifier:t,options:r}=e;this.word("import"),this.tokenChar(40),this.print(e.argument),r&&(this.tokenChar(44),this.print(r));this.tokenChar(41),t&&(this.tokenChar(46),this.print(t));const n=e.typeParameters;n&&this.print(n)},t.TSIndexSignature=function(e){const{readonly:t,static:r}=e;r&&(this.word("static"),this.space());t&&(this.word("readonly"),this.space());this.tokenChar(91),n._parameters.call(this,e.parameters,93),this.print(e.typeAnnotation),maybePrintTrailingCommaOrSemicolon(this,e)},t.TSIndexedAccessType=function(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},t.TSInferType=function(e){this.word("infer"),this.print(e.typeParameter)},t.TSInstantiationExpression=function(e){this.print(e.expression),this.print(e.typeParameters)},t.TSInterfaceBody=function(e){printBraced(this,e,()=>this.printJoin(e.body,!0,!0,void 0,void 0,!0))},t.TSInterfaceDeclaration=function(e){const{declare:t,id:r,typeParameters:n,extends:s,body:i}=e;t&&(this.word("declare"),this.space());this.word("interface"),this.space(),this.print(r),this.print(n),null!=s&&s.length&&(this.space(),this.word("extends"),this.space(),this.printList(s));this.space(),this.print(i)},t.TSIntersectionType=function(e){tsPrintUnionOrIntersectionType(this,e,"&")},t.TSIntrinsicKeyword=function(){this.word("intrinsic")},t.TSLiteralType=function(e){this.print(e.literal)},t.TSMappedType=function(e){const{nameType:t,optional:r,readonly:n,typeAnnotation:s}=e;this.tokenChar(123);const i=this.enterDelimited();this.space(),n&&(tokenIfPlusMinus(this,n),this.word("readonly"),this.space());this.tokenChar(91),this.word(e.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(e.typeParameter.constraint,void 0,!0),t&&(this.space(),this.word("as"),this.space(),this.print(t,void 0,!0));this.tokenChar(93),r&&(tokenIfPlusMinus(this,r),this.tokenChar(63));s&&(this.tokenChar(58),this.space(),this.print(s,void 0,!0));this.space(),this._noLineTerminatorAfterNode=i,this.tokenChar(125)},t.TSMethodSignature=function(e){const{kind:t}=e;"set"!==t&&"get"!==t||(this.word(t),this.space());tsPrintPropertyOrMethodName.call(this,e),tsPrintSignatureDeclarationBase.call(this,e),maybePrintTrailingCommaOrSemicolon(this,e)},t.TSModuleBlock=function(e){printBraced(this,e,()=>this.printSequence(e.body,!0,!0))},t.TSModuleDeclaration=function(e){const{declare:t,id:r,kind:n}=e;t&&(this.word("declare"),this.space());e.global||(this.word(null!=n?n:"Identifier"===r.type?"namespace":"module"),this.space());if(this.print(r),!e.body)return void this.semicolon();let s=e.body;for(;"TSModuleDeclaration"===s.type;)this.tokenChar(46),this.print(s.id),s=s.body;this.space(),this.print(s)},t.TSNamedTupleMember=function(e){this.print(e.label),e.optional&&this.tokenChar(63);this.tokenChar(58),this.space(),this.print(e.elementType)},t.TSNamespaceExportDeclaration=function(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id),this.semicolon()},t.TSNeverKeyword=function(){this.word("never")},t.TSNonNullExpression=function(e){this.print(e.expression),this.tokenChar(33),this.setLastChar(33)},t.TSNullKeyword=function(){this.word("null")},t.TSNumberKeyword=function(){this.word("number")},t.TSObjectKeyword=function(){this.word("object")},t.TSOptionalType=function(e){this.print(e.typeAnnotation),this.tokenChar(63)},t.TSParameterProperty=function(e){e.accessibility&&(this.word(e.accessibility),this.space());e.readonly&&(this.word("readonly"),this.space());n._param.call(this,e.parameter)},t.TSParenthesizedType=function(e){this.tokenChar(40),this.print(e.typeAnnotation),this.tokenChar(41)},t.TSPropertySignature=function(e){const{readonly:t}=e;t&&(this.word("readonly"),this.space());tsPrintPropertyOrMethodName.call(this,e),this.print(e.typeAnnotation),maybePrintTrailingCommaOrSemicolon(this,e)},t.TSQualifiedName=function(e){this.print(e.left),this.tokenChar(46),this.print(e.right)},t.TSRestType=function(e){this.token("..."),this.print(e.typeAnnotation)},t.TSSatisfiesExpression=function(e){const{expression:t,typeAnnotation:r}=e;this.print(t,!0),this.space(),this.word("satisfies"),this.space(),this.print(r)},t.TSStringKeyword=function(){this.word("string")},t.TSSymbolKeyword=function(){this.word("symbol")},t.TSTemplateLiteralType=function(e){i._printTemplate.call(this,e,e.types)},t.TSThisType=function(){this.word("this")},t.TSTupleType=function(e){this.tokenChar(91),this.printList(e.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)},t.TSTypeAliasDeclaration=function(e){const{declare:t,id:r,typeParameters:n,typeAnnotation:s}=e;t&&(this.word("declare"),this.space());this.word("type"),this.space(),this.print(r),this.print(n),this.space(),this.tokenChar(61),this.space(),this.print(s),this.semicolon()},t.TSTypeAnnotation=function(e,t){this.token("TSFunctionType"!==t.type&&"TSConstructorType"!==t.type||t.typeAnnotation!==e?":":"=>"),this.space(),e.optional&&this.tokenChar(63);this.print(e.typeAnnotation)},t.TSTypeAssertion=function(e){const{typeAnnotation:t,expression:r}=e;this.tokenChar(60),this.print(t),this.tokenChar(62),this.space(),this.print(r)},t.TSTypeLiteral=function(e){printBraced(this,e,()=>this.printJoin(e.members,!0,!0,void 0,void 0,!0))},t.TSTypeOperator=function(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation)},t.TSTypeParameter=function(e){e.const&&(this.word("const"),this.space());e.in&&(this.word("in"),this.space());e.out&&(this.word("out"),this.space());this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint));e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))},t.TSTypeParameterDeclaration=t.TSTypeParameterInstantiation=function(e,t){this.tokenChar(60);let r="ArrowFunctionExpression"===t.type&&1===e.params.length;this.tokenMap&&null!=e.start&&null!=e.end&&(r&&(r=!!this.tokenMap.find(e,e=>this.tokenMap.matchesOriginal(e,","))),r||(r=this.shouldPrintTrailingComma(">")));this.printList(e.params,r),this.tokenChar(62)},t.TSTypePredicate=function(e){e.asserts&&(this.word("asserts"),this.space());this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))},t.TSTypeQuery=function(e){this.word("typeof"),this.space(),this.print(e.exprName);const t=e.typeParameters;t&&this.print(t)},t.TSTypeReference=function(e){const t=e.typeParameters;this.print(e.typeName,!!t),this.print(t)},t.TSUndefinedKeyword=function(){this.word("undefined")},t.TSUnionType=function(e){tsPrintUnionOrIntersectionType(this,e,"|")},t.TSUnknownKeyword=function(){this.word("unknown")},t.TSVoidKeyword=function(){this.word("void")},t._tsPrintClassMemberModifiers=function(e){const t="ClassPrivateProperty"===e.type,r="ClassAccessorProperty"===e.type||"ClassProperty"===e.type;printModifiersList(this,e,[r&&e.declare&&"declare",!t&&e.accessibility]),e.static&&(this.word("static"),this.space());printModifiersList(this,e,[!t&&e.abstract&&"abstract",!t&&e.override&&"override",(r||t)&&e.readonly&&"readonly"])};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/methods.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/classes.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/template-literals.js");function maybePrintTrailingCommaOrSemicolon(e,t){e.tokenMap&&t.start&&t.end?e.tokenMap.endMatches(t,",")?e.token(","):e.tokenMap.endMatches(t,";")&&e.semicolon():e.semicolon()}function tsPrintPropertyOrMethodName(e){e.computed&&this.tokenChar(91),this.print(e.key),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63)}function tsPrintFunctionOrConstructorType(e){const{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),n._parameters.call(this,r,41),this.space();const s=e.typeAnnotation;this.print(s)}function tsPrintUnionOrIntersectionType(e,t,r){var n;let s=0;null!=(n=e.tokenMap)&&n.startMatches(t,r)&&(s=1,e.token(r)),e.printJoin(t.types,void 0,void 0,function(e){this.space(),this.token(r,void 0,e+s),this.space()})}function tokenIfPlusMinus(e,t){!0!==t&&e.token(t)}function TSEnumBody(e){printBraced(this,e,()=>{var t;return this.printList(e.members,null==(t=this.shouldPrintTrailingComma("}"))||t,!0,!0,void 0,!0)})}function tsPrintSignatureDeclarationBase(e){const{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),n._parameters.call(this,r,41);const s=e.typeAnnotation;this.print(s)}function printBraced(e,t,r){e.token("{");const n=e.enterDelimited();r(),e._noLineTerminatorAfterNode=n,e.rightBrace(t)}function printModifiersList(e,t,r){var n;const s=new Set;for(const e of r)e&&s.add(e);null==(n=e.tokenMap)||n.find(t,t=>!!s.has(t.value)&&(e.token(t.value),e.space(),s.delete(t.value),0===s.size));for(const t of s)e.word(t),e.space()}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.generate=generate;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/source-map.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/printer.js");function normalizeOptions(e,t,r){var n;if(t.experimental_preserveFormat){if("string"!=typeof e)throw new Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string");if(!t.retainLines)throw new Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`");if(t.compact&&"auto"!==t.compact)throw new Error("`experimental_preserveFormat` is not compatible with the `compact` option");if(t.minified)throw new Error("`experimental_preserveFormat` is not compatible with the `minified` option");if(t.jsescOption)throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");if(!Array.isArray(r.tokens))throw new Error("`experimental_preserveFormat` requires the AST to have attached the token of the input code. Make sure to enable the `tokens: true` parser option.")}const s={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,preserveFormat:t.experimental_preserveFormat,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:null==t.comments||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),topicToken:t.topicToken};s.decoratorsBeforeExport=t.decoratorsBeforeExport,s.jsescOption.json=t.jsonCompatibleStrings,s.recordAndTupleSyntaxType=null!=(n=t.recordAndTupleSyntaxType)?n:"hash",s.importAttributesKeyword=t.importAttributesKeyword,s.minified?(s.compact=!0,s.shouldPrintComment=s.shouldPrintComment||(()=>s.comments)):s.shouldPrintComment=s.shouldPrintComment||(e=>s.comments||e.includes("@license")||e.includes("@preserve")),"auto"===s.compact&&(s.compact="string"==typeof e&&e.length>5e5,s.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)),(s.compact||s.preserveFormat)&&(s.indent.adjustMultilineComment=!1);const{auxiliaryCommentBefore:i,auxiliaryCommentAfter:o,shouldPrintComment:a}=s;return i&&!a(i)&&(s.auxiliaryCommentBefore=void 0),o&&!a(o)&&(s.auxiliaryCommentAfter=void 0),s}function generate(e,t={},r){const i=normalizeOptions(r,t,e),o=t.sourceMaps?new n.default(t,r):null;return new s.default(i,o,e.tokens,"string"==typeof r?r:null).generate(e)}t.CodeGenerator=class{constructor(e,t={},r){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=e,this._format=normalizeOptions(r,t,e),this._map=t.sourceMaps?new n.default(t,r):null}generate(){return new s.default(this._format,this._map).generate(this._ast)}};t.default=generate},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/node/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenContext=void 0,t.isLastChild=function(e,t){const r=o[e.type];for(let n=r.length-1;n>=0;n--){const s=e[r[n]];if(s===t)return!0;if(Array.isArray(s)){let e=s.length-1;for(;e>=0&&null===s[e];)e--;return e>=0&&s[e]===t}if(s)return!1}return!1},t.parentNeedsParens=function(e,t,r){switch(r){case 112:if(t.callee===e&&isOrHasCallExpression(e))return!0;break;case 42:return!(isDecoratorMemberExpression(e)||"CallExpression"===e.type&&isDecoratorMemberExpression(e.callee)||"ParenthesizedExpression"===e.type)}return!1};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/node/parentheses.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/nodes.js");const{VISITOR_KEYS:o}=s;t.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};for(const e of Object.keys(n)){const t=n[e];i.generatorInfosMap.has(e)&&(i.generatorInfosMap.get(e)[2]=t)}function isOrHasCallExpression(e){switch(e.type){case"CallExpression":return!0;case"MemberExpression":return isOrHasCallExpression(e.object)}return!1}function isDecoratorMemberExpression(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&"Identifier"===e.property.type&&isDecoratorMemberExpression(e.object);default:return!1}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/node/parentheses.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AssignmentExpression=function(e,t,r,n){if(needsParenBeforeExpressionBrace(n)&&"ObjectPattern"===e.left.type)return!0;return ConditionalExpression(e,t,r)},t.BinaryExpression=function(e,t,r,n){return!!BinaryLike(e,t,r,0)||(n&s.TokenContext.forInOrInitHeadAccumulate)>0&&"in"===e.operator},t.ClassExpression=function(e,t,r,n){return(n&(s.TokenContext.expressionStatement|s.TokenContext.exportDefault))>0},t.ArrowFunctionExpression=t.ConditionalExpression=ConditionalExpression,t.DoExpression=function(e,t,r,n){return(n&s.TokenContext.expressionStatement)>0&&!e.async},t.FunctionExpression=function(e,t,r,n){return(n&(s.TokenContext.expressionStatement|s.TokenContext.exportDefault))>0},t.FunctionTypeAnnotation=function(e,t,r,n){return 239===r||90===r||4===r||(n&s.TokenContext.arrowFlowReturnType)>0},t.Identifier=function(e,t,r,n,a){var l;if(a&&a(e)!==e.name)return!1;if(6===r&&null!=(l=e.extra)&&l.parenthesized&&t.left===e){const e=t.right.type;if(("FunctionExpression"===e||"ClassExpression"===e)&&null==t.right.id)return!0}if((n&s.TokenContext.forOfHead||(108===r||132===r)&&n&(s.TokenContext.expressionStatement|s.TokenContext.forInitHead|s.TokenContext.forInHead))&&"let"===e.name){return!!((i(t,{object:e,computed:!0})||o(t,{object:e,computed:!0,optional:!1}))&&n&(s.TokenContext.expressionStatement|s.TokenContext.forInitHead|s.TokenContext.forInHead))||(n&s.TokenContext.forOfHead)>0}return 68===r&&t.left===e&&"async"===e.name&&!t.await},t.LogicalExpression=function(e,t,r){return BinaryLike(e,t,r,1)},t.NullableTypeAnnotation=function(e,t,r){return 4===r},t.ObjectExpression=function(e,t,r,n){return needsParenBeforeExpressionBrace(n)},t.OptionalIndexedAccessType=function(e,t,r){return 84===r&&t.objectType===e},t.OptionalCallExpression=t.OptionalMemberExpression=function(e,t,r){switch(r){case 17:return t.callee===e;case 108:return t.object===e}return!1},t.SequenceExpression=function(e,t,r){if(144===r||133===r||108===r&&t.property===e||132===r&&t.property===e||224===r)return!1;if(21===r)return!0;if(68===r)return t.right===e;if(60===r)return!0;return!l(t)},t.TSSatisfiesExpression=t.TSAsExpression=function(e,t,r){if((6===r||7===r)&&t.left===e)return!0;if(10===r&&("|"===t.operator||"&"===t.operator)&&e===t.left)return!0;return BinaryLike(e,t,r,2)},t.TSConditionalType=function(e,t,r){switch(r){case 155:case 195:case 211:case 212:return!0;case 175:return t.objectType===e;case 181:case 219:return t.types[0]===e;case 161:return t.checkType===e||t.extendsType===e}return!1},t.TSConstructorType=t.TSFunctionType=function(e,t,r){return!!TSUnionType(e,t,r)||(219===r||161===r&&(t.checkType===e||t.extendsType===e))},t.TSInferType=function(e,t,r){if(TSTypeOperator(e,t,r))return!0;if((181===r||219===r)&&e.typeParameter.constraint&&t.types[0]===e)return!0;return!1},t.TSInstantiationExpression=function(e,t,r){switch(r){case 17:case 130:case 112:case 177:return null!=t.typeParameters}return!1},t.TSIntersectionType=function(e,t,r){return 211===r||TSTypeOperator(e,t,r)},t.SpreadElement=t.UnaryExpression=t.TSTypeAssertion=UnaryLike,t.TSTypeOperator=TSTypeOperator,t.TSUnionType=TSUnionType,t.IntersectionTypeAnnotation=t.UnionTypeAnnotation=function(e,t,r){switch(r){case 4:case 115:case 90:case 239:return!0}return!1},t.UpdateExpression=function(e,t,r){return hasPostfixPart(e,t,r)||isClassExtendsClause(e,t,r)},t.AwaitExpression=t.YieldExpression=function(e,t,r){return 10===r||107===r||238===r||145===r||hasPostfixPart(e,t,r)||8===r&&a(e)||28===r&&e===t.test||isClassExtendsClause(e,t,r)||isTSTypeExpression(r)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/node/index.js");const{isMemberExpression:i,isOptionalMemberExpression:o,isYieldExpression:a,isStatement:l}=n,p=new Map([["||",0],["??",1],["&&",2],["|",3],["^",4],["&",5],["==",6],["===",6],["!=",6],["!==",6],["<",7],[">",7],["<=",7],[">=",7],["in",7],["instanceof",7],[">>",8],["<<",8],[">>>",8],["+",9],["-",9],["*",10],["/",10],["%",10],["**",11]]);function isTSTypeExpression(e){return 156===e||201===e||209===e}const isClassExtendsClause=(e,t,r)=>(21===r||22===r)&&t.superClass===e,hasPostfixPart=(e,t,r)=>{switch(r){case 108:case 132:return t.object===e;case 17:case 130:case 112:return t.callee===e;case 222:return t.tag===e;case 191:return!0}return!1};function needsParenBeforeExpressionBrace(e){return(e&(s.TokenContext.expressionStatement|s.TokenContext.arrowBody))>0}function BinaryLike(e,t,r,n){if(isClassExtendsClause(e,t,r))return!0;if(hasPostfixPart(e,t,r)||238===r||145===r||8===r)return!0;let s;switch(r){case 10:case 107:s=p.get(t.operator);break;case 156:case 201:s=7}if(void 0!==s){const i=2===n?7:p.get(e.operator);if(s>i)return!0;if(s===i&&10===r&&(11===i?t.left===e:t.right===e))return!0;if(1===n&&107===r&&(1===i&&1!==s||1===s&&1!==i))return!0}return!1}function TSUnionType(e,t,r){switch(r){case 181:case 211:case 155:case 195:return!0;case 175:return t.objectType===e}return!1}function TSTypeOperator(e,t,r){switch(r){case 155:case 195:return!0;case 175:if(t.objectType===e)return!0}return!1}function UnaryLike(e,t,r){return hasPostfixPart(e,t,r)||10===r&&"**"===t.operator&&t.left===e||isClassExtendsClause(e,t,r)}function ConditionalExpression(e,t,r){switch(r){case 238:case 145:case 10:case 107:case 8:return!0;case 28:if(t.test===e)return!0}return!!isTSTypeExpression(r)||UnaryLike(e,t,r)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/nodes.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generatorInfosMap=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/deprecated.js");const i=t.generatorInfosMap=new Map;let o=0;for(const e of Object.keys(n).sort())e.startsWith("_")||i.set(e,[n[e],o++,void 0]);for(const e of Object.keys(s))i.set(e,[s[e],o++,void 0])},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/printer.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/buffer.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/node/index.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/nodes.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"),a=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/token-map.js"),l=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/generators/types.js");const{isExpression:p,isFunction:c,isStatement:u,isClassBody:d,isTSInterfaceBody:h,isTSEnumMember:m}=o,f=/e/i,y=/\.0+$/,b=/[\n\r\u2028\u2029]/,g=/[\n\r\u2028\u2029]|\*\//;function commentIsNewline(e){return"CommentLine"===e.type||b.test(e.value)}t.default=class{constructor(e,t,r=null,i=null){this.tokenContext=s.TokenContext.normal,this._tokens=null,this._originalCode=null,this._currentNode=null,this._currentTypeId=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._lastCommentLine=0,this._innerCommentsState=0,this._flags=0,this.tokenMap=null,this._boundGetRawIdentifier=null,this._printSemicolonBeforeNextNode=-1,this._printSemicolonBeforeNextToken=-1,this.format=e,this._tokens=r,this._originalCode=i,this._indentRepeat=e.indent.style.length,this._inputMap=(null==t?void 0:t._inputMap)||null,this._buf=new n.default(t,e.indent.style[0]);const{preserveFormat:o,compact:a,concise:l,retainLines:p,retainFunctionParens:c}=e;o&&(this._flags|=1),a&&(this._flags|=2),l&&(this._flags|=4),p&&(this._flags|=8),c&&(this._flags|=16),(e.auxiliaryCommentBefore||e.auxiliaryCommentAfter)&&(this._flags|=32)}enterDelimited(){const e=this._noLineTerminatorAfterNode;return null!==e&&(this._noLineTerminatorAfterNode=null),e}generate(e){return this.format.preserveFormat&&(this.tokenMap=new a.TokenMap(e,this._tokens,this._originalCode),this._boundGetRawIdentifier=l._getRawIdentifier.bind(this)),this.print(e),this._maybeAddAuxComment(),this._buf.get()}indent(e=this._flags){7&e||(this._indent+=this._indentRepeat)}dedent(e=this._flags){7&e||(this._indent-=this._indentRepeat)}semicolon(e=!1){const t=this._flags;if(32&t&&this._maybeAddAuxComment(),1&t){const e=this._currentNode;if(null!=e.start&&null!=e.end){if(!this.tokenMap.endMatches(e,";"))return void(this._printSemicolonBeforeNextNode=this._buf.getCurrentLine());const t=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[t[t.length-1]].loc.start)}}e?this._appendChar(59):this._queue(59),this._noLineTerminator=!1}rightBrace(e){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}rightParens(e){this.sourceWithOffset("end",e.loc,-1),this.tokenChar(41)}space(e=!1){if(!(3&this._flags))if(e)this._space();else{const e=this.getLastChar(!0);0!==e&&32!==e&&10!==e&&this._space()}}word(e,t=!1){this.tokenContext&=s.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e);const r=this._flags;32&r&&this._maybeAddAuxComment(),1&r&&this._catchUpToCurrentToken(e);const n=this.getLastChar();(-2===n||-3===n||47===n&&47===e.charCodeAt(0))&&this._space(),this._append(e,!1),this.setLastChar(-3),this._noLineTerminator=t}number(e,t){this.word(e),!Number.isInteger(t)||function(e){if(e.length>2&&48===e.charCodeAt(0)){const t=e.charCodeAt(1);return 98===t||111===t||120===t}return!1}(e)||f.test(e)||y.test(e)||46===e.charCodeAt(e.length-1)||this.setLastChar(-2)}token(e,t=!1,r=0,n=!1){this.tokenContext&=s.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e,r);const i=this._flags;if(32&i&&this._maybeAddAuxComment(),1&i&&this._catchUpToCurrentToken(e,r),n){const t=e.charCodeAt(0);((45===t&&"--"===e||61===t)&&33===this.getLastChar()||43===t&&43===this.getLastChar()||45===t&&45===this.getLastChar()||46===t&&-2===this.getLastChar())&&this._space()}this._append(e,t),this._noLineTerminator=!1}tokenChar(e,t=0){this.tokenContext&=s.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e,t);const r=this._flags;32&r&&this._maybeAddAuxComment(),1&r&&this._catchUpToCurrentToken(e,t),(43===e&&43===this.getLastChar()||45===e&&45===this.getLastChar()||46===e&&-2===this.getLastChar())&&this._space(),this._appendChar(e),this._noLineTerminator=!1}newline(e=1,t=this._flags){if(!(e<=0||10&t))if(4&t)this.space();else{e>2&&(e=2),e-=this._buf.getNewlineCount();for(let t=0;t<e;t++)this._newline()}}endsWith(e){return this.getLastChar(!0)===e}getLastChar(e){return this._buf.getLastChar(e)}setLastChar(e){this._buf._last=e}exactSource(e,t){e?(this._catchUp("start",e),this._buf.exactSource(e,t)):t()}source(e,t){t&&(this._catchUp(e,t),this._buf.source(e,t))}sourceWithOffset(e,t,r){t&&!this.format.preserveFormat&&(this._catchUp(e,t),this._buf.sourceWithOffset(e,t,r))}sourceIdentifierName(e,t){if(!this._buf._canMarkIdName)return;const r=this._buf._sourcePosition;r.identifierNamePos=t,r.identifierName=e}_space(){this._queue(32)}_newline(){32===this._buf._queuedChar&&(this._buf._queuedChar=0),this._appendChar(10,!0)}_catchUpToCurrentToken(e,t=0){const r=this.tokenMap.findMatching(this._currentNode,e,t);r&&this._catchUpTo(r.loc.start),-1!==this._printSemicolonBeforeNextToken&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()&&this._appendChar(59,!0),this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(e,t){this._maybeIndent(),this._buf.append(e,t)}_appendChar(e,t){t||this._maybeIndent(),this._buf.appendChar(e)}_queue(e){this._buf.queue(e),this.setLastChar(-1)}_maybeIndent(){const e=this._shouldIndent();e>0&&this._buf._appendChar(-1,e,!1)}_shouldIndent(){return this.endsWith(10)?this._indent:0}catchUp(e){if(!this.format.retainLines)return;const t=e-this._buf.getCurrentLine();for(let e=0;e<t;e++)this._newline()}_catchUp(e,t){const r=this._flags;if(!(1&r))return void(8&r&&null!=t&&t[e]&&this.catchUp(t[e].line));const n=null==t?void 0:t[e];null!=n&&this._catchUpTo(n)}_catchUpTo({line:e,column:t,index:r}){const n=e-this._buf.getCurrentLine();if(n>0&&this._noLineTerminator)return;for(let e=0;e<n;e++)this._newline();const s=n>0?t:t-this._buf.getCurrentColumn();if(s>0){const e=this._originalCode?this._originalCode.slice(r-s,r).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(s);this._append(e,!1),this.setLastChar(32)}}printTerminatorless(e){this._noLineTerminator=!0,this.print(e)}print(e,t=!1,r=!1,n){var o,a;if(!e)return;this._innerCommentsState=0;const{type:l,loc:c,extra:u}=e,d=this._flags;let h=!1;e._compact&&(this._flags|=4,h=!0);const m=i.generatorInfosMap.get(l);if(void 0===m)throw new ReferenceError(`unknown node of type ${JSON.stringify(l)} with constructor ${JSON.stringify(e.constructor.name)}`);const[f,y,b]=m,g=this._currentNode,x=this._currentTypeId;let v;this._currentNode=e,this._currentTypeId=y,1&d&&(this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode),32&d&&(v=this._insideAux,this._insideAux=null==c,this._maybeAddAuxComment(this._insideAux&&!v));let E=0;r&&(E=this.tokenContext,E&s.TokenContext.forInOrInitHeadAccumulate?this.tokenContext=0:E=0);const T=null!=u&&u.parenthesized;let S=T&&1&d||T&&16&d&&71===y||g&&((0,s.parentNeedsParens)(e,g,x)||null!=b&&b(e,g,x,this.tokenContext,1&d?this._boundGetRawIdentifier:void 0));if(!S&&T&&null!=(o=e.leadingComments)&&o.length&&"CommentBlock"===e.leadingComments[0].type)switch(x){case 65:case 243:case 6:case 143:break;case 17:case 130:case 112:if(g.callee!==e)break;default:S=!0}let P,_=!1;var A;(!S&&this._noLineTerminator&&(null!=(a=e.leadingComments)&&a.some(commentIsNewline)||8&d&&c&&c.start.line>this._buf.getCurrentLine())&&(S=!0,_=!0),S)||(t||(t=!!g&&this._noLineTerminatorAfterNode===g&&(0,s.isLastChild)(g,e)),t&&(null!=(A=e.trailingComments)&&A.some(commentIsNewline)?p(e)&&(S=!0):(P=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=e)));S&&(this.tokenChar(40),_&&this.indent(),this._innerCommentsState=0,r||(E=this.tokenContext),E&s.TokenContext.forInOrInitHeadAccumulate&&(this.tokenContext=0),P=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._printLeadingComments(e,g),this.exactSource(139===y||66===y?null:c,f.bind(this,e,g)),S?(this._printTrailingComments(e,g),_&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=t):t&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(e,g)):this._printTrailingComments(e,g,n),E&&(this.tokenContext=E),this._currentNode=g,this._currentTypeId=x,h&&(this._flags=d),32&d&&(this._insideAux=v),null!=P&&(this._noLineTerminatorAfterNode=P),this._innerCommentsState=0}_maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;const e=this.format.auxiliaryCommentBefore;e&&this._printComment({type:"CommentBlock",value:e},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;const e=this.format.auxiliaryCommentAfter;e&&this._printComment({type:"CommentBlock",value:e},0)}getPossibleRaw(e){const t=e.extra;if(null!=(null==t?void 0:t.raw)&&null!=t.rawValue&&e.value===t.rawValue)return t.raw}printJoin(e,t,r,n,s,i,o){if(null==e||!e.length)return;const a=this._flags;if(null==r&&8&a){var l;const t=null==(l=e[0].loc)?void 0:l.start.line;null!=t&&t!==this._buf.getCurrentLine()&&(r=!0)}r&&this.indent(a);const p=e.length;for(let r=0;r<p;r++){const l=e[r];if(l&&(t&&0===r&&this._buf.hasContent()&&this.newline(1,a),this.print(l,!1,i,o||0),null!=n&&(r<p-1?n.call(this,r,!1):s&&n.call(this,r,!0)),t))if(r+1===p)this.newline(1,a);else{const t=this._lastCommentLine;if(t>0){var c;const n=((null==(c=e[r+1].loc)?void 0:c.start.line)||0)-t;if(n>=0){this.newline(n||1,a);continue}}this.newline(1,a)}}r&&this.dedent(a)}printAndIndentOnComments(e){const t=e.leadingComments&&e.leadingComments.length>0;t&&this.indent(),this.print(e),t&&this.dedent()}printBlock(e){"EmptyStatement"!==e.type&&this.space(),this.print(e)}_printTrailingComments(e,t,r){const{innerComments:n,trailingComments:s}=e;null!=n&&n.length&&this._printComments(2,n,e,t,r),null!=s&&s.length?this._printComments(2,s,e,t,r):this._lastCommentLine=0}_printLeadingComments(e,t){const r=e.leadingComments;null!=r&&r.length&&this._printComments(0,r,e,t)}_maybePrintInnerComments(e,t){var r;const n=this._innerCommentsState;switch(3&n){case 0:return void(this._innerCommentsState=5);case 1:this.printInnerComments((4&n)>0,null==(r=this.tokenMap)?void 0:r.findMatching(this._currentNode,e,t))}}printInnerComments(e=!0,t){const r=this._currentNode,n=r.innerComments;if(null==n||!n.length)return void(this._innerCommentsState=2);const s=this.endsWith(32);switch(e&&this.indent(),this._printComments(1,n,r,void 0,void 0,t)){case 2:this._innerCommentsState=2;case 1:s&&this.space()}e&&this.dedent()}noIndentInnerCommentsHere(){this._innerCommentsState&=-5}printSequence(e,t,r,n){this.printJoin(e,!0,null!=t&&t,void 0,void 0,r,n)}printList(e,t,r,n,s,i){this.printJoin(e,r,n,null!=s?s:commaSeparator,t,i)}shouldPrintTrailingComma(e){if(!this.tokenMap)return null;const t=this.tokenMap.findLastIndex(this._currentNode,t=>this.tokenMap.matchesOriginal(t,"number"==typeof e?String.fromCharCode(e):e));return t<=0?null:this.tokenMap.matchesOriginal(this._tokens[t-1],",")}_shouldPrintComment(e,t){if(e.ignore)return 0;if(this._printedComments.has(e))return 0;if(this._noLineTerminator&&g.test(e.value))return 2;if(t&&this.tokenMap){const r=this.tokenMap.find(this._currentNode,t=>t.value===e.value);if(r&&r.start>t.start)return 2}return this._printedComments.add(e),this.format.shouldPrintComment(e.value)?1:0}_printComment(e,t){const r=this._noLineTerminator,n="CommentBlock"===e.type,s=n&&1!==t&&!r;switch(s&&this._buf.hasContent()&&2!==t&&this.newline(1),this.getLastChar(!0)){case 47:this._space();case 91:case 123:case 40:break;default:this.space()}let i;if(n){if(i=`/*${e.value}*/`,this.format.indent.adjustMultilineComment){var o;const t=null==(o=e.loc)?void 0:o.start.column;if(t){const e=new RegExp("\\n\\s{1,"+t+"}","g");i=i.replace(e,"\n")}if(4&this._flags)i=i.replace(/\n(?!$)/g,"\n");else{let e=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent()||this.format.retainLines)&&(e+=this._indent),i=i.replace(/\n(?!$)/g,`\n${" ".repeat(e)}`)}}}else i=r?`/*${e.value}*/`:`//${e.value}`;this.source("start",e.loc),this._append(i,n),n||r||this._newline(),s&&3!==t&&this.newline(1)}_printComments(e,t,r,n,s=0,i){const o=r.loc,a=t.length;let l=!!o;const p=l?o.start.line:0,f=l?o.end.line:0;let y=0,g=0;const{_noLineTerminator:x,_flags:v}=this;for(let o=0;o<a;o++){const E=t[o],T=this._shouldPrintComment(E,i);if(2===T)return 0===o?0:1;if(l&&E.loc&&1===T){const t=E.loc.start.line,r=E.loc.end.line;if(0===e){let e=0;if(0===o?!this._buf.hasContent()||"CommentLine"!==E.type&&t===r||(e=g=1):e=t-y,y=r,e>0&&!x&&this.newline(e,v),this._printComment(E,1),o+1===a){const e=Math.max(p-y,g);e>0&&!x&&this.newline(e,v),y=p}}else if(1===e){const e=t-(0===o?p:y);if(y=r,e>0&&!x&&this.newline(e,v),this._printComment(E,1),o+1===a){const e=Math.min(1,f-y);e>0&&!x&&this.newline(e,v),y=f}}else{const e=t-(0===o?f-s:y);y=r,e>0&&!x&&this.newline(e,v),this._printComment(E,1)}}else{if(l=!1,1!==T)continue;if(1===a){const t=E.loc?E.loc.start.line===E.loc.end.line:!b.test(E.value),s=t&&!u(r)&&!d(n)&&!h(n)&&!m(r);0===e?this._printComment(E,s&&"ObjectExpression"!==r.type||t&&c(n)&&n.body===r?1:0):s&&2===e?this._printComment(E,1):this._printComment(E,0)}else 1!==e||"ObjectExpression"===r.type&&r.properties.length>1||"ClassBody"===r.type||"TSInterfaceBody"===r.type?this._printComment(E,0):this._printComment(E,0===o?2:o===a-1?3:0)}}return 2===e&&l&&y&&(this._lastCommentLine=y),2}};function commaSeparator(e,t){this.tokenChar(44,e),t||this.space()}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/source-map.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js");t.default=class{constructor(e,t){var r;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=null;const i=this._map=new n.GenMapping({sourceRoot:e.sourceRoot});if(this._sourceFileName=null==(r=e.sourceFileName)?void 0:r.replace(/\\/g,"/"),this._rawMappings=void 0,e.inputSourceMap){this._inputMap=new s.TraceMap(e.inputSourceMap);const t=this._inputMap.resolvedSources;if(t.length)for(let e=0;e<t.length;e++){var o;(0,n.setSourceContent)(i,t[e],null==(o=this._inputMap.sourcesContent)?void 0:o[e])}}if("string"!=typeof t||e.inputSourceMap){if("object"==typeof t)for(const e of Object.keys(t))(0,n.setSourceContent)(i,e.replace(/\\/g,"/"),t[e])}else(0,n.setSourceContent)(i,this._sourceFileName,t)}get(){return(0,n.toEncodedMap)(this._map)}getDecoded(){return(0,n.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,n.allMappings)(this._map))}mark(e,t,r,i,o,a){var l;let p;if(this._rawMappings=void 0,null!=t)if(this._inputMap){if(p=(0,s.originalPositionFor)(this._inputMap,{line:t,column:r}),!p.name&&o){const e=(0,s.originalPositionFor)(this._inputMap,o);e.name&&(i=e.name)}}else p={name:null,source:(null==a?void 0:a.replace(/\\/g,"/"))||this._sourceFileName,line:t,column:r};(0,n.maybeAddMapping)(this._map,{name:i,generated:e,source:null==(l=p)?void 0:l.source,original:p})}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/token-map.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenMap=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js");const{traverseFast:s,VISITOR_KEYS:i}=n;t.TokenMap=class{constructor(e,t,r){this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=t,this._source=r,s(e,e=>{const t=this._getTokensIndexesOfNode(e);t.length>0&&this._nodesToTokenIndexes.set(e,t)}),this._tokensCache.clear()}has(e){return this._nodesToTokenIndexes.has(e)}getIndexes(e){return this._nodesToTokenIndexes.get(e)}find(e,t){const r=this._nodesToTokenIndexes.get(e);if(r)for(let e=0;e<r.length;e++){const n=r[e],s=this._tokens[n];if(t(s,n))return s}return null}findLastIndex(e,t){const r=this._nodesToTokenIndexes.get(e);if(r)for(let e=r.length-1;e>=0;e--){const n=r[e];if(t(this._tokens[n],n))return n}return-1}findMatching(e,t,r=0){const n=this._nodesToTokenIndexes.get(e);if(n){"number"==typeof t&&(t=String.fromCharCode(t));let s=0;const i=r;if(i>1){const n=this._nodesOccurrencesCountCache.get(e);(null==n?void 0:n.test)===t&&n.count<i&&(s=n.i+1,r-=n.count+1)}for(;s<n.length;s++){const o=this._tokens[n[s]];if(this.matchesOriginal(o,t)){if(0===r)return i>0&&this._nodesOccurrencesCountCache.set(e,{test:t,count:i,i:s}),o;r--}}}return null}matchesOriginal(e,t){return e.end-e.start===t.length&&(null!=e.value?e.value===t:this._source.startsWith(t,e.start))}startMatches(e,t){const r=this._nodesToTokenIndexes.get(e);if(!r)return!1;const n=this._tokens[r[0]];return n.start===e.start&&this.matchesOriginal(n,t)}endMatches(e,t){const r=this._nodesToTokenIndexes.get(e);if(!r)return!1;const n=this._tokens[r[r.length-1]];return n.end===e.end&&this.matchesOriginal(n,t)}_getTokensIndexesOfNode(e){var t;if(null==e.start||null==e.end)return[];const{first:r,last:n}=this._findTokensOfNode(e,0,this._tokens.length-1);let s=r;const o=function*(e){if("TemplateLiteral"===e.type){yield e.quasis[0];for(let t=1;t<e.quasis.length;t++)yield e.expressions[t-1],yield e.quasis[t];return}const t=i[e.type];for(const r of t){const t=e[r];t&&(Array.isArray(t)?yield*t:yield t)}}(e);"ExportNamedDeclaration"!==e.type&&"ExportDefaultDeclaration"!==e.type||"ClassDeclaration"!==(null==(t=e.declaration)?void 0:t.type)||o.next();const a=[];for(const e of o){if(null==e)continue;if(null==e.start||null==e.end)continue;const t=this._findTokensOfNode(e,s,n),r=t.first;for(let e=s;e<r;e++)a.push(e);s=t.last+1}for(let e=s;e<=n;e++)a.push(e);return a}_findTokensOfNode(e,t,r){const n=this._tokensCache.get(e);if(n)return n;const s=this._findFirstTokenOfNode(e.start,t,r),i=this._findLastTokenOfNode(e.end,s,r);return this._tokensCache.set(e,{first:s,last:i}),{first:s,last:i}}_findFirstTokenOfNode(e,t,r){for(;t<=r;){const n=r+t>>1;if(e<this._tokens[n].start)r=n-1;else{if(!(e>this._tokens[n].start))return n;t=n+1}}return t}_findLastTokenOfNode(e,t,r){for(;t<=r;){const n=r+t>>1;if(e<this._tokens[n].end)r=n-1;else{if(!(e>this._tokens[n].end))return n;t=n+1}}return r}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-annotate-as-pure/lib/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.node||e;if((({leadingComments:e})=>!!e&&e.some(e=>/[@#]__PURE__/.test(e.value)))(t))return;s(t,"leading","#__PURE__")};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js");const{addComment:s}=n},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-create-class-features-plugin/lib/decorators-2018-09.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildDecoratedClass=function(e,t,i,o){const{node:a,scope:l}=t,p=l.generateUidIdentifier("initialize"),c=a.id&&t.isDeclaration(),u=t.isInStrictMode(),{superClass:d}=a;a.type="ClassDeclaration",a.id||(a.id=n.types.cloneNode(e));let h;d&&(h=l.generateUidIdentifierBasedOnNode(a.superClass,"super"),a.superClass=h);const m=takeDecorators(a),f=n.types.arrayExpression(i.filter(e=>!e.node.abstract&&"TSIndexSignature"!==e.node.type).map(e=>function(e,t,i,o){const a=o.isClassMethod();if(o.isPrivate())throw o.buildCodeFrameError(`Private ${a?"methods":"fields"} in decorated classes are not supported yet.`);if("ClassAccessorProperty"===o.node.type)throw o.buildCodeFrameError('Accessor properties are not supported in 2018-09 decorator transform, please specify { "version": "2021-12" } instead.');if("StaticBlock"===o.node.type)throw o.buildCodeFrameError('Static blocks are not supported in 2018-09 decorator transform, please specify { "version": "2021-12" } instead.');const{node:l,scope:p}=o;o.isTSDeclareMethod()||new s.default({methodPath:o,objectRef:t,superRef:i,file:e,refToPreserve:t}).replace();const c=[prop("kind",n.types.stringLiteral(n.types.isClassMethod(l)?l.kind:"field")),prop("decorators",takeDecorators(l)),prop("static",l.static&&n.types.booleanLiteral(!0)),prop("key",getKey(l))].filter(Boolean);if(a){null!=o.ensureFunctionName||(o.ensureFunctionName=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/index.js").NodePath.prototype.ensureFunctionName),o.ensureFunctionName(!1),c.push(prop("value",n.types.toExpression(o.node)))}else n.types.isClassProperty(l)&&l.value?c.push((u="value",d=n.template.statements.ast`return ${l.value}`,n.types.objectMethod("method",n.types.identifier(u),[],n.types.blockStatement(d)))):c.push(prop("value",p.buildUndefinedNode()));var u,d;return o.remove(),n.types.objectExpression(c)}(o,a.id,h,e))),y=n.template.expression.ast`- ${function(e){return e.addHelper("decorate")}(o)}(- ${m||n.types.nullLiteral()},- function (${p}, ${d?n.types.cloneNode(h):null}) {- ${a}- return { F: ${n.types.cloneNode(a.id)}, d: ${f} };- },- ${d}- )- `;u||y.arguments[1].body.directives.push(n.types.directive(n.types.directiveLiteral("use strict")));let b=y,g="arguments.1.body.body.0";c&&(b=n.template.statement.ast`let ${e} = ${y}`,g="declarations.0.init."+g);return{instanceNodes:[n.template.statement.ast`- ${n.types.cloneNode(p)}(this)- `],wrapClass:e=>(e.replaceWith(b),e.get(g))}};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-replace-supers/lib/index.js");function prop(e,t){return t?n.types.objectProperty(n.types.identifier(e),t):null}function takeDecorators(e){let t;return e.decorators&&e.decorators.length>0&&(t=n.types.arrayExpression(e.decorators.map(e=>e.expression))),e.decorators=void 0,t}function getKey(e){return e.computed?e.key:n.types.isIdentifier(e.key)?n.types.stringLiteral(e.key.name):n.types.stringLiteral(String(e.key.value))}},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildNamedEvaluationVisitor=buildNamedEvaluationVisitor,t.default=function({assertVersion:e,assumption:t},{loose:i},l,p){var c,u;e("2023-11"===l||"2023-05"===l||"2023-01"===l?"^7.21.0":"2021-12"===l?"^7.16.0":"^7.19.0");const d=new WeakSet,h=null!=(c=t("constantSuper"))?c:i,m=null!=(u=t("ignoreFunctionLength"))?u:i,f=buildNamedEvaluationVisitor(isDecoratedAnonymousClassExpression,visitClass);function visitClass(e,t,r){var i;if(d.has(e))return;const{node:p}=e;null!=r||(r=null==(i=p.id)?void 0:i.name);const c=function(e,t,r,i,l,p,c){var u;const d=e.get("body.body"),h=e.node.decorators;let m=!1,f=!1,y=!1;const b=function(e){let t;return()=>(t||(t=function(e){const t=[],r=new Set;return n.types.traverseFast(e.node,e=>{n.types.isPrivateName(e)&&r.add(e.id.name)}),()=>{let e;do{incrementId(t),e=String.fromCharCode(...t)}while(r.has(e));return n.types.privateName(n.types.identifier(e))}}(e)),t())}(e),g=[],x=e.scope.parent,memoiseExpression=(e,t,r)=>{const s=generateLetUidIdentifier(x,t);return r.push(n.types.assignmentExpression("=",s,e)),n.types.cloneNode(s)};let v,E;const T=null==(u=e.node.id)?void 0:u.name,S="object"==typeof l?l:void 0,usesFunctionContextOrYieldAwait=e=>{try{return n.types.traverseFast(e,e=>{if(n.types.isThisExpression(e)||n.types.isSuper(e)||n.types.isYieldExpression(e)||n.types.isAwaitExpression(e)||n.types.isIdentifier(e,{name:"arguments"})||T&&n.types.isIdentifier(e,{name:T})||n.types.isMetaProperty(e)&&"import"!==e.meta.name)throw null}),!1}catch(e){return!0}},P=[];for(const r of d){if(!isClassDecoratableElementPath(r))continue;const s=r.node;if(!s.static&&n.types.isPrivateName(s.key)&&P.push(s.key.id.name),isDecorated(s)){switch(s.type){case"ClassProperty":p.ClassProperty(r,t);break;case"ClassPrivateProperty":p.ClassPrivateProperty(r,t);break;case"ClassAccessorProperty":if(p.ClassAccessorProperty(r,t),"2023-11"===c)break;default:s.static?null!=E||(E=generateLetUidIdentifier(x,"initStatic")):null!=v||(v=generateLetUidIdentifier(x,"initProto"))}m=!0,y||(y=s.decorators.some(usesFunctionContextOrYieldAwait))}else if("ClassAccessorProperty"===s.type){p.ClassAccessorProperty(r,t);const{key:i,value:o,static:u,computed:d}=s,h=b(),m=generateClassProperty(h,o,u),f=r.get("key"),[y]=r.replaceWith(m);let g,v;d&&!f.isConstantExpression()?(g=(0,a.memoiseComputedKey)(createToPropertyKeyCall(t,i),x,x.generateUid("computedKey")),v=n.types.cloneNode(g.left)):(g=n.types.cloneNode(i),v=n.types.cloneNode(i)),assignIdForAnonymousClass(e,l),addProxyAccessorsFor(e.node.id,y,g,v,h,d,u,c)}"computed"in r.node&&r.node.computed&&(f||(f=!x.isStatic(r.node.key)))}if(!h&&!m)return e.node.id||"string"!=typeof l||(e.node.id=n.types.identifier(l)),void(S&&e.node.body.body.unshift(createStaticBlockFromExpressions([createSetFunctionNameCall(t,S)])));const _=[];let A;const C=new Set;let w,I,D=null;function handleDecorators(e){let t=!1,r=!1;const s=[];for(const i of e){const{expression:e}=i;let o;"2023-11"!==c&&"2023-05"!==c||!n.types.isMemberExpression(e)||(n.types.isSuper(e.object)?o=n.types.thisExpression():x.isStatic(e.object)?o=n.types.cloneNode(e.object):(null!=D||(D=generateLetUidIdentifier(x,"obj")),o=n.types.assignmentExpression("=",n.types.cloneNode(D),e.object),e.object=n.types.cloneNode(D))),s.push(o),t||(t=!x.isStatic(e)),r||(r=usesFunctionContextOrYieldAwait(i))}return{hasSideEffects:t,usesFnContext:r,decoratorsThis:s}}const k=f||y||"2023-11"!==c;let N,O,j=!1,F=0,L=[],M=[];if(h){w=generateLetUidIdentifier(x,"initClass"),j=e.isClassDeclaration(),({id:I,path:e}=function(e,t){const r=e.node.id,s=e.scope;if("ClassDeclaration"===e.type){const t=r.name,i=s.generateUidIdentifierBasedOnNode(r),o=n.types.identifier(t);return s.rename(t,i.name),e.get("id").replaceWith(o),{id:n.types.cloneNode(i),path:e}}{let i;r?(t=r.name,i=generateLetUidIdentifier(s.parent,t),s.rename(t,i.name)):i=generateLetUidIdentifier(s.parent,"string"==typeof t?t:"decorated_class");const o=n.types.classExpression("string"==typeof t?n.types.identifier(t):null,e.node.superClass,e.node.body),[a]=e.replaceWith(n.types.sequenceExpression([o,i]));return{id:n.types.cloneNode(i),path:a.get("expressions.0")}}}(e,l)),e.node.decorators=null;const t=h.some(usesPrivateField),{hasSideEffects:r,usesFnContext:s,decoratorsThis:i}=handleDecorators(h),{haveThis:o,decs:p}=generateDecorationList(h,i,c);if(F=o?1:0,L=p,(s||r&&k||t)&&(N=memoiseExpression(n.types.arrayExpression(L),"classDecs",g)),!m)for(const t of e.get("body.body")){const{node:e}=t;if("computed"in e&&e.computed)if(t.isClassProperty({static:!0})){if(!t.get("key").isConstantExpression()){const t=e.key,r=(0,a.memoiseComputedKey)(t,x,x.generateUid("computedKey"));null!=r&&(e.key=n.types.cloneNode(r.left),M.push(r))}}else M.length>0&&(prependExpressionsToComputedKey(M,t),M=[])}}else assignIdForAnonymousClass(e,l),I=n.types.cloneNode(e.node.id);let B=!1,R=[],U=[];if(m){if(v){const e=n.types.callExpression(n.types.cloneNode(v),[n.types.thisExpression()]);R.push(e)}for(const i of d){if(!isClassDecoratableElementPath(i)){U.length>0&&i.isStaticBlock()&&(prependExpressionsToStaticBlock(U,i),U=[]);continue}const{node:o}=i,p=o.decorators,u=!(null==p||!p.length),d="computed"in o&&o.computed;let m,f,y="computedKey";if("PrivateName"===o.key.type?y=o.key.id.name:d||"Identifier"!==o.key.type||(y=o.key.name),u){const{hasSideEffects:e,usesFnContext:t,decoratorsThis:r}=handleDecorators(p),{decs:s,haveThis:i}=generateDecorationList(p,r,c);f=i,m=1===s.length?s[0]:n.types.arrayExpression(s),(t||e&&k)&&(m=memoiseExpression(m,y+"Decs",M))}if(d&&!i.get("key").isConstantExpression()){const e=o.key,r=(0,a.memoiseComputedKey)(u?createToPropertyKeyCall(t,e):e,x,x.generateUid("computedKey"));null!=r&&(h&&i.isClassProperty({static:!0})?(o.key=n.types.cloneNode(r.left),M.push(r)):o.key=r)}const{key:g,static:v}=o,E="PrivateName"===g.type,T=getElementKind(i);let S;if(E&&!v&&(u&&(B=!0),!n.types.isClassPrivateProperty(o)&&O||(O=g)),i.isClassMethod({kind:"constructor"})&&(A=i),u){let o,a;if(a=d?getComputedKeyMemoiser(i.get("key")):"PrivateName"===g.type?n.types.stringLiteral(g.id.name):"Identifier"===g.type?n.types.stringLiteral(g.name):n.types.cloneNode(g),1===T){const{value:t}=i.node,r="2023-11"===c&&v?[]:[n.types.thisExpression()];t&&r.push(n.types.cloneNode(t));const s=b(),a=generateLetUidIdentifier(x,`init_${y}`),p=generateClassProperty(s,n.types.callExpression(n.types.cloneNode(a),r),v),[u]=i.replaceWith(p);if(E){o=extractProxyAccessorsFor(s,c);const e=generateLetUidIdentifier(x,`get_${y}`),t=generateLetUidIdentifier(x,`set_${y}`);addCallAccessorsFor(c,u,g,e,t,v),S=[a,e,t]}else assignIdForAnonymousClass(e,l),addProxyAccessorsFor(e.node.id,u,n.types.cloneNode(g),n.types.isAssignmentExpression(g)?n.types.cloneNode(g.left):n.types.cloneNode(g),s,d,v,c),S=[a]}else if(0===T){const e=generateLetUidIdentifier(x,`init_${y}`),t=i.get("value"),r="2023-11"===c&&v?[]:[n.types.thisExpression()];t.node&&r.push(t.node),t.replaceWith(n.types.callExpression(n.types.cloneNode(e),r)),S=[e],E&&(o=extractProxyAccessorsFor(g,c))}else if(E){const a=generateLetUidIdentifier(x,`call_${y}`);S=[a];if(new s.default({constantSuper:r,methodPath:i,objectRef:I,superRef:e.node.superClass,file:t.file,refToPreserve:I}).replace(),o=[createFunctionExpressionFromPrivateMethod(i.node)],3===T||4===T)movePrivateAccessor(i,n.types.cloneNode(g),n.types.cloneNode(a),v);else{const t=i.node;e.node.body.body.unshift(n.types.classPrivateProperty(g,n.types.cloneNode(a),[],t.static)),C.add(g.id.name),i.remove()}}_.push({kind:T,decoratorsArray:m,decoratorsHaveThis:f,name:a,isStatic:v,privateMethods:o,locals:S}),i.node&&(i.node.decorators=null)}if(d&&M.length>0&&(h&&i.isClassProperty({static:!0})||(prependExpressionsToComputedKey(M,1===T?i.getNextSibling():i),M=[])),R.length>0&&!v&&(0===T||1===T)&&(prependExpressionsToFieldInitializer(R,i),R=[]),U.length>0&&v&&(0===T||1===T)&&(prependExpressionsToFieldInitializer(U,i),U=[]),u&&"2023-11"===c&&(0===T||1===T)){const e=generateLetUidIdentifier(x,`init_extra_${y}`);S.push(e);const t=n.types.callExpression(n.types.cloneNode(e),v?[]:[n.types.thisExpression()]);v?U.push(t):R.push(t)}}}if(M.length>0){const t=e.get("body.body");let r;for(let e=t.length-1;e>=0;e--){const s=t[e],i=s.node;if(i.computed){if(h&&n.types.isClassProperty(i,{static:!0}))continue;r=s;break}}null!=r&&(!function(e,t){const r=t.get("key"),s=getComputedKeyLastElement(r);if(s.isConstantExpression())prependExpressionsToComputedKey(e,t);else{const i=r.scope.parent,o=(0,a.memoiseComputedKey)(s.node,i,i.generateUid("computedKey"));if(o){const t=[...e,n.types.cloneNode(o.left)],r=s.parentPath;r.isSequenceExpression()?r.pushContainer("expressions",t):s.replaceWith(maybeSequenceExpression([n.types.cloneNode(o),...t]))}else prependExpressionsToComputedKey(e,t)}}(M,r),M=[])}if(R.length>0){const t=!!e.node.superClass;A?t?function(e,t,r){t.traverse({CallExpression:{exit(t){if(!t.get("callee").isSuper())return;const s=[t.node,...e.map(e=>n.types.cloneNode(e))];t.isCompletionRecord()&&s.push(n.types.thisExpression()),t.replaceWith(function(e,t){if(t){if(e.length>=2&&isProtoInitCallExpression(e[1],t)){const r=n.types.callExpression(n.types.cloneNode(t),[e[0]]);e.splice(0,2,r)}e.length>=2&&n.types.isThisExpression(e[e.length-1])&&isProtoInitCallExpression(e[e.length-2],t)&&e.splice(e.length-1,1)}return maybeSequenceExpression(e)}(s,r)),t.skip()}},ClassMethod(e){"constructor"===e.node.kind&&e.skip()}})}(R,A,v):function(e,t){t.node.body.body.unshift(n.types.expressionStatement(maybeSequenceExpression(e)))}(R,A):e.node.body.body.unshift(createConstructorFromExpressions(R,t)),R=[]}U.length>0&&(e.node.body.body.push(createStaticBlockFromExpressions(U)),U=[]);const V=(W=_,[...W.filter(e=>e.isStatic&&e.kind>=1&&e.kind<=4),...W.filter(e=>!e.isStatic&&e.kind>=1&&e.kind<=4),...W.filter(e=>e.isStatic&&0===e.kind),...W.filter(e=>!e.isStatic&&0===e.kind)]),$=function(e,t){return n.types.arrayExpression(e.map(e=>{let r=e.kind;return e.isStatic&&(r+="2023-11"===t||"2023-05"===t?8:5),e.decoratorsHaveThis&&(r+=16),n.types.arrayExpression([e.decoratorsArray,n.types.numericLiteral(r),e.name,...e.privateMethods||[]])}))}("2023-11"===c?_:V,c),K=function(e){const t=[];for(const r of e){const{locals:e}=r;Array.isArray(e)?t.push(...e):void 0!==e&&t.push(e)}return t}(V);var W;v&&K.push(v);E&&K.push(E);const q=[];let H=!1;const z=w&&n.types.callExpression(n.types.cloneNode(w),[]);let G=e;const X=e.node,J=[];if(h){q.push(I,w);const o=[];if(e.get("body.body").forEach(a=>{if(a.isStaticBlock()||!a.isClassMethod()&&a.node.static){new s.default({constantSuper:r,methodPath:a,objectRef:I,superRef:e.node.superClass,file:t.file,refToPreserve:I}).replace()}if(a.isStaticBlock()){if(hasInstancePrivateAccess(a,P)){const e=memoiseExpression((l=a.node,n.types.functionExpression(null,[],n.types.blockStatement(l.body))),"staticBlock",J);U.push(n.types.callExpression(n.types.memberExpression(e,n.types.identifier("call")),[n.types.thisExpression()]))}else U.push(function(e){return n.types.callExpression(n.types.arrowFunctionExpression([],n.types.blockStatement(e.body)),[])}(a.node));a.remove()}else{var l;if((a.isClassProperty()||a.isClassPrivateProperty())&&a.node.static){const e=a.get("value");if(hasInstancePrivateAccess(e,P)){const t=memoiseExpression(function(e){return n.types.functionExpression(null,[],n.types.blockStatement([n.types.returnStatement(e)]))}(e.node),"fieldValue",J);e.replaceWith(n.types.callExpression(n.types.memberExpression(t,n.types.identifier("call")),[n.types.thisExpression()]))}U.length>0&&(prependExpressionsToFieldInitializer(U,a),U=[]),a.node.static=!1,o.push(a.node),a.remove()}else if(a.isClassPrivateMethod({static:!0})){if(hasInstancePrivateAccess(a,P)){const e=memoiseExpression(createFunctionExpressionFromPrivateMethod(a.node),a.get("key.id").node.name,J);i?(a.node.params=[n.types.restElement(n.types.identifier("arg"))],a.node.body=n.types.blockStatement([n.types.returnStatement(n.types.callExpression(n.types.memberExpression(e,n.types.identifier("apply")),[n.types.thisExpression(),n.types.identifier("arg")]))])):(a.node.params=a.node.params.map((e,t)=>n.types.isRestElement(e)?n.types.restElement(n.types.identifier("arg")):n.types.identifier("_"+t)),a.node.body=n.types.blockStatement([n.types.returnStatement(n.types.callExpression(n.types.memberExpression(e,n.types.identifier("apply")),[n.types.thisExpression(),n.types.identifier("arguments")]))]))}a.node.static=!1,o.push(a.node),a.remove()}}}),o.length>0||U.length>0){const r=n.template.expression.ast`- class extends ${t.addHelper("identity")} {}- `;r.body.body=[n.types.classProperty(n.types.toExpression(X),void 0,void 0,void 0,!0,!0),...o];const s=[],i=n.types.newExpression(r,[]);U.length>0&&s.push(...U),z&&(H=!0,s.push(z)),s.length>0?(s.unshift(n.types.callExpression(n.types.super(),[n.types.cloneNode(I)])),r.body.body.push(createConstructorFromExpressions(s,!1))):i.arguments.push(n.types.cloneNode(I));const[a]=e.replaceWith(i);G=a.get("callee").get("body").get("body.0.key")}}!H&&z&&e.node.body.body.push(n.types.staticBlock([n.types.expressionStatement(z)]));let{superClass:Y}=X;if(Y&&("2023-11"===c||"2023-05"===c)){const t=e.scope.maybeGenerateMemoised(Y);t&&(X.superClass=n.types.assignmentExpression("=",t,Y),Y=t)}const Q=n.types.staticBlock([]);X.body.body.unshift(Q);const Z=Q.body;if(M.length>0){const e=G.get("body.body");let t;for(const r of e)if((r.isClassProperty()||r.isClassMethod())&&"constructor"!==r.node.kind){t=r;break}null!=t?(!function(e){const{node:t}=e;t.computed=!0,n.types.isIdentifier(t.key)&&(t.key=n.types.stringLiteral(t.key.name))}(t),prependExpressionsToComputedKey(M,t)):(X.body.body.unshift(n.types.classProperty(n.types.sequenceExpression([...M,n.types.stringLiteral("_")]),void 0,void 0,void 0,!0,!0)),Z.push(n.types.expressionStatement(n.types.unaryExpression("delete",n.types.memberExpression(n.types.thisExpression(),n.types.identifier("_")))))),M=[]}Z.push(n.types.expressionStatement(function(e,t,r,s,i,o,a,l,p,c){let u,d;const h=[a?createSetFunctionNameCall(p,a):n.types.thisExpression(),s,r];"2023-11"!==c&&h.splice(1,2,r,s);if("2021-12"===c||"2022-03"===c&&!p.availableHelper("applyDecs2203R"))return u=n.types.arrayPattern([...e,...t]),d=n.types.callExpression(p.addHelper("2021-12"===c?"applyDecs":"applyDecs2203"),h),n.types.assignmentExpression("=",u,d);"2022-03"===c?d=n.types.callExpression(p.addHelper("applyDecs2203R"),h):"2023-01"===c?(o&&h.push(createPrivateBrandCheckClosure(o)),d=n.types.callExpression(p.addHelper("applyDecs2301"),h)):"2023-05"===c&&((o||l||0!==i.value)&&h.push(i),o?h.push(createPrivateBrandCheckClosure(o)):l&&h.push(n.types.unaryExpression("void",n.types.numericLiteral(0))),l&&h.push(l),d=n.types.callExpression(p.addHelper("applyDecs2305"),h));"2023-11"===c&&((o||l||0!==i.value)&&h.push(i),o?h.push(createPrivateBrandCheckClosure(o)):l&&h.push(n.types.unaryExpression("void",n.types.numericLiteral(0))),l&&h.push(l),d=n.types.callExpression(p.addHelper("applyDecs2311"),h));e.length>0?t.length>0?u=n.types.objectPattern([n.types.objectProperty(n.types.identifier("e"),n.types.arrayPattern(e)),n.types.objectProperty(n.types.identifier("c"),n.types.arrayPattern(t))]):(u=n.types.arrayPattern(e),d=n.types.memberExpression(d,n.types.identifier("e"),!1,!1)):(u=n.types.arrayPattern(t),d=n.types.memberExpression(d,n.types.identifier("c"),!1,!1));return n.types.assignmentExpression("=",u,d)}(K,q,$,null!=N?N:n.types.arrayExpression(L),n.types.numericLiteral(F),B?O:null,S,n.types.cloneNode(Y),t,c))),E&&Z.push(n.types.expressionStatement(n.types.callExpression(n.types.cloneNode(E),[n.types.thisExpression()])));J.length>0&&Z.push(...J.map(e=>n.types.expressionStatement(e)));if(e.insertBefore(g.map(e=>n.types.expressionStatement(e))),j){if(x.getBinding(I.name).constantViolations.length){const t=x.generateUidIdentifier("t"+I.name),r=I;e.replaceWithMultiple([n.types.variableDeclaration("let",[n.types.variableDeclarator(n.types.cloneNode(r)),n.types.variableDeclarator(t)]),n.types.blockStatement([n.types.variableDeclaration("let",[n.types.variableDeclarator(n.types.cloneNode(I))]),e.node,n.types.expressionStatement(n.types.assignmentExpression("=",n.types.cloneNode(t),n.types.cloneNode(I)))]),n.types.expressionStatement(n.types.assignmentExpression("=",n.types.cloneNode(r),n.types.cloneNode(t)))])}else e.insertBefore(n.types.variableDeclaration("let",[n.types.variableDeclarator(n.types.cloneNode(I))]))}C.size>0&&function(e,t){const r=(0,o.privateNameVisitorFactory)({PrivateName(e,t){if(!t.privateNamesMap.has(e.node.id.name))return;const r=e.parentPath,n=r.parentPath;if("AssignmentExpression"===n.node.type&&n.node.left===r.node||"UpdateExpression"===n.node.type||"RestElement"===n.node.type||"ArrayPattern"===n.node.type||"ObjectProperty"===n.node.type&&n.node.value===r.node&&"ObjectPattern"===n.parentPath.type||"ForOfStatement"===n.node.type&&n.node.left===r.node)throw e.buildCodeFrameError(`Decorated private methods are read-only, but "#${e.node.id.name}" is updated via this expression.`)}}),n=new Map;for(const e of t)n.set(e,null);e.traverse(r,{privateNamesMap:n})}(e,C);return e.scope.crawl(),e}(e,t,h,m,r,f,l);c?d.add(c):d.add(e)}return{name:"proposal-decorators",inherits:p,visitor:Object.assign({ExportDefaultDeclaration(e,t){const{declaration:s}=e.node;if("ClassDeclaration"===(null==s?void 0:s.type)&&isDecorated(s)){const i=!s.id;null!=e.splitExportDeclaration||(e.splitExportDeclaration=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/index.js").NodePath.prototype.splitExportDeclaration);const o=e.splitExportDeclaration();i&&visitClass(o,t,n.types.stringLiteral("default"))}},ExportNamedDeclaration(e){const{declaration:t}=e.node;"ClassDeclaration"===(null==t?void 0:t.type)&&isDecorated(t)&&(null!=e.splitExportDeclaration||(e.splitExportDeclaration=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/index.js").NodePath.prototype.splitExportDeclaration),e.splitExportDeclaration())},Class(e,t){visitClass(e,t,void 0)}},f)}},t.hasDecorators=function(e){return hasOwnDecorators(e)||e.body.body.some(hasOwnDecorators)},t.hasOwnDecorators=hasOwnDecorators;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-replace-supers/lib/index.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-skip-transparent-expression-wrappers/lib/index.js"),o=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-create-class-features-plugin/lib/fields.js"),a=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-create-class-features-plugin/lib/misc.js");function hasOwnDecorators(e){var t;return!(null==(t=e.decorators)||!t.length)}function incrementId(e,t=e.length-1){if(-1===t)return void e.unshift(65);const r=e[t];90===r?e[t]=97:122===r?(e[t]=65,incrementId(e,t-1)):e[t]=r+1}function generateClassProperty(e,t,r){return"PrivateName"===e.type?n.types.classPrivateProperty(e,t,void 0,r):n.types.classProperty(e,t,void 0,void 0,r)}function assignIdForAnonymousClass(e,t){e.node.id||(e.node.id="string"==typeof t?n.types.identifier(t):e.scope.generateUidIdentifier("Class"))}function addProxyAccessorsFor(e,t,r,s,i,o,a,l){const p="2023-11"!==l&&"2023-05"!==l||!a?n.types.thisExpression():e,c=n.types.blockStatement([n.types.returnStatement(n.types.memberExpression(n.types.cloneNode(p),n.types.cloneNode(i)))]),u=n.types.blockStatement([n.types.expressionStatement(n.types.assignmentExpression("=",n.types.memberExpression(n.types.cloneNode(p),n.types.cloneNode(i)),n.types.identifier("v")))]);let d,h;"PrivateName"===r.type?(d=n.types.classPrivateMethod("get",r,[],c,a),h=n.types.classPrivateMethod("set",s,[n.types.identifier("v")],u,a)):(d=n.types.classMethod("get",r,[],c,o,a),h=n.types.classMethod("set",s,[n.types.identifier("v")],u,o,a)),t.insertAfter(h),t.insertAfter(d)}function extractProxyAccessorsFor(e,t){return"2023-11"!==t&&"2023-05"!==t&&"2023-01"!==t?[n.template.expression.ast`- function () {- return this.${n.types.cloneNode(e)};- }- `,n.template.expression.ast`- function (value) {- this.${n.types.cloneNode(e)} = value;- }- `]:[n.template.expression.ast`- o => o.${n.types.cloneNode(e)}- `,n.template.expression.ast`- (o, v) => o.${n.types.cloneNode(e)} = v- `]}function getComputedKeyLastElement(e){if((e=(0,i.skipTransparentExprWrappers)(e)).isSequenceExpression()){const t=e.get("expressions");return getComputedKeyLastElement(t[t.length-1])}return e}function getComputedKeyMemoiser(e){const t=getComputedKeyLastElement(e);if(t.isConstantExpression())return n.types.cloneNode(e.node);if(t.isIdentifier()&&e.scope.hasUid(t.node.name))return n.types.cloneNode(e.node);if(t.isAssignmentExpression()&&t.get("left").isIdentifier())return n.types.cloneNode(t.node.left);throw new Error(`Internal Error: the computed key ${e.toString()} has not yet been memoised.`)}function prependExpressionsToComputedKey(e,t){const r=t.get("key");r.isSequenceExpression()?e.push(...r.node.expressions):e.push(r.node),r.replaceWith(maybeSequenceExpression(e))}function prependExpressionsToFieldInitializer(e,t){const r=t.get("value");r.node?e.push(r.node):e.length>0&&(e[e.length-1]=n.types.unaryExpression("void",e[e.length-1])),r.replaceWith(maybeSequenceExpression(e))}function prependExpressionsToStaticBlock(e,t){t.unshiftContainer("body",n.types.expressionStatement(maybeSequenceExpression(e)))}function isProtoInitCallExpression(e,t){return n.types.isCallExpression(e)&&n.types.isIdentifier(e.callee,{name:t.name})}function createConstructorFromExpressions(e,t){const r=[n.types.expressionStatement(maybeSequenceExpression(e))];return t&&r.unshift(n.types.expressionStatement(n.types.callExpression(n.types.super(),[n.types.spreadElement(n.types.identifier("args"))]))),n.types.classMethod("constructor",n.types.identifier("constructor"),t?[n.types.restElement(n.types.identifier("args"))]:[],n.types.blockStatement(r))}function createStaticBlockFromExpressions(e){return n.types.staticBlock([n.types.expressionStatement(maybeSequenceExpression(e))])}function getElementKind(e){switch(e.node.type){case"ClassProperty":case"ClassPrivateProperty":return 0;case"ClassAccessorProperty":return 1;case"ClassMethod":case"ClassPrivateMethod":return"get"===e.node.kind?3:"set"===e.node.kind?4:2}}function generateDecorationList(e,t,r){const s=e.length,i=t.some(Boolean),o=[];for(let a=0;a<s;a++)"2023-11"!==r&&"2023-05"!==r||!i||o.push(t[a]||n.types.unaryExpression("void",n.types.numericLiteral(0))),o.push(e[a].expression);return{haveThis:i,decs:o}}function addCallAccessorsFor(e,t,r,s,i,o){t.insertAfter(n.types.classPrivateMethod("get",n.types.cloneNode(r),[],n.types.blockStatement([n.types.returnStatement(n.types.callExpression(n.types.cloneNode(s),"2023-11"===e&&o?[]:[n.types.thisExpression()]))]),o)),t.insertAfter(n.types.classPrivateMethod("set",n.types.cloneNode(r),[n.types.identifier("v")],n.types.blockStatement([n.types.expressionStatement(n.types.callExpression(n.types.cloneNode(i),"2023-11"===e&&o?[n.types.identifier("v")]:[n.types.thisExpression(),n.types.identifier("v")]))]),o))}function movePrivateAccessor(e,t,r,s){let i,o;"set"===e.node.kind?(i=[n.types.identifier("v")],o=[n.types.expressionStatement(n.types.callExpression(r,[n.types.thisExpression(),n.types.identifier("v")]))]):(i=[],o=[n.types.returnStatement(n.types.callExpression(r,[n.types.thisExpression()]))]),e.replaceWith(n.types.classPrivateMethod(e.node.kind,n.types.cloneNode(t),i,n.types.blockStatement(o),s))}function isClassDecoratableElementPath(e){const{type:t}=e;return"TSDeclareMethod"!==t&&"TSIndexSignature"!==t&&"StaticBlock"!==t}function maybeSequenceExpression(e){return 0===e.length?n.types.unaryExpression("void",n.types.numericLiteral(0)):1===e.length?e[0]:n.types.sequenceExpression(e)}function createFunctionExpressionFromPrivateMethod(e){const{params:t,body:r,generator:s,async:i}=e;return n.types.functionExpression(void 0,t,r,s,i)}function createSetFunctionNameCall(e,t){return n.types.callExpression(e.addHelper("setFunctionName"),[n.types.thisExpression(),t])}function createToPropertyKeyCall(e,t){return n.types.callExpression(e.addHelper("toPropertyKey"),[t])}function createPrivateBrandCheckClosure(e){return n.types.arrowFunctionExpression([n.types.identifier("_")],n.types.binaryExpression("in",n.types.cloneNode(e),n.types.identifier("_")))}function usesPrivateField(e){try{return n.types.traverseFast(e,e=>{if(n.types.isPrivateName(e))throw null}),!1}catch(e){return!0}}function hasInstancePrivateAccess(e,t){let r=!1;if(t.length>0){const n=(0,o.privateNameVisitorFactory)({PrivateName(e,t){t.privateNamesMap.has(e.node.id.name)&&(r=!0,e.stop())}}),s=new Map;for(const e of t)s.set(e,null);e.traverse(n,{privateNamesMap:s})}return r}function isProtoKey(e){return"Identifier"===e.type?"__proto__"===e.name:"__proto__"===e.value}function isDecorated(e){return e.decorators&&e.decorators.length>0}function shouldTransformElement(e){switch(e.type){case"ClassAccessorProperty":return!0;case"ClassMethod":case"ClassProperty":case"ClassPrivateMethod":case"ClassPrivateProperty":return isDecorated(e);default:return!1}}function buildNamedEvaluationVisitor(e,t){function handleComputedProperty(e,t,r){switch(t.type){case"StringLiteral":return n.types.stringLiteral(t.value);case"NumericLiteral":case"BigIntLiteral":{const r=t.value+"";return e.get("key").replaceWith(n.types.stringLiteral(r)),n.types.stringLiteral(r)}default:{const s=e.scope.maybeGenerateMemoised(t);return e.get("key").replaceWith(n.types.assignmentExpression("=",s,createToPropertyKeyCall(r,t))),n.types.cloneNode(s)}}}return{VariableDeclarator(r,n){const s=r.node.id;if("Identifier"===s.type){const o=(0,i.skipTransparentExprWrappers)(r.get("init"));if(e(o)){const e=s.name;t(o,n,e)}}},AssignmentExpression(r,n){const s=r.node.left;if("Identifier"===s.type){const o=(0,i.skipTransparentExprWrappers)(r.get("right"));if(e(o))switch(r.node.operator){case"=":case"&&=":case"||=":case"??=":t(o,n,s.name)}}},AssignmentPattern(r,n){const s=r.node.left;if("Identifier"===s.type){const o=(0,i.skipTransparentExprWrappers)(r.get("right"));if(e(o)){const e=s.name;t(o,n,e)}}},ObjectExpression(r,s){for(const o of r.get("properties")){if(!o.isObjectProperty())continue;const{node:r}=o,a=r.key,l=(0,i.skipTransparentExprWrappers)(o.get("value"));if(e(l))if(r.computed){const e=handleComputedProperty(o,a,s);t(l,s,e)}else if(!isProtoKey(a))if("Identifier"===a.type)t(l,s,a.name);else{const e=n.types.stringLiteral(a.value+"");t(l,s,e)}}},ClassPrivateProperty(r,s){const{node:o}=r,a=(0,i.skipTransparentExprWrappers)(r.get("value"));if(e(a)){const e=n.types.stringLiteral("#"+o.key.id.name);t(a,s,e)}},ClassAccessorProperty(r,s){const{node:o}=r,a=o.key,l=(0,i.skipTransparentExprWrappers)(r.get("value"));if(e(l))if(o.computed){const e=handleComputedProperty(r,a,s);t(l,s,e)}else if("Identifier"===a.type)t(l,s,a.name);else if("PrivateName"===a.type){const e=n.types.stringLiteral("#"+a.id.name);t(l,s,e)}else{const e=n.types.stringLiteral(a.value+"");t(l,s,e)}},ClassProperty(r,s){const{node:o}=r,a=o.key,l=(0,i.skipTransparentExprWrappers)(r.get("value"));if(e(l))if(o.computed){const e=handleComputedProperty(r,a,s);t(l,s,e)}else if("Identifier"===a.type)t(l,s,a.name);else{const e=n.types.stringLiteral(a.value+"");t(l,s,e)}}}}function isDecoratedAnonymousClassExpression(e){return e.isClassExpression({id:null})&&(isDecorated(t=e.node)||t.body.body.some(shouldTransformElement));var t}function generateLetUidIdentifier(e,t){const r=e.generateUidIdentifier(t);return e.push({id:r,kind:"let"}),n.types.cloneNode(r)}},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-create-class-features-plugin/lib/features.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FEATURES=void 0,t.enableFeature=function(e,t,r){hasFeature(e,t)&&!canIgnoreLoose(e,t)||(e.set(o,e.get(o)|t),"#__internal__@babel/preset-env__prefer-true-but-false-is-ok-if-it-prevents-an-error"===r?(setLoose(e,t,!0),e.set(l,e.get(l)|t)):"#__internal__@babel/preset-env__prefer-false-but-true-is-ok-if-it-prevents-an-error"===r?(setLoose(e,t,!1),e.set(l,e.get(l)|t)):setLoose(e,t,r));let n;for(const[t,r]of i){if(!hasFeature(e,t))continue;if(canIgnoreLoose(e,t))continue;const i=isLoose(e,t);if(n===!i)throw new Error("'loose' mode configuration must be the same for @babel/plugin-transform-class-properties, @babel/plugin-transform-private-methods and @babel/plugin-transform-private-property-in-object (when they are enabled).\n\n"+getBabelShowConfigForHint(e));n=i;var s=r}if(void 0!==n)for(const[t,r]of i)hasFeature(e,t)&&isLoose(e,t)!==n&&(setLoose(e,t,n),console.warn(`Though the "loose" option was set to "${!n}" in your @babel/preset-env config, it will not be used for ${r} since the "loose" mode option was set to "${n}" for ${s}.\nThe "loose" option must be the same for @babel/plugin-transform-class-properties, @babel/plugin-transform-private-methods and @babel/plugin-transform-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding\n\t["${r}", { "loose": ${n} }]\nto the "plugins" section of your Babel config.\n\n`+getBabelShowConfigForHint(e)))},t.isLoose=isLoose,t.shouldTransform=function(e,t){let r=null,i=null,o=null,a=null,l=null;(0,n.hasOwnDecorators)(e.node)&&(r=e.get("decorators.0"));for(const t of e.get("body.body"))!r&&(0,n.hasOwnDecorators)(t.node)&&(r=t.get("decorators.0")),!i&&t.isClassProperty()&&(i=t),!o&&t.isClassPrivateProperty()&&(o=t),!a&&null!=t.isClassPrivateMethod&&t.isClassPrivateMethod()&&(a=t),!l&&null!=t.isStaticBlock&&t.isStaticBlock()&&(l=t);if(r&&o)throw o.buildCodeFrameError("Private fields in decorated classes are not supported yet.");if(r&&a)throw a.buildCodeFrameError("Private methods in decorated classes are not supported yet.");if(r&&!hasFeature(t,s.decorators))throw e.buildCodeFrameError('Decorators are not enabled.\nIf you are using ["@babel/plugin-proposal-decorators", { "version": "legacy" }], make sure it comes *before* "@babel/plugin-transform-class-properties" and enable loose mode, like so:\n\t["@babel/plugin-proposal-decorators", { "version": "legacy" }]\n\t["@babel/plugin-transform-class-properties", { "loose": true }]');if(a&&!hasFeature(t,s.privateMethods))throw a.buildCodeFrameError("Class private methods are not enabled. Please add `@babel/plugin-transform-private-methods` to your configuration.");if((i||o)&&!hasFeature(t,s.fields)&&!hasFeature(t,s.privateMethods))throw e.buildCodeFrameError("Class fields are not enabled. Please add `@babel/plugin-transform-class-properties` to your configuration.");if(l&&!hasFeature(t,s.staticBlocks))throw e.buildCodeFrameError("Static class blocks are not enabled. Please add `@babel/plugin-transform-class-static-block` to your configuration.");if(r||a||l)return!0;if((i||o)&&hasFeature(t,s.fields))return!0;return!1};var n=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js");const s=t.FEATURES=Object.freeze({fields:2,privateMethods:4,decorators:8,privateIn:16,staticBlocks:32}),i=new Map([[s.fields,"@babel/plugin-transform-class-properties"],[s.privateMethods,"@babel/plugin-transform-private-methods"],[s.privateIn,"@babel/plugin-transform-private-property-in-object"]]),o="@babel/plugin-class-features/featuresKey",a="@babel/plugin-class-features/looseKey";var l="@babel/plugin-class-features/looseLowPriorityKey/#__internal__@babel/preset-env__please-overwrite-loose-instead-of-throwing",canIgnoreLoose=function(e,t){return!!(e.get(l)&t)};function getBabelShowConfigForHint(e){let{filename:t}=e.opts;return t&&"unknown"!==t||(t="[name of the input file]"),`If you already set the same 'loose' mode for these plugins in your config, it's possible that they are enabled multiple times with different options.\nYou can re-run Babel with the BABEL_SHOW_CONFIG_FOR environment variable to show the loaded configuration:\n\tnpx cross-env BABEL_SHOW_CONFIG_FOR=${t} <your build command>\nSee https://babeljs.io/docs/configuration#print-effective-configs for more info.`}function hasFeature(e,t){return!!(e.get(o)&t)}function isLoose(e,t){return!!(e.get(a)&t)}function setLoose(e,t,r){r?e.set(a,e.get(a)|t):e.set(a,e.get(a)&~t),e.set(l,e.get(l)&~t)}},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-create-class-features-plugin/lib/fields.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildCheckInRHS=buildCheckInRHS,t.buildFieldsInitNodes=function(e,t,r,s,o,a,l,p,u,d){let h,m=0;const f=[],y=[];let b=!1;const g=[];let x=null;const v=n.types.isIdentifier(t)?()=>t:()=>(null!=h||(h=r[0].scope.generateUidIdentifierBasedOnNode(t)),h),E=null!=e?e:r[0].scope.generateUidIdentifier((null==d?void 0:d.name)||"Class");null!=e||(e=n.types.cloneNode(d));for(const t of r){t.isClassProperty()&&c.assertFieldTransformed(t);const r=!(null!=n.types.isStaticBlock&&n.types.isStaticBlock(t.node))&&t.node.static,h=!r,x=t.isPrivate(),T=!x,S=t.isProperty(),P=!S,_=null==t.isStaticBlock?void 0:t.isStaticBlock();if(r&&(m|=1),r||P&&x||_){new i.default({methodPath:t,constantSuper:u,file:o,refToPreserve:d,getSuperRef:v,getObjectRef:()=>(m|=2,r||_?E:n.types.memberExpression(E,n.types.identifier("prototype")))}).replace();replaceThisContext(t,E,d)&&(m|=2)}switch(b=!1,!0){case _:{const e=t.node.body;1===e.length&&n.types.isExpressionStatement(e[0])?f.push(inheritPropComments(e[0],t)):f.push(n.types.inheritsComments(n.template.statement.ast`(() => { ${e} })()`,t.node));break}case r&&x&&S&&l:f.push(buildPrivateFieldInitLoose(n.types.cloneNode(e),t,s));break;case r&&x&&S&&!l:newHelpers(o)?f.push(buildPrivateStaticFieldInitSpec(t,s,p)):f.push(buildPrivateStaticFieldInitSpecOld(t,s));break;case r&&T&&S&&a:if(!isNameOrLength(t.node)){f.push(buildPublicFieldInitLoose(n.types.cloneNode(e),t));break}case r&&T&&S&&!a:f.push(buildPublicFieldInitSpec(n.types.cloneNode(e),t,o));break;case h&&x&&S&&l:y.push(buildPrivateFieldInitLoose(n.types.thisExpression(),t,s));break;case h&&x&&S&&!l:y.push(buildPrivateInstanceFieldInitSpec(n.types.thisExpression(),t,s,o));break;case h&&x&&P&&l:y.unshift(buildPrivateMethodInitLoose(n.types.thisExpression(),t,s)),g.push(buildPrivateMethodDeclaration(o,t,s,l));break;case h&&x&&P&&!l:y.unshift(buildPrivateInstanceMethodInitSpec(n.types.thisExpression(),t,s,o)),g.push(buildPrivateMethodDeclaration(o,t,s,l));break;case r&&x&&P&&!l:newHelpers(o)||f.unshift(buildPrivateStaticFieldInitSpecOld(t,s)),g.push(buildPrivateMethodDeclaration(o,t,s,l));break;case r&&x&&P&&l:f.unshift(buildPrivateStaticMethodInitLoose(n.types.cloneNode(e),t,o,s)),g.push(buildPrivateMethodDeclaration(o,t,s,l));break;case h&&T&&S&&a:y.push(buildPublicFieldInitLoose(n.types.thisExpression(),t));break;case h&&T&&S&&!a:b=!0,y.push(buildPublicFieldInitSpec(n.types.thisExpression(),t,o));break;default:throw new Error("Unreachable.")}}2&m&&null!=d&&(x=n.types.expressionStatement(n.types.assignmentExpression("=",n.types.cloneNode(E),n.types.cloneNode(d))));return{staticNodes:f.filter(Boolean),instanceNodes:y.filter(Boolean),lastInstanceNodeReturnsThis:b,pureStaticNodes:g.filter(Boolean),classBindingNode:x,wrapClass(t){for(const e of r)e.node.leadingComments=null,e.remove();return h&&(t.scope.push({id:n.types.cloneNode(h)}),t.set("superClass",n.types.assignmentExpression("=",h,t.node.superClass))),0!==m&&(t.isClassExpression()?(t.scope.push({id:e}),t.replaceWith(n.types.assignmentExpression("=",n.types.cloneNode(e),t.node))):(null==d&&(t.node.id=e),null!=x&&t.scope.push({id:E}))),t}}},t.buildPrivateNamesMap=function(e,t,r,s){const i=new Map;let o;for(const a of r)if(a.isPrivate()){const{name:r}=a.node.key.id;let l=i.get(r);if(!l){const n=!a.isProperty(),p=a.node.static;let c,u=!1;!t&&newHelpers(s)&&n&&!p?(u=!!o,null!=o||(o=a.scope.generateUidIdentifier(`${e}_brand`)),c=o):c=a.scope.generateUidIdentifier(r),l={id:c,static:p,method:n,initAdded:u},i.set(r,l)}if(a.isClassPrivateMethod())if("get"===a.node.kind){const{body:e}=a.node.body;let t;1===e.length&&n.types.isReturnStatement(t=e[0])&&n.types.isCallExpression(t=t.argument)&&1===t.arguments.length&&n.types.isThisExpression(t.arguments[0])&&n.types.isIdentifier(t=t.callee)?(l.getId=n.types.cloneNode(t),l.getterDeclared=!0):l.getId=a.scope.generateUidIdentifier(`get_${r}`)}else if("set"===a.node.kind){const{params:e}=a.node,{body:t}=a.node.body;let s;1===t.length&&n.types.isExpressionStatement(s=t[0])&&n.types.isCallExpression(s=s.expression)&&2===s.arguments.length&&n.types.isThisExpression(s.arguments[0])&&n.types.isIdentifier(s.arguments[1],{name:e[0].name})&&n.types.isIdentifier(s=s.callee)?(l.setId=n.types.cloneNode(s),l.setterDeclared=!0):l.setId=a.scope.generateUidIdentifier(`set_${r}`)}else"method"===a.node.kind&&(l.methodId=a.scope.generateUidIdentifier(r));i.set(r,l)}return i},t.buildPrivateNamesNodes=function(e,t,r,s){const i=[],o=new Set;for(const[a,p]of e){const{static:e,method:c,getId:u,setId:d}=p,h=u||d,m=n.types.cloneNode(p.id);let f;if(t)f=n.types.callExpression(s.addHelper("classPrivateFieldLooseKey"),[n.types.stringLiteral(a)]);else if(r)f=n.types.callExpression(n.types.identifier("Symbol"),[n.types.stringLiteral(a)]);else if(!e){if(o.has(m.name))continue;o.add(m.name),f=n.types.newExpression(n.types.identifier(!c||h&&!newHelpers(s)?"WeakMap":"WeakSet"),[])}f&&(r||(0,l.default)(f),i.push(n.template.statement.ast`var ${m} = ${f}`))}return i},t.privateNameVisitorFactory=privateNameVisitorFactory,t.transformPrivateNamesUsage=function(e,t,r,{privateFieldsAsProperties:n,noUninitializedPrivateFieldAccess:s,noDocumentAll:i,innerBinding:a},l){if(!r.size)return;const p=t.get("body"),c=n?m:h;(0,o.default)(p,u,Object.assign({privateNamesMap:r,classRef:e,file:l},c,{noDocumentAll:i,noUninitializedPrivateFieldAccess:s,innerBinding:a})),p.traverse(d,{privateNamesMap:r,classRef:e,file:l,privateFieldsAsProperties:n,innerBinding:a})};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/index.js"),i=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-replace-supers/lib/index.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-member-expression-to-functions/lib/index.js"),a=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-optimise-call-expression/lib/index.js"),l=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-annotate-as-pure/lib/index.js"),p=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-skip-transparent-expression-wrappers/lib/index.js"),c=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js"),newHelpers=e=>e.availableHelper("classPrivateFieldGet2");function privateNameVisitorFactory(e){const t=s.visitors.environmentVisitor(Object.assign({},e)),r=Object.assign({},e,{Class(e){const{privateNamesMap:n}=this,s=e.get("body.body"),i=new Map(n),o=[];for(const e of s){if(!e.isPrivate())continue;const{name:t}=e.node.key.id;i.delete(t),o.push(t)}o.length&&(e.get("body").traverse(t,Object.assign({},this,{redeclared:o})),e.traverse(r,Object.assign({},this,{privateNamesMap:i})),e.skipKey("body"))}});return r}const u=privateNameVisitorFactory({PrivateName(e,{noDocumentAll:t}){const{privateNamesMap:r,redeclared:n}=this,{node:s,parentPath:i}=e;if(!i.isMemberExpression({property:s})&&!i.isOptionalMemberExpression({property:s}))return;const{name:o}=s.id;r.has(o)&&(null!=n&&n.includes(o)||this.handle(i,t))}});function unshadow(e,t,r){for(;null!=(n=t)&&n.hasBinding(e)&&!t.bindingIdentifierEquals(e,r);){var n;t.rename(e),t=t.parent}}function buildCheckInRHS(e,t,r){return r||null==t.availableHelper||!t.availableHelper("checkInRHS")?e:n.types.callExpression(t.addHelper("checkInRHS"),[e])}const d=privateNameVisitorFactory({BinaryExpression(e,{file:t}){const{operator:r,left:s,right:i}=e.node;if("in"!==r)return;if(!n.types.isPrivateName(s))return;const{privateFieldsAsProperties:o,privateNamesMap:a,redeclared:l}=this,{name:p}=s.id;if(!a.has(p))return;if(null!=l&&l.includes(p))return;if(unshadow(this.classRef.name,e.scope,this.innerBinding),o){const{id:r}=a.get(p);return void e.replaceWith(n.template.expression.ast`- Object.prototype.hasOwnProperty.call(${buildCheckInRHS(i,t)}, ${n.types.cloneNode(r)})- `)}const{id:c,static:u}=a.get(p);u?e.replaceWith(n.template.expression.ast`${buildCheckInRHS(i,t)} === ${n.types.cloneNode(this.classRef)}`):e.replaceWith(n.template.expression.ast`${n.types.cloneNode(c)}.has(${buildCheckInRHS(i,t)})`)}});function readOnlyError(e,t){return n.types.callExpression(e.addHelper("readOnlyError"),[n.types.stringLiteral(`#${t}`)])}function writeOnlyError(e,t){return e.availableHelper("writeOnlyError")?n.types.callExpression(e.addHelper("writeOnlyError"),[n.types.stringLiteral(`#${t}`)]):(console.warn("@babel/helpers is outdated, update it to silence this warning."),n.types.buildUndefinedNode())}function buildStaticPrivateFieldAccess(e,t){return t?e:n.types.memberExpression(e,n.types.identifier("_"))}function autoInherits(e){return function(t){return n.types.inherits(e.apply(this,arguments),t.node)}}const h={memoise(e,t){const{scope:r}=e,{object:n}=e.node,s=r.maybeGenerateMemoised(n);s&&this.memoiser.set(n,s,t)},receiver(e){const{object:t}=e.node;return this.memoiser.has(t)?n.types.cloneNode(this.memoiser.get(t)):n.types.cloneNode(t)},get:autoInherits(function(e){const{classRef:t,privateNamesMap:r,file:s,innerBinding:i,noUninitializedPrivateFieldAccess:o}=this,a=e.node.property,{name:l}=a.id,{id:p,static:c,method:u,methodId:d,getId:h,setId:m}=r.get(l),f=h||m,cloneId=e=>n.types.inherits(n.types.cloneNode(e),a);if(c){if(unshadow(t.name,e.scope,i),!newHelpers(s)){const r=u&&!f?"classStaticPrivateMethodGet":"classStaticPrivateFieldSpecGet";return n.types.callExpression(s.addHelper(r),[this.receiver(e),n.types.cloneNode(t),cloneId(p)])}const r=this.receiver(e),a=n.types.isIdentifier(r)&&r.name===t.name;if(!u)return buildStaticPrivateFieldAccess(a?cloneId(p):n.types.callExpression(s.addHelper("assertClassBrand"),[n.types.cloneNode(t),r,cloneId(p)]),o);if(h)return a?n.types.callExpression(cloneId(h),[r]):n.types.callExpression(s.addHelper("classPrivateGetter"),[n.types.cloneNode(t),r,cloneId(h)]);if(m){const e=n.types.buildUndefinedNode();return a?e:n.types.sequenceExpression([n.types.callExpression(s.addHelper("assertClassBrand"),[n.types.cloneNode(t),r]),e])}return a?cloneId(p):n.types.callExpression(s.addHelper("assertClassBrand"),[n.types.cloneNode(t),r,cloneId(p)])}return u?f?h?newHelpers(s)?n.types.callExpression(s.addHelper("classPrivateGetter"),[n.types.cloneNode(p),this.receiver(e),cloneId(h)]):n.types.callExpression(s.addHelper("classPrivateFieldGet"),[this.receiver(e),cloneId(p)]):n.types.sequenceExpression([this.receiver(e),writeOnlyError(s,l)]):newHelpers(s)?n.types.callExpression(s.addHelper("assertClassBrand"),[n.types.cloneNode(p),this.receiver(e),cloneId(d)]):n.types.callExpression(s.addHelper("classPrivateMethodGet"),[this.receiver(e),n.types.cloneNode(p),cloneId(d)]):newHelpers(s)?n.types.callExpression(s.addHelper("classPrivateFieldGet2"),[cloneId(p),this.receiver(e)]):n.types.callExpression(s.addHelper("classPrivateFieldGet"),[this.receiver(e),cloneId(p)])}),boundGet(e){return this.memoise(e,1),n.types.callExpression(n.types.memberExpression(this.get(e),n.types.identifier("bind")),[this.receiver(e)])},set:autoInherits(function(e,t){const{classRef:r,privateNamesMap:s,file:i,noUninitializedPrivateFieldAccess:o}=this,a=e.node.property,{name:l}=a.id,{id:p,static:c,method:u,setId:d,getId:h}=s.get(l),m=h||d,cloneId=e=>n.types.inherits(n.types.cloneNode(e),a);if(c){if(!newHelpers(i)){const s=u&&!m?"classStaticPrivateMethodSet":"classStaticPrivateFieldSpecSet";return n.types.callExpression(i.addHelper(s),[this.receiver(e),n.types.cloneNode(r),cloneId(p),t])}const s=this.receiver(e),a=n.types.isIdentifier(s)&&s.name===r.name;if(u&&!d){const e=readOnlyError(i,l);return a?n.types.sequenceExpression([t,e]):n.types.sequenceExpression([t,n.types.callExpression(i.addHelper("assertClassBrand"),[n.types.cloneNode(r),s]),readOnlyError(i,l)])}return d?a?n.types.callExpression(n.types.cloneNode(d),[s,t]):n.types.callExpression(i.addHelper("classPrivateSetter"),[n.types.cloneNode(r),cloneId(d),s,t]):n.types.assignmentExpression("=",buildStaticPrivateFieldAccess(cloneId(p),o),a?t:n.types.callExpression(i.addHelper("assertClassBrand"),[n.types.cloneNode(r),s,t]))}return u?d?newHelpers(i)?n.types.callExpression(i.addHelper("classPrivateSetter"),[n.types.cloneNode(p),cloneId(d),this.receiver(e),t]):n.types.callExpression(i.addHelper("classPrivateFieldSet"),[this.receiver(e),cloneId(p),t]):n.types.sequenceExpression([this.receiver(e),t,readOnlyError(i,l)]):newHelpers(i)?n.types.callExpression(i.addHelper("classPrivateFieldSet2"),[cloneId(p),this.receiver(e),t]):n.types.callExpression(i.addHelper("classPrivateFieldSet"),[this.receiver(e),cloneId(p),t])}),destructureSet(e){const{classRef:t,privateNamesMap:r,file:s,noUninitializedPrivateFieldAccess:i}=this,o=e.node.property,{name:a}=o.id,{id:l,static:p,method:c,setId:u}=r.get(a),cloneId=e=>n.types.inherits(n.types.cloneNode(e),o);if(!newHelpers(s)){if(p){try{var d=s.addHelper("classStaticPrivateFieldDestructureSet")}catch(e){throw new Error("Babel can not transpile `[C.#p] = [0]` with @babel/helpers < 7.13.10, \nplease update @babel/helpers to the latest version.")}return n.types.memberExpression(n.types.callExpression(d,[this.receiver(e),n.types.cloneNode(t),cloneId(l)]),n.types.identifier("value"))}return n.types.memberExpression(n.types.callExpression(s.addHelper("classPrivateFieldDestructureSet"),[this.receiver(e),cloneId(l)]),n.types.identifier("value"))}if(c&&!u)return n.types.memberExpression(n.types.sequenceExpression([e.node.object,readOnlyError(s,a)]),n.types.identifier("_"));if(p&&!c){const t=this.get(e);if(!i||!n.types.isCallExpression(t))return t;const r=t.arguments.pop();return t.arguments.push(n.template.expression.ast`(_) => ${r} = _`),n.types.memberExpression(n.types.callExpression(s.addHelper("toSetter"),[t]),n.types.identifier("_"))}const h=this.set(e,n.types.identifier("_"));if(!n.types.isCallExpression(h)||!n.types.isIdentifier(h.arguments[h.arguments.length-1],{name:"_"}))throw e.buildCodeFrameError("Internal Babel error while compiling this code. This is a Babel bug. Please report it at https://github.com/babel/babel/issues.");let m;return m=n.types.isMemberExpression(h.callee,{computed:!1})&&n.types.isIdentifier(h.callee.property)&&"call"===h.callee.property.name?[h.callee.object,n.types.arrayExpression(h.arguments.slice(1,-1)),h.arguments[0]]:[h.callee,n.types.arrayExpression(h.arguments.slice(0,-1))],n.types.memberExpression(n.types.callExpression(s.addHelper("toSetter"),m),n.types.identifier("_"))},call(e,t){return this.memoise(e,1),(0,a.default)(this.get(e),this.receiver(e),t,!1)},optionalCall(e,t){return this.memoise(e,1),(0,a.default)(this.get(e),this.receiver(e),t,!0)},delete(){throw new Error("Internal Babel error: deleting private elements is a parsing error.")}},m={get(e){const{privateNamesMap:t,file:r}=this,{object:s}=e.node,{name:i}=e.node.property.id;return n.template.expression`BASE(REF, PROP)[PROP]`({BASE:r.addHelper("classPrivateFieldLooseBase"),REF:n.types.cloneNode(s),PROP:n.types.cloneNode(t.get(i).id)})},set(){throw new Error("private name handler with loose = true don't need set()")},boundGet(e){return n.types.callExpression(n.types.memberExpression(this.get(e),n.types.identifier("bind")),[n.types.cloneNode(e.node.object)])},simpleSet(e){return this.get(e)},destructureSet(e){return this.get(e)},call(e,t){return n.types.callExpression(this.get(e),t)},optionalCall(e,t){return n.types.optionalCallExpression(this.get(e),t,!0)},delete(){throw new Error("Internal Babel error: deleting private elements is a parsing error.")}};function buildPrivateFieldInitLoose(e,t,r){const{id:s}=r.get(t.node.key.id.name),i=t.node.value||t.scope.buildUndefinedNode();return inheritPropComments(n.template.statement.ast`- Object.defineProperty(${e}, ${n.types.cloneNode(s)}, {- // configurable is false by default- // enumerable is false by default- writable: true,- value: ${i}- });- `,t)}function buildPrivateInstanceFieldInitSpec(e,t,r,s){const{id:i}=r.get(t.node.key.id.name),o=t.node.value||t.scope.buildUndefinedNode();if(!s.availableHelper("classPrivateFieldInitSpec"))return inheritPropComments(n.template.statement.ast`${n.types.cloneNode(i)}.set(${e}, {- // configurable is always false for private elements- // enumerable is always false for private elements- writable: true,- value: ${o},- })`,t);const a=s.addHelper("classPrivateFieldInitSpec");return inheritLoc(inheritPropComments(n.types.expressionStatement(n.types.callExpression(a,[n.types.thisExpression(),inheritLoc(n.types.cloneNode(i),t.node.key),newHelpers(s)?o:n.template.expression.ast`{ writable: true, value: ${o} }`])),t),t.node)}function buildPrivateStaticFieldInitSpec(e,t,r){const s=t.get(e.node.key.id.name),i=r?e.node.value:n.template.expression.ast`{- _: ${e.node.value||n.types.buildUndefinedNode()}- }`;return inheritPropComments(n.types.variableDeclaration("var",[n.types.variableDeclarator(n.types.cloneNode(s.id),i)]),e)}var buildPrivateStaticFieldInitSpecOld=function(e,t){const r=t.get(e.node.key.id.name),{id:s,getId:i,setId:o,initAdded:a}=r,l=i||o;if(!e.isProperty()&&(a||!l))return;if(l)return t.set(e.node.key.id.name,Object.assign({},r,{initAdded:!0})),inheritPropComments(n.template.statement.ast`- var ${n.types.cloneNode(s)} = {- // configurable is false by default- // enumerable is false by default- // writable is false by default- get: ${i?i.name:e.scope.buildUndefinedNode()},- set: ${o?o.name:e.scope.buildUndefinedNode()}- }- `,e);const p=e.node.value||e.scope.buildUndefinedNode();return inheritPropComments(n.template.statement.ast`- var ${n.types.cloneNode(s)} = {- // configurable is false by default- // enumerable is false by default- writable: true,- value: ${p}- };- `,e)};function buildPrivateMethodInitLoose(e,t,r){const s=r.get(t.node.key.id.name),{methodId:i,id:o,getId:a,setId:l,initAdded:p}=s;if(p)return;if(i)return inheritPropComments(n.template.statement.ast`- Object.defineProperty(${e}, ${o}, {- // configurable is false by default- // enumerable is false by default- // writable is false by default- value: ${i.name}- });- `,t);return a||l?(r.set(t.node.key.id.name,Object.assign({},s,{initAdded:!0})),inheritPropComments(n.template.statement.ast`- Object.defineProperty(${e}, ${o}, {- // configurable is false by default- // enumerable is false by default- // writable is false by default- get: ${a?a.name:t.scope.buildUndefinedNode()},- set: ${l?l.name:t.scope.buildUndefinedNode()}- });- `,t)):void 0}function buildPrivateInstanceMethodInitSpec(e,t,r,s){const i=r.get(t.node.key.id.name);if(!i.initAdded){if(!newHelpers(s)){if(i.getId||i.setId)return function(e,t,r,s){const i=r.get(t.node.key.id.name),{id:o,getId:a,setId:l}=i;if(r.set(t.node.key.id.name,Object.assign({},i,{initAdded:!0})),!s.availableHelper("classPrivateFieldInitSpec"))return inheritPropComments(n.template.statement.ast`- ${o}.set(${e}, {- get: ${a?a.name:t.scope.buildUndefinedNode()},- set: ${l?l.name:t.scope.buildUndefinedNode()}- });- `,t);const p=s.addHelper("classPrivateFieldInitSpec");return inheritLoc(inheritPropComments(n.template.statement.ast`${p}(- ${n.types.thisExpression()},- ${n.types.cloneNode(o)},- {- get: ${a?a.name:t.scope.buildUndefinedNode()},- set: ${l?l.name:t.scope.buildUndefinedNode()}- },- )`,t),t.node)}(e,t,r,s)}return function(e,t,r,s){const i=r.get(t.node.key.id.name),{id:o}=i;if(!s.availableHelper("classPrivateMethodInitSpec"))return inheritPropComments(n.template.statement.ast`${o}.add(${e})`,t);const a=s.addHelper("classPrivateMethodInitSpec");return inheritPropComments(n.template.statement.ast`${a}(- ${n.types.thisExpression()},- ${n.types.cloneNode(o)}- )`,t)}(e,t,r,s)}}function buildPublicFieldInitLoose(e,t){const{key:r,computed:s}=t.node,i=t.node.value||t.scope.buildUndefinedNode();return inheritPropComments(n.types.expressionStatement(n.types.assignmentExpression("=",n.types.memberExpression(e,r,s||n.types.isLiteral(r)),i)),t)}function buildPublicFieldInitSpec(e,t,r){const{key:s,computed:i}=t.node,o=t.node.value||t.scope.buildUndefinedNode();return inheritPropComments(n.types.expressionStatement(n.types.callExpression(r.addHelper("defineProperty"),[e,i||n.types.isLiteral(s)?s:n.types.stringLiteral(s.name),o])),t)}function buildPrivateStaticMethodInitLoose(e,t,r,s){const i=s.get(t.node.key.id.name),{id:o,methodId:a,getId:l,setId:p,initAdded:c}=i;if(c)return;return l||p?(s.set(t.node.key.id.name,Object.assign({},i,{initAdded:!0})),inheritPropComments(n.template.statement.ast`- Object.defineProperty(${e}, ${o}, {- // configurable is false by default- // enumerable is false by default- // writable is false by default- get: ${l?l.name:t.scope.buildUndefinedNode()},- set: ${p?p.name:t.scope.buildUndefinedNode()}- })- `,t)):inheritPropComments(n.template.statement.ast`- Object.defineProperty(${e}, ${o}, {- // configurable is false by default- // enumerable is false by default- // writable is false by default- value: ${a.name}- });- `,t)}function buildPrivateMethodDeclaration(e,t,r,s=!1){const i=r.get(t.node.key.id.name),{id:o,methodId:a,getId:l,setId:p,getterDeclared:c,setterDeclared:u,static:d}=i,{params:h,body:m,generator:y,async:b}=t.node,g=l&&0===h.length,x=p&&h.length>0;if(g&&c||x&&u)return r.set(t.node.key.id.name,Object.assign({},i,{initAdded:!0})),null;if(newHelpers(e)&&(g||x)&&!s){const e=t.get("body").scope,r=e.generateUidIdentifier("this"),s={thisRef:r,argumentsPath:[]};if(t.traverse(f,s),s.argumentsPath.length){const t=e.generateUidIdentifier("arguments");e.push({id:t,init:n.template.expression.ast`[].slice.call(arguments, 1)`});for(const e of s.argumentsPath)e.replaceWith(n.types.cloneNode(t))}h.unshift(n.types.cloneNode(r))}let v=a;return g?(r.set(t.node.key.id.name,Object.assign({},i,{getterDeclared:!0,initAdded:!0})),v=l):x?(r.set(t.node.key.id.name,Object.assign({},i,{setterDeclared:!0,initAdded:!0})),v=p):d&&!s&&(v=o),inheritPropComments(n.types.functionDeclaration(n.types.cloneNode(v),h,m,y,b),t)}const f=s.visitors.environmentVisitor({Identifier(e,t){t.argumentsPath&&"arguments"===e.node.name&&t.argumentsPath.push(e)},UnaryExpression(e){const{node:t}=e;if("delete"===t.operator){const r=(0,p.skipTransparentExprWrapperNodes)(t.argument);n.types.isThisExpression(r)&&e.replaceWith(n.types.booleanLiteral(!0))}},ThisExpression(e,t){t.needsClassRef=!0,e.replaceWith(n.types.cloneNode(t.thisRef))},MetaProperty(e){const{node:t,scope:r}=e;"new"===t.meta.name&&"target"===t.property.name&&e.replaceWith(r.buildUndefinedNode())}}),y={ReferencedIdentifier(e,t){e.scope.bindingIdentifierEquals(e.node.name,t.innerBinding)&&(t.needsClassRef=!0,e.node.name=t.thisRef.name)}};function replaceThisContext(e,t,r){var n;const s={thisRef:t,needsClassRef:!1,innerBinding:r};return e.isMethod()||e.traverse(f,s),null!=r&&null!=(n=s.thisRef)&&n.name&&s.thisRef.name!==r.name&&e.traverse(y,s),s.needsClassRef}function isNameOrLength({key:e,computed:t}){return"Identifier"===e.type?!t&&("name"===e.name||"length"===e.name):"StringLiteral"===e.type&&("name"===e.value||"length"===e.value)}function inheritPropComments(e,t){return n.types.inheritLeadingComments(e,t.node),n.types.inheritInnerComments(e,t.node),e}function inheritLoc(e,t){return e.start=t.start,e.end=t.end,e.loc=t.loc,e}},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-create-class-features-plugin/lib/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"FEATURES",{enumerable:!0,get:function(){return p.FEATURES}}),Object.defineProperty(t,"buildCheckInRHS",{enumerable:!0,get:function(){return i.buildCheckInRHS}}),Object.defineProperty(t,"buildNamedEvaluationVisitor",{enumerable:!0,get:function(){return o.buildNamedEvaluationVisitor}}),t.createClassFeaturePlugin=function({name:e,feature:t,loose:d,manipulateOptions:h,api:m,inherits:f,decoratorVersion:y}){var b;if(t&p.FEATURES.decorators&&("2023-11"===y||"2023-05"===y||"2023-01"===y||"2022-03"===y||"2021-12"===y))return(0,o.default)(m,{loose:d},y,f);null!=m||(m={assumption:()=>{}});const g=m.assumption("setPublicClassFields"),x=m.assumption("privateFieldsAsSymbols"),v=m.assumption("privateFieldsAsProperties"),E=null!=(b=m.assumption("noUninitializedPrivateFieldAccess"))&&b,T=m.assumption("constantSuper"),S=m.assumption("noDocumentAll");if(v&&x)throw new Error('Cannot enable both the "privateFieldsAsProperties" and "privateFieldsAsSymbols" assumptions as the same time.');const P=v||x;if(!0===d){const t=[];void 0!==g&&t.push('"setPublicClassFields"'),void 0!==v&&t.push('"privateFieldsAsProperties"'),void 0!==x&&t.push('"privateFieldsAsSymbols"'),0!==t.length&&console.warn(`[${e}]: You are using the "loose: true" option and you are explicitly setting a value for the ${t.join(" and ")} assumption${t.length>1?"s":""}. The "loose" option can cause incompatibilities with the other class features plugins, so it's recommended that you replace it with the following top-level option:\n\t"assumptions": {\n\t\t"setPublicClassFields": true,\n\t\t"privateFieldsAsSymbols": true\n\t}`)}return{name:e,manipulateOptions:h,inherits:f,pre(e){(0,p.enableFeature)(e,t,d),"number"!=typeof e.get(u)&&e.get(u)&&!s.lt(e.get(u),"7.29.3")||e.set(u,"7.29.3")},visitor:{Class(e,{file:s}){if("7.29.3"!==s.get(u))return;if(!(0,p.shouldTransform)(e,s))return;const d=e.isClassDeclaration();d&&(0,c.assertFieldTransformed)(e);const h=(0,p.isLoose)(s,t);let m;const f=(0,o.hasDecorators)(e.node),y=[],b=[],_=[],A=new Set,C=e.get("body");for(const e of C.get("body")){if((e.isClassProperty()||e.isClassMethod())&&e.node.computed&&_.push(e),e.isPrivate()){const{name:t}=e.node.key.id,r=`get ${t}`,n=`set ${t}`;if(e.isClassPrivateMethod()){if("get"===e.node.kind){if(A.has(r)||A.has(t)&&!A.has(n))throw e.buildCodeFrameError("Duplicate private field");A.add(r).add(t)}else if("set"===e.node.kind){if(A.has(n)||A.has(t)&&!A.has(r))throw e.buildCodeFrameError("Duplicate private field");A.add(n).add(t)}}else{if(A.has(t)&&!A.has(r)&&!A.has(n)||A.has(t)&&(A.has(r)||A.has(n)))throw e.buildCodeFrameError("Duplicate private field");A.add(t)}}e.isClassMethod({kind:"constructor"})?m=e:(b.push(e),(e.isProperty()||e.isPrivate()||null!=e.isStaticBlock&&e.isStaticBlock())&&y.push(e))}if(!y.length&&!f)return;const w=e.node.id;let I;w&&d||(null!=e.ensureFunctionName||(e.ensureFunctionName=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/index.js").NodePath.prototype.ensureFunctionName),e.ensureFunctionName(!1),I=e.scope.generateUidIdentifier((null==w?void 0:w.name)||"Class"));const D=null!=I?I:n.types.cloneNode(w),k=(0,i.buildPrivateNamesMap)(D.name,null!=P?P:h,y,s),N=(0,i.buildPrivateNamesNodes)(k,null!=v?v:h,null!=x&&x,s);let O,j,F,L,M,B,R;(0,i.transformPrivateNamesUsage)(D,e,k,{privateFieldsAsProperties:null!=P?P:h,noUninitializedPrivateFieldAccess:E,noDocumentAll:S,innerBinding:w},s),f?(j=M=O=[],({instanceNodes:F,wrapClass:R}=(0,a.buildDecoratedClass)(D,e,b,s))):(O=(0,l.extractComputedKeys)(e,_,s),({staticNodes:j,pureStaticNodes:M,instanceNodes:F,lastInstanceNodeReturnsThis:L,classBindingNode:B,wrapClass:R}=(0,i.buildFieldsInitNodes)(I,e.node.superClass,y,k,s,null!=g?g:h,null!=P?P:h,E,null!=T?T:h,w))),F.length>0&&(0,l.injectInitialization)(e,m,F,(e,t)=>{if(!f)for(const r of y)null!=n.types.isStaticBlock&&n.types.isStaticBlock(r.node)||r.node.static||r.traverse(e,t)},L);const U=R(e);U.insertBefore([...N,...O]),j.length>0&&U.insertAfter(j),M.length>0&&U.find(e=>e.isStatement()||e.isDeclaration()).insertAfter(M),null!=B&&d&&U.insertAfter(B)},ExportDefaultDeclaration(e,{file:t}){if("7.29.3"!==t.get(u))return;const n=e.get("declaration");n.isClassDeclaration()&&(0,o.hasDecorators)(n.node)&&(n.node.id?(null!=e.splitExportDeclaration||(e.splitExportDeclaration=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/index.js").NodePath.prototype.splitExportDeclaration),e.splitExportDeclaration()):n.node.type="ClassExpression")}}}},Object.defineProperty(t,"enableFeature",{enumerable:!0,get:function(){return p.enableFeature}}),Object.defineProperty(t,"injectInitialization",{enumerable:!0,get:function(){return l.injectInitialization}});var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/index.js"),s=r("./node_modules/.pnpm/[email protected]/node_modules/semver/semver.js"),i=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-create-class-features-plugin/lib/fields.js"),o=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js"),a=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-create-class-features-plugin/lib/decorators-2018-09.js"),l=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-create-class-features-plugin/lib/misc.js"),p=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-create-class-features-plugin/lib/features.js"),c=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js");const u="@babel/plugin-class-features/version"},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-create-class-features-plugin/lib/misc.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractComputedKeys=function(e,t,r){const{scope:s}=e,i=[],a={classBinding:e.node.id&&s.getBinding(e.node.id.name),file:r};for(const e of t){const t=e.get("key");t.isReferencedIdentifier()?handleClassTDZ(t,a):t.traverse(o,a);const r=e.node;if(!t.isConstantExpression()){const e=memoiseComputedKey(t.node,s,s.generateUidBasedOnNode(t.node));e&&(i.push(n.types.expressionStatement(e)),r.key=n.types.cloneNode(e.left))}}return i},t.injectInitialization=function(e,t,r,o,a){if(!r.length)return;const l=!!e.node.superClass;if(!t){const r=n.types.classMethod("constructor",n.types.identifier("constructor"),[],n.types.blockStatement([]));l&&(r.params=[n.types.restElement(n.types.identifier("args"))],r.body.body.push(n.template.statement.ast`super(...args)`)),[t]=e.get("body").unshiftContainer("body",r)}o&&o(i,{scope:t.scope});if(l){const e=[];t.traverse(s,e);let i=!0;for(const t of e)if(i?i=!1:r=r.map(e=>n.types.cloneNode(e)),t.parentPath.isExpressionStatement())t.insertAfter(r);else{const e=[t.node,...r.map(e=>n.types.toExpression(e))];a||e.push(n.types.thisExpression()),t.replaceWith(n.types.sequenceExpression(e))}}else t.get("body").unshiftContainer("body",r)},t.memoiseComputedKey=memoiseComputedKey;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/index.js");const s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/index.js").visitors.environmentVisitor({Super(e){const{node:t,parentPath:r}=e;r.isCallExpression({callee:t})&&this.push(r)}}),i={"TSTypeAnnotation|TypeAnnotation"(e){e.skip()},ReferencedIdentifier(e,{scope:t}){t.hasOwnBinding(e.node.name)&&(t.rename(e.node.name),e.skip())}};function handleClassTDZ(e,t){if(t.classBinding&&t.classBinding===e.scope.getBinding(e.node.name)){const r=t.file.addHelper("classNameTDZError"),s=n.types.callExpression(r,[n.types.stringLiteral(e.node.name)]);e.replaceWith(n.types.sequenceExpression([s,e.node])),e.skip()}}const o={ReferencedIdentifier:handleClassTDZ,"TSTypeAnnotation|TypeAnnotation"(e){e.skip()}};function memoiseComputedKey(e,t,r){if(n.types.isIdentifier(e)&&t.hasUid(e.name))return;if(n.types.isAssignmentExpression(e,{operator:"="})&&n.types.isIdentifier(e.left)&&t.hasUid(e.left.name))return n.types.cloneNode(e);{const s=n.types.identifier(r);return t.push({id:s,kind:"let"}),n.types.assignmentExpression("=",n.types.cloneNode(s),e)}}},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertFieldTransformed=function(e){if(e.node.declare)throw e.buildCodeFrameError("TypeScript 'declare' fields must first be transformed by @babel/plugin-transform-typescript.\nIf you have already enabled that plugin (or '@babel/preset-typescript'), make sure that it runs before any plugin related to additional class features:\n - @babel/plugin-transform-class-properties\n - @babel/plugin-transform-private-methods\n - @babel/plugin-proposal-decorators")}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-member-expression-to-functions/lib/index.js"(e,t,r){"use strict";function _interopNamespace(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}Object.defineProperty(t,"__esModule",{value:!0});var n=_interopNamespace(r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"));function willPathCastToBoolean(e){const t=e,{node:r,parentPath:n}=t;if(n.isLogicalExpression()){const{operator:e,right:t}=n.node;if("&&"===e||"||"===e||"??"===e&&r===t)return willPathCastToBoolean(n)}if(n.isSequenceExpression()){const{expressions:e}=n.node;return e[e.length-1]!==r||willPathCastToBoolean(n)}return n.isConditional({test:r})||n.isUnaryExpression({operator:"!"})||n.isForStatement({test:r})||n.isWhile({test:r})}const{LOGICAL_OPERATORS:s,arrowFunctionExpression:i,assignmentExpression:o,binaryExpression:a,booleanLiteral:l,callExpression:p,cloneNode:c,conditionalExpression:u,identifier:d,isMemberExpression:h,isOptionalCallExpression:m,isOptionalMemberExpression:f,isUpdateExpression:y,logicalExpression:b,memberExpression:g,nullLiteral:x,optionalCallExpression:v,optionalMemberExpression:E,sequenceExpression:T,updateExpression:S}=n;class AssignmentMemoiser{constructor(){this._map=void 0,this._map=new WeakMap}has(e){return this._map.has(e)}get(e){if(!this.has(e))return;const t=this._map.get(e),{value:r}=t;return t.count--,0===t.count?o("=",r,e):r}set(e,t,r){return this._map.set(e,{count:r,value:t})}}function toNonOptional(e,t){const{node:r}=e;if(f(r))return g(t,r.property,r.computed);if(e.isOptionalCallExpression()){const r=e.get("callee");if(e.node.optional&&r.isOptionalMemberExpression()){const n=r.node.object,s=e.scope.maybeGenerateMemoised(n);return r.get("object").replaceWith(o("=",s,n)),p(g(t,d("call")),[s,...e.node.arguments])}return p(t,e.node.arguments)}return e.node}const P={memoise(){},handle(e,t){const{node:r,parent:n,parentPath:s,scope:g}=e;if(e.isOptionalMemberExpression()){if(function(e){for(;e&&!e.isProgram();){const{parentPath:t,container:r,listKey:n}=e,s=t.node;if(n){if(r!==s[n])return!0}else if(r!==s)return!0;e=t}return!1}(e))return;const y=e.find(({node:t,parent:r})=>f(r)?r.optional||r.object!==t:!m(r)||(t!==e.node&&r.optional||r.callee!==t));if(g.path.isPattern())return void y.replaceWith(p(i([],y.node),[]));const T=willPathCastToBoolean(y),S=y.parentPath;if(S.isUpdateExpression({argument:r}))throw e.buildCodeFrameError("can't handle update expression");const P=S.isAssignmentExpression({left:y.node}),_=S.isUnaryExpression({operator:"delete"});if(_&&y.isOptionalMemberExpression()&&y.get("property").isPrivateName())throw e.buildCodeFrameError("can't delete a private class element");let A=e;for(;;)if(A.isOptionalMemberExpression()){if(A.node.optional)break;A=A.get("object")}else{if(!A.isOptionalCallExpression())throw new Error(`Internal error: unexpected ${A.node.type}`);if(A.node.optional)break;A=A.get("callee")}const C=A.isOptionalMemberExpression()?A.node.object:A.node.callee,w=g.maybeGenerateMemoised(C),I=null!=w?w:C,D=s.isOptionalCallExpression({callee:r}),isOptionalCall=e=>D,k=s.isCallExpression({callee:r});A.replaceWith(toNonOptional(A,I)),isOptionalCall()?n.optional?s.replaceWith(this.optionalCall(e,n.arguments)):s.replaceWith(this.call(e,n.arguments)):k?e.replaceWith(this.boundGet(e)):this.delete&&s.isUnaryExpression({operator:"delete"})?s.replaceWith(this.delete(e)):s.isAssignmentExpression()?handleAssignment(this,e,s):e.replaceWith(this.get(e));let N,O=e.node;for(let t=e;t!==y;){const e=t.parentPath;if(e===y&&isOptionalCall()&&n.optional){O=e.node;break}O=toNonOptional(e,O),t=e}const j=y.parentPath;if(h(O)&&j.isOptionalCallExpression({callee:y.node,optional:!0})){const{object:t}=O;N=e.scope.maybeGenerateMemoised(t),N&&(O.object=o("=",N,t))}let F=y;(_||P)&&(F=j,O=j.node);const L=w?o("=",c(I),c(C)):c(I);if(T){let e;e=t?a("!=",L,x()):b("&&",a("!==",L,x()),a("!==",c(I),g.buildUndefinedNode())),F.replaceWith(b("&&",e,O))}else{let e;e=t?a("==",L,x()):b("||",a("===",L,x()),a("===",c(I),g.buildUndefinedNode())),F.replaceWith(u(e,_?l(!0):g.buildUndefinedNode(),O))}if(N){const e=j.node;j.replaceWith(v(E(e.callee,d("call"),!1,!0),[c(N),...e.arguments],!1))}return}if(y(n,{argument:r})){if(this.simpleSet)return void e.replaceWith(this.simpleSet(e));const{operator:t,prefix:i}=n;this.memoise(e,2);const a=g.generateUidIdentifierBasedOnNode(r);g.push({id:a});const l=[o("=",c(a),this.get(e))];if(i){l.push(S(t,c(a),i));const r=T(l);return void s.replaceWith(this.set(e,r))}{const n=g.generateUidIdentifierBasedOnNode(r);g.push({id:n}),l.push(o("=",c(n),S(t,c(a),i)),c(a));const p=T(l);return void s.replaceWith(T([this.set(e,p),c(n)]))}}if(s.isAssignmentExpression({left:r}))handleAssignment(this,e,s);else{if(!s.isCallExpression({callee:r}))return s.isOptionalCallExpression({callee:r})?g.path.isPattern()?void s.replaceWith(p(i([],s.node),[])):void s.replaceWith(this.optionalCall(e,s.node.arguments)):void(this.delete&&s.isUnaryExpression({operator:"delete"})?s.replaceWith(this.delete(e)):s.isForXStatement({left:r})||s.isObjectProperty({value:r})&&s.parentPath.isObjectPattern()||s.isAssignmentPattern({left:r})&&s.parentPath.isObjectProperty({value:n})&&s.parentPath.parentPath.isObjectPattern()||s.isArrayPattern()||s.isAssignmentPattern({left:r})&&s.parentPath.isArrayPattern()||s.isRestElement()?e.replaceWith(this.destructureSet(e)):s.isTaggedTemplateExpression()?e.replaceWith(this.boundGet(e)):e.replaceWith(this.get(e)));s.replaceWith(this.call(e,s.node.arguments))}}};function handleAssignment(e,t,r){if(e.simpleSet)return void t.replaceWith(e.simpleSet(t));const{operator:n,right:i}=r.node;if("="===n)r.replaceWith(e.set(t,i));else{const o=n.slice(0,-1);s.includes(o)?(e.memoise(t,1),r.replaceWith(b(o,e.get(t),e.set(t,i)))):(e.memoise(t,2),r.replaceWith(e.set(t,a(o,e.get(t),i))))}}t.default=function(e,t,r){e.traverse(t,Object.assign({},P,r,{memoiser:new AssignmentMemoiser}))}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-module-imports/lib/import-builder.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("assert"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js");const{callExpression:i,cloneNode:o,expressionStatement:a,identifier:l,importDeclaration:p,importDefaultSpecifier:c,importNamespaceSpecifier:u,importSpecifier:d,memberExpression:h,stringLiteral:m,variableDeclaration:f,variableDeclarator:y}=s;t.default=class{constructor(e,t,r){this._statements=[],this._resultName=null,this._importedSource=void 0,this._scope=t,this._hub=r,this._importedSource=e}done(){return{statements:this._statements,resultName:this._resultName}}import(){return this._statements.push(p([],m(this._importedSource))),this}require(){return this._statements.push(a(i(l("require"),[m(this._importedSource)]))),this}namespace(e="namespace"){const t=this._scope.generateUidIdentifier(e),r=this._statements[this._statements.length-1];return n("ImportDeclaration"===r.type),n(0===r.specifiers.length),r.specifiers=[u(t)],this._resultName=o(t),this}default(e){const t=this._scope.generateUidIdentifier(e),r=this._statements[this._statements.length-1];return n("ImportDeclaration"===r.type),n(0===r.specifiers.length),r.specifiers=[c(t)],this._resultName=o(t),this}named(e,t){if("default"===t)return this.default(e);const r=this._scope.generateUidIdentifier(e),s=this._statements[this._statements.length-1];return n("ImportDeclaration"===s.type),n(0===s.specifiers.length),s.specifiers=[d(r,l(t))],this._resultName=o(r),this}var(e){const t=this._scope.generateUidIdentifier(e);let r=this._statements[this._statements.length-1];return"ExpressionStatement"!==r.type&&(n(this._resultName),r=a(this._resultName),this._statements.push(r)),this._statements[this._statements.length-1]=f("var",[y(t,r.expression)]),this._resultName=o(t),this}defaultInterop(){return this._interop(this._hub.addHelper("interopRequireDefault"))}wildcardInterop(){return this._interop(this._hub.addHelper("interopRequireWildcard"))}_interop(e){const t=this._statements[this._statements.length-1];return"ExpressionStatement"===t.type?t.expression=i(e,[t.expression]):"VariableDeclaration"===t.type?(n(1===t.declarations.length),t.declarations[0].init=i(e,[t.declarations[0].init])):n.fail("Unexpected type."),this}prop(e){const t=this._statements[this._statements.length-1];return"ExpressionStatement"===t.type?t.expression=h(t.expression,l(e)):"VariableDeclaration"===t.type?(n(1===t.declarations.length),t.declarations[0].init=h(t.declarations[0].init,l(e))):n.fail("Unexpected type:"+t.type),this}read(e){this._resultName=h(this._resultName,l(e))}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-module-imports/lib/import-injector.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("assert"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-module-imports/lib/import-builder.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-module-imports/lib/is-module.js");const{identifier:a,importSpecifier:l,numericLiteral:p,sequenceExpression:c,isImportDeclaration:u}=s;function isValueImport(e){return"type"!==e.importKind&&"typeof"!==e.importKind}function hasNamespaceImport(e){return 1===e.specifiers.length&&"ImportNamespaceSpecifier"===e.specifiers[0].type||2===e.specifiers.length&&"ImportNamespaceSpecifier"===e.specifiers[1].type}function hasDefaultImport(e){return e.specifiers.length>0&&"ImportDefaultSpecifier"===e.specifiers[0].type}function maybeAppendImportSpecifiers(e,t){return e.specifiers.length?!t.specifiers.length||!hasNamespaceImport(e)&&!hasNamespaceImport(t)&&(hasDefaultImport(t)&&(hasDefaultImport(e)?t.specifiers[0]=l(t.specifiers[0].local,a("default")):e.specifiers.unshift(t.specifiers.shift())),e.specifiers.push(...t.specifiers),!0):(e.specifiers=t.specifiers,!0)}t.default=class{constructor(e,t,r){this._defaultOpts={importedSource:null,importedType:"commonjs",importedInterop:"babel",importingInterop:"babel",ensureLiveReference:!1,ensureNoContext:!1,importPosition:"before"};const n=e.find(e=>e.isProgram());this._programPath=n,this._programScope=n.scope,this._hub=n.hub,this._defaultOpts=this._applyDefaults(t,r,!0)}addDefault(e,t){return this.addNamed("default",e,t)}addNamed(e,t,r){return n("string"==typeof e),this._generateImport(this._applyDefaults(t,r),e)}addNamespace(e,t){return this._generateImport(this._applyDefaults(e,t),null)}addSideEffect(e,t){return this._generateImport(this._applyDefaults(e,t),void 0)}_applyDefaults(e,t,r=!1){let s;return"string"==typeof e?s=Object.assign({},this._defaultOpts,{importedSource:e},t):(n(!t,"Unexpected secondary arguments."),s=Object.assign({},this._defaultOpts,e)),!r&&t&&(void 0!==t.nameHint&&(s.nameHint=t.nameHint),void 0!==t.blockHoist&&(s.blockHoist=t.blockHoist)),s}_generateImport(e,t){const r="default"===t,n=!!t&&!r,s=null===t,{importedSource:a,importedType:l,importedInterop:u,importingInterop:d,ensureLiveReference:h,ensureNoContext:m,nameHint:f,importPosition:y,blockHoist:b}=e;let g=f||t;const x=(0,o.default)(this._programPath),v=x&&"node"===d,E=x&&"babel"===d;if("after"===y&&!x)throw new Error('"importPosition": "after" is only supported in modules');const T=new i.default(a,this._programScope,this._hub);if("es6"===l){if(!v&&!E)throw new Error("Cannot import an ES6 module from CommonJS");T.import(),s?T.namespace(f||a):(r||n)&&T.named(g,t)}else{if("commonjs"!==l)throw new Error(`Unexpected interopType "${l}"`);if("babel"===u)if(v){g="default"!==g?g:a;const e=`${a}$es6Default`;T.import(),s?T.default(e).var(g||a).wildcardInterop():r?h?T.default(e).var(g||a).defaultInterop().read("default"):T.default(e).var(g).defaultInterop().prop(t):n&&T.default(e).read(t)}else E?(T.import(),s?T.namespace(g||a):(r||n)&&T.named(g,t)):(T.require(),s?T.var(g||a).wildcardInterop():(r||n)&&h?r?(g="default"!==g?g:a,T.var(g).read(t),T.defaultInterop()):T.var(a).read(t):r?T.var(g).defaultInterop().prop(t):n&&T.var(g).prop(t));else if("compiled"===u)v?(T.import(),s?T.default(g||a):(r||n)&&T.default(a).read(g)):E?(T.import(),s?T.namespace(g||a):(r||n)&&T.named(g,t)):(T.require(),s?T.var(g||a):(r||n)&&(h?T.var(a).read(g):T.prop(t).var(g)));else{if("uncompiled"!==u)throw new Error(`Unknown importedInterop "${u}".`);if(r&&h)throw new Error("No live reference for commonjs default");v?(T.import(),s?T.default(g||a):r?T.default(g):n&&T.default(a).read(g)):E?(T.import(),s?T.default(g||a):r?T.default(g):n&&T.named(g,t)):(T.require(),s?T.var(g||a):r?T.var(g):n&&(h?T.var(a).read(g):T.var(g).prop(t)))}}const{statements:S,resultName:P}=T.done();return this._insertStatements(S,y,b),(r||n)&&m&&"Identifier"!==P.type?c([p(0),P]):P}_insertStatements(e,t="before",r=3){if("after"===t){if(this._insertStatementsAfter(e))return}else if(this._insertStatementsBefore(e,r))return;this._programPath.unshiftContainer("body",e)}_insertStatementsBefore(e,t){if(1===e.length&&u(e[0])&&isValueImport(e[0])){const t=this._programPath.get("body").find(e=>e.isImportDeclaration()&&isValueImport(e.node));if((null==t?void 0:t.node.source.value)===e[0].source.value&&maybeAppendImportSpecifiers(t.node,e[0]))return!0}e.forEach(e=>{e._blockHoist=t});const r=this._programPath.get("body").find(e=>{const t=e.node._blockHoist;return Number.isFinite(t)&&t<4});return!!r&&(r.insertBefore(e),!0)}_insertStatementsAfter(e){const t=new Set(e),r=new Map;for(const t of e)if(u(t)&&isValueImport(t)){const e=t.source.value;r.has(e)||r.set(e,[]),r.get(e).push(t)}let n=null;for(const e of this._programPath.get("body"))if(e.isImportDeclaration()&&isValueImport(e.node)){n=e;const s=e.node.source.value,i=r.get(s);if(!i)continue;for(const r of i)t.has(r)&&maybeAppendImportSpecifiers(e.node,r)&&t.delete(r)}return 0===t.size||(n&&n.insertAfter(Array.from(t)),!!n)}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-module-imports/lib/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImportInjector",{enumerable:!0,get:function(){return n.default}}),t.addDefault=function(e,t,r){return new n.default(e).addDefault(t,r)},t.addNamed=function(e,t,r,s){return new n.default(e).addNamed(t,r,s)},t.addNamespace=function(e,t,r){return new n.default(e).addNamespace(t,r)},t.addSideEffect=function(e,t,r){return new n.default(e).addSideEffect(t,r)},Object.defineProperty(t,"isModule",{enumerable:!0,get:function(){return s.default}});var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-module-imports/lib/import-injector.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-module-imports/lib/is-module.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-module-imports/lib/is-module.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"module"===e.node.sourceType}},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-module-transforms/lib/dynamic-import.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildDynamicImport=function(e,t,r,s){const i=n.types.isCallExpression(e)?e.arguments[0]:e.source;if(n.types.isStringLiteral(i)||n.types.isTemplateLiteral(i)&&0===i.quasis.length)return t?n.template.expression.ast`- Promise.resolve().then(() => ${s(i)})- `:s(i);const o=n.types.isTemplateLiteral(i)?n.types.identifier("specifier"):n.types.templateLiteral([n.types.templateElement({raw:""}),n.types.templateElement({raw:""})],[n.types.identifier("specifier")]);return t?n.template.expression.ast`- (specifier =>- new Promise(r => r(${o}))- .then(s => ${s(n.types.identifier("s"))})- )(${i})- `:r?n.template.expression.ast`- (specifier =>- new Promise(r => r(${s(o)}))- )(${i})- `:n.template.expression.ast`- (specifier => ${s(o)})(${i})- `};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/index.js");t.getDynamicImportSource=function(e){const[t]=e.arguments;return n.types.isStringLiteral(t)||n.types.isTemplateLiteral(t)?t:n.template.expression.ast`\`\${${t}}\``}},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-module-transforms/lib/get-module-name.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=getModuleName;const r=getModuleName;function getModuleName(e,t){const{filename:r,filenameRelative:n=r,sourceRoot:s=t.moduleRoot}=e,{moduleId:i,moduleIds:o=!!i,getModuleId:a,moduleRoot:l=s}=t;if(!o)return null;if(null!=i&&!a)return i;let p=null!=l?l+"/":"";if(n){const e=null!=s?new RegExp("^"+s+"/?"):"";p+=n.replace(e,"").replace(/\.\w*$/,"")}return p=p.replace(/\\/g,"/"),a&&a(p)||p}t.default=getModuleName=function(e,t){var n,s,i,o;return r(e,{moduleId:null!=(n=t.moduleId)?n:e.moduleId,moduleIds:null!=(s=t.moduleIds)?s:e.moduleIds,getModuleId:null!=(i=t.getModuleId)?i:e.getModuleId,moduleRoot:null!=(o=t.moduleRoot)?o:e.moduleRoot})}},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-module-transforms/lib/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"buildDynamicImport",{enumerable:!0,get:function(){return c.buildDynamicImport}}),t.buildNamespaceInitStatements=function(e,t,r=!1,n=p.wrapReference){var i;const o=[],a=s.types.identifier(t.name);for(const e of t.importsNamespace)e!==t.name&&o.push(s.template.statement`var NAME = SOURCE;`({NAME:e,SOURCE:s.types.cloneNode(a)}));const l=null!=(i=n(a,t.wrap))?i:a;r&&o.push(...buildReexportsFromMeta(e,t,!0,n));for(const r of t.reexportNamespace)o.push((s.types.isIdentifier(l)?s.template.statement`EXPORTS.NAME = NAMESPACE;`:s.template.statement`- Object.defineProperty(EXPORTS, "NAME", {- enumerable: true,- get: function() {- return NAMESPACE;- }- });- `)({EXPORTS:e.exportName,NAME:r,NAMESPACE:s.types.cloneNode(l)}));if(t.reexportAll){const n=function(e,t,r){return(r?s.template.statement`- Object.keys(NAMESPACE).forEach(function(key) {- if (key === "default" || key === "__esModule") return;- VERIFY_NAME_LIST;- if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;-- EXPORTS[key] = NAMESPACE[key];- });- `:s.template.statement`- Object.keys(NAMESPACE).forEach(function(key) {- if (key === "default" || key === "__esModule") return;- VERIFY_NAME_LIST;- if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;-- Object.defineProperty(EXPORTS, key, {- enumerable: true,- get: function() {- return NAMESPACE[key];- },- });- });- `)({NAMESPACE:t,EXPORTS:e.exportName,VERIFY_NAME_LIST:e.exportNameListName?s.template`- if (Object.prototype.hasOwnProperty.call(EXPORTS_LIST, key)) return;- `({EXPORTS_LIST:e.exportNameListName}):null})}(e,s.types.cloneNode(l),r);n.loc=t.reexportAll.loc,o.push(n)}return o},t.ensureStatementsHoisted=function(e){e.forEach(e=>{e._blockHoist=3})},Object.defineProperty(t,"getModuleName",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"hasExports",{enumerable:!0,get:function(){return l.hasExports}}),Object.defineProperty(t,"isModule",{enumerable:!0,get:function(){return i.isModule}}),Object.defineProperty(t,"isSideEffectImport",{enumerable:!0,get:function(){return l.isSideEffectImport}}),t.rewriteModuleStatementsAndPrepareHeader=function(e,{exportName:t,strict:r,allowTopLevelThis:c,strictMode:u,noInterop:d,importInterop:h=(d?"none":"babel"),lazy:m,getWrapperPayload:f=p.toGetWrapperPayload(null!=m&&m),wrapReference:y=p.wrapReference,esNamespaceOnly:b,filename:g,constantReexports:x=arguments[1].loose,enumerableModuleMeta:v=arguments[1].loose,noIncompleteNsImportDetection:E}){(0,l.validateImportInteropOption)(h),n((0,i.isModule)(e),"Cannot process module statements in a script"),e.node.sourceType="script";const T=(0,l.default)(e,t,{importInterop:h,initializeReexports:x,getWrapperPayload:f,esNamespaceOnly:b,filename:g});c||(0,o.default)(e);if((0,a.default)(e,T,y),!1!==u){e.node.directives.some(e=>"use strict"===e.value.value)||e.unshiftContainer("directives",s.types.directive(s.types.directiveLiteral("use strict")))}const S=[];(0,l.hasExports)(T)&&!r&&S.push(function(e,t=!1){return(t?s.template.statement`- EXPORTS.__esModule = true;- `:s.template.statement`- Object.defineProperty(EXPORTS, "__esModule", {- value: true,- });- `)({EXPORTS:e.exportName})}(T,v));const P=function(e,t){const r=Object.create(null);for(const e of t.local.values())for(const t of e.names)r[t]=!0;let n=!1;for(const e of t.source.values()){for(const t of e.reexports.keys())r[t]=!0;for(const t of e.reexportNamespace)r[t]=!0;n=n||!!e.reexportAll}if(!n||0===Object.keys(r).length)return null;const i=e.scope.generateUidIdentifier("exportNames");return delete r.default,{name:i.name,statement:s.types.variableDeclaration("var",[s.types.variableDeclarator(i,s.types.valueToNode(r))])}}(e,T);P&&(T.exportNameListName=P.name,S.push(P.statement));return S.push(...function(e,t,r,n=!1,i=!1){const o=[];for(const[e,r]of t.local)if("import"===r.kind);else if("hoisted"===r.kind)o.push([r.names[0],buildInitStatement(t,r.names,s.types.identifier(e))]);else if(!i)for(const e of r.names)o.push([e,null]);for(const e of t.source.values()){if(!n){const n=buildReexportsFromMeta(t,e,!1,r),s=[...e.reexports.keys()];for(let e=0;e<n.length;e++)o.push([s[e],n[e]])}if(!i)for(const t of e.reexportNamespace)o.push([t,null])}o.sort(([e],[t])=>e<t?-1:t<e?1:0);const a=[];if(i)for(const[,e]of o)a.push(e);else{const r=100;for(let n=0;n<o.length;n+=r){let s=[];for(let i=0;i<r&&n+i<o.length;i++){const[r,l]=o[n+i];null!==l?(s.length>0&&(a.push(buildInitStatement(t,s,e.scope.buildUndefinedNode())),s=[]),a.push(l)):s.push(r)}s.length>0&&a.push(buildInitStatement(t,s,e.scope.buildUndefinedNode()))}}return a}(e,T,y,x,E)),{meta:T,headers:S}},Object.defineProperty(t,"rewriteThis",{enumerable:!0,get:function(){return o.default}}),t.wrapInterop=function(e,t,r){if("none"===r)return null;if("node-namespace"===r)return s.types.callExpression(e.hub.addHelper("interopRequireWildcard"),[t,s.types.booleanLiteral(!0)]);if("node-default"===r)return null;let n;if("default"===r)n="interopRequireDefault";else{if("namespace"!==r)throw new Error(`Unknown interop: ${r}`);n="interopRequireWildcard"}return s.types.callExpression(e.hub.addHelper(n),[t])};var n=r("assert"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/index.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-module-imports/lib/index.js"),o=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js"),a=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js"),l=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js"),p=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-module-transforms/lib/lazy-modules.js"),c=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-module-transforms/lib/dynamic-import.js"),u=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-module-transforms/lib/get-module-name.js");t.getDynamicImportSource=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-module-transforms/lib/dynamic-import.js").getDynamicImportSource;const ReexportTemplate_constant=({exports:e,exportName:t,namespaceImport:r})=>s.template.statement.ast`- ${e}.${t} = ${r};- `,ReexportTemplate_constantComputed=({exports:e,exportName:t,namespaceImport:r})=>s.template.statement.ast`- ${e}["${t}"] = ${r};- `,ReexportTemplate_spec=({exports:e,exportName:t,namespaceImport:r})=>s.template.statement.ast`- Object.defineProperty(${e}, "${t}", {- enumerable: true,- get: function() {- return ${r};- },- });- `;function buildReexportsFromMeta(e,t,r,n){var i;let o=s.types.identifier(t.name);o=null!=(i=n(o,t.wrap))?i:o;const{stringSpecifiers:a}=e;return Array.from(t.reexports,([n,i])=>{let l=s.types.cloneNode(o);"default"===i&&"node-default"===t.interop||(l=a.has(i)?s.types.memberExpression(l,s.types.stringLiteral(i),!0):s.types.memberExpression(l,s.types.identifier(i)));const p={exports:e.exportName,exportName:n,namespaceImport:l};return r||s.types.isIdentifier(l)?a.has(n)?ReexportTemplate_constantComputed(p):ReexportTemplate_constant(p):ReexportTemplate_spec(p)})}const InitTemplate_computed=({exports:e,name:t,value:r})=>s.template.expression.ast`${e}["${t}"] = ${r}`,InitTemplate_default=({exports:e,name:t,value:r})=>s.template.expression.ast`${e}.${t} = ${r}`,InitTemplate_define=({exports:e,name:t,value:r})=>s.template.expression.ast`- Object.defineProperty(${e}, "${t}", {- enumerable: true,- value: void 0,- writable: true- })["${t}"] = ${r}`;function buildInitStatement(e,t,r){const{stringSpecifiers:n,exportName:i}=e;return s.types.expressionStatement(t.reduce((e,t)=>{const r={exports:i,name:t,value:e};return"__proto__"===t?InitTemplate_define(r):n.has(t)?InitTemplate_computed(r):InitTemplate_default(r)},r))}},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-module-transforms/lib/lazy-modules.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toGetWrapperPayload=function(e){return(t,r)=>{if(!1===e)return null;if((0,s.isSideEffectImport)(r)||r.reexportAll)return null;if(!0===e)return t.includes(".")?null:"lazy";if(Array.isArray(e))return e.includes(t)?"lazy":null;if("function"==typeof e)return e(t)?"lazy":null;throw new Error(".lazy must be a boolean, string array, or function")}},t.wrapReference=function(e,t){return"lazy"===t?n.types.callExpression(e,[]):null};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js")},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,{importInterop:s,initializeReexports:i=!1,getWrapperPayload:o,esNamespaceOnly:a=!1,filename:l}){t||(t=e.scope.generateUidIdentifier("exports").name);const p=new Set;!function(e){e.get("body").forEach(e=>{e.isExportDefaultDeclaration()&&(null!=e.splitExportDeclaration||(e.splitExportDeclaration=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/index.js").NodePath.prototype.splitExportDeclaration),e.splitExportDeclaration())})}(e);const{local:c,sources:u,hasExports:d}=function(e,{getWrapperPayload:t,initializeReexports:r},s){const i=function(e,t,r){const n=new Map,s=e.scope,i=e.get("body");i.forEach(e=>{let r;if(e.isImportDeclaration())r="import";else{if(e.isExportDefaultDeclaration()&&(e=e.get("declaration")),e.isExportNamedDeclaration())if(e.node.declaration)e=e.get("declaration");else if(t&&e.node.source&&e.get("source").isStringLiteral())return void e.get("specifiers").forEach(e=>{assertExportSpecifier(e),n.set(e.get("local").node.name,"block")});if(e.isFunctionDeclaration())r="hoisted";else if(e.isClassDeclaration())r="block";else if(e.isVariableDeclaration({kind:"var"}))r="var";else{if(!e.isVariableDeclaration())return;r="block"}}Object.keys(e.getOuterBindingIdentifiers()).forEach(e=>{n.set(e,r)})});const o=new Map,getLocalMetadata=e=>{const t=e.node.name;let r=o.get(t);if(!r){var i,a;const l=null!=(i=n.get(t))?i:null==(a=s.getBinding(t))?void 0:a.kind;if(void 0===l)throw e.buildCodeFrameError(`Exporting local "${t}", which is not declared.`);r={names:[],kind:l},o.set(t,r)}return r};return i.forEach(e=>{if(!e.isExportNamedDeclaration()||!t&&e.node.source){if(e.isExportDefaultDeclaration()){const t=e.get("declaration");if(!t.isFunctionDeclaration()&&!t.isClassDeclaration())throw t.buildCodeFrameError("Unexpected default expression export.");getLocalMetadata(t.get("id")).names.push("default")}}else if(e.node.declaration){const t=e.get("declaration"),r=t.getOuterBindingIdentifierPaths();Object.keys(r).forEach(e=>{if("__esModule"===e)throw t.buildCodeFrameError('Illegal export "__esModule".');getLocalMetadata(r[e]).names.push(e)})}else e.get("specifiers").forEach(e=>{const t=e.get("local"),n=e.get("exported"),s=getLocalMetadata(t),i=getExportSpecifierName(n,r);if("__esModule"===i)throw n.buildCodeFrameError('Illegal export "__esModule".');s.names.push(i)})}),o}(e,r,s),o=new Map,a=new Map,getData=(t,r)=>{const s=t.value;let i=a.get(s);return i?o.get(s).push(r):(i={name:e.scope.generateUidIdentifier((0,n.basename)(s,(0,n.extname)(s))).name,interop:"none",loc:null,imports:new Map,importsNamespace:new Set,reexports:new Map,reexportNamespace:new Set,reexportAll:null,wrap:null,get lazy(){return"lazy"===this.wrap},referenced:!1},a.set(s,i),o.set(s,[r])),i};let l=!1;e.get("body").forEach(e=>{if(e.isImportDeclaration()){const t=getData(e.node.source,e.node);t.loc||(t.loc=e.node.loc),e.get("specifiers").forEach(e=>{if(e.isImportDefaultSpecifier()){const r=e.get("local").node.name;t.imports.set(r,"default");const n=i.get(r);n&&(i.delete(r),n.names.forEach(e=>{t.reexports.set(e,"default")}),t.referenced=!0)}else if(e.isImportNamespaceSpecifier()){const r=e.get("local").node.name;t.importsNamespace.add(r);const n=i.get(r);n&&(i.delete(r),n.names.forEach(e=>{t.reexportNamespace.add(e)}),t.referenced=!0)}else if(e.isImportSpecifier()){const r=getExportSpecifierName(e.get("imported"),s),n=e.get("local").node.name;t.imports.set(n,r);const o=i.get(n);o&&(i.delete(n),o.names.forEach(e=>{t.reexports.set(e,r)}),t.referenced=!0)}})}else if(e.isExportAllDeclaration()){l=!0;const t=getData(e.node.source,e.node);t.loc||(t.loc=e.node.loc),t.reexportAll={loc:e.node.loc},t.referenced=!0}else if(e.isExportNamedDeclaration()&&e.node.source){l=!0;const t=getData(e.node.source,e.node);t.loc||(t.loc=e.node.loc),e.get("specifiers").forEach(e=>{assertExportSpecifier(e);const r=getExportSpecifierName(e.get("local"),s),n=getExportSpecifierName(e.get("exported"),s);if(t.reexports.set(n,r),t.referenced=!0,"__esModule"===n)throw e.get("exported").buildCodeFrameError('Illegal export "__esModule".')})}else(e.isExportNamedDeclaration()||e.isExportDefaultDeclaration())&&(l=!0)});for(const e of a.values()){let t=!1,r=!1;e.importsNamespace.size>0&&(t=!0,r=!0),e.reexportAll&&(r=!0);for(const n of e.imports.values())"default"===n?t=!0:r=!0;for(const n of e.reexports.values())"default"===n?t=!0:r=!0;t&&r?e.interop="namespace":t&&(e.interop="default")}if(t)for(const[e,r]of a)r.wrap=t(e,r,o.get(e));return{hasExports:l,local:i,sources:a}}(e,{initializeReexports:i,getWrapperPayload:o},p);!function(e){e.get("body").forEach(e=>{if(e.isImportDeclaration())e.remove();else if(e.isExportNamedDeclaration())e.node.declaration?(e.node.declaration._blockHoist=e.node._blockHoist,e.replaceWith(e.node.declaration)):e.remove();else if(e.isExportDefaultDeclaration()){const t=e.get("declaration");if(!t.isFunctionDeclaration()&&!t.isClassDeclaration())throw t.buildCodeFrameError("Unexpected default expression export.");t._blockHoist=e.node._blockHoist,e.replaceWith(t)}else e.isExportAllDeclaration()&&e.remove()})}(e);for(const[e,t]of u){const{importsNamespace:r,imports:n}=t;if(r.size>0&&0===n.size){const[e]=r;t.name=e}const i=resolveImportInterop(s,e,l);"none"===i?t.interop="none":"node"===i&&"namespace"===t.interop?t.interop="node-namespace":"node"===i&&"default"===t.interop?t.interop="node-default":a&&"namespace"===t.interop&&(t.interop="default")}return{exportName:t,exportNameListName:null,hasExports:d,local:c,source:u,stringSpecifiers:p}},t.hasExports=function(e){return e.hasExports},t.isSideEffectImport=function(e){return 0===e.imports.size&&0===e.importsNamespace.size&&0===e.reexports.size&&0===e.reexportNamespace.size&&!e.reexportAll},t.validateImportInteropOption=validateImportInteropOption;var n=r("path"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-validator-identifier/lib/index.js");function validateImportInteropOption(e){if("function"!=typeof e&&"none"!==e&&"babel"!==e&&"node"!==e)throw new Error(`.importInterop must be one of "none", "babel", "node", or a function returning one of those values (received ${e}).`);return e}function resolveImportInterop(e,t,r){return"function"==typeof e?validateImportInteropOption(e(t,r)):e}function getExportSpecifierName(e,t){if(e.isIdentifier())return e.node.name;if(e.isStringLiteral()){const r=e.node.value;return(0,s.isIdentifierName)(r)||t.add(r),r}throw new Error(`Expected export specifier to be either Identifier or StringLiteral, got ${e.node.type}`)}function assertExportSpecifier(e){if(!e.isExportSpecifier())throw e.isExportNamespaceSpecifier()?e.buildCodeFrameError("Export namespace should be first transformed by `@babel/plugin-transform-export-namespace-from`."):e.buildCodeFrameError("Unexpected export specifier type")}},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){const o=new Map,a=new Map,requeueInParent=t=>{e.requeue(t)};for(const[e,r]of t.source){for(const[t,n]of r.imports)o.set(t,[e,n,null]);for(const t of r.importsNamespace)o.set(t,[e,null,t])}for(const[e,r]of t.local){let t=a.get(e);t||(t=[],a.set(e,t)),t.push(...r.names)}const l={metadata:t,requeueInParent,scope:e.scope,exported:a};e.traverse(s,l);const p={seen:new WeakSet,metadata:t,requeueInParent,scope:e.scope,imported:o,exported:a,buildImportReference([e,s,i],o){const a=t.source.get(e);if(a.referenced=!0,i){var l;if(a.wrap)o=null!=(l=r(o,a.wrap))?l:o;return o}let p=n.types.identifier(a.name);var c;a.wrap&&(p=null!=(c=r(p,a.wrap))?c:p);if("default"===s&&"node-default"===a.interop)return p;const u=t.stringSpecifiers.has(s);return n.types.memberExpression(p,u?n.types.stringLiteral(s):n.types.identifier(s),u)}};e.traverse(i,p)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/index.js");const s={Scope(e){e.skip()},ClassDeclaration(e){const{requeueInParent:t,exported:r,metadata:s}=this,{id:i}=e.node;if(!i)throw new Error("Expected class to have a name");const o=i.name,a=r.get(o)||[];if(a.length>0){const r=n.types.expressionStatement(buildBindingExportAssignmentExpression(s,a,n.types.identifier(o),e.scope));r._blockHoist=e.node._blockHoist,t(e.insertAfter(r)[0])}},VariableDeclaration(e){const{requeueInParent:t,exported:r,metadata:s}=this,i="var"===e.node.kind;for(const o of e.get("declarations")){const{id:a}=o.node;let{init:l}=o.node;if(!n.types.isIdentifier(a)||!r.has(a.name)||n.types.isArrowFunctionExpression(l)||n.types.isFunctionExpression(l)&&!l.id||n.types.isClassExpression(l)&&!l.id){for(const i of Object.keys(o.getOuterBindingIdentifiers()))if(r.has(i)){const o=n.types.expressionStatement(buildBindingExportAssignmentExpression(s,r.get(i),n.types.identifier(i),e.scope));o._blockHoist=e.node._blockHoist,t(e.insertAfter(o)[0])}}else{if(!l){if(i)continue;l=e.scope.buildUndefinedNode()}o.node.init=buildBindingExportAssignmentExpression(s,r.get(a.name),l,e.scope),t(o.get("init"))}}}},buildBindingExportAssignmentExpression=(e,t,r,s)=>{const i=e.exportName;for(let e=s;null!=e;e=e.parent)e.hasOwnBinding(i)&&e.rename(i);return(t||[]).reduce((t,r)=>{const{stringSpecifiers:s}=e,o=s.has(r);return n.types.assignmentExpression("=",n.types.memberExpression(n.types.identifier(i),o?n.types.stringLiteral(r):n.types.identifier(r),o),t)},r)},buildImportThrow=e=>n.template.expression.ast`- (function() {- throw new Error('"' + '${e}' + '" is read-only.');- })()- `,i={ReferencedIdentifier(e){const{seen:t,buildImportReference:r,scope:s,imported:i,requeueInParent:o}=this;if(t.has(e.node))return;t.add(e.node);const a=e.node.name,l=i.get(a);if(l){if(function(e){do{switch(e.parent.type){case"TSTypeAnnotation":case"TSTypeAliasDeclaration":case"TSTypeReference":case"TypeAnnotation":case"TypeAlias":return!0;case"ExportSpecifier":return"type"===e.parentPath.parent.exportKind;default:if(e.parentPath.isStatement()||e.parentPath.isExpression())return!1}}while(e=e.parentPath)}(e))throw e.buildCodeFrameError(`Cannot transform the imported binding "${a}" since it's also used in a type annotation. Please strip type annotations using @babel/preset-typescript or @babel/preset-flow.`);const t=e.scope.getBinding(a);if(s.getBinding(a)!==t)return;const i=r(l,e.node);if(i.loc=e.node.loc,(e.parentPath.isCallExpression({callee:e.node})||e.parentPath.isOptionalCallExpression({callee:e.node})||e.parentPath.isTaggedTemplateExpression({tag:e.node}))&&n.types.isMemberExpression(i))e.replaceWith(n.types.sequenceExpression([n.types.numericLiteral(0),i]));else if(e.isJSXIdentifier()&&n.types.isMemberExpression(i)){const{object:t,property:r}=i;e.replaceWith(n.types.jsxMemberExpression(n.types.jsxIdentifier(t.name),n.types.jsxIdentifier(r.name)))}else e.replaceWith(i);o(e),e.skip()}},UpdateExpression(e){const{scope:t,seen:r,imported:s,exported:i,requeueInParent:o,buildImportReference:a}=this;if(r.has(e.node))return;r.add(e.node);const l=e.get("argument");if(l.isMemberExpression())return;const p=e.node;if(l.isIdentifier()){const r=l.node.name;if(t.getBinding(r)!==e.scope.getBinding(r))return;const o=i.get(r),c=s.get(r);if((null==o?void 0:o.length)>0||c)if(c)e.replaceWith(n.types.assignmentExpression(p.operator[0]+"=",a(c,l.node),buildImportThrow(r)));else if(p.prefix)e.replaceWith(buildBindingExportAssignmentExpression(this.metadata,o,n.types.cloneNode(p),e.scope));else{const s=t.generateDeclaredUidIdentifier(r);e.replaceWith(n.types.sequenceExpression([n.types.assignmentExpression("=",n.types.cloneNode(s),n.types.cloneNode(p)),buildBindingExportAssignmentExpression(this.metadata,o,n.types.identifier(r),e.scope),n.types.cloneNode(s)]))}}o(e),e.skip()},AssignmentExpression:{exit(e){const{scope:t,seen:r,imported:s,exported:i,requeueInParent:o,buildImportReference:a}=this;if(r.has(e.node))return;r.add(e.node);const l=e.get("left");if(!l.isMemberExpression())if(l.isIdentifier()){const r=l.node.name;if(t.getBinding(r)!==e.scope.getBinding(r))return;const p=i.get(r),c=s.get(r);if((null==p?void 0:p.length)>0||c){const t=e.node;c&&(t.left=a(c,l.node),t.right=n.types.sequenceExpression([t.right,buildImportThrow(r)]));const{operator:s}=t;let i;i="="===s?t:"&&="===s||"||="===s||"??="===s?n.types.assignmentExpression("=",t.left,n.types.logicalExpression(s.slice(0,-1),n.types.cloneNode(t.left),t.right)):n.types.assignmentExpression("=",t.left,n.types.binaryExpression(s.slice(0,-1),n.types.cloneNode(t.left),t.right)),e.replaceWith(buildBindingExportAssignmentExpression(this.metadata,p,i,e.scope)),o(e),e.skip()}}else{const r=l.getOuterBindingIdentifiers(),a=Object.keys(r).filter(r=>t.getBinding(r)===e.scope.getBinding(r)),p=a.find(e=>s.has(e));p&&(e.node.right=n.types.sequenceExpression([e.node.right,buildImportThrow(p)]));const c=[];if(a.forEach(t=>{const r=i.get(t)||[];r.length>0&&c.push(buildBindingExportAssignmentExpression(this.metadata,r,n.types.identifier(t),e.scope))}),c.length>0){let t=n.types.sequenceExpression(c);e.parentPath.isExpressionStatement()&&(t=n.types.expressionStatement(t),t._blockHoist=e.parentPath.node._blockHoist);o(e.insertAfter(t)[0])}}}},ForXStatement(e){const{scope:t,node:r}=e,{left:s}=r,{exported:i,imported:o,scope:a}=this;if(!n.types.isVariableDeclaration(s)){let r,l=!1;const p=e.get("body").scope;for(const e of Object.keys(n.types.getOuterBindingIdentifiers(s)))a.getBinding(e)===t.getBinding(e)&&(i.has(e)&&(l=!0,p.hasOwnBinding(e)&&p.rename(e)),o.has(e)&&!r&&(r=e));if(!l&&!r)return;e.ensureBlock();const c=e.get("body"),u=t.generateUidIdentifierBasedOnNode(s);e.get("left").replaceWith(n.types.variableDeclaration("let",[n.types.variableDeclarator(n.types.cloneNode(u))])),t.registerDeclaration(e.get("left")),l&&c.unshiftContainer("body",n.types.expressionStatement(n.types.assignmentExpression("=",s,u))),r&&c.unshiftContainer("body",n.types.expressionStatement(buildImportThrow(r)))}}}},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){i||(i=s.visitors.environmentVisitor({ThisExpression(e){e.replaceWith(n.types.unaryExpression("void",n.types.numericLiteral(0),!0))}}),i.noScope=!0);(0,s.default)(e.node,i)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/index.js");let i},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-optimise-call-expression/lib/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,n){return 1===r.length&&a(r[0])&&o(r[0].argument,{name:"arguments"})?n?p(c(e,i("apply"),!1,!0),[t,r[0].argument],!1):s(l(e,i("apply")),[t,r[0].argument]):n?p(c(e,i("call"),!1,!0),[t,...r],!1):s(l(e,i("call")),[t,...r])};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js");const{callExpression:s,identifier:i,isIdentifier:o,isSpreadElement:a,memberExpression:l,optionalCallExpression:p,optionalMemberExpression:c}=n},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-plugin-utils/lib/index.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.declare=declare,t.declarePreset=void 0;const r={assertVersion:e=>t=>{!function(e,t){if("number"==typeof e){if(!Number.isInteger(e))throw new Error("Expected string or integer value.");e=`^${e}.0.0-0`}if("string"!=typeof e)throw new Error("Expected string or integer value.");const r=Error.stackTraceLimit;"number"==typeof r&&r<25&&(Error.stackTraceLimit=25);let n;n=t.startsWith("7.")?new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${t}". You'll need to update your @babel/core version.`):new Error(`Requires Babel "${e}", but was loaded with "${t}". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`);"number"==typeof r&&(Error.stackTraceLimit=r);throw Object.assign(n,{code:"BABEL_VERSION_UNSUPPORTED",version:t,range:e})}(t,e.version)}};function declare(e){return(t,n,s)=>{let i;for(const e of Object.keys(r))t[e]||(null!=i||(i=copyApiObject(t)),i[e]=r[e](i));return e(null!=i?i:t,n||{},s)}}Object.assign(r,{targets:()=>()=>({}),assumption:()=>()=>{},addExternalDependency:()=>()=>{}});t.declarePreset=declare;function copyApiObject(e){let t=null;return"string"==typeof e.version&&e.version.startsWith("7.")&&(t=Object.getPrototypeOf(e),!t||hasOwnProperty.call(t,"version")&&hasOwnProperty.call(t,"transform")&&hasOwnProperty.call(t,"template")&&hasOwnProperty.call(t,"types")||(t=null)),Object.assign({},t,e)}},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-replace-supers/lib/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-member-expression-to-functions/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-optimise-call-expression/lib/index.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/index.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/index.js");const{assignmentExpression:a,callExpression:l,cloneNode:p,identifier:c,memberExpression:u,sequenceExpression:d,stringLiteral:h,thisExpression:m}=i.types;t.environmentVisitor=o.visitors.environmentVisitor({}),t.skipAllButComputedKey=function(e){e.skip(),e.node.computed&&e.context.maybeQueue(e.get("key"))};const f=o.visitors.environmentVisitor({Super(e,t){const{node:r,parentPath:n}=e;n.isMemberExpression({object:r})&&t.handle(n)}}),y=o.visitors.environmentVisitor({Scopable(e,{refName:t}){const r=e.scope.getOwnBinding(t);(null==r?void 0:r.identifier.name)===t&&e.scope.rename(t)}}),b={memoise(e,t){const{scope:r,node:n}=e,{computed:s,property:i}=n;if(!s)return;const o=r.maybeGenerateMemoised(i);o&&this.memoiser.set(i,o,t)},prop(e){const{computed:t,property:r}=e.node;return this.memoiser.has(r)?p(this.memoiser.get(r)):t?p(r):h(r.name)},_getPrototypeOfExpression(){const e=p(this.getObjectRef()),t=this.isStatic||this.isPrivateMethod?e:u(e,c("prototype"));return l(this.file.addHelper("getPrototypeOf"),[t])},get(e){const t=p(this.getObjectRef());return l(this.file.addHelper("superPropGet"),[this.isDerivedConstructor?d([m(),t]):t,this.prop(e),m(),...this.isStatic||this.isPrivateMethod?[]:[i.types.numericLiteral(1)]])},_call(e,t,r){const n=p(this.getObjectRef());let s;s=1===t.length&&i.types.isSpreadElement(t[0])&&(i.types.isIdentifier(t[0].argument)||i.types.isArrayExpression(t[0].argument))?t[0].argument:i.types.arrayExpression(t);const o=i.types.callExpression(this.file.addHelper("superPropGet"),[this.isDerivedConstructor?d([m(),n]):n,this.prop(e),m(),i.types.numericLiteral(2|(this.isStatic||this.isPrivateMethod?0:1))]);return r?i.types.optionalCallExpression(o,[s],!0):l(o,[s])},set(e,t){const r=p(this.getObjectRef());return l(this.file.addHelper("superPropSet"),[this.isDerivedConstructor?d([m(),r]):r,this.prop(e),t,m(),i.types.numericLiteral(e.isInStrictMode()?1:0),...this.isStatic||this.isPrivateMethod?[]:[i.types.numericLiteral(1)]])},destructureSet(e){throw e.buildCodeFrameError("Destructuring to a super field is not supported yet.")},call(e,t){return this._call(e,t,!1)},optionalCall(e,t){return this._call(e,t,!0)},delete(e){return e.node.computed?d([l(this.file.addHelper("toPropertyKey"),[p(e.node.property)]),i.template.expression.ast`- function () { throw new ReferenceError("'delete super[expr]' is invalid"); }()- `]):i.template.expression.ast`- function () { throw new ReferenceError("'delete super.prop' is invalid"); }()- `}},g={memoise(e,t){const{scope:r,node:n}=e,{computed:s,property:i}=n;if(!s)return;const o=r.maybeGenerateMemoised(i);o&&this.memoiser.set(i,o,t)},prop(e){const{computed:t,property:r}=e.node;return this.memoiser.has(r)?p(this.memoiser.get(r)):t?p(r):h(r.name)},_getPrototypeOfExpression(){const e=p(this.getObjectRef()),t=this.isStatic||this.isPrivateMethod?e:u(e,c("prototype"));return l(this.file.addHelper("getPrototypeOf"),[t])},get(e){return this._get(e)},_get(e){const t=this._getPrototypeOfExpression();return l(this.file.addHelper("get"),[this.isDerivedConstructor?d([m(),t]):t,this.prop(e),m()])},set(e,t){const r=this._getPrototypeOfExpression();return l(this.file.addHelper("set"),[this.isDerivedConstructor?d([m(),r]):r,this.prop(e),t,m(),i.types.booleanLiteral(e.isInStrictMode())])},destructureSet(e){throw e.buildCodeFrameError("Destructuring to a super field is not supported yet.")},call(e,t){return(0,s.default)(this._get(e),m(),t,!1)},optionalCall(e,t){return(0,s.default)(this._get(e),p(m()),t,!0)},delete(e){return e.node.computed?d([l(this.file.addHelper("toPropertyKey"),[p(e.node.property)]),i.template.expression.ast`- function () { throw new ReferenceError("'delete super[expr]' is invalid"); }()- `]):i.template.expression.ast`- function () { throw new ReferenceError("'delete super.prop' is invalid"); }()- `}},x=Object.assign({},b,{prop(e){const{property:t}=e.node;return this.memoiser.has(t)?p(this.memoiser.get(t)):p(t)},get(e){const{isStatic:t,getSuperRef:r}=this,{computed:n}=e.node,s=this.prop(e);let i;var o,a;t?i=null!=(o=r())?o:u(c("Function"),c("prototype")):i=u(null!=(a=r())?a:c("Object"),c("prototype"));return u(i,s,n)},set(e,t){const{computed:r}=e.node,n=this.prop(e);return a("=",u(m(),n,r),t)},destructureSet(e){const{computed:t}=e.node,r=this.prop(e);return u(m(),r,t)},call(e,t){return(0,s.default)(this.get(e),m(),t,!1)},optionalCall(e,t){return(0,s.default)(this.get(e),m(),t,!0)}});t.default=class{constructor(e){var t;const r=e.methodPath;this.methodPath=r,this.isDerivedConstructor=r.isClassMethod({kind:"constructor"})&&!!e.superRef,this.isStatic=r.isObjectMethod()||r.node.static||(null==r.isStaticBlock?void 0:r.isStaticBlock()),this.isPrivateMethod=r.isPrivate()&&r.isMethod(),this.file=e.file,this.constantSuper=null!=(t=e.constantSuper)?t:e.isLoose,this.opts=e}getObjectRef(){return p(this.opts.objectRef||this.opts.getObjectRef())}getSuperRef(){return this.opts.superRef?p(this.opts.superRef):this.opts.getSuperRef?p(this.opts.getSuperRef()):void 0}replace(){const{methodPath:e}=this;this.opts.refToPreserve&&e.traverse(y,{refName:this.opts.refToPreserve.name});const t=this.constantSuper?x:this.file.availableHelper("superPropSet")?b:g;f.shouldSkip=t=>{if(t.parentPath===e&&("decorators"===t.parentKey||"key"===t.parentKey))return!0},(0,n.default)(e,f,Object.assign({file:this.file,scope:this.methodPath.scope,isDerivedConstructor:this.isDerivedConstructor,isStatic:this.isStatic,isPrivateMethod:this.isPrivateMethod,getObjectRef:this.getObjectRef.bind(this),getSuperRef:this.getSuperRef.bind(this),boundGet:t.get},t))}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-simple-access/lib/index.js"(e,t,r){"use strict";t.A=function(e,t){var r;e.traverse(h,{scope:e.scope,bindingNames:t,seen:new WeakSet,includeUpdateExpression:null==(r=arguments[2])||r})};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js");const{LOGICAL_OPERATORS:s,assignmentExpression:i,binaryExpression:o,cloneNode:a,identifier:l,logicalExpression:p,numericLiteral:c,sequenceExpression:u,unaryExpression:d}=n,h={AssignmentExpression:{exit(e){const{scope:t,seen:r,bindingNames:n}=this;if("="===e.node.operator)return;if(r.has(e.node))return;r.add(e.node);const l=e.get("left");if(!l.isIdentifier())return;const c=l.node.name;if(!n.has(c))return;if(t.getBinding(c)!==e.scope.getBinding(c))return;const u=e.node.operator.slice(0,-1);s.includes(u)?e.replaceWith(p(u,e.node.left,i("=",a(e.node.left),e.node.right))):(e.node.right=o(u,a(e.node.left),e.node.right),e.node.operator="=")}}};h.UpdateExpression={exit(e){if(!this.includeUpdateExpression)return;const{scope:t,bindingNames:r}=this,n=e.get("argument");if(!n.isIdentifier())return;const s=n.node.name;if(r.has(s)&&t.getBinding(s)===e.scope.getBinding(s))if(e.parentPath.isExpressionStatement()&&!e.isCompletionRecord()){const t="++"===e.node.operator?"+=":"-=";e.replaceWith(i(t,n.node,c(1)))}else if(e.node.prefix)e.replaceWith(i("=",l(s),o(e.node.operator[0],d("+",n.node),c(1))));else{const t=e.scope.generateUidIdentifierBasedOnNode(n.node,"old"),r=t.name;e.scope.push({id:t});const s=o(e.node.operator[0],l(r),c(1));e.replaceWith(u([i("=",l(r),d("+",n.node)),i("=",a(n.node),s),l(r)]))}}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-skip-transparent-expression-wrappers/lib/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTransparentExprWrapper=isTransparentExprWrapper,t.skipTransparentExprWrapperNodes=function(e){for(;isTransparentExprWrapper(e);)e=e.expression;return e},t.skipTransparentExprWrappers=function(e){for(;isTransparentExprWrapper(e.node);)e=e.get("expression");return e};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js");const{isParenthesizedExpression:s,isTSAsExpression:i,isTSNonNullExpression:o,isTSSatisfiesExpression:a,isTSTypeAssertion:l,isTypeCastExpression:p}=n;function isTransparentExprWrapper(e){return i(e)||a(e)||l(e)||o(e)||p(e)||s(e)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-string-parser/lib/index.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readCodePoint=readCodePoint,t.readInt=readInt,t.readStringContents=function(e,t,r,n,s,i){const o=r,a=n,l=s;let p="",c=null,u=r;const{length:d}=t;for(;;){if(r>=d){i.unterminated(o,a,l),p+=t.slice(u,r);break}const h=t.charCodeAt(r);if(isStringEnd(e,h,t,r)){p+=t.slice(u,r);break}if(92===h){p+=t.slice(u,r);const o=readEscapedChar(t,r,n,s,"template"===e,i);null!==o.ch||c?p+=o.ch:c={pos:r,lineStart:n,curLine:s},({pos:r,lineStart:n,curLine:s}=o),u=r}else 8232===h||8233===h?(++s,n=++r):10===h||13===h?"template"===e?(p+=t.slice(u,r)+"\n",++r,13===h&&10===t.charCodeAt(r)&&++r,++s,u=n=r):i.unterminated(o,a,l):++r}return{pos:r,str:p,firstInvalidLoc:c,lineStart:n,curLine:s,containsInvalid:!!c}};var _isDigit=function(e){return e>=48&&e<=57};const r={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},n={bin:e=>48===e||49===e,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function isStringEnd(e,t,r,n){return"template"===e?96===t||36===t&&123===r.charCodeAt(n+1):t===("double"===e?34:39)}function readEscapedChar(e,t,r,n,s,i){const o=!s;t++;const res=e=>({pos:t,ch:e,lineStart:r,curLine:n}),a=e.charCodeAt(t++);switch(a){case 110:return res("\n");case 114:return res("\r");case 120:{let s;return({code:s,pos:t}=readHexChar(e,t,r,n,2,!1,o,i)),res(null===s?null:String.fromCharCode(s))}case 117:{let s;return({code:s,pos:t}=readCodePoint(e,t,r,n,o,i)),res(null===s?null:String.fromCodePoint(s))}case 116:return res("\t");case 98:return res("\b");case 118:return res("\v");case 102:return res("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:r=t,++n;case 8232:case 8233:return res("");case 56:case 57:if(s)return res(null);i.strictNumericEscape(t-1,r,n);default:if(a>=48&&a<=55){const o=t-1;let a=/^[0-7]+/.exec(e.slice(o,t+2))[0],l=parseInt(a,8);l>255&&(a=a.slice(0,-1),l=parseInt(a,8)),t+=a.length-1;const p=e.charCodeAt(t);if("0"!==a||56===p||57===p){if(s)return res(null);i.strictNumericEscape(o,r,n)}return res(String.fromCharCode(l))}return res(String.fromCharCode(a))}}function readHexChar(e,t,r,n,s,i,o,a){const l=t;let p;return({n:p,pos:t}=readInt(e,t,r,n,16,s,i,!1,a,!o)),null===p&&(o?a.invalidEscapeSequence(l,r,n):t=l-1),{code:p,pos:t}}function readInt(e,t,s,i,o,a,l,p,c,u){const d=t,h=16===o?r.hex:r.decBinOct,m=16===o?n.hex:10===o?n.dec:8===o?n.oct:n.bin;let f=!1,y=0;for(let r=0,n=null==a?1/0:a;r<n;++r){const r=e.charCodeAt(t);let n;if(95===r&&"bail"!==p){const r=e.charCodeAt(t-1),n=e.charCodeAt(t+1);if(p){if(Number.isNaN(n)||!m(n)||h.has(r)||h.has(n)){if(u)return{n:null,pos:t};c.unexpectedNumericSeparator(t,s,i)}}else{if(u)return{n:null,pos:t};c.numericSeparatorInEscapeSequence(t,s,i)}++t;continue}if(n=r>=97?r-97+10:r>=65?r-65+10:_isDigit(r)?r-48:1/0,n>=o){if(n<=9&&u)return{n:null,pos:t};if(n<=9&&c.invalidDigit(t,s,i,o))n=0;else{if(!l)break;n=0,f=!0}}++t,y=y*o+n}return t===d||null!=a&&t-d!==a||f?{n:null,pos:t}:{n:y,pos:t}}function readCodePoint(e,t,r,n,s,i){let o;if(123===e.charCodeAt(t)){if(++t,({code:o,pos:t}=readHexChar(e,t,r,n,e.indexOf("}",t)-t,!0,s,i)),++t,null!==o&&o>1114111){if(!s)return{code:null,pos:t};i.invalidCodePoint(t,r,n)}}else({code:o,pos:t}=readHexChar(e,t,r,n,4,!1,s,i));return{code:o,pos:t}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-validator-identifier/lib/identifier.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIdentifierChar=isIdentifierChar,t.isIdentifierName=function(e){let t=!0;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(55296==(64512&n)&&r+1<e.length){const t=e.charCodeAt(++r);56320==(64512&t)&&(n=65536+((1023&n)<<10)+(1023&t))}if(t){if(t=!1,!isIdentifierStart(n))return!1}else if(!isIdentifierChar(n))return!1}return!t},t.isIdentifierStart=isIdentifierStart;let r="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",n="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const s=new RegExp("["+r+"]"),i=new RegExp("["+r+n+"]");r=n=null;const o=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],a=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,t){let r=65536;for(let n=0,s=t.length;n<s;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function isIdentifierStart(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&s.test(String.fromCharCode(e)):isInAstralSet(e,o)))}function isIdentifierChar(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&i.test(String.fromCharCode(e)):isInAstralSet(e,o)||isInAstralSet(e,a))))}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-validator-identifier/lib/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return n.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return n.isIdentifierName}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return n.isIdentifierStart}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return s.isKeyword}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return s.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return s.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return s.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return s.isStrictReservedWord}});var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-validator-identifier/lib/identifier.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-validator-identifier/lib/keyword.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-validator-identifier/lib/keyword.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isKeyword=function(e){return s.has(e)},t.isReservedWord=isReservedWord,t.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord,t.isStrictBindReservedWord=function(e,t){return isStrictReservedWord(e,t)||isStrictBindOnlyReservedWord(e)},t.isStrictReservedWord=isStrictReservedWord;const r=["implements","interface","let","package","private","protected","public","static","yield"],n=["eval","arguments"],s=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),i=new Set(r),o=new Set(n);function isReservedWord(e,t){return t&&"await"===e||"enum"===e}function isStrictReservedWord(e,t){return isReservedWord(e,t)||i.has(e)}function isStrictBindOnlyReservedWord(e){return o.has(e)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-validator-option/lib/find-suggestion.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findSuggestion=function(e,t){const n=t.map(t=>function(e,t){let n,s,i=[],o=[];const a=e.length,l=t.length;if(!a)return l;if(!l)return a;for(s=0;s<=l;s++)i[s]=s;for(n=1;n<=a;n++){for(o=[n],s=1;s<=l;s++)o[s]=e[n-1]===t[s-1]?i[s-1]:r(i[s-1],i[s],o[s-1])+1;i=o}return o[l]}(t,e));return t[n.indexOf(r(...n))]};const{min:r}=Math},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-validator-option/lib/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"OptionValidator",{enumerable:!0,get:function(){return n.OptionValidator}}),Object.defineProperty(t,"findSuggestion",{enumerable:!0,get:function(){return s.findSuggestion}});var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-validator-option/lib/validator.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-validator-option/lib/find-suggestion.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-validator-option/lib/validator.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OptionValidator=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-validator-option/lib/find-suggestion.js");t.OptionValidator=class{constructor(e){this.descriptor=e}validateTopLevelOptions(e,t){const r=Object.keys(t);for(const t of Object.keys(e))if(!r.includes(t))throw new Error(this.formatMessage(`'${t}' is not a valid top-level option.\n- Did you mean '${(0,n.findSuggestion)(t,r)}'?`))}validateBooleanOption(e,t,r){return void 0===t?r:(this.invariant("boolean"==typeof t,`'${e}' option must be a boolean.`),t)}validateStringOption(e,t,r){return void 0===t?r:(this.invariant("string"==typeof t,`'${e}' option must be a string.`),t)}invariant(e,t){if(!e)throw new Error(this.formatMessage(t))}formatMessage(e){return`${this.descriptor}: ${e}`}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/helpers/lib/helpers-generated.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/template/lib/index.js");function helper(e,t,r){return Object.freeze({minVersion:e,ast:()=>n.default.program.ast(t,{preserveComments:!0}),metadata:r})}const s=t.default={__proto__:null,OverloadYield:helper("7.18.14","function _OverloadYield(e,d){this.v=e,this.k=d}",{globals:[],locals:{_OverloadYield:["body.0.id"]},exportBindingAssignments:[],exportName:"_OverloadYield",dependencies:{},internal:!1}),applyDecoratedDescriptor:helper("7.0.0-beta.0",'function _applyDecoratedDescriptor(i,e,r,n,l){var a={};return Object.keys(n).forEach(function(i){a[i]=n[i]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=r.slice().reverse().reduce(function(r,n){return n(i,e,r)||r},a),l&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(l):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(i,e,a),null):a}',{globals:["Object"],locals:{_applyDecoratedDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_applyDecoratedDescriptor",dependencies:{},internal:!1}),applyDecs2311:helper("7.24.0",'function applyDecs2311(e,t,n,r,o,i){var a,c,u,s,f,l,p,d=Symbol.metadata||Symbol.for("Symbol.metadata"),m=Object.defineProperty,h=Object.create,y=[h(null),h(null)],v=t.length;function g(t,n,r){return function(o,i){n&&(i=o,o=e);for(var a=0;a<t.length;a++)i=t[a].apply(o,r?[i]:[]);return r?i:o}}function b(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function applyDec(e,t,n,r,o,i,u,s,f,l,p){function d(e){if(!p(e))throw new TypeError("Attempted to access private element on non-instance")}var h=[].concat(t[0]),v=t[3],w=!u,D=1===o,S=3===o,j=4===o,E=2===o;function I(t,n,r){return function(o,i){return n&&(i=o,o=e),r&&r(o),P[t].call(o,i)}}if(!w){var P={},k=[],F=S?"get":j||D?"set":"value";if(f?(l||D?P={get:setFunctionName(function(){return v(this)},r,"get"),set:function(e){t[4](this,e)}}:P[F]=v,l||setFunctionName(P[F],r,E?"":F)):l||(P=Object.getOwnPropertyDescriptor(e,r)),!l&&!f){if((c=y[+s][r])&&7!==(c^o))throw Error("Decorating two elements with the same name ("+P[F].name+") is not supported yet");y[+s][r]=o<3?1:o}}for(var N=e,O=h.length-1;O>=0;O-=n?2:1){var T=b(h[O],"A decorator","be",!0),z=n?h[O-1]:void 0,A={},H={kind:["field","accessor","method","getter","setter","class"][o],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw new TypeError("attempted to call addInitializer after decoration was finished");b(t,"An initializer","be",!0),i.push(t)}.bind(null,A)};if(w)c=T.call(z,N,H),A.v=1,b(c,"class decorators","return")&&(N=c);else if(H.static=s,H.private=f,c=H.access={has:f?p.bind():function(e){return r in e}},j||(c.get=f?E?function(e){return d(e),P.value}:I("get",0,d):function(e){return e[r]}),E||S||(c.set=f?I("set",0,d):function(e,t){e[r]=t}),N=T.call(z,D?{get:P.get,set:P.set}:P[F],H),A.v=1,D){if("object"==typeof N&&N)(c=b(N.get,"accessor.get"))&&(P.get=c),(c=b(N.set,"accessor.set"))&&(P.set=c),(c=b(N.init,"accessor.init"))&&k.unshift(c);else if(void 0!==N)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else b(N,(l?"field":"method")+" decorators","return")&&(l?k.unshift(N):P[F]=N)}return o<2&&u.push(g(k,s,1),g(i,s,0)),l||w||(f?D?u.splice(-1,0,I("get",s),I("set",s)):u.push(E?P[F]:b.call.bind(P[F])):m(e,r,P)),N}function w(e){return m(e,d,{configurable:!0,enumerable:!0,value:a})}return void 0!==i&&(a=i[d]),a=h(null==a?null:a),f=[],l=function(e){e&&f.push(g(e))},p=function(t,r){for(var i=0;i<n.length;i++){var a=n[i],c=a[1],l=7&c;if((8&c)==t&&!l==r){var p=a[2],d=!!a[3],m=16&c;applyDec(t?e:e.prototype,a,m,d?"#"+p:toPropertyKey(p),l,l<2?[]:t?s=s||[]:u=u||[],f,!!t,d,r,t&&d?function(t){return checkInRHS(t)===e}:o)}}},p(8,0),p(0,0),p(8,1),p(0,1),l(u),l(s),c=f,v||w(e),{e:c,get c(){var n=[];return v&&[w(e=applyDec(e,[t],r,e.name,5,n)),g(n,1)]}}}',{globals:["Symbol","Object","TypeError","Error"],locals:{applyDecs2311:["body.0.id"]},exportBindingAssignments:[],exportName:"applyDecs2311",dependencies:{checkInRHS:["body.0.body.body.5.argument.expressions.4.right.body.body.0.body.body.1.consequent.body.1.expression.arguments.10.consequent.body.body.0.argument.left.callee"],setFunctionName:["body.0.body.body.3.body.body.3.consequent.body.1.test.expressions.0.consequent.expressions.0.consequent.right.properties.0.value.callee","body.0.body.body.3.body.body.3.consequent.body.1.test.expressions.0.consequent.expressions.1.right.callee"],toPropertyKey:["body.0.body.body.5.argument.expressions.4.right.body.body.0.body.body.1.consequent.body.1.expression.arguments.3.alternate.callee"]},internal:!1}),arrayLikeToArray:helper("7.9.0","function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}",{globals:["Array"],locals:{_arrayLikeToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_arrayLikeToArray",dependencies:{},internal:!1}),arrayWithHoles:helper("7.0.0-beta.0","function _arrayWithHoles(r){if(Array.isArray(r))return r}",{globals:["Array"],locals:{_arrayWithHoles:["body.0.id"]},exportBindingAssignments:[],exportName:"_arrayWithHoles",dependencies:{},internal:!1}),arrayWithoutHoles:helper("7.0.0-beta.0","function _arrayWithoutHoles(r){if(Array.isArray(r))return arrayLikeToArray(r)}",{globals:["Array"],locals:{_arrayWithoutHoles:["body.0.id"]},exportBindingAssignments:[],exportName:"_arrayWithoutHoles",dependencies:{arrayLikeToArray:["body.0.body.body.0.consequent.argument.callee"]},internal:!1}),assertClassBrand:helper("7.24.0",'function _assertClassBrand(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}',{globals:["TypeError"],locals:{_assertClassBrand:["body.0.id"]},exportBindingAssignments:[],exportName:"_assertClassBrand",dependencies:{},internal:!1}),assertThisInitialized:helper("7.0.0-beta.0","function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}",{globals:["ReferenceError"],locals:{_assertThisInitialized:["body.0.id"]},exportBindingAssignments:[],exportName:"_assertThisInitialized",dependencies:{},internal:!1}),asyncGeneratorDelegate:helper("7.0.0-beta.0",'function _asyncGeneratorDelegate(t){var e={},n=!1;function pump(e,r){return n=!0,r=new Promise(function(n){n(t[e](r))}),{done:!1,value:new OverloadYield(r,1)}}return e["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},e.next=function(t){return n?(n=!1,t):pump("next",t)},"function"==typeof t.throw&&(e.throw=function(t){if(n)throw n=!1,t;return pump("throw",t)}),"function"==typeof t.return&&(e.return=function(t){return n?(n=!1,t):pump("return",t)}),e}',{globals:["Promise","Symbol"],locals:{_asyncGeneratorDelegate:["body.0.id"]},exportBindingAssignments:[],exportName:"_asyncGeneratorDelegate",dependencies:{OverloadYield:["body.0.body.body.1.body.body.0.argument.expressions.2.properties.1.value.callee"]},internal:!1}),asyncIterator:helper("7.15.9",'function _asyncIterator(r){var n,t,o,e=2;for("undefined"!=typeof Symbol&&(t=Symbol.asyncIterator,o=Symbol.iterator);e--;){if(t&&null!=(n=r[t]))return n.call(r);if(o&&null!=(n=r[o]))return new AsyncFromSyncIterator(n.call(r));t="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")}function AsyncFromSyncIterator(r){function AsyncFromSyncIteratorContinuation(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var n=r.done;return Promise.resolve(r.value).then(function(r){return{value:r,done:n}})}return AsyncFromSyncIterator=function(r){this.s=r,this.n=r.next},AsyncFromSyncIterator.prototype={s:null,n:null,next:function(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments))},return:function(r){var n=this.s.return;return void 0===n?Promise.resolve({value:r,done:!0}):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments))},throw:function(r){var n=this.s.return;return void 0===n?Promise.reject(r):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments))}},new AsyncFromSyncIterator(r)}',{globals:["Symbol","TypeError","Object","Promise"],locals:{_asyncIterator:["body.0.id"],AsyncFromSyncIterator:["body.1.id","body.0.body.body.1.body.body.1.consequent.argument.callee","body.1.body.body.1.argument.expressions.1.left.object","body.1.body.body.1.argument.expressions.2.callee","body.1.body.body.1.argument.expressions.0.left"]},exportBindingAssignments:[],exportName:"_asyncIterator",dependencies:{},internal:!1}),asyncToGenerator:helper("7.0.0-beta.0",'function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n){return void e(n)}i.done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n)}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n)}_next(void 0)})}}',{globals:["Promise"],locals:{asyncGeneratorStep:["body.0.id","body.1.body.body.0.argument.body.body.1.argument.arguments.0.body.body.1.body.body.0.expression.callee","body.1.body.body.0.argument.body.body.1.argument.arguments.0.body.body.2.body.body.0.expression.callee"],_asyncToGenerator:["body.1.id"]},exportBindingAssignments:[],exportName:"_asyncToGenerator",dependencies:{},internal:!1}),awaitAsyncGenerator:helper("7.0.0-beta.0","function _awaitAsyncGenerator(e){return new OverloadYield(e,0)}",{globals:[],locals:{_awaitAsyncGenerator:["body.0.id"]},exportBindingAssignments:[],exportName:"_awaitAsyncGenerator",dependencies:{OverloadYield:["body.0.body.body.0.argument.callee"]},internal:!1}),callSuper:helper("7.23.8","function _callSuper(t,o,e){return o=getPrototypeOf(o),possibleConstructorReturn(t,isNativeReflectConstruct()?Reflect.construct(o,e||[],getPrototypeOf(t).constructor):o.apply(t,e))}",{globals:["Reflect"],locals:{_callSuper:["body.0.id"]},exportBindingAssignments:[],exportName:"_callSuper",dependencies:{getPrototypeOf:["body.0.body.body.0.argument.expressions.0.right.callee","body.0.body.body.0.argument.expressions.1.arguments.1.consequent.arguments.2.object.callee"],isNativeReflectConstruct:["body.0.body.body.0.argument.expressions.1.arguments.1.test.callee"],possibleConstructorReturn:["body.0.body.body.0.argument.expressions.1.callee"]},internal:!1}),checkInRHS:helper("7.20.5",'function _checkInRHS(e){if(Object(e)!==e)throw TypeError("right-hand side of \'in\' should be an object, got "+(null!==e?typeof e:"null"));return e}',{globals:["Object","TypeError"],locals:{_checkInRHS:["body.0.id"]},exportBindingAssignments:[],exportName:"_checkInRHS",dependencies:{},internal:!1}),checkPrivateRedeclaration:helper("7.14.1",'function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}',{globals:["TypeError"],locals:{_checkPrivateRedeclaration:["body.0.id"]},exportBindingAssignments:[],exportName:"_checkPrivateRedeclaration",dependencies:{},internal:!1}),classCallCheck:helper("7.0.0-beta.0",'function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}',{globals:["TypeError"],locals:{_classCallCheck:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCallCheck",dependencies:{},internal:!1}),classNameTDZError:helper("7.0.0-beta.0","function _classNameTDZError(e){throw new ReferenceError('Class \"'+e+'\" cannot be referenced in computed property keys.')}",{globals:["ReferenceError"],locals:{_classNameTDZError:["body.0.id"]},exportBindingAssignments:[],exportName:"_classNameTDZError",dependencies:{},internal:!1}),classPrivateFieldGet2:helper("7.24.0","function _classPrivateFieldGet2(s,a){return s.get(assertClassBrand(s,a))}",{globals:[],locals:{_classPrivateFieldGet2:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldGet2",dependencies:{assertClassBrand:["body.0.body.body.0.argument.arguments.0.callee"]},internal:!1}),classPrivateFieldInitSpec:helper("7.14.1","function _classPrivateFieldInitSpec(e,t,a){checkPrivateRedeclaration(e,t),t.set(e,a)}",{globals:[],locals:{_classPrivateFieldInitSpec:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldInitSpec",dependencies:{checkPrivateRedeclaration:["body.0.body.body.0.expression.expressions.0.callee"]},internal:!1}),classPrivateFieldLooseBase:helper("7.0.0-beta.0",'function _classPrivateFieldBase(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}',{globals:["TypeError"],locals:{_classPrivateFieldBase:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldBase",dependencies:{},internal:!1}),classPrivateFieldLooseKey:helper("7.0.0-beta.0",'var id=0;function _classPrivateFieldKey(e){return"__private_"+id+++"_"+e}',{globals:[],locals:{id:["body.0.declarations.0.id","body.1.body.body.0.argument.left.left.right.argument","body.1.body.body.0.argument.left.left.right.argument"],_classPrivateFieldKey:["body.1.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldKey",dependencies:{},internal:!1}),classPrivateFieldSet2:helper("7.24.0","function _classPrivateFieldSet2(s,a,r){return s.set(assertClassBrand(s,a),r),r}",{globals:[],locals:{_classPrivateFieldSet2:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldSet2",dependencies:{assertClassBrand:["body.0.body.body.0.argument.expressions.0.arguments.0.callee"]},internal:!1}),classPrivateGetter:helper("7.24.0","function _classPrivateGetter(s,r,a){return a(assertClassBrand(s,r))}",{globals:[],locals:{_classPrivateGetter:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateGetter",dependencies:{assertClassBrand:["body.0.body.body.0.argument.arguments.0.callee"]},internal:!1}),classPrivateMethodInitSpec:helper("7.14.1","function _classPrivateMethodInitSpec(e,a){checkPrivateRedeclaration(e,a),a.add(e)}",{globals:[],locals:{_classPrivateMethodInitSpec:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodInitSpec",dependencies:{checkPrivateRedeclaration:["body.0.body.body.0.expression.expressions.0.callee"]},internal:!1}),classPrivateSetter:helper("7.24.0","function _classPrivateSetter(s,r,a,t){return r(assertClassBrand(s,a),t),t}",{globals:[],locals:{_classPrivateSetter:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateSetter",dependencies:{assertClassBrand:["body.0.body.body.0.argument.expressions.0.arguments.0.callee"]},internal:!1}),classStaticPrivateMethodGet:helper("7.3.2","function _classStaticPrivateMethodGet(s,a,t){return assertClassBrand(a,s),t}",{globals:[],locals:{_classStaticPrivateMethodGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateMethodGet",dependencies:{assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"]},internal:!1}),construct:helper("7.0.0-beta.0","function _construct(t,e,r){if(isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o));return r&&setPrototypeOf(p,r.prototype),p}",{globals:["Reflect"],locals:{_construct:["body.0.id"]},exportBindingAssignments:[],exportName:"_construct",dependencies:{isNativeReflectConstruct:["body.0.body.body.0.test.callee"],setPrototypeOf:["body.0.body.body.4.argument.expressions.0.right.callee"]},internal:!1}),createClass:helper("7.0.0-beta.0",'function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,toPropertyKey(o.key),o)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}',{globals:["Object"],locals:{_defineProperties:["body.0.id","body.1.body.body.0.argument.expressions.0.right.callee","body.1.body.body.0.argument.expressions.1.right.callee"],_createClass:["body.1.id"]},exportBindingAssignments:[],exportName:"_createClass",dependencies:{toPropertyKey:["body.0.body.body.0.body.body.1.expression.expressions.3.arguments.1.callee"]},internal:!1}),createForOfIteratorHelper:helper("7.9.0",'function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var n=0,F=function(){};return{s:F,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(r){throw r},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){t=t.call(r)},n:function(){var r=t.next();return a=r.done,r},e:function(r){u=!0,o=r},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}',{globals:["Symbol","Array","TypeError"],locals:{_createForOfIteratorHelper:["body.0.id"]},exportBindingAssignments:[],exportName:"_createForOfIteratorHelper",dependencies:{unsupportedIterableToArray:["body.0.body.body.1.consequent.body.0.test.left.right.right.callee"]},internal:!1}),createForOfIteratorHelperLoose:helper("7.9.0",'function _createForOfIteratorHelperLoose(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(t)return(t=t.call(r)).next.bind(t);if(Array.isArray(r)||(t=unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var o=0;return function(){return o>=r.length?{done:!0}:{done:!1,value:r[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}',{globals:["Symbol","Array","TypeError"],locals:{_createForOfIteratorHelperLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_createForOfIteratorHelperLoose",dependencies:{unsupportedIterableToArray:["body.0.body.body.2.test.left.right.right.callee"]},internal:!1}),createSuper:helper("7.9.0","function _createSuper(t){var r=isNativeReflectConstruct();return function(){var e,o=getPrototypeOf(t);if(r){var s=getPrototypeOf(this).constructor;e=Reflect.construct(o,arguments,s)}else e=o.apply(this,arguments);return possibleConstructorReturn(this,e)}}",{globals:["Reflect"],locals:{_createSuper:["body.0.id"]},exportBindingAssignments:[],exportName:"_createSuper",dependencies:{getPrototypeOf:["body.0.body.body.1.argument.body.body.0.declarations.1.init.callee","body.0.body.body.1.argument.body.body.1.consequent.body.0.declarations.0.init.object.callee"],isNativeReflectConstruct:["body.0.body.body.0.declarations.0.init.callee"],possibleConstructorReturn:["body.0.body.body.1.argument.body.body.2.argument.callee"]},internal:!1}),decorate:helper("7.1.5",'function _decorate(e,r,t,i){var o=_getDecoratorsApi();if(i)for(var n=0;n<i.length;n++)o=i[n](o);var s=r(function(e){o.initializeInstanceElements(e,a.elements)},t),a=o.decorateClass(_coalesceClassElements(s.d.map(_createElementDescriptor)),e);return o.initializeClassElements(s.F,a.elements),o.runClassFinishers(s.F,a.finishers)}function _getDecoratorsApi(){_getDecoratorsApi=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,r){["method","field"].forEach(function(t){r.forEach(function(r){r.kind===t&&"own"===r.placement&&this.defineClassElement(e,r)},this)},this)},initializeClassElements:function(e,r){var t=e.prototype;["method","field"].forEach(function(i){r.forEach(function(r){var o=r.placement;if(r.kind===i&&("static"===o||"prototype"===o)){var n="static"===o?e:t;this.defineClassElement(n,r)}},this)},this)},defineClassElement:function(e,r){var t=r.descriptor;if("field"===r.kind){var i=r.initializer;t={enumerable:t.enumerable,writable:t.writable,configurable:t.configurable,value:void 0===i?void 0:i.call(e)}}Object.defineProperty(e,r.key,t)},decorateClass:function(e,r){var t=[],i=[],o={static:[],prototype:[],own:[]};if(e.forEach(function(e){this.addElementPlacement(e,o)},this),e.forEach(function(e){if(!_hasDecorators(e))return t.push(e);var r=this.decorateElement(e,o);t.push(r.element),t.push.apply(t,r.extras),i.push.apply(i,r.finishers)},this),!r)return{elements:t,finishers:i};var n=this.decorateConstructor(t,r);return i.push.apply(i,n.finishers),n.finishers=i,n},addElementPlacement:function(e,r,t){var i=r[e.placement];if(!t&&-1!==i.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");i.push(e.key)},decorateElement:function(e,r){for(var t=[],i=[],o=e.decorators,n=o.length-1;n>=0;n--){var s=r[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,o[n])(a)||a);e=l.element,this.addElementPlacement(e,r),l.finisher&&i.push(l.finisher);var c=l.extras;if(c){for(var p=0;p<c.length;p++)this.addElementPlacement(c[p],r);t.push.apply(t,c)}}return{element:e,finishers:i,extras:t}},decorateConstructor:function(e,r){for(var t=[],i=r.length-1;i>=0;i--){var o=this.fromClassDescriptor(e),n=this.toClassDescriptor((0,r[i])(o)||o);if(void 0!==n.finisher&&t.push(n.finisher),void 0!==n.elements){e=n.elements;for(var s=0;s<e.length-1;s++)for(var a=s+1;a<e.length;a++)if(e[s].key===e[a].key&&e[s].placement===e[a].placement)throw new TypeError("Duplicated element ("+e[s].key+")")}}return{elements:e,finishers:t}},fromElementDescriptor:function(e){var r={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(r.initializer=e.initializer),r},toElementDescriptors:function(e){if(void 0!==e)return toArray(e).map(function(e){var r=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),r},this)},toElementDescriptor:function(e){var r=e.kind+"";if("method"!==r&&"field"!==r)throw new TypeError(\'An element descriptor\\\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "\'+r+\'"\');var t=toPropertyKey(e.key),i=e.placement+"";if("static"!==i&&"prototype"!==i&&"own"!==i)throw new TypeError(\'An element descriptor\\\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "\'+i+\'"\');var o=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var n={kind:r,key:t,placement:i,descriptor:Object.assign({},o)};return"field"!==r?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(o,"get","The property descriptor of a field descriptor"),this.disallowProperty(o,"set","The property descriptor of a field descriptor"),this.disallowProperty(o,"value","The property descriptor of a field descriptor"),n.initializer=e.initializer),n},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:_optionalCallableProperty(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var r={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),r},toClassDescriptor:function(e){var r=e.kind+"";if("class"!==r)throw new TypeError(\'A class descriptor\\\'s .kind property must be "class", but a decorator created a class descriptor with .kind "\'+r+\'"\');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var t=_optionalCallableProperty(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:t}},runClassFinishers:function(e,r){for(var t=0;t<r.length;t++){var i=(0,r[t])(e);if(void 0!==i){if("function"!=typeof i)throw new TypeError("Finishers must return a constructor.");e=i}}return e},disallowProperty:function(e,r,t){if(void 0!==e[r])throw new TypeError(t+" can\'t have a ."+r+" property.")}};return e}function _createElementDescriptor(e){var r,t=toPropertyKey(e.key);"method"===e.kind?r={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?r={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?r={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(r={configurable:!0,writable:!0,enumerable:!0});var i={kind:"field"===e.kind?"field":"method",key:t,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:r};return e.decorators&&(i.decorators=e.decorators),"field"===e.kind&&(i.initializer=e.value),i}function _coalesceGetterSetter(e,r){void 0!==e.descriptor.get?r.descriptor.get=e.descriptor.get:r.descriptor.set=e.descriptor.set}function _coalesceClassElements(e){for(var r=[],isSameElement=function(e){return"method"===e.kind&&e.key===o.key&&e.placement===o.placement},t=0;t<e.length;t++){var i,o=e[t];if("method"===o.kind&&(i=r.find(isSameElement)))if(_isDataDescriptor(o.descriptor)||_isDataDescriptor(i.descriptor)){if(_hasDecorators(o)||_hasDecorators(i))throw new ReferenceError("Duplicated methods ("+o.key+") can\'t be decorated.");i.descriptor=o.descriptor}else{if(_hasDecorators(o)){if(_hasDecorators(i))throw new ReferenceError("Decorators can\'t be placed on different accessors with for the same property ("+o.key+").");i.decorators=o.decorators}_coalesceGetterSetter(o,i)}else r.push(o)}return r}function _hasDecorators(e){return e.decorators&&e.decorators.length}function _isDataDescriptor(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function _optionalCallableProperty(e,r){var t=e[r];if(void 0!==t&&"function"!=typeof t)throw new TypeError("Expected \'"+r+"\' to be a function");return t}',{globals:["Object","TypeError","Symbol","ReferenceError"],locals:{_decorate:["body.0.id"],_getDecoratorsApi:["body.1.id","body.0.body.body.0.declarations.0.init.callee","body.1.body.body.0.expression.left"],_createElementDescriptor:["body.2.id","body.0.body.body.2.declarations.1.init.arguments.0.arguments.0.arguments.0"],_coalesceGetterSetter:["body.3.id","body.4.body.body.0.body.body.1.consequent.alternate.body.1.expression.callee"],_coalesceClassElements:["body.4.id","body.0.body.body.2.declarations.1.init.arguments.0.callee"],_hasDecorators:["body.5.id","body.1.body.body.1.declarations.0.init.properties.4.value.body.body.1.test.expressions.1.arguments.0.body.body.0.test.argument.callee","body.4.body.body.0.body.body.1.consequent.consequent.body.0.test.left.callee","body.4.body.body.0.body.body.1.consequent.consequent.body.0.test.right.callee","body.4.body.body.0.body.body.1.consequent.alternate.body.0.test.callee","body.4.body.body.0.body.body.1.consequent.alternate.body.0.consequent.body.0.test.callee"],_isDataDescriptor:["body.6.id","body.4.body.body.0.body.body.1.consequent.test.left.callee","body.4.body.body.0.body.body.1.consequent.test.right.callee"],_optionalCallableProperty:["body.7.id","body.1.body.body.1.declarations.0.init.properties.11.value.body.body.0.argument.properties.1.value.callee","body.1.body.body.1.declarations.0.init.properties.13.value.body.body.3.declarations.0.init.callee"]},exportBindingAssignments:[],exportName:"_decorate",dependencies:{toArray:["body.1.body.body.1.declarations.0.init.properties.9.value.body.body.0.consequent.argument.callee.object.callee"],toPropertyKey:["body.1.body.body.1.declarations.0.init.properties.10.value.body.body.2.declarations.0.init.callee","body.2.body.body.0.declarations.1.init.callee"]},internal:!1}),defaults:helper("7.0.0-beta.0","function _defaults(e,r){for(var t=Object.getOwnPropertyNames(r),o=0;o<t.length;o++){var n=t[o],a=Object.getOwnPropertyDescriptor(r,n);a&&a.configurable&&void 0===e[n]&&Object.defineProperty(e,n,a)}return e}",{globals:["Object"],locals:{_defaults:["body.0.id"]},exportBindingAssignments:[],exportName:"_defaults",dependencies:{},internal:!1}),defineAccessor:helper("7.20.7","function _defineAccessor(e,r,n,t){var c={configurable:!0,enumerable:!0};return c[e]=t,Object.defineProperty(r,n,c)}",{globals:["Object"],locals:{_defineAccessor:["body.0.id"]},exportBindingAssignments:[],exportName:"_defineAccessor",dependencies:{},internal:!1}),defineProperty:helper("7.0.0-beta.0","function _defineProperty(e,r,t){return(r=toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}",{globals:["Object"],locals:{_defineProperty:["body.0.id"]},exportBindingAssignments:[],exportName:"_defineProperty",dependencies:{toPropertyKey:["body.0.body.body.0.argument.expressions.0.test.left.right.callee"]},internal:!1}),extends:helper("7.0.0-beta.0","function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}",{globals:["Object"],locals:{_extends:["body.0.id","body.0.body.body.0.argument.expressions.1.callee.object","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_extends",dependencies:{},internal:!1}),get:helper("7.0.0-beta.0",'function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value}},_get.apply(null,arguments)}',{globals:["Reflect","Object"],locals:{_get:["body.0.id","body.0.body.body.0.argument.expressions.1.callee.object","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_get",dependencies:{superPropBase:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.0.declarations.0.init.callee"]},internal:!1}),getPrototypeOf:helper("7.0.0-beta.0","function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(t)}",{globals:["Object"],locals:{_getPrototypeOf:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_getPrototypeOf",dependencies:{},internal:!1}),identity:helper("7.17.0","function _identity(t){return t}",{globals:[],locals:{_identity:["body.0.id"]},exportBindingAssignments:[],exportName:"_identity",dependencies:{},internal:!1}),importDeferProxy:helper("7.23.0","function _importDeferProxy(e){var t=null,constValue=function(e){return function(){return e}},proxy=function(r){return function(n,o,f){return null===t&&(t=e()),r(t,o,f)}};return new Proxy({},{defineProperty:constValue(!1),deleteProperty:constValue(!1),get:proxy(Reflect.get),getOwnPropertyDescriptor:proxy(Reflect.getOwnPropertyDescriptor),getPrototypeOf:constValue(null),isExtensible:constValue(!1),has:proxy(Reflect.has),ownKeys:proxy(Reflect.ownKeys),preventExtensions:constValue(!0),set:constValue(!1),setPrototypeOf:constValue(!1)})}",{globals:["Proxy","Reflect"],locals:{_importDeferProxy:["body.0.id"]},exportBindingAssignments:[],exportName:"_importDeferProxy",dependencies:{},internal:!1}),inherits:helper("7.0.0-beta.0",'function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&setPrototypeOf(t,e)}',{globals:["TypeError","Object"],locals:{_inherits:["body.0.id"]},exportBindingAssignments:[],exportName:"_inherits",dependencies:{setPrototypeOf:["body.0.body.body.1.expression.expressions.2.right.callee"]},internal:!1}),inheritsLoose:helper("7.0.0-beta.0","function _inheritsLoose(t,o){t.prototype=Object.create(o.prototype),t.prototype.constructor=t,setPrototypeOf(t,o)}",{globals:["Object"],locals:{_inheritsLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_inheritsLoose",dependencies:{setPrototypeOf:["body.0.body.body.0.expression.expressions.2.callee"]},internal:!1}),initializerDefineProperty:helper("7.0.0-beta.0","function _initializerDefineProperty(e,i,r,l){r&&Object.defineProperty(e,i,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(l):void 0})}",{globals:["Object"],locals:{_initializerDefineProperty:["body.0.id"]},exportBindingAssignments:[],exportName:"_initializerDefineProperty",dependencies:{},internal:!1}),initializerWarningHelper:helper("7.0.0-beta.0",'function _initializerWarningHelper(r,e){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")}',{globals:["Error"],locals:{_initializerWarningHelper:["body.0.id"]},exportBindingAssignments:[],exportName:"_initializerWarningHelper",dependencies:{},internal:!1}),instanceof:helper("7.0.0-beta.0",'function _instanceof(n,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](n):n instanceof e}',{globals:["Symbol"],locals:{_instanceof:["body.0.id"]},exportBindingAssignments:[],exportName:"_instanceof",dependencies:{},internal:!1}),interopRequireDefault:helper("7.0.0-beta.0","function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}",{globals:[],locals:{_interopRequireDefault:["body.0.id"]},exportBindingAssignments:[],exportName:"_interopRequireDefault",dependencies:{},internal:!1}),interopRequireWildcard:helper("7.14.0",'function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(_interopRequireWildcard=function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(f,t,i):f[t]=e[t]);return f})(e,t)}',{globals:["WeakMap","Object"],locals:{_interopRequireWildcard:["body.0.id","body.0.body.body.1.argument.callee.left"]},exportBindingAssignments:["body.0.body.body.1.argument.callee"],exportName:"_interopRequireWildcard",dependencies:{},internal:!1}),isNativeFunction:helper("7.0.0-beta.0",'function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(n){return"function"==typeof t}}',{globals:["Function"],locals:{_isNativeFunction:["body.0.id"]},exportBindingAssignments:[],exportName:"_isNativeFunction",dependencies:{},internal:!1}),isNativeReflectConstruct:helper("7.9.0","function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct=function(){return!!t})()}",{globals:["Boolean","Reflect"],locals:{_isNativeReflectConstruct:["body.0.id","body.0.body.body.1.argument.callee.left"]},exportBindingAssignments:["body.0.body.body.1.argument.callee"],exportName:"_isNativeReflectConstruct",dependencies:{},internal:!1}),iterableToArray:helper("7.0.0-beta.0",'function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}',{globals:["Symbol","Array"],locals:{_iterableToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_iterableToArray",dependencies:{},internal:!1}),iterableToArrayLimit:helper("7.0.0-beta.0",'function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}',{globals:["Symbol","Object"],locals:{_iterableToArrayLimit:["body.0.id"]},exportBindingAssignments:[],exportName:"_iterableToArrayLimit",dependencies:{},internal:!1}),jsx:helper("7.0.0-beta.0",'var REACT_ELEMENT_TYPE;function _createRawReactElement(e,r,E,l){REACT_ELEMENT_TYPE||(REACT_ELEMENT_TYPE="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,n=arguments.length-3;if(r||0===n||(r={children:void 0}),1===n)r.children=l;else if(n>1){for(var t=Array(n),f=0;f<n;f++)t[f]=arguments[f+3];r.children=t}if(r&&o)for(var i in o)void 0===r[i]&&(r[i]=o[i]);else r||(r=o||{});return{$$typeof:REACT_ELEMENT_TYPE,type:e,key:void 0===E?null:""+E,ref:null,props:r,_owner:null}}',{globals:["Symbol","Array"],locals:{REACT_ELEMENT_TYPE:["body.0.declarations.0.id","body.1.body.body.0.expression.left","body.1.body.body.4.argument.properties.0.value","body.1.body.body.0.expression.right.left"],_createRawReactElement:["body.1.id"]},exportBindingAssignments:[],exportName:"_createRawReactElement",dependencies:{},internal:!1}),maybeArrayLike:helper("7.9.0",'function _maybeArrayLike(r,a,e){if(a&&!Array.isArray(a)&&"number"==typeof a.length){var y=a.length;return arrayLikeToArray(a,void 0!==e&&e<y?e:y)}return r(a,e)}',{globals:["Array"],locals:{_maybeArrayLike:["body.0.id"]},exportBindingAssignments:[],exportName:"_maybeArrayLike",dependencies:{arrayLikeToArray:["body.0.body.body.0.consequent.body.1.argument.callee"]},internal:!1}),newArrowCheck:helper("7.0.0-beta.0",'function _newArrowCheck(n,r){if(n!==r)throw new TypeError("Cannot instantiate an arrow function")}',{globals:["TypeError"],locals:{_newArrowCheck:["body.0.id"]},exportBindingAssignments:[],exportName:"_newArrowCheck",dependencies:{},internal:!1}),nonIterableRest:helper("7.0.0-beta.0",'function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}',{globals:["TypeError"],locals:{_nonIterableRest:["body.0.id"]},exportBindingAssignments:[],exportName:"_nonIterableRest",dependencies:{},internal:!1}),nonIterableSpread:helper("7.0.0-beta.0",'function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}',{globals:["TypeError"],locals:{_nonIterableSpread:["body.0.id"]},exportBindingAssignments:[],exportName:"_nonIterableSpread",dependencies:{},internal:!1}),nullishReceiverError:helper("7.22.6",'function _nullishReceiverError(r){throw new TypeError("Cannot set property of null or undefined.")}',{globals:["TypeError"],locals:{_nullishReceiverError:["body.0.id"]},exportBindingAssignments:[],exportName:"_nullishReceiverError",dependencies:{},internal:!1}),objectDestructuringEmpty:helper("7.0.0-beta.0",'function _objectDestructuringEmpty(t){if(null==t)throw new TypeError("Cannot destructure "+t)}',{globals:["TypeError"],locals:{_objectDestructuringEmpty:["body.0.id"]},exportBindingAssignments:[],exportName:"_objectDestructuringEmpty",dependencies:{},internal:!1}),objectSpread2:helper("7.5.0","function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function _objectSpread2(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){defineProperty(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}",{globals:["Object"],locals:{ownKeys:["body.0.id","body.1.body.body.0.body.body.1.expression.consequent.callee.object.callee","body.1.body.body.0.body.body.1.expression.alternate.alternate.callee.object.callee"],_objectSpread2:["body.1.id"]},exportBindingAssignments:[],exportName:"_objectSpread2",dependencies:{defineProperty:["body.1.body.body.0.body.body.1.expression.consequent.arguments.0.body.body.0.expression.callee"]},internal:!1}),objectWithoutProperties:helper("7.0.0-beta.0","function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}",{globals:["Object"],locals:{_objectWithoutProperties:["body.0.id"]},exportBindingAssignments:[],exportName:"_objectWithoutProperties",dependencies:{objectWithoutPropertiesLoose:["body.0.body.body.1.declarations.2.init.callee"]},internal:!1}),objectWithoutPropertiesLoose:helper("7.0.0-beta.0","function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n]}return t}",{globals:[],locals:{_objectWithoutPropertiesLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_objectWithoutPropertiesLoose",dependencies:{},internal:!1}),possibleConstructorReturn:helper("7.0.0-beta.0",'function _possibleConstructorReturn(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return assertThisInitialized(t)}',{globals:["TypeError"],locals:{_possibleConstructorReturn:["body.0.id"]},exportBindingAssignments:[],exportName:"_possibleConstructorReturn",dependencies:{assertThisInitialized:["body.0.body.body.2.argument.callee"]},internal:!1}),readOnlyError:helper("7.0.0-beta.0","function _readOnlyError(r){throw new TypeError('\"'+r+'\" is read-only')}",{globals:["TypeError"],locals:{_readOnlyError:["body.0.id"]},exportBindingAssignments:[],exportName:"_readOnlyError",dependencies:{},internal:!1}),regenerator:helper("7.27.0",'function _regenerator(){\n/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */\nvar e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return define(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,c=0,u=e,G.n=r,a}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0))}if(o||r>1)return a;throw y=!0,n}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a \'"+o+"\' method"),c=1);i=e}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break}catch(t){i=e,c=1,u=t}finally{f=1}}return{value:t,done:y}}}(r,o,i),!0),u}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(define(t={},n,function(){return this}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,define(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e}return GeneratorFunction.prototype=GeneratorFunctionPrototype,define(u,"constructor",GeneratorFunctionPrototype),define(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",define(GeneratorFunctionPrototype,o,"GeneratorFunction"),define(u),define(u,o,"Generator"),define(u,n,function(){return this}),define(u,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:i,m:f}})()}',{globals:["Symbol","Object","TypeError"],locals:{_regenerator:["body.0.id","body.0.body.body.9.argument.expressions.9.callee.left"]},exportBindingAssignments:["body.0.body.body.9.argument.expressions.9.callee"],exportName:"_regenerator",dependencies:{regeneratorDefine:["body.0.body.body.1.body.body.1.argument.expressions.0.callee","body.0.body.body.7.declarations.0.init.alternate.expressions.0.callee","body.0.body.body.8.body.body.0.argument.expressions.0.alternate.expressions.1.callee","body.0.body.body.9.argument.expressions.1.callee","body.0.body.body.9.argument.expressions.2.callee","body.0.body.body.9.argument.expressions.4.callee","body.0.body.body.9.argument.expressions.5.callee","body.0.body.body.9.argument.expressions.6.callee","body.0.body.body.9.argument.expressions.7.callee","body.0.body.body.9.argument.expressions.8.callee"]},internal:!1}),regeneratorAsync:helper("7.27.0","function _regeneratorAsync(n,e,r,t,o){var a=asyncGen(n,e,r,t,o);return a.next().then(function(n){return n.done?n.value:a.next()})}",{globals:[],locals:{_regeneratorAsync:["body.0.id"]},exportBindingAssignments:[],exportName:"_regeneratorAsync",dependencies:{regeneratorAsyncGen:["body.0.body.body.0.declarations.0.init.callee"]},internal:!1}),regeneratorAsyncGen:helper("7.27.0","function _regeneratorAsyncGen(r,e,t,o,n){return new regeneratorAsyncIterator(regenerator().w(r,e,t,o),n||Promise)}",{globals:["Promise"],locals:{_regeneratorAsyncGen:["body.0.id"]},exportBindingAssignments:[],exportName:"_regeneratorAsyncGen",dependencies:{regenerator:["body.0.body.body.0.argument.arguments.0.callee.object.callee"],regeneratorAsyncIterator:["body.0.body.body.0.argument.callee"]},internal:!1}),regeneratorAsyncIterator:helper("7.27.0",'function AsyncIterator(t,e){function n(r,o,i,f){try{var c=t[r](o),u=c.value;return u instanceof OverloadYield?e.resolve(u.v).then(function(t){n("next",t,i,f)},function(t){n("throw",t,i,f)}):e.resolve(u).then(function(t){c.value=t,i(c)},function(t){return n("throw",t,i,f)})}catch(t){f(t)}}var r;this.next||(define(AsyncIterator.prototype),define(AsyncIterator.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),define(this,"_invoke",function(t,o,i){function f(){return new e(function(e,r){n(t,i,e,r)})}return r=r?r.then(f,f):f()},!0)}',{globals:["Symbol"],locals:{AsyncIterator:["body.0.id","body.0.body.body.2.expression.expressions.0.right.expressions.0.arguments.0.object","body.0.body.body.2.expression.expressions.0.right.expressions.1.arguments.0.object"]},exportBindingAssignments:[],exportName:"AsyncIterator",dependencies:{OverloadYield:["body.0.body.body.0.body.body.0.block.body.1.argument.test.right"],regeneratorDefine:["body.0.body.body.2.expression.expressions.0.right.expressions.0.callee","body.0.body.body.2.expression.expressions.0.right.expressions.1.callee","body.0.body.body.2.expression.expressions.1.callee"]},internal:!0}),regeneratorDefine:helper("7.27.0",'function regeneratorDefine(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}regeneratorDefine=function(e,r,n,t){function o(r,n){regeneratorDefine(e,r,function(e){return this._invoke(r,n,e)})}r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o("next",0),o("throw",1),o("return",2))},regeneratorDefine(e,r,n,t)}',{globals:["Object"],locals:{regeneratorDefine:["body.0.id","body.0.body.body.2.expression.expressions.0.right.body.body.0.body.body.0.expression.callee","body.0.body.body.2.expression.expressions.1.callee","body.0.body.body.2.expression.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.2.expression.expressions.0"],exportName:"regeneratorDefine",dependencies:{},internal:!0}),regeneratorKeys:helper("7.27.0","function _regeneratorKeys(e){var n=Object(e),r=[];for(var t in n)r.unshift(t);return function e(){for(;r.length;)if((t=r.pop())in n)return e.value=t,e.done=!1,e;return e.done=!0,e}}",{globals:["Object"],locals:{_regeneratorKeys:["body.0.id"]},exportBindingAssignments:[],exportName:"_regeneratorKeys",dependencies:{},internal:!1}),regeneratorValues:helper("7.18.0",'function _regeneratorValues(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(typeof e+" is not iterable")}',{globals:["Symbol","isNaN","TypeError"],locals:{_regeneratorValues:["body.0.id"]},exportBindingAssignments:[],exportName:"_regeneratorValues",dependencies:{},internal:!1}),set:helper("7.0.0-beta.0",'function set(e,r,t,o){return set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,r,t,o){var f,i=superPropBase(e,r);if(i){if((f=Object.getOwnPropertyDescriptor(i,r)).set)return f.set.call(o,t),!0;if(!f.writable)return!1}if(f=Object.getOwnPropertyDescriptor(o,r)){if(!f.writable)return!1;f.value=t,Object.defineProperty(o,r,f)}else defineProperty(o,r,t);return!0},set(e,r,t,o)}function _set(e,r,t,o,f){if(!set(e,r,t,o||e)&&f)throw new TypeError("failed to set property");return t}',{globals:["Reflect","Object","TypeError"],locals:{set:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.1.body.body.0.test.left.argument.callee","body.0.body.body.0.argument.expressions.0.left"],_set:["body.1.id"]},exportBindingAssignments:[],exportName:"_set",dependencies:{superPropBase:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.0.declarations.1.init.callee"],defineProperty:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.2.alternate.expression.callee"]},internal:!1}),setFunctionName:helper("7.23.6",'function setFunctionName(e,t,n){"symbol"==typeof t&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}',{globals:["Object"],locals:{setFunctionName:["body.0.id"]},exportBindingAssignments:[],exportName:"setFunctionName",dependencies:{},internal:!1}),setPrototypeOf:helper("7.0.0-beta.0","function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}",{globals:["Object"],locals:{_setPrototypeOf:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_setPrototypeOf",dependencies:{},internal:!1}),skipFirstGeneratorNext:helper("7.0.0-beta.0","function _skipFirstGeneratorNext(t){return function(){var r=t.apply(this,arguments);return r.next(),r}}",{globals:[],locals:{_skipFirstGeneratorNext:["body.0.id"]},exportBindingAssignments:[],exportName:"_skipFirstGeneratorNext",dependencies:{},internal:!1}),slicedToArray:helper("7.0.0-beta.0","function _slicedToArray(r,e){return arrayWithHoles(r)||iterableToArrayLimit(r,e)||unsupportedIterableToArray(r,e)||nonIterableRest()}",{globals:[],locals:{_slicedToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_slicedToArray",dependencies:{arrayWithHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArrayLimit:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableRest:["body.0.body.body.0.argument.right.callee"]},internal:!1}),superPropBase:helper("7.0.0-beta.0","function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=getPrototypeOf(t)););return t}",{globals:[],locals:{_superPropBase:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropBase",dependencies:{getPrototypeOf:["body.0.body.body.0.test.right.right.right.callee"]},internal:!1}),superPropGet:helper("7.25.0",'function _superPropGet(t,o,e,r){var p=get(getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t)}:p}',{globals:[],locals:{_superPropGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropGet",dependencies:{get:["body.0.body.body.0.declarations.0.init.callee"],getPrototypeOf:["body.0.body.body.0.declarations.0.init.arguments.0.callee"]},internal:!1}),superPropSet:helper("7.25.0","function _superPropSet(t,e,o,r,p,f){return set(getPrototypeOf(f?t.prototype:t),e,o,r,p)}",{globals:[],locals:{_superPropSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropSet",dependencies:{set:["body.0.body.body.0.argument.callee"],getPrototypeOf:["body.0.body.body.0.argument.arguments.0.callee"]},internal:!1}),taggedTemplateLiteral:helper("7.0.0-beta.0","function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}",{globals:["Object"],locals:{_taggedTemplateLiteral:["body.0.id"]},exportBindingAssignments:[],exportName:"_taggedTemplateLiteral",dependencies:{},internal:!1}),taggedTemplateLiteralLoose:helper("7.0.0-beta.0","function _taggedTemplateLiteralLoose(e,t){return t||(t=e.slice(0)),e.raw=t,e}",{globals:[],locals:{_taggedTemplateLiteralLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_taggedTemplateLiteralLoose",dependencies:{},internal:!1}),tdz:helper("7.5.5",'function _tdzError(e){throw new ReferenceError(e+" is not defined - temporal dead zone")}',{globals:["ReferenceError"],locals:{_tdzError:["body.0.id"]},exportBindingAssignments:[],exportName:"_tdzError",dependencies:{},internal:!1}),temporalRef:helper("7.0.0-beta.0","function _temporalRef(r,e){return r===undef?err(e):r}",{globals:[],locals:{_temporalRef:["body.0.id"]},exportBindingAssignments:[],exportName:"_temporalRef",dependencies:{temporalUndefined:["body.0.body.body.0.argument.test.right"],tdz:["body.0.body.body.0.argument.consequent.callee"]},internal:!1}),temporalUndefined:helper("7.0.0-beta.0","function _temporalUndefined(){}",{globals:[],locals:{_temporalUndefined:["body.0.id"]},exportBindingAssignments:[],exportName:"_temporalUndefined",dependencies:{},internal:!1}),toArray:helper("7.0.0-beta.0","function _toArray(r){return arrayWithHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterableRest()}",{globals:[],locals:{_toArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_toArray",dependencies:{arrayWithHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArray:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableRest:["body.0.body.body.0.argument.right.callee"]},internal:!1}),toConsumableArray:helper("7.0.0-beta.0","function _toConsumableArray(r){return arrayWithoutHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterableSpread()}",{globals:[],locals:{_toConsumableArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_toConsumableArray",dependencies:{arrayWithoutHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArray:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableSpread:["body.0.body.body.0.argument.right.callee"]},internal:!1}),toPrimitive:helper("7.1.5",'function toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}',{globals:["Symbol","TypeError","String","Number"],locals:{toPrimitive:["body.0.id"]},exportBindingAssignments:[],exportName:"toPrimitive",dependencies:{},internal:!1}),toPropertyKey:helper("7.1.5",'function toPropertyKey(t){var i=toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}',{globals:[],locals:{toPropertyKey:["body.0.id"]},exportBindingAssignments:[],exportName:"toPropertyKey",dependencies:{toPrimitive:["body.0.body.body.0.declarations.0.init.callee"]},internal:!1}),toSetter:helper("7.24.0",'function _toSetter(t,e,n){e||(e=[]);var r=e.length++;return Object.defineProperty({},"_",{set:function(o){e[r]=o,t.apply(n,e)}})}',{globals:["Object"],locals:{_toSetter:["body.0.id"]},exportBindingAssignments:[],exportName:"_toSetter",dependencies:{},internal:!1}),tsRewriteRelativeImportExtensions:helper("7.27.0",'function tsRewriteRelativeImportExtensions(t,e){return"string"==typeof t&&/^\\.\\.?\\//.test(t)?t.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+)?)\\.([cm]?)ts$/i,function(t,s,r,n,o){return s?e?".jsx":".js":!r||n&&o?r+n+"."+o.toLowerCase()+"js":t}):t}',{globals:[],locals:{tsRewriteRelativeImportExtensions:["body.0.id"]},exportBindingAssignments:[],exportName:"tsRewriteRelativeImportExtensions",dependencies:{},internal:!1}),typeof:helper("7.0.0-beta.0",'function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}',{globals:["Symbol"],locals:{_typeof:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_typeof",dependencies:{},internal:!1}),unsupportedIterableToArray:helper("7.9.0",'function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?arrayLikeToArray(r,a):void 0}}',{globals:["Array"],locals:{_unsupportedIterableToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_unsupportedIterableToArray",dependencies:{arrayLikeToArray:["body.0.body.body.0.consequent.body.0.consequent.argument.callee","body.0.body.body.0.consequent.body.2.argument.expressions.1.alternate.consequent.callee"]},internal:!1}),usingCtx:helper("7.23.9",'function _usingCtx(){var r="function"==typeof SuppressedError?SuppressedError:function(r,e){var n=Error();return n.name="SuppressedError",n.error=r,n.suppressed=e,n},e={},n=[];function using(r,e){if(null!=e){if(Object(e)!==e)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(r)var o=e[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(void 0===o&&(o=e[Symbol.dispose||Symbol.for("Symbol.dispose")],r))var t=o;if("function"!=typeof o)throw new TypeError("Object is not disposable.");t&&(o=function(){try{t.call(e)}catch(r){return Promise.reject(r)}}),n.push({v:e,d:o,a:r})}else r&&n.push({d:e,a:r});return e}return{e:e,u:using.bind(null,!1),a:using.bind(null,!0),d:function(){var o,t=this.e,s=0;function next(){for(;o=n.pop();)try{if(!o.a&&1===s)return s=0,n.push(o),Promise.resolve().then(next);if(o.d){var r=o.d.call(o.v);if(o.a)return s|=2,Promise.resolve(r).then(next,err)}else s|=1}catch(r){return err(r)}if(1===s)return t!==e?Promise.reject(t):Promise.resolve();if(t!==e)throw t}function err(n){return t=t!==e?new r(n,t):n,next()}return next()}}}',{globals:["SuppressedError","Error","Object","TypeError","Symbol","Promise"],locals:{_usingCtx:["body.0.id"]},exportBindingAssignments:[],exportName:"_usingCtx",dependencies:{},internal:!1}),wrapAsyncGenerator:helper("7.0.0-beta.0",'function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,arguments))}}function AsyncGenerator(e){var t,n;function resume(t,n){try{var r=e[t](n),o=r.value,u=o instanceof OverloadYield;Promise.resolve(u?o.v:o).then(function(n){if(u){var i="return"===t&&o.k?t:"next";if(!o.k||n.done)return resume(i,n);n=e[i](n).value}settle(!!r.done,n)},function(e){resume("throw",e)})}catch(e){settle(2,e)}}function settle(e,r){2===e?t.reject(r):t.resolve({value:r,done:e}),(t=t.next)?resume(t.key,t.arg):n=null}this._invoke=function(e,r){return new Promise(function(o,u){var i={key:e,arg:r,resolve:o,reject:u,next:null};n?n=n.next=i:(t=n=i,resume(e,r))})},"function"!=typeof e.return&&(this.return=void 0)}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e)},AsyncGenerator.prototype.throw=function(e){return this._invoke("throw",e)},AsyncGenerator.prototype.return=function(e){return this._invoke("return",e)};',{globals:["Promise","Symbol"],locals:{_wrapAsyncGenerator:["body.0.id"],AsyncGenerator:["body.1.id","body.0.body.body.0.argument.body.body.0.argument.callee","body.2.expression.expressions.0.left.object.object","body.2.expression.expressions.1.left.object.object","body.2.expression.expressions.2.left.object.object","body.2.expression.expressions.3.left.object.object"]},exportBindingAssignments:[],exportName:"_wrapAsyncGenerator",dependencies:{OverloadYield:["body.1.body.body.1.body.body.0.block.body.0.declarations.2.init.right"]},internal:!1}),wrapNativeSuper:helper("7.0.0-beta.0",'function _wrapNativeSuper(t){var r="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(t){if(null===t||!isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper)}function Wrapper(){return construct(t,arguments,getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),setPrototypeOf(Wrapper,t)},_wrapNativeSuper(t)}',{globals:["Map","TypeError","Object"],locals:{_wrapNativeSuper:["body.0.id","body.0.body.body.1.argument.expressions.1.callee","body.0.body.body.1.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.1.argument.expressions.0"],exportName:"_wrapNativeSuper",dependencies:{getPrototypeOf:["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.arguments.2.object.callee"],setPrototypeOf:["body.0.body.body.1.argument.expressions.0.right.body.body.4.argument.expressions.1.callee"],isNativeFunction:["body.0.body.body.1.argument.expressions.0.right.body.body.0.test.right.argument.callee"],construct:["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.callee"]},internal:!1}),wrapRegExp:helper("7.19.0",'function _wrapRegExp(){_wrapRegExp=function(e,r){return new BabelRegExp(e,void 0,r)};var e=RegExp.prototype,r=new WeakMap;function BabelRegExp(e,t,p){var o=RegExp(e,t);return r.set(o,p||r.get(e)),setPrototypeOf(o,BabelRegExp.prototype)}function buildGroups(e,t){var p=r.get(t);return Object.keys(p).reduce(function(r,t){var o=p[t];if("number"==typeof o)r[t]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;r[t]=e[o[i]]}return r},Object.create(null))}return inherits(BabelRegExp,RegExp),BabelRegExp.prototype.exec=function(r){var t=e.exec.call(this,r);if(t){t.groups=buildGroups(t,this);var p=t.indices;p&&(p.groups=buildGroups(p,this))}return t},BabelRegExp.prototype[Symbol.replace]=function(t,p){if("string"==typeof p){var o=r.get(this);return e[Symbol.replace].call(this,t,p.replace(/\\$<([^>]+)(>|$)/g,function(e,r,t){if(""===t)return e;var p=o[r];return Array.isArray(p)?"$"+p.join("$"):"number"==typeof p?"$"+p:""}))}if("function"==typeof p){var i=this;return e[Symbol.replace].call(this,t,function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(buildGroups(e,i)),p.apply(this,e)})}return e[Symbol.replace].call(this,t,p)},_wrapRegExp.apply(this,arguments)}',{globals:["RegExp","WeakMap","Object","Symbol","Array"],locals:{_wrapRegExp:["body.0.id","body.0.body.body.4.argument.expressions.3.callee.object","body.0.body.body.0.expression.left"]},exportBindingAssignments:["body.0.body.body.0.expression"],exportName:"_wrapRegExp",dependencies:{setPrototypeOf:["body.0.body.body.2.body.body.1.argument.expressions.1.callee"],inherits:["body.0.body.body.4.argument.expressions.0.callee"]},internal:!1}),writeOnlyError:helper("7.12.13","function _writeOnlyError(r){throw new TypeError('\"'+r+'\" is write-only')}",{globals:["TypeError"],locals:{_writeOnlyError:["body.0.id"]},exportBindingAssignments:[],exportName:"_writeOnlyError",dependencies:{},internal:!1})};Object.assign(s,{AwaitValue:helper("7.0.0-beta.0","function _AwaitValue(t){this.wrapped=t}",{globals:[],locals:{_AwaitValue:["body.0.id"]},exportBindingAssignments:[],exportName:"_AwaitValue",dependencies:{},internal:!1}),applyDecs:helper("7.17.8",'function old_createMetadataMethodsForProperty(e,t,a,r){return{getMetadata:function(o){old_assertNotFinished(r,"getMetadata"),old_assertMetadataKey(o);var i=e[o];if(void 0!==i)if(1===t){var n=i.public;if(void 0!==n)return n[a]}else if(2===t){var l=i.private;if(void 0!==l)return l.get(a)}else if(Object.hasOwnProperty.call(i,"constructor"))return i.constructor},setMetadata:function(o,i){old_assertNotFinished(r,"setMetadata"),old_assertMetadataKey(o);var n=e[o];if(void 0===n&&(n=e[o]={}),1===t){var l=n.public;void 0===l&&(l=n.public={}),l[a]=i}else if(2===t){var s=n.priv;void 0===s&&(s=n.private=new Map),s.set(a,i)}else n.constructor=i}}}function old_convertMetadataMapToFinal(e,t){var a=e[Symbol.metadata||Symbol.for("Symbol.metadata")],r=Object.getOwnPropertySymbols(t);if(0!==r.length){for(var o=0;o<r.length;o++){var i=r[o],n=t[i],l=a?a[i]:null,s=n.public,c=l?l.public:null;s&&c&&Object.setPrototypeOf(s,c);var d=n.private;if(d){var u=Array.from(d.values()),f=l?l.private:null;f&&(u=u.concat(f)),n.private=u}l&&Object.setPrototypeOf(n,l)}a&&Object.setPrototypeOf(t,a),e[Symbol.metadata||Symbol.for("Symbol.metadata")]=t}}function old_createAddInitializerMethod(e,t){return function(a){old_assertNotFinished(t,"addInitializer"),old_assertCallable(a,"An initializer"),e.push(a)}}function old_memberDec(e,t,a,r,o,i,n,l,s){var c;switch(i){case 1:c="accessor";break;case 2:c="method";break;case 3:c="getter";break;case 4:c="setter";break;default:c="field"}var d,u,f={kind:c,name:l?"#"+t:toPropertyKey(t),isStatic:n,isPrivate:l},p={v:!1};if(0!==i&&(f.addInitializer=old_createAddInitializerMethod(o,p)),l){d=2,u=Symbol(t);var v={};0===i?(v.get=a.get,v.set=a.set):2===i?v.get=function(){return a.value}:(1!==i&&3!==i||(v.get=function(){return a.get.call(this)}),1!==i&&4!==i||(v.set=function(e){a.set.call(this,e)})),f.access=v}else d=1,u=t;try{return e(s,Object.assign(f,old_createMetadataMethodsForProperty(r,d,u,p)))}finally{p.v=!0}}function old_assertNotFinished(e,t){if(e.v)throw Error("attempted to call "+t+" after decoration was finished")}function old_assertMetadataKey(e){if("symbol"!=typeof e)throw new TypeError("Metadata keys must be symbols, received: "+e)}function old_assertCallable(e,t){if("function"!=typeof e)throw new TypeError(t+" must be a function")}function old_assertValidReturnValue(e,t){var a=typeof t;if(1===e){if("object"!==a||null===t)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&old_assertCallable(t.get,"accessor.get"),void 0!==t.set&&old_assertCallable(t.set,"accessor.set"),void 0!==t.init&&old_assertCallable(t.init,"accessor.init"),void 0!==t.initializer&&old_assertCallable(t.initializer,"accessor.initializer")}else if("function"!==a)throw new TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function old_getInit(e){var t;return null==(t=e.init)&&(t=e.initializer)&&void 0!==console&&console.warn(".initializer has been renamed to .init as of March 2022"),t}function old_applyMemberDec(e,t,a,r,o,i,n,l,s){var c,d,u,f,p,v,y,h=a[0];if(n?(0===o||1===o?(c={get:a[3],set:a[4]},u="get"):3===o?(c={get:a[3]},u="get"):4===o?(c={set:a[3]},u="set"):c={value:a[3]},0!==o&&(1===o&&setFunctionName(a[4],"#"+r,"set"),setFunctionName(a[3],"#"+r,u))):0!==o&&(c=Object.getOwnPropertyDescriptor(t,r)),1===o?f={get:c.get,set:c.set}:2===o?f=c.value:3===o?f=c.get:4===o&&(f=c.set),"function"==typeof h)void 0!==(p=old_memberDec(h,r,c,l,s,o,i,n,f))&&(old_assertValidReturnValue(o,p),0===o?d=p:1===o?(d=old_getInit(p),v=p.get||f.get,y=p.set||f.set,f={get:v,set:y}):f=p);else for(var m=h.length-1;m>=0;m--){var b;void 0!==(p=old_memberDec(h[m],r,c,l,s,o,i,n,f))&&(old_assertValidReturnValue(o,p),0===o?b=p:1===o?(b=old_getInit(p),v=p.get||f.get,y=p.set||f.set,f={get:v,set:y}):f=p,void 0!==b&&(void 0===d?d=b:"function"==typeof d?d=[d,b]:d.push(b)))}if(0===o||1===o){if(void 0===d)d=function(e,t){return t};else if("function"!=typeof d){var g=d;d=function(e,t){for(var a=t,r=0;r<g.length;r++)a=g[r].call(e,a);return a}}else{var _=d;d=function(e,t){return _.call(e,t)}}e.push(d)}0!==o&&(1===o?(c.get=f.get,c.set=f.set):2===o?c.value=f:3===o?c.get=f:4===o&&(c.set=f),n?1===o?(e.push(function(e,t){return f.get.call(e,t)}),e.push(function(e,t){return f.set.call(e,t)})):2===o?e.push(f):e.push(function(e,t){return f.call(e,t)}):Object.defineProperty(t,r,c))}function old_applyMemberDecs(e,t,a,r,o){for(var i,n,l=new Map,s=new Map,c=0;c<o.length;c++){var d=o[c];if(Array.isArray(d)){var u,f,p,v=d[1],y=d[2],h=d.length>3,m=v>=5;if(m?(u=t,f=r,0!=(v-=5)&&(p=n=n||[])):(u=t.prototype,f=a,0!==v&&(p=i=i||[])),0!==v&&!h){var b=m?s:l,g=b.get(y)||0;if(!0===g||3===g&&4!==v||4===g&&3!==v)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+y);!g&&v>2?b.set(y,v):b.set(y,!0)}old_applyMemberDec(e,u,d,y,v,m,h,f,p)}}old_pushInitializers(e,i),old_pushInitializers(e,n)}function old_pushInitializers(e,t){t&&e.push(function(e){for(var a=0;a<t.length;a++)t[a].call(e);return e})}function old_applyClassDecs(e,t,a,r){if(r.length>0){for(var o=[],i=t,n=t.name,l=r.length-1;l>=0;l--){var s={v:!1};try{var c=Object.assign({kind:"class",name:n,addInitializer:old_createAddInitializerMethod(o,s)},old_createMetadataMethodsForProperty(a,0,n,s)),d=r[l](i,c)}finally{s.v=!0}void 0!==d&&(old_assertValidReturnValue(10,d),i=d)}e.push(i,function(){for(var e=0;e<o.length;e++)o[e].call(i)})}}function applyDecs(e,t,a){var r=[],o={},i={};return old_applyMemberDecs(r,e,i,o,t),old_convertMetadataMapToFinal(e.prototype,i),old_applyClassDecs(r,e,o,a),old_convertMetadataMapToFinal(e,o),r}',{globals:["Object","Map","Symbol","Array","Error","TypeError","console"],locals:{old_createMetadataMethodsForProperty:["body.0.id","body.3.body.body.4.block.body.0.argument.arguments.1.arguments.1.callee","body.12.body.body.0.consequent.body.0.body.body.1.block.body.0.declarations.0.init.arguments.1.callee"],old_convertMetadataMapToFinal:["body.1.id","body.13.body.body.1.argument.expressions.1.callee","body.13.body.body.1.argument.expressions.3.callee"],old_createAddInitializerMethod:["body.2.id","body.3.body.body.3.test.expressions.0.right.right.callee","body.12.body.body.0.consequent.body.0.body.body.1.block.body.0.declarations.0.init.arguments.0.properties.2.value.callee"],old_memberDec:["body.3.id","body.9.body.body.1.consequent.expression.left.right.right.callee","body.9.body.body.1.alternate.body.body.1.expression.left.right.right.callee"],old_assertNotFinished:["body.4.id","body.0.body.body.0.argument.properties.0.value.body.body.0.expression.expressions.0.callee","body.0.body.body.0.argument.properties.1.value.body.body.0.expression.expressions.0.callee","body.2.body.body.0.argument.body.body.0.expression.expressions.0.callee"],old_assertMetadataKey:["body.5.id","body.0.body.body.0.argument.properties.0.value.body.body.0.expression.expressions.1.callee","body.0.body.body.0.argument.properties.1.value.body.body.0.expression.expressions.1.callee"],old_assertCallable:["body.6.id","body.2.body.body.0.argument.body.body.0.expression.expressions.1.callee","body.7.body.body.1.consequent.body.1.expression.expressions.0.right.callee","body.7.body.body.1.consequent.body.1.expression.expressions.1.right.callee","body.7.body.body.1.consequent.body.1.expression.expressions.2.right.callee","body.7.body.body.1.consequent.body.1.expression.expressions.3.right.callee"],old_assertValidReturnValue:["body.7.id","body.9.body.body.1.consequent.expression.right.expressions.0.callee","body.9.body.body.1.alternate.body.body.1.expression.right.expressions.0.callee","body.12.body.body.0.consequent.body.0.body.body.2.expression.right.expressions.0.callee"],old_getInit:["body.8.id","body.9.body.body.1.consequent.expression.right.expressions.1.alternate.consequent.expressions.0.right.callee","body.9.body.body.1.alternate.body.body.1.expression.right.expressions.1.alternate.consequent.expressions.0.right.callee"],old_applyMemberDec:["body.9.id","body.10.body.body.0.body.body.1.consequent.body.2.expression.callee"],old_applyMemberDecs:["body.10.id","body.13.body.body.1.argument.expressions.0.callee"],old_pushInitializers:["body.11.id","body.10.body.body.1.expression.expressions.0.callee","body.10.body.body.1.expression.expressions.1.callee"],old_applyClassDecs:["body.12.id","body.13.body.body.1.argument.expressions.2.callee"],applyDecs:["body.13.id"]},exportBindingAssignments:[],exportName:"applyDecs",dependencies:{setFunctionName:["body.9.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.0.right.callee","body.9.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.1.callee"],toPropertyKey:["body.3.body.body.2.declarations.2.init.properties.1.value.alternate.callee"]},internal:!1}),applyDecs2203:helper("7.19.0",'function applyDecs2203Factory(){function createAddInitializerMethod(e,t){return function(r){!function(e){if(e.v)throw Error("attempted to call addInitializer after decoration was finished")}(t),assertCallable(r,"An initializer"),e.push(r)}}function memberDec(e,t,r,a,n,i,s,o){var c;switch(n){case 1:c="accessor";break;case 2:c="method";break;case 3:c="getter";break;case 4:c="setter";break;default:c="field"}var l,u,f={kind:c,name:s?"#"+t:t,static:i,private:s},p={v:!1};0!==n&&(f.addInitializer=createAddInitializerMethod(a,p)),0===n?s?(l=r.get,u=r.set):(l=function(){return this[t]},u=function(e){this[t]=e}):2===n?l=function(){return r.value}:(1!==n&&3!==n||(l=function(){return r.get.call(this)}),1!==n&&4!==n||(u=function(e){r.set.call(this,e)})),f.access=l&&u?{get:l,set:u}:l?{get:l}:{set:u};try{return e(o,f)}finally{p.v=!0}}function assertCallable(e,t){if("function"!=typeof e)throw new TypeError(t+" must be a function")}function assertValidReturnValue(e,t){var r=typeof t;if(1===e){if("object"!==r||null===t)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&assertCallable(t.get,"accessor.get"),void 0!==t.set&&assertCallable(t.set,"accessor.set"),void 0!==t.init&&assertCallable(t.init,"accessor.init")}else if("function"!==r)throw new TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function applyMemberDec(e,t,r,a,n,i,s,o){var c,l,u,f,p,d,h=r[0];if(s?c=0===n||1===n?{get:r[3],set:r[4]}:3===n?{get:r[3]}:4===n?{set:r[3]}:{value:r[3]}:0!==n&&(c=Object.getOwnPropertyDescriptor(t,a)),1===n?u={get:c.get,set:c.set}:2===n?u=c.value:3===n?u=c.get:4===n&&(u=c.set),"function"==typeof h)void 0!==(f=memberDec(h,a,c,o,n,i,s,u))&&(assertValidReturnValue(n,f),0===n?l=f:1===n?(l=f.init,p=f.get||u.get,d=f.set||u.set,u={get:p,set:d}):u=f);else for(var v=h.length-1;v>=0;v--){var g;void 0!==(f=memberDec(h[v],a,c,o,n,i,s,u))&&(assertValidReturnValue(n,f),0===n?g=f:1===n?(g=f.init,p=f.get||u.get,d=f.set||u.set,u={get:p,set:d}):u=f,void 0!==g&&(void 0===l?l=g:"function"==typeof l?l=[l,g]:l.push(g)))}if(0===n||1===n){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var y=l;l=function(e,t){for(var r=t,a=0;a<y.length;a++)r=y[a].call(e,r);return r}}else{var m=l;l=function(e,t){return m.call(e,t)}}e.push(l)}0!==n&&(1===n?(c.get=u.get,c.set=u.set):2===n?c.value=u:3===n?c.get=u:4===n&&(c.set=u),s?1===n?(e.push(function(e,t){return u.get.call(e,t)}),e.push(function(e,t){return u.set.call(e,t)})):2===n?e.push(u):e.push(function(e,t){return u.call(e,t)}):Object.defineProperty(t,a,c))}function pushInitializers(e,t){t&&e.push(function(e){for(var r=0;r<t.length;r++)t[r].call(e);return e})}return function(e,t,r){var a=[];return function(e,t,r){for(var a,n,i=new Map,s=new Map,o=0;o<r.length;o++){var c=r[o];if(Array.isArray(c)){var l,u,f=c[1],p=c[2],d=c.length>3,h=f>=5;if(h?(l=t,0!=(f-=5)&&(u=n=n||[])):(l=t.prototype,0!==f&&(u=a=a||[])),0!==f&&!d){var v=h?s:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(e,l,c,p,f,h,d,u)}}pushInitializers(e,a),pushInitializers(e,n)}(a,e,t),function(e,t,r){if(r.length>0){for(var a=[],n=t,i=t.name,s=r.length-1;s>=0;s--){var o={v:!1};try{var c=r[s](n,{kind:"class",name:i,addInitializer:createAddInitializerMethod(a,o)})}finally{o.v=!0}void 0!==c&&(assertValidReturnValue(10,c),n=c)}e.push(n,function(){for(var e=0;e<a.length;e++)a[e].call(n)})}}(a,e,r),a}}var applyDecs2203Impl;function applyDecs2203(e,t,r){return(applyDecs2203Impl=applyDecs2203Impl||applyDecs2203Factory())(e,t,r)}',{globals:["Error","TypeError","Object","Map","Array"],locals:{applyDecs2203Factory:["body.0.id","body.2.body.body.0.argument.callee.right.right.callee"],applyDecs2203Impl:["body.1.declarations.0.id","body.2.body.body.0.argument.callee.right.left","body.2.body.body.0.argument.callee.left"],applyDecs2203:["body.2.id"]},exportBindingAssignments:[],exportName:"applyDecs2203",dependencies:{},internal:!1}),applyDecs2203R:helper("7.20.0",'function applyDecs2203RFactory(){function createAddInitializerMethod(e,t){return function(r){!function(e){if(e.v)throw Error("attempted to call addInitializer after decoration was finished")}(t),assertCallable(r,"An initializer"),e.push(r)}}function memberDec(e,t,r,n,a,i,o,s){var c;switch(a){case 1:c="accessor";break;case 2:c="method";break;case 3:c="getter";break;case 4:c="setter";break;default:c="field"}var l,u,f={kind:c,name:o?"#"+t:toPropertyKey(t),static:i,private:o},p={v:!1};0!==a&&(f.addInitializer=createAddInitializerMethod(n,p)),0===a?o?(l=r.get,u=r.set):(l=function(){return this[t]},u=function(e){this[t]=e}):2===a?l=function(){return r.value}:(1!==a&&3!==a||(l=function(){return r.get.call(this)}),1!==a&&4!==a||(u=function(e){r.set.call(this,e)})),f.access=l&&u?{get:l,set:u}:l?{get:l}:{set:u};try{return e(s,f)}finally{p.v=!0}}function assertCallable(e,t){if("function"!=typeof e)throw new TypeError(t+" must be a function")}function assertValidReturnValue(e,t){var r=typeof t;if(1===e){if("object"!==r||null===t)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&assertCallable(t.get,"accessor.get"),void 0!==t.set&&assertCallable(t.set,"accessor.set"),void 0!==t.init&&assertCallable(t.init,"accessor.init")}else if("function"!==r)throw new TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function applyMemberDec(e,t,r,n,a,i,o,s){var c,l,u,f,p,d,h,v=r[0];if(o?(0===a||1===a?(c={get:r[3],set:r[4]},u="get"):3===a?(c={get:r[3]},u="get"):4===a?(c={set:r[3]},u="set"):c={value:r[3]},0!==a&&(1===a&&setFunctionName(r[4],"#"+n,"set"),setFunctionName(r[3],"#"+n,u))):0!==a&&(c=Object.getOwnPropertyDescriptor(t,n)),1===a?f={get:c.get,set:c.set}:2===a?f=c.value:3===a?f=c.get:4===a&&(f=c.set),"function"==typeof v)void 0!==(p=memberDec(v,n,c,s,a,i,o,f))&&(assertValidReturnValue(a,p),0===a?l=p:1===a?(l=p.init,d=p.get||f.get,h=p.set||f.set,f={get:d,set:h}):f=p);else for(var g=v.length-1;g>=0;g--){var y;void 0!==(p=memberDec(v[g],n,c,s,a,i,o,f))&&(assertValidReturnValue(a,p),0===a?y=p:1===a?(y=p.init,d=p.get||f.get,h=p.set||f.set,f={get:d,set:h}):f=p,void 0!==y&&(void 0===l?l=y:"function"==typeof l?l=[l,y]:l.push(y)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var m=l;l=function(e,t){for(var r=t,n=0;n<m.length;n++)r=m[n].call(e,r);return r}}else{var b=l;l=function(e,t){return b.call(e,t)}}e.push(l)}0!==a&&(1===a?(c.get=f.get,c.set=f.set):2===a?c.value=f:3===a?c.get=f:4===a&&(c.set=f),o?1===a?(e.push(function(e,t){return f.get.call(e,t)}),e.push(function(e,t){return f.set.call(e,t)})):2===a?e.push(f):e.push(function(e,t){return f.call(e,t)}):Object.defineProperty(t,n,c))}function applyMemberDecs(e,t){for(var r,n,a=[],i=new Map,o=new Map,s=0;s<t.length;s++){var c=t[s];if(Array.isArray(c)){var l,u,f=c[1],p=c[2],d=c.length>3,h=f>=5;if(h?(l=e,0!=(f-=5)&&(u=n=n||[])):(l=e.prototype,0!==f&&(u=r=r||[])),0!==f&&!d){var v=h?o:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(a,l,c,p,f,h,d,u)}}return pushInitializers(a,r),pushInitializers(a,n),a}function pushInitializers(e,t){t&&e.push(function(e){for(var r=0;r<t.length;r++)t[r].call(e);return e})}return function(e,t,r){return{e:applyMemberDecs(e,t),get c(){return function(e,t){if(t.length>0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var o={v:!1};try{var s=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,o)})}finally{o.v=!0}void 0!==s&&(assertValidReturnValue(10,s),n=s)}return[n,function(){for(var e=0;e<r.length;e++)r[e].call(n)}]}}(e,r)}}}}function applyDecs2203R(e,t,r){return(applyDecs2203R=applyDecs2203RFactory())(e,t,r)}',{globals:["Error","TypeError","Object","Map","Array"],locals:{applyDecs2203RFactory:["body.0.id","body.1.body.body.0.argument.callee.right.callee"],applyDecs2203R:["body.1.id","body.1.body.body.0.argument.callee.left"]},exportBindingAssignments:["body.1.body.body.0.argument.callee"],exportName:"applyDecs2203R",dependencies:{setFunctionName:["body.0.body.body.4.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.0.right.callee","body.0.body.body.4.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.1.callee"],toPropertyKey:["body.0.body.body.1.body.body.2.declarations.2.init.properties.1.value.alternate.callee"]},internal:!1}),applyDecs2301:helper("7.21.0",'function applyDecs2301Factory(){function createAddInitializerMethod(e,t){return function(r){!function(e){if(e.v)throw Error("attempted to call addInitializer after decoration was finished")}(t),assertCallable(r,"An initializer"),e.push(r)}}function assertInstanceIfPrivate(e,t){if(!e(t))throw new TypeError("Attempted to access private element on non-instance")}function memberDec(e,t,r,n,a,i,s,o,c){var u;switch(a){case 1:u="accessor";break;case 2:u="method";break;case 3:u="getter";break;case 4:u="setter";break;default:u="field"}var l,f,p={kind:u,name:s?"#"+t:toPropertyKey(t),static:i,private:s},d={v:!1};if(0!==a&&(p.addInitializer=createAddInitializerMethod(n,d)),s||0!==a&&2!==a)if(2===a)l=function(e){return assertInstanceIfPrivate(c,e),r.value};else{var h=0===a||1===a;(h||3===a)&&(l=s?function(e){return assertInstanceIfPrivate(c,e),r.get.call(e)}:function(e){return r.get.call(e)}),(h||4===a)&&(f=s?function(e,t){assertInstanceIfPrivate(c,e),r.set.call(e,t)}:function(e,t){r.set.call(e,t)})}else l=function(e){return e[t]},0===a&&(f=function(e,r){e[t]=r});var v=s?c.bind():function(e){return t in e};p.access=l&&f?{get:l,set:f,has:v}:l?{get:l,has:v}:{set:f,has:v};try{return e(o,p)}finally{d.v=!0}}function assertCallable(e,t){if("function"!=typeof e)throw new TypeError(t+" must be a function")}function assertValidReturnValue(e,t){var r=typeof t;if(1===e){if("object"!==r||null===t)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&assertCallable(t.get,"accessor.get"),void 0!==t.set&&assertCallable(t.set,"accessor.set"),void 0!==t.init&&assertCallable(t.init,"accessor.init")}else if("function"!==r)throw new TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function curryThis2(e){return function(t){e(this,t)}}function applyMemberDec(e,t,r,n,a,i,s,o,c){var u,l,f,p,d,h,v,y,g=r[0];if(s?(0===a||1===a?(u={get:(d=r[3],function(){return d(this)}),set:curryThis2(r[4])},f="get"):3===a?(u={get:r[3]},f="get"):4===a?(u={set:r[3]},f="set"):u={value:r[3]},0!==a&&(1===a&&setFunctionName(u.set,"#"+n,"set"),setFunctionName(u[f||"value"],"#"+n,f))):0!==a&&(u=Object.getOwnPropertyDescriptor(t,n)),1===a?p={get:u.get,set:u.set}:2===a?p=u.value:3===a?p=u.get:4===a&&(p=u.set),"function"==typeof g)void 0!==(h=memberDec(g,n,u,o,a,i,s,p,c))&&(assertValidReturnValue(a,h),0===a?l=h:1===a?(l=h.init,v=h.get||p.get,y=h.set||p.set,p={get:v,set:y}):p=h);else for(var m=g.length-1;m>=0;m--){var b;void 0!==(h=memberDec(g[m],n,u,o,a,i,s,p,c))&&(assertValidReturnValue(a,h),0===a?b=h:1===a?(b=h.init,v=h.get||p.get,y=h.set||p.set,p={get:v,set:y}):p=h,void 0!==b&&(void 0===l?l=b:"function"==typeof l?l=[l,b]:l.push(b)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var I=l;l=function(e,t){for(var r=t,n=0;n<I.length;n++)r=I[n].call(e,r);return r}}else{var w=l;l=function(e,t){return w.call(e,t)}}e.push(l)}0!==a&&(1===a?(u.get=p.get,u.set=p.set):2===a?u.value=p:3===a?u.get=p:4===a&&(u.set=p),s?1===a?(e.push(function(e,t){return p.get.call(e,t)}),e.push(function(e,t){return p.set.call(e,t)})):2===a?e.push(p):e.push(function(e,t){return p.call(e,t)}):Object.defineProperty(t,n,u))}function applyMemberDecs(e,t,r){for(var n,a,i,s=[],o=new Map,c=new Map,u=0;u<t.length;u++){var l=t[u];if(Array.isArray(l)){var f,p,d=l[1],h=l[2],v=l.length>3,y=d>=5,g=r;if(y?(f=e,0!=(d-=5)&&(p=a=a||[]),v&&!i&&(i=function(t){return checkInRHS(t)===e}),g=i):(f=e.prototype,0!==d&&(p=n=n||[])),0!==d&&!v){var m=y?c:o,b=m.get(h)||0;if(!0===b||3===b&&4!==d||4===b&&3!==d)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);!b&&d>2?m.set(h,d):m.set(h,!0)}applyMemberDec(s,f,l,h,d,y,v,p,g)}}return pushInitializers(s,n),pushInitializers(s,a),s}function pushInitializers(e,t){t&&e.push(function(e){for(var r=0;r<t.length;r++)t[r].call(e);return e})}return function(e,t,r,n){return{e:applyMemberDecs(e,t,n),get c(){return function(e,t){if(t.length>0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var s={v:!1};try{var o=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,s)})}finally{s.v=!0}void 0!==o&&(assertValidReturnValue(10,o),n=o)}return[n,function(){for(var e=0;e<r.length;e++)r[e].call(n)}]}}(e,r)}}}}function applyDecs2301(e,t,r,n){return(applyDecs2301=applyDecs2301Factory())(e,t,r,n)}',{globals:["Error","TypeError","Object","Map","Array"],locals:{applyDecs2301Factory:["body.0.id","body.1.body.body.0.argument.callee.right.callee"],applyDecs2301:["body.1.id","body.1.body.body.0.argument.callee.left"]},exportBindingAssignments:["body.1.body.body.0.argument.callee"],exportName:"applyDecs2301",dependencies:{checkInRHS:["body.0.body.body.7.body.body.0.body.body.1.consequent.body.1.test.expressions.0.consequent.expressions.2.right.right.body.body.0.argument.left.callee"],setFunctionName:["body.0.body.body.6.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.0.right.callee","body.0.body.body.6.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.1.callee"],toPropertyKey:["body.0.body.body.2.body.body.2.declarations.2.init.properties.1.value.alternate.callee"]},internal:!1}),applyDecs2305:helper("7.21.0",'function applyDecs2305(e,t,r,n,o,a){function i(e,t,r){return function(n,o){return r&&r(n),e[t].call(n,o)}}function c(e,t){for(var r=0;r<e.length;r++)e[r].call(t);return t}function s(e,t,r,n){if("function"!=typeof e&&(n||void 0!==e))throw new TypeError(t+" must "+(r||"be")+" a function"+(n?"":" or undefined"));return e}function applyDec(e,t,r,n,o,a,c,u,l,f,p,d,h){function m(e){if(!h(e))throw new TypeError("Attempted to access private element on non-instance")}var y,v=t[0],g=t[3],b=!u;if(!b){r||Array.isArray(v)||(v=[v]);var w={},S=[],A=3===o?"get":4===o||d?"set":"value";f?(p||d?w={get:setFunctionName(function(){return g(this)},n,"get"),set:function(e){t[4](this,e)}}:w[A]=g,p||setFunctionName(w[A],n,2===o?"":A)):p||(w=Object.getOwnPropertyDescriptor(e,n))}for(var P=e,j=v.length-1;j>=0;j-=r?2:1){var D=v[j],E=r?v[j-1]:void 0,I={},O={kind:["field","accessor","method","getter","setter","class"][o],name:n,metadata:a,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");s(t,"An initializer","be",!0),c.push(t)}.bind(null,I)};try{if(b)(y=s(D.call(E,P,O),"class decorators","return"))&&(P=y);else{var k,F;O.static=l,O.private=f,f?2===o?k=function(e){return m(e),w.value}:(o<4&&(k=i(w,"get",m)),3!==o&&(F=i(w,"set",m))):(k=function(e){return e[n]},(o<2||4===o)&&(F=function(e,t){e[n]=t}));var N=O.access={has:f?h.bind():function(e){return n in e}};if(k&&(N.get=k),F&&(N.set=F),P=D.call(E,d?{get:w.get,set:w.set}:w[A],O),d){if("object"==typeof P&&P)(y=s(P.get,"accessor.get"))&&(w.get=y),(y=s(P.set,"accessor.set"))&&(w.set=y),(y=s(P.init,"accessor.init"))&&S.push(y);else if(void 0!==P)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0")}else s(P,(p?"field":"method")+" decorators","return")&&(p?S.push(P):w[A]=P)}}finally{I.v=!0}}return(p||d)&&u.push(function(e,t){for(var r=S.length-1;r>=0;r--)t=S[r].call(e,t);return t}),p||b||(f?d?u.push(i(w,"get"),i(w,"set")):u.push(2===o?w[A]:i.call.bind(w[A])):Object.defineProperty(e,n,w)),P}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var l=a[Symbol.metadata||Symbol.for("Symbol.metadata")];var f=Object.create(null==l?null:l),p=function(e,t,r,n){var o,a,i=[],s=function(t){return checkInRHS(t)===e},u=new Map;function l(e){e&&i.push(c.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var d=p[1],h=p[2],m=p.length>3,y=16&d,v=!!(8&d),g=0==(d&=7),b=h+"/"+v;if(!g&&!m){var w=u.get(b);if(!0===w||3===w&&4!==d||4===w&&3!==d)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);u.set(b,!(d>2)||d)}applyDec(v?e:e.prototype,p,y,m?"#"+h:toPropertyKey(h),d,n,v?a=a||[]:o=o||[],i,v,m,g,1===d,v&&m?s:r)}}return l(o),l(a),i}(e,t,o,f);return r.length||u(e,f),{e:p,get c(){var t=[];return r.length&&[u(applyDec(e,[r],n,e.name,5,f,t),f),c.bind(null,t,e)]}}}',{globals:["TypeError","Array","Object","Error","Symbol","Map"],locals:{applyDecs2305:["body.0.id"]},exportBindingAssignments:[],exportName:"applyDecs2305",dependencies:{checkInRHS:["body.0.body.body.6.declarations.1.init.callee.body.body.0.declarations.3.init.body.body.0.argument.left.callee"],setFunctionName:["body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.0.consequent.right.properties.0.value.callee","body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.1.right.callee"],toPropertyKey:["body.0.body.body.6.declarations.1.init.callee.body.body.2.body.body.1.consequent.body.2.expression.arguments.3.alternate.callee"]},internal:!1}),classApplyDescriptorDestructureSet:helper("7.13.10",'function _classApplyDescriptorDestructureSet(e,t){if(t.set)return"__destrObj"in t||(t.__destrObj={set value(r){t.set.call(e,r)}}),t.__destrObj;if(!t.writable)throw new TypeError("attempted to set read only private field");return t}',{globals:["TypeError"],locals:{_classApplyDescriptorDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorDestructureSet",dependencies:{},internal:!1}),classApplyDescriptorGet:helper("7.13.10","function _classApplyDescriptorGet(e,t){return t.get?t.get.call(e):t.value}",{globals:[],locals:{_classApplyDescriptorGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorGet",dependencies:{},internal:!1}),classApplyDescriptorSet:helper("7.13.10",'function _classApplyDescriptorSet(e,t,l){if(t.set)t.set.call(e,l);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=l}}',{globals:["TypeError"],locals:{_classApplyDescriptorSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorSet",dependencies:{},internal:!1}),classCheckPrivateStaticAccess:helper("7.13.10","function _classCheckPrivateStaticAccess(s,a,r){return assertClassBrand(a,s,r)}",{globals:[],locals:{_classCheckPrivateStaticAccess:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCheckPrivateStaticAccess",dependencies:{assertClassBrand:["body.0.body.body.0.argument.callee"]},internal:!1}),classCheckPrivateStaticFieldDescriptor:helper("7.13.10",'function _classCheckPrivateStaticFieldDescriptor(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}',{globals:["TypeError"],locals:{_classCheckPrivateStaticFieldDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCheckPrivateStaticFieldDescriptor",dependencies:{},internal:!1}),classExtractFieldDescriptor:helper("7.13.10","function _classExtractFieldDescriptor(e,t){return classPrivateFieldGet2(t,e)}",{globals:[],locals:{_classExtractFieldDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_classExtractFieldDescriptor",dependencies:{classPrivateFieldGet2:["body.0.body.body.0.argument.callee"]},internal:!1}),classPrivateFieldDestructureSet:helper("7.4.4","function _classPrivateFieldDestructureSet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescriptorDestructureSet(e,r)}",{globals:[],locals:{_classPrivateFieldDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldDestructureSet",dependencies:{classApplyDescriptorDestructureSet:["body.0.body.body.1.argument.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]},internal:!1}),classPrivateFieldGet:helper("7.0.0-beta.0","function _classPrivateFieldGet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescriptorGet(e,r)}",{globals:[],locals:{_classPrivateFieldGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldGet",dependencies:{classApplyDescriptorGet:["body.0.body.body.1.argument.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]},internal:!1}),classPrivateFieldSet:helper("7.0.0-beta.0","function _classPrivateFieldSet(e,t,r){var s=classPrivateFieldGet2(t,e);return classApplyDescriptorSet(e,s,r),r}",{globals:[],locals:{_classPrivateFieldSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldSet",dependencies:{classApplyDescriptorSet:["body.0.body.body.1.argument.expressions.0.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]},internal:!1}),classPrivateMethodGet:helper("7.1.6","function _classPrivateMethodGet(s,a,r){return assertClassBrand(a,s),r}",{globals:[],locals:{_classPrivateMethodGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodGet",dependencies:{assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"]},internal:!1}),classPrivateMethodSet:helper("7.1.6",'function _classPrivateMethodSet(){throw new TypeError("attempted to reassign private method")}',{globals:["TypeError"],locals:{_classPrivateMethodSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodSet",dependencies:{},internal:!1}),classStaticPrivateFieldDestructureSet:helper("7.13.10",'function _classStaticPrivateFieldDestructureSet(t,r,s){return assertClassBrand(r,t),classCheckPrivateStaticFieldDescriptor(s,"set"),classApplyDescriptorDestructureSet(t,s)}',{globals:[],locals:{_classStaticPrivateFieldDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldDestructureSet",dependencies:{classApplyDescriptorDestructureSet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]},internal:!1}),classStaticPrivateFieldSpecGet:helper("7.0.2",'function _classStaticPrivateFieldSpecGet(t,s,r){return assertClassBrand(s,t),classCheckPrivateStaticFieldDescriptor(r,"get"),classApplyDescriptorGet(t,r)}',{globals:[],locals:{_classStaticPrivateFieldSpecGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldSpecGet",dependencies:{classApplyDescriptorGet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]},internal:!1}),classStaticPrivateFieldSpecSet:helper("7.0.2",'function _classStaticPrivateFieldSpecSet(s,t,r,e){return assertClassBrand(t,s),classCheckPrivateStaticFieldDescriptor(r,"set"),classApplyDescriptorSet(s,r,e),e}',{globals:[],locals:{_classStaticPrivateFieldSpecSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldSpecSet",dependencies:{classApplyDescriptorSet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]},internal:!1}),classStaticPrivateMethodSet:helper("7.3.2",'function _classStaticPrivateMethodSet(){throw new TypeError("attempted to set read only static private field")}',{globals:["TypeError"],locals:{_classStaticPrivateMethodSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateMethodSet",dependencies:{},internal:!1}),defineEnumerableProperties:helper("7.0.0-beta.0",'function _defineEnumerableProperties(e,r){for(var t in r){var n=r[t];n.configurable=n.enumerable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,t,n)}if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(r),b=0;b<a.length;b++){var i=a[b];(n=r[i]).configurable=n.enumerable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i,n)}return e}',{globals:["Object"],locals:{_defineEnumerableProperties:["body.0.id"]},exportBindingAssignments:[],exportName:"_defineEnumerableProperties",dependencies:{},internal:!1}),dispose:helper("7.22.0",'function dispose_SuppressedError(r,e){return"undefined"!=typeof SuppressedError?dispose_SuppressedError=SuppressedError:(dispose_SuppressedError=function(r,e){this.suppressed=e,this.error=r,this.stack=Error().stack},dispose_SuppressedError.prototype=Object.create(Error.prototype,{constructor:{value:dispose_SuppressedError,writable:!0,configurable:!0}})),new dispose_SuppressedError(r,e)}function _dispose(r,e,s){function next(){for(;r.length>0;)try{var o=r.pop(),p=o.d.call(o.v);if(o.a)return Promise.resolve(p).then(next,err)}catch(r){return err(r)}if(s)throw e}function err(r){return e=s?new dispose_SuppressedError(e,r):r,s=!0,next()}return next()}',{globals:["SuppressedError","Error","Object","Promise"],locals:{dispose_SuppressedError:["body.0.id","body.0.body.body.0.argument.expressions.0.alternate.expressions.1.left.object","body.0.body.body.0.argument.expressions.0.alternate.expressions.1.right.arguments.1.properties.0.value.properties.0.value","body.0.body.body.0.argument.expressions.1.callee","body.1.body.body.1.body.body.0.argument.expressions.0.right.consequent.callee","body.0.body.body.0.argument.expressions.0.consequent.left","body.0.body.body.0.argument.expressions.0.alternate.expressions.0.left"],_dispose:["body.1.id"]},exportBindingAssignments:[],exportName:"_dispose",dependencies:{},internal:!1}),objectSpread:helper("7.0.0-beta.0",'function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?Object(arguments[r]):{},o=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.forEach(function(r){defineProperty(e,r,t[r])})}return e}',{globals:["Object"],locals:{_objectSpread:["body.0.id"]},exportBindingAssignments:[],exportName:"_objectSpread",dependencies:{defineProperty:["body.0.body.body.0.body.body.1.expression.expressions.1.arguments.0.body.body.0.expression.callee"]},internal:!1}),regeneratorRuntime:helper("7.18.0",'function _regeneratorRuntime(){"use strict";var r=regenerator(),e=r.m(_regeneratorRuntime),t=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function n(r){var e="function"==typeof r&&r.constructor;return!!e&&(e===t||"GeneratorFunction"===(e.displayName||e.name))}var o={throw:1,return:2,break:3,continue:3};function a(r){var e,t;return function(n){e||(e={stop:function(){return t(n.a,2)},catch:function(){return n.v},abrupt:function(r,e){return t(n.a,o[r],e)},delegateYield:function(r,o,a){return e.resultName=o,t(n.d,values(r),a)},finish:function(r){return t(n.f,r)}},t=function(r,t,o){n.p=e.prev,n.n=e.next;try{return r(t,o)}finally{e.next=n.n}}),e.resultName&&(e[e.resultName]=n.v,e.resultName=void 0),e.sent=n.v,e.next=n.n;try{return r.call(this,e)}finally{n.p=e.prev,n.n=e.next}}}return(_regeneratorRuntime=function(){return{wrap:function(e,t,n,o){return r.w(a(e),t,n,o&&o.reverse())},isGeneratorFunction:n,mark:r.m,awrap:function(r,e){return new OverloadYield(r,e)},AsyncIterator:AsyncIterator,async:function(r,e,t,o,u){return(n(e)?asyncGen:async)(a(r),e,t,o,u)},keys:keys,values:values}})()}',{globals:["Object"],locals:{_regeneratorRuntime:["body.0.id","body.0.body.body.0.declarations.1.init.arguments.0","body.0.body.body.4.argument.callee.left"]},exportBindingAssignments:["body.0.body.body.4.argument.callee"],exportName:"_regeneratorRuntime",dependencies:{OverloadYield:["body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.3.value.body.body.0.argument.callee"],regenerator:["body.0.body.body.0.declarations.0.init.callee"],regeneratorAsync:["body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.5.value.body.body.0.argument.callee.alternate"],regeneratorAsyncGen:["body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.5.value.body.body.0.argument.callee.consequent"],regeneratorAsyncIterator:["body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.4.value"],regeneratorKeys:["body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.6.value"],regeneratorValues:["body.0.body.body.3.body.body.1.argument.body.body.0.expression.expressions.0.right.expressions.0.right.properties.3.value.body.body.0.argument.expressions.1.arguments.1.callee","body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.7.value"]},internal:!1}),using:helper("7.22.0",'function _using(o,n,e){if(null==n)return n;if(Object(n)!==n)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(e)var r=n[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(null==r&&(r=n[Symbol.dispose||Symbol.for("Symbol.dispose")]),"function"!=typeof r)throw new TypeError("Property [Symbol.dispose] is not a function.");return o.push({v:n,d:r,a:e}),n}',{globals:["Object","TypeError","Symbol"],locals:{_using:["body.0.id"]},exportBindingAssignments:[],exportName:"_using",dependencies:{},internal:!1})})},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/helpers/lib/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.get=get,t.getDependencies=function(e){return loadHelper(e).getDependencies()},t.isInternal=function(e){var t;return null==(t=s.default[e])?void 0:t.metadata.internal},t.list=void 0,t.minVersion=function(e){return loadHelper(e).minVersion};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helpers/lib/helpers-generated.js");const{cloneNode:i,identifier:o}=n;function deep(e,t,r){try{const n=t.split(".");let s=n.shift();for(;n.length>0;)e=e[s],s=n.shift();if(!(arguments.length>2))return e[s];e[s]=r}catch(e){throw e.message+=` (when accessing ${t})`,e}}const a=Object.create(null);function loadHelper(e){if(!a[e]){const t=s.default[e];if(!t)throw Object.assign(new ReferenceError(`Unknown helper ${e}`),{code:"BABEL_HELPER_UNKNOWN",helper:e});a[e]={minVersion:t.minVersion,build(e,r,n,s){const a=t.ast();return function(e,t,r,n,s,a){const{locals:l,dependencies:p,exportBindingAssignments:c,exportName:u}=t,d=new Set(n||[]);r&&d.add(r);for(const[t,n]of(Object.entries||(e=>Object.keys(e).map(t=>[t,e[t]])))(l)){let s=t;if(r&&t===u)s=r;else for(;d.has(s);)s="_"+s;if(s!==t)for(const t of n)deep(e,t,o(s))}for(const[t,r]of(Object.entries||(e=>Object.keys(e).map(t=>[t,e[t]])))(p)){const n="function"==typeof s&&s(t)||o(t);for(const t of r)deep(e,t,i(n))}null==a||a(e,u,t=>{c.forEach(r=>deep(e,r,t(deep(e,r))))})}(a,t.metadata,r,n,e,s),{nodes:a.body,globals:t.metadata.globals}},getDependencies:()=>Object.keys(t.metadata.dependencies)}}return a[e]}function get(e,t,r,n,s){if("object"==typeof r){const e=r;r="Identifier"===(null==e?void 0:e.type)?e.name:void 0}return loadHelper(e).build(t,r,n,s)}t.ensure=e=>{loadHelper(e)};t.list=Object.keys(s.default).map(e=>e.replace(/^_/,""));t.default=get},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/parser/lib/index.js"(e,t){"use strict";function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}Object.defineProperty(t,"__esModule",{value:!0});class Position{constructor(e,t,r){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=r}}class SourceLocation{constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}}function createPositionWithColumnOffset(e,t){const{line:r,column:n,index:s}=e;return new Position(r,n+t,s+t)}const r="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var n={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:r},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:r}};const s={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},toNodeDescription=e=>"UpdateExpression"===e.type?s.UpdateExpression[`${e.prefix}`]:s[e.type];var i={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${"ForInStatement"===e?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${"BreakStatement"===e?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${toNodeDescription(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${toNodeDescription(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${toNodeDescription(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(e=>JSON.stringify(e)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(e=>JSON.stringify(e)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},o={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`};const a=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var l=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${toNodeDescription({type:e})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'});const p=["message"];function defineHidden(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function toParseErrorConstructor({toMessage:e,code:t,reasonCode:r,syntaxPlugin:n}){const s="MissingPlugin"===r||"MissingOneOfPlugins"===r,i={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};return i[r]&&(r=i[r]),function constructor(i,o){const a=new SyntaxError;return a.code=t,a.reasonCode=r,a.loc=i,a.pos=i.index,a.syntaxPlugin=n,s&&(a.missingPlugin=o.missingPlugin),defineHidden(a,"clone",function(e={}){var t;const{line:r,column:n,index:s}=null!=(t=e.loc)?t:i;return constructor(new Position(r,n,s),Object.assign({},o,e.details))}),defineHidden(a,"details",o),Object.defineProperty(a,"message",{configurable:!0,get(){const t=`${e(o)} (${i.line}:${i.column})`;return this.message=t,t},set(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),a}}function ParseErrorEnum(e,t){if(Array.isArray(e))return t=>ParseErrorEnum(t,e[0]);const r={};for(const n of Object.keys(e)){const s=e[n],i="string"==typeof s?{message:()=>s}:"function"==typeof s?{message:s}:s,{message:o}=i,a=_objectWithoutPropertiesLoose(i,p),l="string"==typeof o?()=>o:o;r[n]=toParseErrorConstructor(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:l},t?{syntaxPlugin:t}:{},a))}return r}const c=Object.assign({},ParseErrorEnum(n),ParseErrorEnum(i),ParseErrorEnum({StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."}),ParseErrorEnum(o),ParseErrorEnum`pipelineOperator`(l));const{defineProperty:u}=Object,toUnenumerable=(e,t)=>{e&&u(e,t,{enumerable:!1,value:e[t]})};function toESTreeLocation(e){return toUnenumerable(e.loc.start,"index"),toUnenumerable(e.loc.end,"index"),e}class TokContext{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}}const d={brace:new TokContext("{"),j_oTag:new TokContext("<tag"),j_cTag:new TokContext("</tag"),j_expr:new TokContext("<tag>...</tag>",!0)};d.template=new TokContext("`",!0);const h=!0,m=!0,f=!0,y=!0,b=!0;class ExportedTokenType{constructor(e,t={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=null!=t.binop?t.binop:null,this.updateContext=null}}const g=new Map;function createKeyword(e,t={}){t.keyword=e;const r=createToken(e,t);return g.set(e,r),r}function createBinop(e,t){return createToken(e,{beforeExpr:h,binop:t})}let x=-1;const v=[],E=[],T=[],S=[],P=[],_=[];function createToken(e,t={}){var r,n,s,i;return++x,E.push(e),T.push(null!=(r=t.binop)?r:-1),S.push(null!=(n=t.beforeExpr)&&n),P.push(null!=(s=t.startsExpr)&&s),_.push(null!=(i=t.prefix)&&i),v.push(new ExportedTokenType(e,t)),x}function createKeywordLike(e,t={}){var r,n,s,i;return++x,g.set(e,x),E.push(e),T.push(null!=(r=t.binop)?r:-1),S.push(null!=(n=t.beforeExpr)&&n),P.push(null!=(s=t.startsExpr)&&s),_.push(null!=(i=t.prefix)&&i),v.push(new ExportedTokenType("name",t)),x}const A={bracketL:createToken("[",{beforeExpr:h,startsExpr:m}),bracketHashL:createToken("#[",{beforeExpr:h,startsExpr:m}),bracketBarL:createToken("[|",{beforeExpr:h,startsExpr:m}),bracketR:createToken("]"),bracketBarR:createToken("|]"),braceL:createToken("{",{beforeExpr:h,startsExpr:m}),braceBarL:createToken("{|",{beforeExpr:h,startsExpr:m}),braceHashL:createToken("#{",{beforeExpr:h,startsExpr:m}),braceR:createToken("}"),braceBarR:createToken("|}"),parenL:createToken("(",{beforeExpr:h,startsExpr:m}),parenR:createToken(")"),comma:createToken(",",{beforeExpr:h}),semi:createToken(";",{beforeExpr:h}),colon:createToken(":",{beforeExpr:h}),doubleColon:createToken("::",{beforeExpr:h}),dot:createToken("."),question:createToken("?",{beforeExpr:h}),questionDot:createToken("?."),arrow:createToken("=>",{beforeExpr:h}),template:createToken("template"),ellipsis:createToken("...",{beforeExpr:h}),backQuote:createToken("`",{startsExpr:m}),dollarBraceL:createToken("${",{beforeExpr:h,startsExpr:m}),templateTail:createToken("...`",{startsExpr:m}),templateNonTail:createToken("...${",{beforeExpr:h,startsExpr:m}),at:createToken("@"),hash:createToken("#",{startsExpr:m}),interpreterDirective:createToken("#!..."),eq:createToken("=",{beforeExpr:h,isAssign:y}),assign:createToken("_=",{beforeExpr:h,isAssign:y}),slashAssign:createToken("_=",{beforeExpr:h,isAssign:y}),xorAssign:createToken("_=",{beforeExpr:h,isAssign:y}),moduloAssign:createToken("_=",{beforeExpr:h,isAssign:y}),incDec:createToken("++/--",{prefix:b,postfix:!0,startsExpr:m}),bang:createToken("!",{beforeExpr:h,prefix:b,startsExpr:m}),tilde:createToken("~",{beforeExpr:h,prefix:b,startsExpr:m}),doubleCaret:createToken("^^",{startsExpr:m}),doubleAt:createToken("@@",{startsExpr:m}),pipeline:createBinop("|>",0),nullishCoalescing:createBinop("??",1),logicalOR:createBinop("||",1),logicalAND:createBinop("&&",2),bitwiseOR:createBinop("|",3),bitwiseXOR:createBinop("^",4),bitwiseAND:createBinop("&",5),equality:createBinop("==/!=/===/!==",6),lt:createBinop("</>/<=/>=",7),gt:createBinop("</>/<=/>=",7),relational:createBinop("</>/<=/>=",7),bitShift:createBinop("<</>>/>>>",8),bitShiftL:createBinop("<</>>/>>>",8),bitShiftR:createBinop("<</>>/>>>",8),plusMin:createToken("+/-",{beforeExpr:h,binop:9,prefix:b,startsExpr:m}),modulo:createToken("%",{binop:10,startsExpr:m}),star:createToken("*",{binop:10}),slash:createBinop("/",10),exponent:createToken("**",{beforeExpr:h,binop:11,rightAssociative:!0}),_in:createKeyword("in",{beforeExpr:h,binop:7}),_instanceof:createKeyword("instanceof",{beforeExpr:h,binop:7}),_break:createKeyword("break"),_case:createKeyword("case",{beforeExpr:h}),_catch:createKeyword("catch"),_continue:createKeyword("continue"),_debugger:createKeyword("debugger"),_default:createKeyword("default",{beforeExpr:h}),_else:createKeyword("else",{beforeExpr:h}),_finally:createKeyword("finally"),_function:createKeyword("function",{startsExpr:m}),_if:createKeyword("if"),_return:createKeyword("return",{beforeExpr:h}),_switch:createKeyword("switch"),_throw:createKeyword("throw",{beforeExpr:h,prefix:b,startsExpr:m}),_try:createKeyword("try"),_var:createKeyword("var"),_const:createKeyword("const"),_with:createKeyword("with"),_new:createKeyword("new",{beforeExpr:h,startsExpr:m}),_this:createKeyword("this",{startsExpr:m}),_super:createKeyword("super",{startsExpr:m}),_class:createKeyword("class",{startsExpr:m}),_extends:createKeyword("extends",{beforeExpr:h}),_export:createKeyword("export"),_import:createKeyword("import",{startsExpr:m}),_null:createKeyword("null",{startsExpr:m}),_true:createKeyword("true",{startsExpr:m}),_false:createKeyword("false",{startsExpr:m}),_typeof:createKeyword("typeof",{beforeExpr:h,prefix:b,startsExpr:m}),_void:createKeyword("void",{beforeExpr:h,prefix:b,startsExpr:m}),_delete:createKeyword("delete",{beforeExpr:h,prefix:b,startsExpr:m}),_do:createKeyword("do",{isLoop:f,beforeExpr:h}),_for:createKeyword("for",{isLoop:f}),_while:createKeyword("while",{isLoop:f}),_as:createKeywordLike("as",{startsExpr:m}),_assert:createKeywordLike("assert",{startsExpr:m}),_async:createKeywordLike("async",{startsExpr:m}),_await:createKeywordLike("await",{startsExpr:m}),_defer:createKeywordLike("defer",{startsExpr:m}),_from:createKeywordLike("from",{startsExpr:m}),_get:createKeywordLike("get",{startsExpr:m}),_let:createKeywordLike("let",{startsExpr:m}),_meta:createKeywordLike("meta",{startsExpr:m}),_of:createKeywordLike("of",{startsExpr:m}),_sent:createKeywordLike("sent",{startsExpr:m}),_set:createKeywordLike("set",{startsExpr:m}),_source:createKeywordLike("source",{startsExpr:m}),_static:createKeywordLike("static",{startsExpr:m}),_using:createKeywordLike("using",{startsExpr:m}),_yield:createKeywordLike("yield",{startsExpr:m}),_asserts:createKeywordLike("asserts",{startsExpr:m}),_checks:createKeywordLike("checks",{startsExpr:m}),_exports:createKeywordLike("exports",{startsExpr:m}),_global:createKeywordLike("global",{startsExpr:m}),_implements:createKeywordLike("implements",{startsExpr:m}),_intrinsic:createKeywordLike("intrinsic",{startsExpr:m}),_infer:createKeywordLike("infer",{startsExpr:m}),_is:createKeywordLike("is",{startsExpr:m}),_mixins:createKeywordLike("mixins",{startsExpr:m}),_proto:createKeywordLike("proto",{startsExpr:m}),_require:createKeywordLike("require",{startsExpr:m}),_satisfies:createKeywordLike("satisfies",{startsExpr:m}),_keyof:createKeywordLike("keyof",{startsExpr:m}),_readonly:createKeywordLike("readonly",{startsExpr:m}),_unique:createKeywordLike("unique",{startsExpr:m}),_abstract:createKeywordLike("abstract",{startsExpr:m}),_declare:createKeywordLike("declare",{startsExpr:m}),_enum:createKeywordLike("enum",{startsExpr:m}),_module:createKeywordLike("module",{startsExpr:m}),_namespace:createKeywordLike("namespace",{startsExpr:m}),_interface:createKeywordLike("interface",{startsExpr:m}),_type:createKeywordLike("type",{startsExpr:m}),_opaque:createKeywordLike("opaque",{startsExpr:m}),name:createToken("name",{startsExpr:m}),placeholder:createToken("%%",{startsExpr:m}),string:createToken("string",{startsExpr:m}),num:createToken("num",{startsExpr:m}),bigint:createToken("bigint",{startsExpr:m}),decimal:createToken("decimal",{startsExpr:m}),regexp:createToken("regexp",{startsExpr:m}),privateName:createToken("#name",{startsExpr:m}),eof:createToken("eof"),jsxName:createToken("jsxName"),jsxText:createToken("jsxText",{beforeExpr:h}),jsxTagStart:createToken("jsxTagStart",{startsExpr:m}),jsxTagEnd:createToken("jsxTagEnd")};function tokenIsIdentifier(e){return e>=93&&e<=133}function tokenIsKeywordOrIdentifier(e){return e>=58&&e<=133}function tokenIsLiteralPropertyName(e){return e>=58&&e<=137}function tokenCanStartExpression(e){return P[e]}function tokenIsFlowInterfaceOrTypeOrOpaque(e){return e>=129&&e<=131}function tokenIsKeyword(e){return e>=58&&e<=92}function tokenIsPostfix(e){return 34===e}function tokenLabelName(e){return E[e]}function tokenOperatorPrecedence(e){return T[e]}function tokenIsTemplate(e){return e>=24&&e<=25}function getExportedToken(e){return v[e]}v[8].updateContext=e=>{e.pop()},v[5].updateContext=v[7].updateContext=v[23].updateContext=e=>{e.push(d.brace)},v[22].updateContext=e=>{e[e.length-1]===d.template?e.pop():e.push(d.template)},v[143].updateContext=e=>{e.push(d.j_expr,d.j_oTag)};let C="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",w="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const I=new RegExp("["+C+"]"),D=new RegExp("["+C+w+"]");C=w=null;const k=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],N=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,t){let r=65536;for(let n=0,s=t.length;n<s;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function isIdentifierStart(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&I.test(String.fromCharCode(e)):isInAstralSet(e,k)))}function isIdentifierChar(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&D.test(String.fromCharCode(e)):isInAstralSet(e,k)||isInAstralSet(e,N))))}const O=["implements","interface","let","package","private","protected","public","static","yield"],j=["eval","arguments"],F=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),L=new Set(O),M=new Set(j);function isReservedWord(e,t){return t&&"await"===e||"enum"===e}function isStrictReservedWord(e,t){return isReservedWord(e,t)||L.has(e)}function isStrictBindOnlyReservedWord(e){return M.has(e)}function isStrictBindReservedWord(e,t){return isStrictReservedWord(e,t)||isStrictBindOnlyReservedWord(e)}const B=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);class Scope{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}}class ScopeHandler{constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}get inTopLevel(){return(1&this.currentScope().flags)>0}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get allowNewTarget(){return(512&this.currentThisScopeFlags())>0}get inClass(){return(64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){const e=this.currentThisScopeFlags();return(64&e)>0&&!(2&e)}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(128&t)return!0;if(1731&t)return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get inBareCaseStatement(){return(256&this.currentScope().flags)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new Scope(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(130&e.flags||!this.parser.inModule&&1&e.flags)}declareName(e,t,r){let n=this.currentScope();if(8&t||16&t){this.checkRedeclarationInScope(n,e,t,r);let s=n.names.get(e)||0;16&t?s|=4:(n.firstLexicalName||(n.firstLexicalName=e),s|=2),n.names.set(e,s),8&t&&this.maybeExportDefined(n,e)}else if(4&t)for(let s=this.scopeStack.length-1;s>=0&&(n=this.scopeStack[s],this.checkRedeclarationInScope(n,e,t,r),n.names.set(e,1|(n.names.get(e)||0)),this.maybeExportDefined(n,e),!(1667&n.flags));--s);this.parser.inModule&&1&n.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&1&e.flags&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,r,n){this.isRedeclaredInScope(e,t,r)&&this.parser.raise(c.VarRedeclaration,n,{identifierName:t})}isRedeclaredInScope(e,t,r){if(!(1&r))return!1;if(8&r)return e.names.has(t);const n=e.names.get(t)||0;return 16&r?(2&n)>0||!this.treatFunctionsAsVarInScope(e)&&(1&n)>0:(2&n)>0&&!(8&e.flags&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(4&n)>0}checkLocalExport(e){const{name:t}=e;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(1667&t)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(1731&t&&!(4&t))return t}}}class FlowScope extends Scope{constructor(...e){super(...e),this.declareFunctions=new Set}}class FlowScopeHandler extends ScopeHandler{createScope(e){return new FlowScope(e)}declareName(e,t,r){const n=this.currentScope();if(2048&t)return this.checkRedeclarationInScope(n,e,t,r),this.maybeExportDefined(n,e),void n.declareFunctions.add(e);super.declareName(e,t,r)}isRedeclaredInScope(e,t,r){if(super.isRedeclaredInScope(e,t,r))return!0;if(2048&r&&!e.declareFunctions.has(t)){const r=e.names.get(t);return(4&r)>0||(2&r)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}}const R=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),U=ParseErrorEnum`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:r})=>`Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function hasTypeImportKind(e){return"type"===e.importKind||"typeof"===e.importKind}const V={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};const $=/\*?\s*@((?:no)?flow)\b/;const K={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},W=new RegExp(/\r\n|[\r\n\u2028\u2029]/.source,"g");function isNewLine(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function hasNewLine(e,t,r){for(let n=t;n<r;n++)if(isNewLine(e.charCodeAt(n)))return!0;return!1}const q=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,H=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function isWhitespace(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}const z=ParseErrorEnum`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function isFragment(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function getQualifiedJSXName(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return getQualifiedJSXName(e.object)+"."+getQualifiedJSXName(e.property);throw new Error("Node had unexpected type: "+e.type)}class TypeScriptScope extends Scope{constructor(...e){super(...e),this.tsNames=new Map}}class TypeScriptScopeHandler extends ScopeHandler{constructor(...e){super(...e),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new TypeScriptScope(e)}enter(e){1024===e&&this.importsStack.push(new Set),super.enter(e)}exit(){const e=super.exit();return 1024===e&&this.importsStack.pop(),e}hasImport(e,t){const r=this.importsStack.length;if(this.importsStack[r-1].has(e))return!0;if(!t&&r>1)for(let t=0;t<r-1;t++)if(this.importsStack[t].has(e))return!0;return!1}declareName(e,t,r){if(4096&t)return this.hasImport(e,!0)&&this.parser.raise(c.VarRedeclaration,r,{identifierName:e}),void this.importsStack[this.importsStack.length-1].add(e);const n=this.currentScope();let s=n.tsNames.get(e)||0;if(1024&t)return this.maybeExportDefined(n,e),void n.tsNames.set(e,16|s);super.declareName(e,t,r),2&t&&(1&t||(this.checkRedeclarationInScope(n,e,t,r),this.maybeExportDefined(n,e)),s|=1),256&t&&(s|=2),512&t&&(s|=4),128&t&&(s|=8),s&&n.tsNames.set(e,s)}isRedeclaredInScope(e,t,r){const n=e.tsNames.get(t);if((2&n)>0){if(256&r){return!!(512&r)!==(4&n)>0}return!0}return 128&r&&(8&n)>0?!!(2&e.names.get(t))&&!!(1&r):!!(2&r&&(1&n)>0)||super.isRedeclaredInScope(e,t,r)}checkLocalExport(e){const{name:t}=e;if(this.hasImport(t))return;for(let e=this.scopeStack.length-1;e>=0;e--){const r=this.scopeStack[e].tsNames.get(t);if((1&r)>0||(16&r)>0)return}super.checkLocalExport(e)}}class ProductionParameterHandler{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}}function functionFlags(e,t){return(e?2:0)|(t?1:0)}class BaseParser{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if("string"==typeof e)return this.plugins.has(e);{const[t,r]=e;if(!this.hasPlugin(t))return!1;const n=this.plugins.get(t);for(const e of Object.keys(r))if((null==n?void 0:n[e])!==r[e])return!1;return!0}}getPluginOption(e,t){var r;return null==(r=this.plugins.get(e))?void 0:r[t]}}function setTrailingComments(e,t){void 0===e.trailingComments?e.trailingComments=t:e.trailingComments.unshift(...t)}function setInnerComments(e,t){void 0===e.innerComments?e.innerComments=t:e.innerComments.unshift(...t)}function adjustInnerComments(e,t,r){let n=null,s=t.length;for(;null===n&&s>0;)n=t[--s];null===n||n.start>r.start?setInnerComments(e,r.comments):setTrailingComments(n,r.comments)}class CommentsParser extends BaseParser{addComment(e){this.filename&&(e.loc.filename=this.filename);const{commentsLen:t}=this.state;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){const{commentStack:t}=this.state,r=t.length;if(0===r)return;let n=r-1;const s=t[n];s.start===e.end&&(s.leadingNode=e,n--);const{start:i}=e;for(;n>=0;n--){const r=t[n],s=r.end;if(!(s>i)){s===i&&(r.trailingNode=e);break}r.containingNode=e,this.finalizeComment(r),t.splice(n,1)}}finalizeComment(e){var t;const{comments:r}=e;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&setTrailingComments(e.leadingNode,r),null!==e.trailingNode&&function(e,t){void 0===e.leadingComments?e.leadingComments=t:e.leadingComments.unshift(...t)}(e.trailingNode,r);else{const n=e.containingNode,s=e.start;if(44===this.input.charCodeAt(this.offsetToSourcePos(s)-1))switch(n.type){case"ObjectExpression":case"ObjectPattern":adjustInnerComments(n,n.properties,e);break;case"CallExpression":case"NewExpression":case"OptionalCallExpression":adjustInnerComments(n,n.arguments,e);break;case"ImportExpression":adjustInnerComments(n,[n.source,null!=(t=n.options)?t:null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":case"TSTypeParameterDeclaration":adjustInnerComments(n,n.params,e);break;case"ArrayExpression":case"ArrayPattern":adjustInnerComments(n,n.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":adjustInnerComments(n,n.specifiers,e);break;case"TSEnumDeclaration":case"TSEnumBody":adjustInnerComments(n,n.members,e);break;case"TSInterfaceBody":adjustInnerComments(n,n.body,e);break;default:if("RecordExpression"===n.type){adjustInnerComments(n,n.properties,e);break}if("TupleExpression"===n.type){adjustInnerComments(n,n.elements,e);break}setInnerComments(n,r)}else setInnerComments(n,r)}}finalizeRemainingComments(){const{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){const{commentStack:t}=this.state,{length:r}=t;if(0===r)return;const n=t[r-1];n.leadingNode===e&&(n.leadingNode=null)}takeSurroundingComments(e,t,r){const{commentStack:n}=this.state,s=n.length;if(0===s)return;let i=s-1;for(;i>=0;i--){const s=n[i],o=s.end;if(s.start===r)s.leadingNode=e;else if(o===t)s.trailingNode=e;else if(o<t)break}}}class State{constructor(){this.flags=1024,this.startIndex=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[d.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(1&this.flags)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init({strictMode:e,sourceType:t,startIndex:r,startLine:n,startColumn:s}){this.strict=!1!==e&&(!0===e||"module"===t),this.startIndex=r,this.curLine=n,this.lineStart=-s,this.startLoc=this.endLoc=new Position(n,s,r)}get maybeInArrowParameters(){return(2&this.flags)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(4&this.flags)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(8&this.flags)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(16&this.flags)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(32&this.flags)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(64&this.flags)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(128&this.flags)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(256&this.flags)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(512&this.flags)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(1024&this.flags)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(2048&this.flags)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(4096&this.flags)>0}set hasTopLevelAwait(e){e?this.flags|=4096:this.flags&=-4097}curPosition(){return new Position(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){const e=new State;return e.flags=this.flags,e.startIndex=this.startIndex,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}}var _isDigit=function(e){return e>=48&&e<=57};const G={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},X={bin:e=>48===e||49===e,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function readStringContents(e,t,r,n,s,i){const o=r,a=n,l=s;let p="",c=null,u=r;const{length:d}=t;for(;;){if(r>=d){i.unterminated(o,a,l),p+=t.slice(u,r);break}const h=t.charCodeAt(r);if(isStringEnd(e,h,t,r)){p+=t.slice(u,r);break}if(92===h){p+=t.slice(u,r);const o=readEscapedChar(t,r,n,s,"template"===e,i);null!==o.ch||c?p+=o.ch:c={pos:r,lineStart:n,curLine:s},({pos:r,lineStart:n,curLine:s}=o),u=r}else 8232===h||8233===h?(++s,n=++r):10===h||13===h?"template"===e?(p+=t.slice(u,r)+"\n",++r,13===h&&10===t.charCodeAt(r)&&++r,++s,u=n=r):i.unterminated(o,a,l):++r}return{pos:r,str:p,firstInvalidLoc:c,lineStart:n,curLine:s,containsInvalid:!!c}}function isStringEnd(e,t,r,n){return"template"===e?96===t||36===t&&123===r.charCodeAt(n+1):t===("double"===e?34:39)}function readEscapedChar(e,t,r,n,s,i){const o=!s;t++;const res=e=>({pos:t,ch:e,lineStart:r,curLine:n}),a=e.charCodeAt(t++);switch(a){case 110:return res("\n");case 114:return res("\r");case 120:{let s;return({code:s,pos:t}=readHexChar(e,t,r,n,2,!1,o,i)),res(null===s?null:String.fromCharCode(s))}case 117:{let s;return({code:s,pos:t}=readCodePoint(e,t,r,n,o,i)),res(null===s?null:String.fromCodePoint(s))}case 116:return res("\t");case 98:return res("\b");case 118:return res("\v");case 102:return res("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:r=t,++n;case 8232:case 8233:return res("");case 56:case 57:if(s)return res(null);i.strictNumericEscape(t-1,r,n);default:if(a>=48&&a<=55){const o=t-1;let a=/^[0-7]+/.exec(e.slice(o,t+2))[0],l=parseInt(a,8);l>255&&(a=a.slice(0,-1),l=parseInt(a,8)),t+=a.length-1;const p=e.charCodeAt(t);if("0"!==a||56===p||57===p){if(s)return res(null);i.strictNumericEscape(o,r,n)}return res(String.fromCharCode(l))}return res(String.fromCharCode(a))}}function readHexChar(e,t,r,n,s,i,o,a){const l=t;let p;return({n:p,pos:t}=readInt(e,t,r,n,16,s,i,!1,a,!o)),null===p&&(o?a.invalidEscapeSequence(l,r,n):t=l-1),{code:p,pos:t}}function readInt(e,t,r,n,s,i,o,a,l,p){const c=t,u=16===s?G.hex:G.decBinOct,d=16===s?X.hex:10===s?X.dec:8===s?X.oct:X.bin;let h=!1,m=0;for(let c=0,f=null==i?1/0:i;c<f;++c){const i=e.charCodeAt(t);let c;if(95===i&&"bail"!==a){const s=e.charCodeAt(t-1),i=e.charCodeAt(t+1);if(a){if(Number.isNaN(i)||!d(i)||u.has(s)||u.has(i)){if(p)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,n)}}else{if(p)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,n)}++t;continue}if(c=i>=97?i-97+10:i>=65?i-65+10:_isDigit(i)?i-48:1/0,c>=s){if(c<=9&&p)return{n:null,pos:t};if(c<=9&&l.invalidDigit(t,r,n,s))c=0;else{if(!o)break;c=0,h=!0}}++t,m=m*s+c}return t===c||null!=i&&t-c!==i||h?{n:null,pos:t}:{n:m,pos:t}}function readCodePoint(e,t,r,n,s,i){let o;if(123===e.charCodeAt(t)){if(++t,({code:o,pos:t}=readHexChar(e,t,r,n,e.indexOf("}",t)-t,!0,s,i)),++t,null!==o&&o>1114111){if(!s)return{code:null,pos:t};i.invalidCodePoint(t,r,n)}}else({code:o,pos:t}=readHexChar(e,t,r,n,4,!1,s,i));return{code:o,pos:t}}function buildPosition(e,t,r){return new Position(r,e-t,e)}const J=new Set([103,109,115,105,121,117,100,118]);class Token{constructor(e){const t=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=t+e.start,this.end=t+e.end,this.loc=new SourceLocation(e.startLoc,e.endLoc)}}class Tokenizer extends CommentsParser{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,t,r,n)=>!!(2048&this.optionFlags)&&(this.raise(c.InvalidDigit,buildPosition(e,t,r),{radix:n}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(c.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(c.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(c.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(c.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,r)=>{this.recordStrictModeErrors(c.StrictNumericEscape,buildPosition(e,t,r))},unterminated:(e,t,r)=>{throw this.raise(c.UnterminatedString,buildPosition(e-1,t,r))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(c.StrictNumericEscape),unterminated:(e,t,r)=>{throw this.raise(c.UnterminatedTemplate,buildPosition(e,t,r))}}),this.state=new State,this.state.init(e),this.input=t,this.length=t.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),256&this.optionFlags&&this.pushToken(new Token(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return!!this.match(e)&&(this.next(),!0)}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){const e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return q.lastIndex=e,q.test(this.input)?q.lastIndex:e}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(e){return this.input.charCodeAt(this.nextTokenStartSince(e))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return H.lastIndex=e,H.test(this.input)?H.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if(55296==(64512&t)&&++e<this.input.length){const r=this.input.charCodeAt(e);56320==(64512&r)&&(t=65536+((1023&t)<<10)+(1023&r))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach(([e,t])=>this.raise(e,t)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(140):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());const r=this.state.pos,n=this.input.indexOf(e,r+2);if(-1===n)throw this.raise(c.UnterminatedComment,this.state.curPosition());for(this.state.pos=n+e.length,W.lastIndex=r+2;W.test(this.input)&&W.lastIndex<=n;)++this.state.curLine,this.state.lineStart=W.lastIndex;if(this.isLookahead)return;const s={type:"CommentBlock",value:this.input.slice(r+2,n),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(n+e.length),loc:new SourceLocation(t,this.state.curPosition())};return 256&this.optionFlags&&this.pushToken(s),s}skipLineComment(e){const t=this.state.pos;let r;this.isLookahead||(r=this.state.curPosition());let n=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!isNewLine(n)&&++this.state.pos<this.length;)n=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;const s=this.state.pos,i={type:"CommentLine",value:this.input.slice(t+e,s),start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(s),loc:new SourceLocation(r,this.state.curPosition())};return 256&this.optionFlags&&this.pushToken(i),i}skipSpace(){const e=this.state.pos,t=4096&this.optionFlags?[]:null;e:for(;this.state.pos<this.length;){const r=this.input.charCodeAt(this.state.pos);switch(r){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{const e=this.skipBlockComment("*/");void 0!==e&&(this.addComment(e),null==t||t.push(e));break}case 47:{const e=this.skipLineComment(2);void 0!==e&&(this.addComment(e),null==t||t.push(e));break}default:break e}break;default:if(isWhitespace(r))++this.state.pos;else if(45===r&&!this.inModule&&8192&this.optionFlags){const r=this.state.pos;if(45!==this.input.charCodeAt(r+1)||62!==this.input.charCodeAt(r+2)||!(0===e||this.state.lineStart>e))break e;{const e=this.skipLineComment(3);void 0!==e&&(this.addComment(e),null==t||t.push(e))}}else{if(60!==r||this.inModule||!(8192&this.optionFlags))break e;{const e=this.state.pos;if(33!==this.input.charCodeAt(e+1)||45!==this.input.charCodeAt(e+2)||45!==this.input.charCodeAt(e+3))break e;{const e=this.skipLineComment(4);void 0!==e&&(this.addComment(e),null==t||t.push(e))}}}}}if((null==t?void 0:t.length)>0){const r=this.state.pos,n={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(r),comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(n)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const r=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(r)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;const e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(c.UnexpectedDigitAfterHash,this.state.curPosition());if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===t?c.RecordExpressionHashIncorrectStartSyntaxType:c.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===t?this.finishToken(7):this.finishToken(1)}else isIdentifierStart(t)?(++this.state.pos,this.finishToken(139,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){const e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;const t=this.state.pos;for(this.state.pos+=1;!isNewLine(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);const r=this.input.slice(t+2,this.state.pos);return this.finishToken(28,r),!0}readToken_mult_modulo(e){let t=42===e?55:54,r=1,n=this.input.charCodeAt(this.state.pos+1);42===e&&42===n&&(r++,n=this.input.charCodeAt(this.state.pos+2),t=57),61!==n||this.state.inType||(r++,t=37===e?33:30),this.finishOp(t,r)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);if(t!==e){if(124===e){if(62===t)return void this.finishOp(39,2);if(this.hasPlugin("recordAndTuple")&&125===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(c.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(9)}if(this.hasPlugin("recordAndTuple")&&93===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(c.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(4)}}61!==t?this.finishOp(124===e?43:45,1):this.finishOp(30,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(30,3):this.finishOp(124===e?41:42,2)}readToken_caret(){const e=this.input.charCodeAt(this.state.pos+1);if(61!==e||this.state.inType)if(94===e&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])){this.finishOp(37,2);94===this.input.codePointAt(this.state.pos)&&this.unexpected()}else this.finishOp(44,1);else this.finishOp(32,2)}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){const t=this.input.charCodeAt(this.state.pos+1);t!==e?61===t?this.finishOp(30,2):this.finishOp(53,1):this.finishOp(34,2)}readToken_lt(){const{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(60===t)return 61===this.input.charCodeAt(e+2)?void this.finishOp(30,3):void this.finishOp(51,2);61!==t?this.finishOp(47,1):this.finishOp(49,2)}readToken_gt(){const{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(62===t){const t=62===this.input.charCodeAt(e+2)?3:2;return 61===this.input.charCodeAt(e+t)?void this.finishOp(30,t+1):void this.finishOp(52,t)}61!==t?this.finishOp(48,1):this.finishOp(49,2)}readToken_eq_excl(e){const t=this.input.charCodeAt(this.state.pos+1);if(61!==t)return 61===e&&62===t?(this.state.pos+=2,void this.finishToken(19)):void this.finishOp(61===e?29:35,1);this.finishOp(46,61===this.input.charCodeAt(this.state.pos+2)?3:2)}readToken_question(){const e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);63===e?61===t?this.finishOp(30,3):this.finishOp(40,2):46!==e||t>=48&&t<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(c.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(c.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:{const e=this.input.charCodeAt(this.state.pos+1);if(120===e||88===e)return void this.readRadixNumber(16);if(111===e||79===e)return void this.readRadixNumber(8);if(98===e||66===e)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(isIdentifierStart(e))return void this.readWord(e)}throw this.raise(c.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){const r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)}readRegexp(){const e=this.state.startLoc,t=this.state.start+1;let r,n,{pos:s}=this.state;for(;;++s){if(s>=this.length)throw this.raise(c.UnterminatedRegExp,createPositionWithColumnOffset(e,1));const t=this.input.charCodeAt(s);if(isNewLine(t))throw this.raise(c.UnterminatedRegExp,createPositionWithColumnOffset(e,1));if(r)r=!1;else{if(91===t)n=!0;else if(93===t&&n)n=!1;else if(47===t&&!n)break;r=92===t}}const i=this.input.slice(t,s);++s;let o="";const nextPos=()=>createPositionWithColumnOffset(e,s+2-t);for(;s<this.length;){const e=this.codePointAtPos(s),t=String.fromCharCode(e);if(J.has(e))118===e?o.includes("u")&&this.raise(c.IncompatibleRegExpUVFlags,nextPos()):117===e&&o.includes("v")&&this.raise(c.IncompatibleRegExpUVFlags,nextPos()),o.includes(t)&&this.raise(c.DuplicateRegExpFlags,nextPos());else{if(!isIdentifierChar(e)&&92!==e)break;this.raise(c.MalformedRegExpFlags,nextPos())}++s,o+=t}this.state.pos=s,this.finishToken(138,{pattern:i,flags:o})}readInt(e,t,r=!1,n=!0){const{n:s,pos:i}=readInt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,r,n,this.errorHandlers_readInt,!1);return this.state.pos=i,s}readRadixNumber(e){const t=this.state.pos,r=this.state.curPosition();let n=!1;this.state.pos+=2;const s=this.readInt(e);null==s&&this.raise(c.InvalidDigit,createPositionWithColumnOffset(r,2),{radix:e});const i=this.input.charCodeAt(this.state.pos);if(110===i)++this.state.pos,n=!0;else if(109===i)throw this.raise(c.InvalidDecimal,r);if(isIdentifierStart(this.codePointAtPos(this.state.pos)))throw this.raise(c.NumberIdentifier,this.state.curPosition());if(n){const e=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");return void this.finishToken(136,e)}this.finishToken(135,s)}readNumber(e){const t=this.state.pos,r=this.state.curPosition();let n=!1,s=!1,i=!1,o=!1;e||null!==this.readInt(10)||this.raise(c.InvalidNumber,this.state.curPosition());const a=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(a){const e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(c.StrictOctalLiteral,r),!this.state.strict){const t=e.indexOf("_");t>0&&this.raise(c.ZeroDigitNumericSeparator,createPositionWithColumnOffset(r,t))}o=a&&!/[89]/.test(e)}let l=this.input.charCodeAt(this.state.pos);if(46!==l||o||(++this.state.pos,this.readInt(10),n=!0,l=this.input.charCodeAt(this.state.pos)),69!==l&&101!==l||o||(l=this.input.charCodeAt(++this.state.pos),43!==l&&45!==l||++this.state.pos,null===this.readInt(10)&&this.raise(c.InvalidOrMissingExponent,r),n=!0,i=!0,l=this.input.charCodeAt(this.state.pos)),110===l&&((n||a)&&this.raise(c.InvalidBigIntLiteral,r),++this.state.pos,s=!0),109===l){this.expectPlugin("decimal",this.state.curPosition()),(i||a)&&this.raise(c.InvalidDecimal,r),++this.state.pos;var p=!0}if(isIdentifierStart(this.codePointAtPos(this.state.pos)))throw this.raise(c.NumberIdentifier,this.state.curPosition());const u=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(s)return void this.finishToken(136,u);if(p)return void this.finishToken(137,u);const d=o?parseInt(u,8):parseFloat(u);this.finishToken(135,d)}readCodePoint(e){const{code:t,pos:r}=readCodePoint(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=r,t}readString(e){const{str:t,pos:r,curLine:n,lineStart:s}=readStringContents(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=r+1,this.state.lineStart=s,this.state.curLine=n,this.finishToken(134,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){const e=this.input[this.state.pos],{str:t,firstInvalidLoc:r,pos:n,curLine:s,lineStart:i}=readStringContents("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=n+1,this.state.lineStart=i,this.state.curLine=s,r&&(this.state.firstInvalidTemplateEscapePos=new Position(r.curLine,r.pos-r.lineStart,this.sourceToOffsetPos(r.pos))),96===this.input.codePointAt(n)?this.finishToken(24,r?null:e+t+"`"):(this.state.pos++,this.finishToken(25,r?null:e+t+"${"))}recordStrictModeErrors(e,t){const r=t.index;this.state.strict&&!this.state.strictErrors.has(r)?this.raise(e,t):this.state.strictErrors.set(r,[e,t])}readWord1(e){this.state.containsEsc=!1;let t="";const r=this.state.pos;let n=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){const e=this.codePointAtPos(this.state.pos);if(isIdentifierChar(e))this.state.pos+=e<=65535?1:2;else{if(92!==e)break;{this.state.containsEsc=!0,t+=this.input.slice(n,this.state.pos);const e=this.state.curPosition(),s=this.state.pos===r?isIdentifierStart:isIdentifierChar;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(c.MissingUnicodeEscape,this.state.curPosition()),n=this.state.pos-1;continue}++this.state.pos;const i=this.readCodePoint(!0);null!==i&&(s(i)||this.raise(c.EscapedCharNotAnIdentifier,e),t+=String.fromCodePoint(i)),n=this.state.pos}}}return t+this.input.slice(n,this.state.pos)}readWord(e){const t=this.readWord1(e),r=g.get(t);void 0!==r?this.finishToken(r,tokenLabelName(r)):this.finishToken(132,t)}checkKeywordEscapes(){const{type:e}=this.state;tokenIsKeyword(e)&&this.state.containsEsc&&this.raise(c.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:tokenLabelName(e)})}raise(e,t,r={}){const n=e(t instanceof Position?t:t.loc.start,r);if(!(2048&this.optionFlags))throw n;return this.isLookahead||this.state.errors.push(n),n}raiseOverwrite(e,t,r={}){const n=t instanceof Position?t:t.loc.start,s=n.index,i=this.state.errors;for(let t=i.length-1;t>=0;t--){const o=i[t];if(o.loc.index===s)return i[t]=e(n,r);if(o.loc.index<s)break}return this.raise(e,t,r)}updateContext(e){}unexpected(e,t){throw this.raise(c.UnexpectedToken,null!=e?e:this.state.startLoc,{expected:t?tokenLabelName(t):null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(c.MissingPlugin,null!=t?t:this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(e=>this.hasPlugin(e)))throw this.raise(c.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,r,n)=>{this.raise(e,buildPosition(t,r,n))}}}class ClassScope{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class ClassScopeHandler{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new ClassScope)}exit(){const e=this.stack.pop(),t=this.current();for(const[r,n]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(r)||t.undefinedPrivateNames.set(r,n):this.parser.raise(c.InvalidPrivateFieldResolution,n,{identifierName:r})}declarePrivateName(e,t,r){const{privateNames:n,loneAccessors:s,undefinedPrivateNames:i}=this.current();let o=n.has(e);if(3&t){const r=o&&s.get(e);if(r){o=(3&r)===(3&t)||(4&r)!==(4&t),o||s.delete(e)}else o||s.set(e,t)}o&&this.parser.raise(c.PrivateNameRedeclaration,r,{identifierName:e}),n.add(e),i.delete(e)}usePrivateName(e,t){let r;for(r of this.stack)if(r.privateNames.has(e))return;r?r.undefinedPrivateNames.set(e,t):this.parser.raise(c.InvalidPrivateFieldResolution,t,{identifierName:e})}}class ExpressionScope{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class ArrowHeadParsingScope extends ExpressionScope{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,t){const r=t.index;this.declarationErrors.set(r,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}}class ExpressionScopeHandler{constructor(e){this.parser=void 0,this.stack=[new ExpressionScope],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){const r=t.loc.start,{stack:n}=this;let s=n.length-1,i=n[s];for(;!i.isCertainlyParameterDeclaration();){if(!i.canBeArrowParameterDeclaration())return;i.recordDeclarationError(e,r),i=n[--s]}this.parser.raise(e,r)}recordArrowParameterBindingError(e,t){const{stack:r}=this,n=r[r.length-1],s=t.loc.start;if(n.isCertainlyParameterDeclaration())this.parser.raise(e,s);else{if(!n.canBeArrowParameterDeclaration())return;n.recordDeclarationError(e,s)}}recordAsyncArrowParametersError(e){const{stack:t}=this;let r=t.length-1,n=t[r];for(;n.canBeArrowParameterDeclaration();)2===n.type&&n.recordDeclarationError(c.AwaitBindingIdentifier,e),n=t[--r]}validateAsPattern(){const{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors(([t,r])=>{this.parser.raise(t,r);let n=e.length-2,s=e[n];for(;s.canBeArrowParameterDeclaration();)s.clearDeclarationError(r.index),s=e[--n]})}}function newExpressionScope(){return new ExpressionScope}class UtilParser extends Tokenizer{addExtra(e,t,r,n=!0){if(!e)return;let{extra:s}=e;null==s&&(s={},e.extra=s),n?s[t]=r:Object.defineProperty(s,t,{enumerable:n,value:r})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){if(this.input.startsWith(t,e)){const r=this.input.charCodeAt(e+t.length);return!(isIdentifierChar(r)||55296==(64512&r))}return!1}isLookaheadContextual(e){const t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return!!this.isContextual(e)&&(this.next(),!0)}expectContextual(e,t){if(!this.eatContextual(e)){if(null!=t)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return hasNewLine(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return hasNewLine(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(c.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e,t=this.state.clone()){const r={node:null};try{const n=e((e=null)=>{throw r.node=e,r});if(this.state.errors.length>t.errors.length){const e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:n,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:n,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){const n=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:n};if(e===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:n};throw e}}checkExpressionErrors(e,t){if(!e)return!1;const{shorthandAssignLoc:r,doubleProtoLoc:n,privateKeyLoc:s,optionalParametersLoc:i,voidPatternLoc:o}=e;if(!t)return!!(r||n||i||s||o);null!=r&&this.raise(c.InvalidCoverInitializedName,r),null!=n&&this.raise(c.DuplicateProto,n),null!=s&&this.raise(c.UnexpectedPrivateField,s),null!=i&&this.unexpected(i),null!=o&&this.raise(c.InvalidCoverDiscardElement,o)}isLiteralPropertyName(){return tokenIsLiteralPropertyName(this.state.type)}isPrivateName(e){return"PrivateName"===e.type}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)}isObjectProperty(e){return"ObjectProperty"===e.type}isObjectMethod(e){return"ObjectMethod"===e.type}initializeScopes(e="module"===this.options.sourceType){const t=this.state.labels;this.state.labels=[];const r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const n=this.inModule;this.inModule=e;const s=this.scope,i=this.getScopeHandler();this.scope=new i(this,e);const o=this.prodParam;this.prodParam=new ProductionParameterHandler;const a=this.classScope;this.classScope=new ClassScopeHandler(this);const l=this.expressionScope;return this.expressionScope=new ExpressionScopeHandler(this),()=>{this.state.labels=t,this.exportedIdentifiers=r,this.inModule=n,this.scope=s,this.prodParam=o,this.classScope=a,this.expressionScope=l}}enterInitialScopes(){let e=0;(this.inModule||1&this.optionFlags)&&(e|=2),32&this.optionFlags&&(e|=1);const t=!this.inModule&&"commonjs"===this.options.sourceType;(t||2&this.optionFlags)&&(e|=4),this.prodParam.enter(e);let r=t?514:1;4&this.optionFlags&&(r|=512),this.scope.enter(r)}checkDestructuringPrivate(e){const{privateKeyLoc:t}=e;null!==t&&this.expectPlugin("destructuringPrivate",t)}}class ExpressionErrors{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}}class Node{constructor(e,t,r){this.type="",this.start=t,this.end=0,this.loc=new SourceLocation(r),128&(null==e?void 0:e.optionFlags)&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}}const Y=Node.prototype;Y.__clone=function(){const e=new Node(void 0,this.start,this.loc.start),t=Object.keys(this);for(let r=0,n=t.length;r<n;r++){const n=t[r];"leadingComments"!==n&&"trailingComments"!==n&&"innerComments"!==n&&(e[n]=this[n])}return e};class NodeUtils extends UtilParser{startNode(){const e=this.state.startLoc;return new Node(this,e.index,e)}startNodeAt(e){return new Node(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,r){return e.type=t,e.end=r.index,e.loc.end=r,128&this.optionFlags&&(e.range[1]=r.index),4096&this.optionFlags&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,128&this.optionFlags&&(e.range[0]=t.index)}resetEndLocation(e,t=this.state.lastTokEndLoc){e.end=t.index,e.loc.end=t,128&this.optionFlags&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}castNodeTo(e,t){return e.type=t,e}cloneIdentifier(e){const{type:t,start:r,end:n,loc:s,range:i,name:o}=e,a=Object.create(Y);return a.type=t,a.start=r,a.end=n,a.loc=s,a.range=i,a.name=o,e.extra&&(a.extra=e.extra),a}cloneStringLiteral(e){const{type:t,start:r,end:n,loc:s,range:i,extra:o}=e,a=Object.create(Y);return a.type=t,a.start=r,a.end=n,a.loc=s,a.range=i,a.extra=o,a.value=e.value,a}}const unwrapParenthesizedExpression=e=>"ParenthesizedExpression"===e.type?unwrapParenthesizedExpression(e.expression):e;class LValParser extends NodeUtils{toAssignable(e,t=!1){var r,n;let s;switch(("ParenthesizedExpression"===e.type||null!=(r=e.extra)&&r.parenthesized)&&(s=unwrapParenthesizedExpression(e),t?"Identifier"===s.type?this.expressionScope.recordArrowParameterBindingError(c.InvalidParenthesizedAssignment,e):"CallExpression"===s.type||"MemberExpression"===s.type||this.isOptionalMemberExpression(s)||this.raise(c.InvalidParenthesizedAssignment,e):this.raise(c.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(e,"ObjectPattern");for(let r=0,n=e.properties.length,s=n-1;r<n;r++){var i;const n=e.properties[r],o=r===s;this.toAssignableObjectExpressionProp(n,o,t),o&&"RestElement"===n.type&&null!=(i=e.extra)&&i.trailingCommaLoc&&this.raise(c.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{const{key:r,value:n}=e;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(n,t);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(e,"ArrayPattern"),this.toAssignableList(e.elements,null==(n=e.extra)?void 0:n.trailingCommaLoc,t);break;case"AssignmentExpression":"="!==e.operator&&this.raise(c.MissingEqInAssignment,e.left.loc.end),this.castNodeTo(e,"AssignmentPattern"),delete e.operator,"VoidPattern"===e.left.type&&this.raise(c.VoidPatternInitializer,e.left),this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(s,t)}}toAssignableObjectExpressionProp(e,t,r){if("ObjectMethod"===e.type)this.raise("get"===e.kind||"set"===e.kind?c.PatternHasAccessor:c.PatternHasMethod,e.key);else if("SpreadElement"===e.type){this.castNodeTo(e,"RestElement");const n=e.argument;this.checkToRestConversion(n,!1),this.toAssignable(n,r),t||this.raise(c.RestTrailingComma,e)}else this.toAssignable(e,r)}toAssignableList(e,t,r){const n=e.length-1;for(let s=0;s<=n;s++){const i=e[s];i&&(this.toAssignableListItem(e,s,r),"RestElement"===i.type&&(s<n?this.raise(c.RestTrailingComma,i):t&&this.raise(c.RestTrailingComma,t)))}}toAssignableListItem(e,t,r){const n=e[t];if("SpreadElement"===n.type){this.castNodeTo(n,"RestElement");const e=n.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,r)}else this.toAssignable(n,r)}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{const t=e.properties.length-1;return e.properties.every((e,r)=>"ObjectMethod"!==e.type&&(r===t||"SpreadElement"!==e.type)&&this.isAssignable(e))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(e=>null===e||this.isAssignable(e));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(const t of e)"ArrayExpression"===(null==t?void 0:t.type)&&this.toReferencedListDeep(t.elements)}parseSpread(e){const t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,"SpreadElement")}parseRestBinding(){const e=this.startNode();this.next();const t=this.parseBindingAtom();return"VoidPattern"===t.type&&this.raise(c.UnexpectedVoidPattern,t),e.argument=t,this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(e,t,r){const n=1&r,s=[];let i=!0;for(;!this.eat(e);)if(i?i=!1:this.expect(12),n&&this.match(12))s.push(null);else{if(this.eat(e))break;if(this.match(21)){let n=this.parseRestBinding();if((this.hasPlugin("flow")||2&r)&&(n=this.parseFunctionParamType(n)),s.push(n),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{const e=[];if(2&r)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(c.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());s.push(this.parseBindingElement(r,e))}}return s}parseBindingRestProperty(e){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(e.argument=this.parseVoidPattern(null),this.raise(c.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){const{type:e,startLoc:t}=this.state;if(21===e)return this.parseBindingRestProperty(this.startNode());const r=this.startNode();return 139===e?(this.expectPlugin("destructuringPrivate",t),this.classScope.usePrivateName(this.state.value,t),r.key=this.parsePrivateName()):this.parsePropertyName(r),r.method=!1,this.parseObjPropValue(r,t,!1,!1,!0,!1)}parseBindingElement(e,t){const r=this.parseMaybeDefault();(this.hasPlugin("flow")||2&e)&&this.parseFunctionParamType(r),t.length&&(r.decorators=t,this.resetStartLocationFromNode(r,t[0]));return this.parseMaybeDefault(r.loc.start,r)}parseFunctionParamType(e){return e}parseMaybeDefault(e,t){if(null!=e||(e=this.state.startLoc),t=null!=t?t:this.parseBindingAtom(),!this.eat(29))return t;const r=this.startNodeAt(e);return"VoidPattern"===t.type&&this.raise(c.VoidPatternInitializer,t),r.left=t,r.right=this.parseMaybeAssignAllowIn(),this.finishNode(r,"AssignmentPattern")}isValidLVal(e,t,r,n){switch(e){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!t&&!this.state.strict&&8192&this.optionFlags)return!0}return!1}isOptionalMemberExpression(e){return"OptionalMemberExpression"===e.type}checkLVal(e,t,r=64,n=!1,s=!1,i=!1,o=!1){var a;const l=e.type;if(this.isObjectMethod(e))return;const p=this.isOptionalMemberExpression(e);if(p||"MemberExpression"===l)return p&&(this.expectPlugin("optionalChainingAssign",e.loc.start),"AssignmentExpression"!==t.type&&this.raise(c.InvalidLhsOptionalChaining,e,{ancestor:t})),void(64!==r&&this.raise(c.InvalidPropertyBindingPattern,e));if("Identifier"===l){this.checkIdentifier(e,r,s);const{name:t}=e;return void(n&&(n.has(t)?this.raise(c.ParamDupe,e):n.add(t)))}"VoidPattern"===l&&"CatchClause"===t.type&&this.raise(c.VoidPatternCatchClauseParam,e);const u=unwrapParenthesizedExpression(e);o||(o="CallExpression"===u.type&&("Import"===u.callee.type||"Super"===u.callee.type));const d=this.isValidLVal(l,o,!(i||null!=(a=e.extra)&&a.parenthesized)&&"AssignmentExpression"===t.type,r);if(!0===d)return;if(!1===d){const n=64===r?c.InvalidLhs:c.InvalidLhsBinding;return void this.raise(n,e,{ancestor:t})}let h,m;"string"==typeof d?(h=d,m="ParenthesizedExpression"===l):[h,m]=d;const f="ArrayPattern"===l||"ObjectPattern"===l?{type:l}:t,y=e[h];if(Array.isArray(y))for(const e of y)e&&this.checkLVal(e,f,r,n,s,m,!0);else y&&this.checkLVal(y,f,r,n,s,m,o)}checkIdentifier(e,t,r=!1){this.state.strict&&(r?isStrictBindReservedWord(e.name,this.inModule):isStrictBindOnlyReservedWord(e.name))&&(64===t?this.raise(c.StrictEvalArguments,e,{referenceName:e.name}):this.raise(c.StrictEvalArgumentsBinding,e,{bindingName:e.name})),8192&t&&"let"===e.name&&this.raise(c.LetInLexicalBinding,e),64&t||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(c.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===e?c.RestTrailingComma:c.ElementAfterRest,this.state.startLoc),!0)}}const Q=/in(?:stanceof)?|as|satisfies/y;function assert(e){if(!e)throw new Error("Assert fail")}const Z=ParseErrorEnum`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,UsingDeclarationInAmbientContext:e=>`'${e}' declarations are not allowed in ambient contexts.`});function tsIsAccessModifier(e){return"private"===e||"public"===e||"protected"===e}function tsIsVarianceAnnotations(e){return"in"===e||"out"===e}function isPossiblyLiteralEnum(e){if("MemberExpression"!==e.type)return!1;const{computed:t,property:r}=e;return(!t||"StringLiteral"===r.type||!("TemplateLiteral"!==r.type||r.expressions.length>0))&&isUncomputedMemberExpressionChain(e.object)}function isValidAmbientConstInitializer(e,t){var r;const{type:n}=e;if(null!=(r=e.extra)&&r.parenthesized)return!1;if(t){if("Literal"===n){const{value:t}=e;if("string"==typeof t||"boolean"==typeof t)return!0}}else if("StringLiteral"===n||"BooleanLiteral"===n)return!0;return!(!isNumber(e,t)&&!function(e,t){if("UnaryExpression"===e.type){const{operator:r,argument:n}=e;if("-"===r&&isNumber(n,t))return!0}return!1}(e,t))||("TemplateLiteral"===n&&0===e.expressions.length||!!isPossiblyLiteralEnum(e))}function isNumber(e,t){return t?"Literal"===e.type&&("number"==typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function isUncomputedMemberExpressionChain(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&isUncomputedMemberExpressionChain(e.object)}const ee=ParseErrorEnum`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});const te=["minimal","fsharp","hack","smart"],re=["^^","@@","^","%","#"];const ne={estree:e=>class extends e{parse(){const e=toESTreeLocation(super.parse());return 256&this.optionFlags&&(e.tokens=e.tokens.map(toESTreeLocation)),e}parseRegExpLiteral({pattern:e,flags:t}){let r=null;try{r=new RegExp(e,t)}catch(e){}const n=this.estreeParseLiteral(r);return n.regex={pattern:e,flags:t},n}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch(e){t=null}const r=this.estreeParseLiteral(t);return r.bigint=String(r.value||e),r}parseDecimalLiteral(e){const t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}estreeParseChainExpression(e,t){const r=this.startNodeAtNode(e);return r.expression=e,this.finishNodeAt(r,"ChainExpression",t)}directiveToStmt(e){const t=e.value;delete e.value,this.castNodeTo(t,"Literal"),t.raw=t.extra.raw,t.value=t.extra.expressionValue;const r=this.castNodeTo(e,"ExpressionStatement");return r.expression=t,r.directive=t.extra.rawValue,delete t.extra,r}fillOptionalPropertiesForTSESLint(e){}cloneEstreeStringLiteral(e){const{start:t,end:r,loc:n,range:s,raw:i,value:o}=e,a=Object.create(e.constructor.prototype);return a.type="Literal",a.start=t,a.end=r,a.loc=n,a.range=s,a.raw=i,a.value=o,a}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){null!=e&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!(null!=(t=e.expression.extra)&&t.parenthesized)}parseBlockBody(e,t,r,n,s){super.parseBlockBody(e,t,r,n,s);const i=e.directives.map(e=>this.directiveToStmt(e));e.body=i.concat(e.body),delete e.directives}parsePrivateName(){const e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){const t=super.getPrivateNameSV(e);return delete e.id,e.name=t,this.castNodeTo(e,"PrivateIdentifier")}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===e.type:super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,t){const r=super.parseLiteral(e,t);return r.raw=r.extra.raw,delete r.extra,r}parseFunctionBody(e,t,r=!1){super.parseFunctionBody(e,t,r),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,r,n,s,i,o=!1){let a=this.startNode();a.kind=e.kind,a=super.parseMethod(a,t,r,n,s,i,o),delete a.kind;const{typeParameters:l}=e;l&&(delete e.typeParameters,a.typeParameters=l,this.resetStartLocationFromNode(a,l));const p=this.castNodeTo(a,"FunctionExpression");return e.value=p,"ClassPrivateMethod"===i&&(e.computed=!1),"ObjectMethod"===i?("method"===e.kind&&(e.kind="init"),e.shorthand=!1,this.finishNode(e,"Property")):this.finishNode(e,"MethodDefinition")}nameIsConstructor(e){return"Literal"===e.type?"constructor"===e.value:super.nameIsConstructor(e)}parseClassProperty(...e){const t=super.parseClassProperty(...e);return this.getPluginOption("estree","classFeatures")?(this.castNodeTo(t,"PropertyDefinition"),t):t}parseClassPrivateProperty(...e){const t=super.parseClassPrivateProperty(...e);return this.getPluginOption("estree","classFeatures")?(this.castNodeTo(t,"PropertyDefinition"),t.computed=!1,t):t}parseClassAccessorProperty(e){const t=super.parseClassAccessorProperty(e);return this.getPluginOption("estree","classFeatures")?(t.abstract&&this.hasPlugin("typescript")?(delete t.abstract,this.castNodeTo(t,"TSAbstractAccessorProperty")):this.castNodeTo(t,"AccessorProperty"),t):t}parseObjectProperty(e,t,r,n){const s=super.parseObjectProperty(e,t,r,n);return s&&(s.kind="init",this.castNodeTo(s,"Property")),s}finishObjectProperty(e){return e.kind="init",this.finishNode(e,"Property")}isValidLVal(e,t,r,n){return"Property"===e?"value":super.isValidLVal(e,t,r,n)}isAssignable(e,t){return null!=e&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e,t=!1){if(null!=e&&this.isObjectProperty(e)){const{key:r,value:n}=e;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(n,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,r){"Property"!==e.type||"get"!==e.kind&&"set"!==e.kind?"Property"===e.type&&e.method?this.raise(c.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,t,r):this.raise(c.PatternHasAccessor,e.key)}finishCallExpression(e,t){const r=super.finishCallExpression(e,t);var n,s;"Import"===r.callee.type?(this.castNodeTo(r,"ImportExpression"),r.source=r.arguments[0],r.options=null!=(n=r.arguments[1])?n:null,r.attributes=null!=(s=r.arguments[1])?s:null,delete r.arguments,delete r.callee):"OptionalCallExpression"===r.type?this.castNodeTo(r,"CallExpression"):r.optional=!1;return r}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e,t){const r=this.state.lastTokStartLoc,n=super.parseExport(e,t);switch(n.type){case"ExportAllDeclaration":n.exported=null;break;case"ExportNamedDeclaration":1===n.specifiers.length&&"ExportNamespaceSpecifier"===n.specifiers[0].type&&(this.castNodeTo(n,"ExportAllDeclaration"),n.exported=n.specifiers[0].exported,delete n.specifiers);case"ExportDefaultDeclaration":{var s;const{declaration:e}=n;"ClassDeclaration"===(null==e?void 0:e.type)&&(null==(s=e.decorators)?void 0:s.length)>0&&e.start===n.start&&this.resetStartLocation(n,r)}}return n}stopParseSubscript(e,t){const r=super.stopParseSubscript(e,t);return t.optionalChainMember?this.estreeParseChainExpression(r,e.loc.end):r}parseMember(e,t,r,n,s){const i=super.parseMember(e,t,r,n,s);return"OptionalMemberExpression"===i.type?this.castNodeTo(i,"MemberExpression"):i.optional=!1,i}isOptionalMemberExpression(e){return"ChainExpression"===e.type?"MemberExpression"===e.expression.type:super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return"ChainExpression"===e.type&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return"Property"===e.type&&"init"===e.kind&&!e.method}isObjectMethod(e){return"Property"===e.type&&(e.method||"get"===e.kind||"set"===e.kind)}castNodeTo(e,t){const r=super.castNodeTo(e,t);return this.fillOptionalPropertiesForTSESLint(r),r}cloneIdentifier(e){const t=super.cloneIdentifier(e);return this.fillOptionalPropertiesForTSESLint(t),t}cloneStringLiteral(e){return"Literal"===e.type?this.cloneEstreeStringLiteral(e):super.cloneStringLiteral(e)}finishNodeAt(e,t,r){return toESTreeLocation(super.finishNodeAt(e,t,r))}finishNode(e,t){const r=super.finishNode(e,t);return this.fillOptionalPropertiesForTSESLint(r),r}resetStartLocation(e,t){super.resetStartLocation(e,t),toESTreeLocation(e)}resetEndLocation(e,t=this.state.lastTokEndLoc){super.resetEndLocation(e,t),toESTreeLocation(e)}},jsx:e=>class extends e{jsxReadToken(){let e="",t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(z.UnterminatedJsxContent,this.state.startLoc);const r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:return this.state.pos===this.state.start?void(60===r&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(r)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(142,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:isNewLine(r)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){const t=this.input.charCodeAt(this.state.pos);let r;return++this.state.pos,13===t&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,r=e?"\n":"\r\n"):r=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,r}jsxReadString(e){let t="",r=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(c.UnterminatedString,this.state.startLoc);const n=this.input.charCodeAt(this.state.pos);if(n===e)break;38===n?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos):isNewLine(n)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}t+=this.input.slice(r,this.state.pos++),this.finishToken(134,t)}jsxReadEntity(){const e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let e=10;120===this.codePointAtPos(this.state.pos)&&(e=16,++this.state.pos);const t=this.readInt(e,void 0,!1,"bail");if(null!==t&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(t)}else{let t=0,r=!1;for(;t++<10&&this.state.pos<this.length&&!(r=59===this.codePointAtPos(this.state.pos));)++this.state.pos;if(r){const t=this.input.slice(e,this.state.pos),r=K[t];if(++this.state.pos,r)return r}}return this.state.pos=e,"&"}jsxReadWord(){let e;const t=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(isIdentifierChar(e)||45===e);this.finishToken(141,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){const e=this.startNode();return this.match(141)?e.name=this.state.value:tokenIsKeyword(this.state.type)?e.name=tokenLabelName(this.state.type):this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){const e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(14))return t;const r=this.startNodeAt(e);return r.namespace=t,r.name=this.jsxParseIdentifier(),this.finishNode(r,"JSXNamespacedName")}jsxParseElementName(){const e=this.state.startLoc;let t=this.jsxParseNamespacedName();if("JSXNamespacedName"===t.type)return t;for(;this.eat(16);){const r=this.startNodeAt(e);r.object=t,r.property=this.jsxParseIdentifier(),t=this.finishNode(r,"JSXMemberExpression")}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(d.brace),this.next(),e=this.jsxParseExpressionContainer(e,d.j_oTag),"JSXEmptyExpression"===e.expression.type&&this.raise(z.AttributeIsEmpty,e),e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(z.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(d.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,t){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{const t=this.parseExpression();e.expression=t}return this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){const e=this.startNode();return this.match(5)?(this.setContext(d.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(d.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e){const t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,"JSXOpeningFragment"):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}jsxParseOpeningElementAfterName(e){const t=[];for(;!this.match(56)&&!this.match(144);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(56),this.expect(144),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){const t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,"JSXClosingFragment"):(t.name=this.jsxParseElementName(),this.expect(144),this.finishNode(t,"JSXClosingElement"))}jsxParseElementAt(e){const t=this.startNodeAt(e),r=[],n=this.jsxParseOpeningElementAt(e);let s=null;if(!n.selfClosing){e:for(;;)switch(this.state.type){case 143:if(e=this.state.startLoc,this.next(),this.eat(56)){s=this.jsxParseClosingElementAt(e);break e}r.push(this.jsxParseElementAt(e));break;case 142:r.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{const e=this.startNode();this.setContext(d.brace),this.next(),this.match(21)?r.push(this.jsxParseSpreadChild(e)):r.push(this.jsxParseExpressionContainer(e,d.j_expr));break}default:this.unexpected()}isFragment(n)&&!isFragment(s)&&null!==s?this.raise(z.MissingClosingTagFragment,s):!isFragment(n)&&isFragment(s)?this.raise(z.MissingClosingTagElement,s,{openingTagName:getQualifiedJSXName(n.name)}):isFragment(n)||isFragment(s)||getQualifiedJSXName(s.name)!==getQualifiedJSXName(n.name)&&this.raise(z.MissingClosingTagElement,s,{openingTagName:getQualifiedJSXName(n.name)})}if(isFragment(n)?(t.openingFragment=n,t.closingFragment=s):(t.openingElement=n,t.closingElement=s),t.children=r,this.match(47))throw this.raise(z.UnwrappedAdjacentJSXElements,this.state.startLoc);return isFragment(n)?this.finishNode(t,"JSXFragment"):this.finishNode(t,"JSXElement")}jsxParseElement(){const e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){const{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(143)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){const t=this.curContext();if(t!==d.j_expr){if(t===d.j_oTag||t===d.j_cTag){if(isIdentifierStart(e))return void this.jsxReadWord();if(62===e)return++this.state.pos,void this.finishToken(144);if((34===e||39===e)&&t===d.j_oTag)return void this.jsxReadString(e)}if(60===e&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1))return++this.state.pos,void this.finishToken(143);super.getTokenFromCode(e)}else this.jsxReadToken()}updateContext(e){const{context:t,type:r}=this.state;if(56===r&&143===e)t.splice(-2,2,d.j_cTag),this.state.canStartJSXElement=!1;else if(143===r)t.push(d.j_oTag);else if(144===r){const r=t[t.length-1];r===d.j_oTag&&56===e||r===d.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===d.j_expr):(this.setContext(d.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=S[r]}},flow:e=>class extends e{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return FlowScopeHandler}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}finishToken(e,t){134!==e&&13!==e&&28!==e&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(void 0===this.flowPragma){const t=$.exec(e.value);if(t)if("flow"===t[1])this.flowPragma="flow";else{if("noflow"!==t[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}else;}super.addComment(e)}flowParseTypeInitialiser(e){const t=this.state.inType;this.state.inType=!0,this.expect(e||14);const r=this.flowParseType();return this.state.inType=t,r}flowParsePredicate(){const e=this.startNode(),t=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>t.index+1&&this.raise(U.UnexpectedSpaceBetweenModuloChecks,t),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.state.inType=!0,this.expect(14);let t=null,r=null;return this.match(54)?(this.state.inType=e,r=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(r=this.flowParsePredicate())),[t,r]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();const t=e.id=this.parseIdentifier(),r=this.startNode(),n=this.startNode();this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(10);const s=this.flowParseFunctionTypeParams();return r.params=s.params,r.rest=s.rest,r.this=s._this,this.expect(11),[r.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),n.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){if(this.match(80))return this.flowParseDeclareClass(e);if(this.match(68))return this.flowParseDeclareFunction(e);if(this.match(74))return this.flowParseDeclareVariable(e);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(U.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(129))return this.flowParseDeclareInterface(e);if(this.match(82))return this.flowParseDeclareExportDeclaration(e,t);throw this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(134)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();const t=e.body=this.startNode(),r=t.body=[];for(this.expect(5);!this.match(8);){const e=this.startNode();this.match(83)?(this.next(),this.isContextual(130)||this.match(87)||this.raise(U.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),r.push(super.parseImport(e))):(this.expectContextual(125,U.UnsupportedStatementInDeclareModule),r.push(this.flowParseDeclare(e,!0)))}this.scope.exit(),this.expect(8),this.finishNode(t,"BlockStatement");let n=null,s=!1;return r.forEach(e=>{!function(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}(e)?"DeclareModuleExports"===e.type&&(s&&this.raise(U.DuplicateDeclareModuleExports,e),"ES"===n&&this.raise(U.AmbiguousDeclareModuleKind,e),n="CommonJS",s=!0):("CommonJS"===n&&this.raise(U.AmbiguousDeclareModuleKind,e),n="ES")}),e.kind=n||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){const e=this.state.value;throw this.raise(U.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:e,suggestion:V[e]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return"ExportNamedDeclaration"===(e=this.parseExport(e,null)).type?(e.default=!1,delete e.exportKind,this.castNodeTo(e,"DeclareExportDeclaration")):this.castNodeTo(e,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();const t=this.flowParseTypeAlias(e);return this.castNodeTo(t,"DeclareTypeAlias"),t}flowParseDeclareOpaqueType(e){this.next();const t=this.flowParseOpaqueType(e,!0);return this.castNodeTo(t,"DeclareOpaqueType"),t}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(12));if(t){if(e.implements=[],e.mixins=[],this.eatContextual(117))do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(113))do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}flowParseInterfaceExtends(){const e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){"_"===e&&this.raise(U.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,t,r){R.has(e)&&this.raise(r?U.AssignReservedType:U.UnexpectedReservedType,t,{reservedType:e})}flowParseRestrictedIdentifierName(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifierName(e)}flowParseRestrictedIdentifier(e,t){const r=this.startNode(),n=this.flowParseRestrictedIdentifierName(e,t);return this.createIdentifier(r,n)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameterBound(){if(this.match(14)||this.isContextual(81)){const e=this.startNode();return this.next(),e.typeAnnotation=this.flowParseType(),this.finishNode(e,"TypeAnnotation")}}flowParseTypeParameter(e=!1){const t=this.state.startLoc,r=this.startNode(),n=this.flowParseVariance();return r.name=this.flowParseRestrictedIdentifierName(),r.variance=n,r.bound=this.flowParseTypeParameterBound(),this.match(29)?(this.eat(29),r.default=this.flowParseType()):e&&this.raise(U.MissingTypeParamDefault,t),this.finishNode(r,"TypeParameter")}flowParseTypeParameterDeclaration(){const e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let r=!1;do{const e=this.flowParseTypeParameter(r);t.params.push(e),e.default&&(r=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}flowInTopLevelContext(e){if(this.curContext()===d.brace)return e();{const t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}}flowParseTypeParameterInstantiationInExpression(){if(47===this.reScan_lt())return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){const e=this.startNode(),t=this.state.inType;return this.state.inType=!0,e.params=[],this.flowInTopLevelContext(()=>{this.expect(47);const t=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=t}),this.state.inType=t,this.state.inType||this.curContext()!==d.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(47!==this.reScan_lt())return null;const e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){const e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,r){return e.static=t,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=r,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,t){const r=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(r),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:r,allowProto:n,allowInexact:s}){const i=this.state.inType;this.state.inType=!0;const o=this.startNode();let a,l;o.callProperties=[],o.properties=[],o.indexers=[],o.internalSlots=[];let p=!1;for(t&&this.match(6)?(this.expect(6),a=9,l=!0):(this.expect(5),a=8,l=!1),o.exact=l;!this.match(a);){let t=!1,i=null,a=null;const c=this.startNode();if(n&&this.isContextual(118)){const t=this.lookahead();14!==t.type&&17!==t.type&&(this.next(),i=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){const e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),t=!0)}const u=this.flowParseVariance();if(this.eat(0))null!=i&&this.unexpected(i),this.eat(0)?(u&&this.unexpected(u.loc.start),o.internalSlots.push(this.flowParseObjectTypeInternalSlot(c,t))):o.indexers.push(this.flowParseObjectTypeIndexer(c,t,u));else if(this.match(10)||this.match(47))null!=i&&this.unexpected(i),u&&this.unexpected(u.loc.start),o.callProperties.push(this.flowParseObjectTypeCallProperty(c,t));else{let e="init";if(this.isContextual(99)||this.isContextual(104)){tokenIsLiteralPropertyName(this.lookahead().type)&&(e=this.state.value,this.next())}const n=this.flowParseObjectTypeProperty(c,t,i,u,e,r,null!=s?s:!l);null===n?(p=!0,a=this.state.lastTokStartLoc):o.properties.push(n)}this.flowObjectTypeSemicolon(),!a||this.match(8)||this.match(9)||this.raise(U.UnexpectedExplicitInexactInObject,a)}this.expect(a),r&&(o.inexact=p);const c=this.finishNode(o,"ObjectTypeAnnotation");return this.state.inType=i,c}flowParseObjectTypeProperty(e,t,r,n,s,i,o){if(this.eat(21)){return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(i?o||this.raise(U.InexactInsideExact,this.state.lastTokStartLoc):this.raise(U.InexactInsideNonObject,this.state.lastTokStartLoc),n&&this.raise(U.InexactVariance,n),null):(i||this.raise(U.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=r&&this.unexpected(r),n&&this.raise(U.SpreadVariance,n),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"))}{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=r,e.kind=s;let o=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=r&&this.unexpected(r),n&&this.unexpected(n.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),"get"!==s&&"set"!==s||this.flowCheckGetterSetterParams(e),!i&&"constructor"===e.key.name&&e.value.this&&this.raise(U.ThisParamBannedInConstructor,e.value.this)):("init"!==s&&this.unexpected(),e.method=!1,this.eat(17)&&(o=!0),e.value=this.flowParseTypeInitialiser(),e.variance=n),e.optional=o,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const t="get"===e.kind?0:1,r=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?U.GetterMayNotHaveThisParam:U.SetterMayNotHaveThisParam,e.value.this),r!==t&&this.raise("get"===e.kind?c.BadGetterArity:c.BadSetterArity,e),"set"===e.kind&&e.value.rest&&this.raise(c.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}flowParseQualifiedTypeIdentifier(e,t){null!=e||(e=this.state.startLoc);let r=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const t=this.startNodeAt(e);t.qualification=r,t.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(t,"QualifiedTypeIdentifier")}return r}flowParseGenericType(e,t){const r=this.startNodeAt(e);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"GenericTypeAnnotation")}flowParseTypeofType(){const e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){const e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let t=null,r=!1,n=null;const s=this.startNode(),i=this.lookahead(),o=78===this.state.type;return 14===i.type||17===i.type?(o&&!e&&this.raise(U.ThisParamMustBeFirst,s),t=this.parseIdentifier(o),this.eat(17)&&(r=!0,o&&this.raise(U.ThisParamMayNotBeOptional,s)),n=this.flowParseTypeInitialiser()):n=this.flowParseType(),s.name=t,s.optional=r,s.typeAnnotation=n,this.finishNode(s,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){const t=this.startNodeAt(e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,"FunctionTypeParam")}flowParseFunctionTypeParams(e=[]){let t=null,r=null;for(this.match(78)&&(r=this.flowParseFunctionTypeParam(!0),r.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:r}}flowIdentToTypeAnnotation(e,t,r){switch(r.name){case"any":return this.finishNode(t,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(t,"BooleanTypeAnnotation");case"mixed":return this.finishNode(t,"MixedTypeAnnotation");case"empty":return this.finishNode(t,"EmptyTypeAnnotation");case"number":return this.finishNode(t,"NumberTypeAnnotation");case"string":return this.finishNode(t,"StringTypeAnnotation");case"symbol":return this.finishNode(t,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(r.name),this.flowParseGenericType(e,r)}}flowParsePrimaryType(){const e=this.state.startLoc,t=this.startNode();let r,n,s=!1;const i=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,n=this.flowParseTupleType(),this.state.noAnonFunctionType=i,n;case 47:{const e=this.startNode();return e.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),r=this.flowParseFunctionTypeParams(),e.params=r.params,e.rest=r.rest,e.this=r._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),this.finishNode(e,"FunctionTypeAnnotation")}case 10:{const e=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(tokenIsIdentifier(this.state.type)||this.match(78)){const e=this.lookahead().type;s=17!==e&&14!==e}else s=!0;if(s){if(this.state.noAnonFunctionType=!1,n=this.flowParseType(),this.state.noAnonFunctionType=i,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),n;this.eat(12)}return r=n?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)]):this.flowParseFunctionTypeParams(),e.params=r.params,e.rest=r.rest,e.this=r._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),e.typeParameters=null,this.finishNode(e,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return t.value=this.match(85),this.next(),this.finishNode(t,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",t);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",t);throw this.raise(U.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(t,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(t,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(t,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(t,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(tokenIsKeyword(this.state.type)){const e=tokenLabelName(this.state.type);return this.next(),super.createIdentifier(t,e)}if(tokenIsIdentifier(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,t,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){const e=this.state.startLoc;let t=this.flowParsePrimaryType(),r=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const n=this.startNodeAt(e),s=this.eat(18);r=r||s,this.expect(0),!s&&this.match(3)?(n.elementType=t,this.next(),t=this.finishNode(n,"ArrayTypeAnnotation")):(n.objectType=t,n.indexType=this.flowParseType(),this.expect(3),r?(n.optional=s,t=this.finishNode(n,"OptionalIndexedAccessType")):t=this.finishNode(n,"IndexedAccessType"))}return t}flowParsePrefixType(){const e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const t=this.startNodeAt(e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){const e=this.startNode();this.eat(45);const t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){const e=this.startNode();this.eat(43);const t=this.flowParseIntersectionType();for(e.types=[t];this.eat(43);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){const e=this.state.inType;this.state.inType=!0;const t=this.flowParseUnionType();return this.state.inType=e,t}flowParseTypeOrImplicitInstantiation(){if(132===this.state.type&&"_"===this.state.value){const e=this.state.startLoc,t=this.parseIdentifier();return this.flowParseGenericType(e,t)}return this.flowParseType()}flowParseTypeAnnotation(){const e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(){const e=this.startNode(),t=this.parseIdentifierName();return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),this.createIdentifier(e,t)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}parseFunctionBody(e,t,r=!1){t?this.forwardNoArrowParamsConversionAt(e,()=>super.parseFunctionBody(e,!0,r)):super.parseFunctionBody(e,!1,r)}parseFunctionBodyAndFinish(e,t,r=!1){if(this.match(14)){const t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,t,r)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){if(tokenIsKeywordOrIdentifier(this.lookahead().type)){const e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}const t=super.parseStatementLike(e);return void 0!==this.flowPragma||this.isValidDirective(t)||(this.flowPragma=null),t}parseExpressionStatement(e,t,r){if("Identifier"===t.type)if("declare"===t.name){if(this.match(80)||tokenIsIdentifier(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(tokenIsIdentifier(this.state.type)){if("interface"===t.name)return this.flowParseInterface(e);if("type"===t.name)return this.flowParseTypeAlias(e);if("opaque"===t.name)return this.flowParseOpaqueType(e,!1)}return super.parseExpressionStatement(e,t,r)}shouldParseExportDeclaration(){const{type:e}=this.state;return 126===e||tokenIsFlowInterfaceOrTypeOrOpaque(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:e}=this.state;return 126===e||tokenIsFlowInterfaceOrTypeOrOpaque(e)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,r){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(r),e}this.expect(17);const n=this.state.clone(),s=this.state.noArrowAt,i=this.startNodeAt(t);let{consequent:o,failed:a}=this.tryParseConditionalConsequent(),[l,p]=this.getArrowLikeExpressions(o);if(a||p.length>0){const e=[...s];if(p.length>0){this.state=n,this.state.noArrowAt=e;for(let t=0;t<p.length;t++)e.push(p[t].start);({consequent:o,failed:a}=this.tryParseConditionalConsequent()),[l,p]=this.getArrowLikeExpressions(o)}a&&l.length>1&&this.raise(U.AmbiguousConditionalArrow,n.startLoc),a&&1===l.length&&(this.state=n,e.push(l[0].start),this.state.noArrowAt=e,({consequent:o,failed:a}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(o,!0),this.state.noArrowAt=s,this.expect(14),i.test=e,i.consequent=o,i.alternate=this.forwardNoArrowParamsConversionAt(i,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(i,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){const r=[e],n=[];for(;0!==r.length;){const e=r.pop();"ArrowFunctionExpression"===e.type&&"BlockStatement"!==e.body.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):n.push(e),r.push(e.body)):"ConditionalExpression"===e.type&&(r.push(e.consequent),r.push(e.alternate))}return t?(n.forEach(e=>this.finishArrowValidation(e)),[n,[]]):function(e,t){const r=[],n=[];for(let s=0;s<e.length;s++)(t(e[s],s,e)?r:n).push(e[s]);return[r,n]}(n,e=>e.params.every(e=>this.isAssignable(e,!0)))}finishArrowValidation(e){var t;this.toAssignableList(e.params,null==(t=e.extra)?void 0:t.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let r;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),r=t(),this.state.noArrowParamsConversionAt.pop()):r=t(),r}parseParenItem(e,t){const r=super.parseParenItem(e,t);if(this.eat(17)&&(r.optional=!0,this.resetEndLocation(e)),this.match(14)){const e=this.startNodeAt(t);return e.expression=r,e.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(e,"TypeCastExpression")}return r}assertModuleNodeAllowed(e){"ImportDeclaration"===e.type&&("type"===e.importKind||"typeof"===e.importKind)||"ExportNamedDeclaration"===e.type&&"type"===e.exportKind||"ExportAllDeclaration"===e.type&&"type"===e.exportKind||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";const t=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(t)}if(this.isContextual(131)){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}if(this.isContextual(129)){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseInterface(t)}if(this.isContextual(126)){e.exportKind="value";const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDeclaration(e)}eatExportStar(e){return!!super.eatExportStar(e)||!(!this.isContextual(130)||55!==this.lookahead().type)&&(e.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(e){const{startLoc:t}=this.state,r=super.maybeParseExportNamespaceSpecifier(e);return r&&"type"===e.exportKind&&this.unexpected(t),r}parseClassId(e,t,r){super.parseClassId(e,t,r),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,r){const{startLoc:n}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,r),t.declare&&("ClassProperty"!==t.type&&"ClassPrivateProperty"!==t.type&&"PropertyDefinition"!==t.type?this.raise(U.DeclareClassElement,n):t.value&&this.raise(U.DeclareClassFieldInitializer,t.value))}isIterator(e){return"iterator"===e||"asyncIterator"===e}readIterator(){const e=super.readWord1(),t="@@"+e;this.isIterator(e)&&this.state.inType||this.raise(c.InvalidIdentifier,this.state.curPosition(),{identifierName:t}),this.finishToken(132,t)}getTokenFromCode(e){const t=this.input.charCodeAt(this.state.pos+1);123===e&&124===t?this.finishOp(6,2):!this.state.inType||62!==e&&60!==e?this.state.inType&&63===e?46===t?this.finishOp(18,2):this.finishOp(17,1):!function(e,t,r){return 64===e&&64===t&&isIdentifierStart(r)}(e,t,this.input.charCodeAt(this.state.pos+2))?super.getTokenFromCode(e):(this.state.pos+=2,this.readIterator()):this.finishOp(62===e?48:47,1)}isAssignable(e,t){return"TypeCastExpression"===e.type?this.isAssignable(e.expression,t):super.isAssignable(e,t)}toAssignable(e,t=!1){t||"AssignmentExpression"!==e.type||"TypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,t)}toAssignableList(e,t,r){for(let t=0;t<e.length;t++){const r=e[t];"TypeCastExpression"===(null==r?void 0:r.type)&&(e[t]=this.typeCastToParameter(r))}super.toAssignableList(e,t,r)}toReferencedList(e,t){for(let n=0;n<e.length;n++){var r;const s=e[n];!s||"TypeCastExpression"!==s.type||null!=(r=s.extra)&&r.parenthesized||!(e.length>1)&&t||this.raise(U.TypeCastInPattern,s.typeAnnotation)}return e}parseArrayLike(e,t,r){const n=super.parseArrayLike(e,t,r);return null==r||this.state.maybeInArrowParameters||this.toReferencedList(n.elements),n}isValidLVal(e,t,r,n){return"TypeCastExpression"===e||super.isValidLVal(e,t,r,n)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,r,n,s,i){if(t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,r,n,s,i),t.params&&s){const e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(U.ThisParamBannedInConstructor,t)}else if("MethodDefinition"===t.type&&s&&t.value.params){const e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(U.ThisParamBannedInConstructor,t)}}pushClassPrivateMethod(e,t,r,n){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,r,n)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();const t=e.implements=[];do{const e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);const t=this.getObjectOrClassMethodParams(e);if(t.length>0){const r=t[0];this.isThisParam(r)&&"get"===e.kind?this.raise(U.GetterMayNotHaveThisParam,r):this.isThisParam(r)&&this.raise(U.SetterMayNotHaveThisParam,r)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,r,n,s,i,o){let a;e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&!i&&(a=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const l=super.parseObjPropValue(e,t,r,n,s,i,o);return a&&((l.value||l).typeParameters=a),l}parseFunctionParamType(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(U.PatternIsOptional,e),this.isThisParam(e)&&this.raise(U.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(U.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(U.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,t){const r=super.parseMaybeDefault(e,t);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(U.TypeBeforeInitializer,r.typeAnnotation),r}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(U.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,t,r){t.local=hasTypeImportKind(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;const t=this.lookaheadCharCode();return 123===t||42===t}return!e&&this.isContextual(87)}applyImportPhase(e,t,r,n){if(super.applyImportPhase(e,t,r,n),t){if(!r&&this.match(65))return;e.exportKind="type"===r?r:"value"}else"type"===r&&this.match(55)&&this.unexpected(),e.importKind="type"===r||"typeof"===r?r:"value"}parseImportSpecifier(e,t,r,n,s){const i=e.imported;let o=null;"Identifier"===i.type&&("type"===i.name?o="type":"typeof"===i.name&&(o="typeof"));let a=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const t=this.parseIdentifier(!0);null===o||tokenIsKeywordOrIdentifier(this.state.type)?(e.imported=i,e.importKind=null,e.local=this.parseIdentifier()):(e.imported=t,e.importKind=o,e.local=this.cloneIdentifier(t))}else{if(null!==o&&tokenIsKeywordOrIdentifier(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=o;else{if(t)throw this.raise(c.ImportBindingIsString,e,{importName:i.value});e.imported=i,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(a=!0,e.local=this.cloneIdentifier(e.imported))}const l=hasTypeImportKind(e);return r&&l&&this.raise(U.ImportTypeShorthandOnlyInPureImport,e),(r||l)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),!a||r||l||this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(e,t){const r=e.kind;"get"!==r&&"set"!==r&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var r;let n,s=null;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(s=this.state.clone(),n=this.tryParse(()=>super.parseMaybeAssign(e,t),s),!n.error)return n.node;const{context:r}=this.state,i=r[r.length-1];i!==d.j_oTag&&i!==d.j_expr||r.pop()}if(null!=(r=n)&&r.error||this.match(47)){var i,o;let r;s=s||this.state.clone();const a=this.tryParse(n=>{var s;r=this.flowParseTypeParameterDeclaration();const i=this.forwardNoArrowParamsConversionAt(r,()=>{const n=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(n,r),n});null!=(s=i.extra)&&s.parenthesized&&n();const o=this.maybeUnwrapTypeCastExpression(i);return"ArrowFunctionExpression"!==o.type&&n(),o.typeParameters=r,this.resetStartLocationFromNode(o,r),i},s);let l=null;if(a.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(a.node).type){if(!a.error&&!a.aborted)return a.node.async&&this.raise(U.UnexpectedTypeParameterBeforeAsyncArrowFunction,r),a.node;l=a.node}if(null!=(i=n)&&i.node)return this.state=n.failState,n.node;if(l)return this.state=a.failState,l;if(null!=(o=n)&&o.thrown)throw n.error;if(a.thrown)throw a.error;throw this.raise(U.UnexpectedTokenAfterTypeParameter,r)}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse(()=>{const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const r=this.startNode();return[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),r});if(t.thrown)return null;t.error&&(this.state=t.failState),e.returnType=t.node.typeAnnotation?this.finishNode(t.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,r,n=!0){if(!r||!this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))){for(let t=0;t<e.params.length;t++)this.isThisParam(e.params[t])&&t>0&&this.raise(U.ThisParamMustBeFirst,e.params[t]);super.checkParams(e,t,r,n)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,t,r){if("Identifier"===e.type&&"async"===e.name&&this.state.noArrowAt.includes(t.index)){this.next();const r=this.startNodeAt(t);r.callee=e,r.arguments=super.parseCallExpressionArguments(),e=this.finishNode(r,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.match(47)){const n=this.state.clone(),s=this.tryParse(e=>this.parseAsyncArrowWithTypeParameters(t)||e(),n);if(!s.error&&!s.aborted)return s.node;const i=this.tryParse(()=>super.parseSubscripts(e,t,r),n);if(i.node&&!i.error)return i.node;if(s.node)return this.state=s.failState,s.node;if(i.node)return this.state=i.failState,i.node;throw s.error||i.error}return super.parseSubscripts(e,t,r)}parseSubscript(e,t,r,n){if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,r)return n.stop=!0,e;this.next();const s=this.startNodeAt(t);return s.callee=e,s.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),s.arguments=this.parseCallExpressionArguments(),s.optional=!0,this.finishCallExpression(s,!0)}if(!r&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){const r=this.startNodeAt(t);r.callee=e;const s=this.tryParse(()=>(r.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),r.arguments=super.parseCallExpressionArguments(),n.optionalChainMember&&(r.optional=!1),this.finishCallExpression(r,n.optionalChainMember)));if(s.node)return s.error&&(this.state=s.failState),s.node}return super.parseSubscript(e,t,r,n)}parseNewCallee(e){super.parseNewCallee(e);let t=null;this.shouldParseTypes()&&this.match(47)&&(t=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){const t=this.startNodeAt(e);if(this.parseFunctionParams(t,!1),this.parseArrow(t))return super.parseArrowExpression(t,void 0,!0)}readToken_mult_modulo(e){const t=this.input.charCodeAt(this.state.pos+1);if(42===e&&47===t&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(e)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);124!==e||125!==t?super.readToken_pipe_amp(e):this.finishOp(9,2)}parseTopLevel(e,t){const r=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(U.UnterminatedFlowComment,this.state.curPosition()),r}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(U.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();const e=this.skipFlowComment();return void(e&&(this.state.pos+=e,this.state.hasFlowComment=!0))}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){const{pos:e}=this.state;let t=2;for(;[32,9].includes(this.input.charCodeAt(e+t));)t++;const r=this.input.charCodeAt(t+e),n=this.input.charCodeAt(t+e+1);return 58===r&&58===n?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===r&&58!==n&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(c.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:r}){this.raise(U.EnumBooleanMemberNotInitialized,e,{memberName:r,enumName:t})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(t.explicitType?"symbol"===t.explicitType?U.EnumInvalidMemberInitializerSymbolType:U.EnumInvalidMemberInitializerPrimaryType:U.EnumInvalidMemberInitializerUnknownType,e,t)}flowEnumErrorNumberMemberNotInitialized(e,t){this.raise(U.EnumNumberMemberNotInitialized,e,t)}flowEnumErrorStringMemberInconsistentlyInitialized(e,t){this.raise(U.EnumStringMemberInconsistentlyInitialized,e,t)}flowEnumMemberInit(){const e=this.state.startLoc,endOfInit=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{const t=this.parseNumericLiteral(this.state.value);return endOfInit()?{type:"number",loc:t.loc.start,value:t}:{type:"invalid",loc:e}}case 134:{const t=this.parseStringLiteral(this.state.value);return endOfInit()?{type:"string",loc:t.loc.start,value:t}:{type:"invalid",loc:e}}case 85:case 86:{const t=this.parseBooleanLiteral(this.match(85));return endOfInit()?{type:"boolean",loc:t.loc.start,value:t}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){const e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}}flowEnumCheckExplicitTypeMismatch(e,t,r){const{explicitType:n}=t;null!==n&&n!==r&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers({enumName:e,explicitType:t}){const r=new Set,n={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let s=!1;for(;!this.match(8);){if(this.eat(21)){s=!0;break}const i=this.startNode(),{id:o,init:a}=this.flowEnumMemberRaw(),l=o.name;if(""===l)continue;/^[a-z]/.test(l)&&this.raise(U.EnumInvalidMemberName,o,{memberName:l,suggestion:l[0].toUpperCase()+l.slice(1),enumName:e}),r.has(l)&&this.raise(U.EnumDuplicateMemberName,o,{memberName:l,enumName:e}),r.add(l);const p={enumName:e,explicitType:t,memberName:l};switch(i.id=o,a.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(a.loc,p,"boolean"),i.init=a.value,n.booleanMembers.push(this.finishNode(i,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(a.loc,p,"number"),i.init=a.value,n.numberMembers.push(this.finishNode(i,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(a.loc,p,"string"),i.init=a.value,n.stringMembers.push(this.finishNode(i,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(a.loc,p);case"none":switch(t){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(a.loc,p);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(a.loc,p);break;default:n.defaultedMembers.push(this.finishNode(i,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:n,hasUnknownMembers:s}}flowEnumStringMembers(e,t,{enumName:r}){if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(const t of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:r});return t}for(const e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:r});return e}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!tokenIsIdentifier(this.state.type))throw this.raise(U.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});const{value:t}=this.state;return this.next(),"boolean"!==t&&"number"!==t&&"string"!==t&&"symbol"!==t&&this.raise(U.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:t}),t}flowEnumBody(e,t){const r=t.name,n=t.loc.start,s=this.flowEnumParseExplicitType({enumName:r});this.expect(5);const{members:i,hasUnknownMembers:o}=this.flowEnumMembers({enumName:r,explicitType:s});switch(e.hasUnknownMembers=o,s){case"boolean":return e.explicitType=!0,e.members=i.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=i.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(i.stringMembers,i.defaultedMembers,{enumName:r}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=i.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{const empty=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;const t=i.booleanMembers.length,s=i.numberMembers.length,o=i.stringMembers.length,a=i.defaultedMembers.length;if(t||s||o||a){if(t||s){if(!s&&!o&&t>=a){for(const e of i.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:r,memberName:e.id.name});return e.members=i.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}if(!t&&!o&&s>=a){for(const e of i.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:r,memberName:e.id.name});return e.members=i.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}return this.raise(U.EnumInconsistentMemberValues,n,{enumName:r}),empty()}return e.members=this.flowEnumStringMembers(i.stringMembers,i.defaultedMembers,{enumName:r}),this.expect(8),this.finishNode(e,"EnumStringBody")}return empty()}}}flowParseEnumDeclaration(e){const t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),t),this.finishNode(e,"EnumDeclaration")}jsxParseOpeningElementAfterName(e){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(e.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(e)}isLookaheadToken_lt(){const e=this.nextTokenStart();if(60===this.input.charCodeAt(e)){const t=this.input.charCodeAt(e+1);return 60!==t&&61!==t}return!1}reScan_lt_gt(){const{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}maybeUnwrapTypeCastExpression(e){return"TypeCastExpression"===e.type?e.expression:e}},typescript:e=>class extends e{constructor(...e){super(...e),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:Z.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:Z.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:Z.InvalidModifierOnTypeParameter})}getScopeHandler(){return TypeScriptScopeHandler}tsIsIdentifier(){return tokenIsIdentifier(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),!this.hasPrecedingLineBreak()&&this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(e,t,r){if(!tokenIsIdentifier(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;const n=this.state.value;if(e.includes(n)){if(r&&this.match(106))return;if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return n}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:t,stopOnStartOfClassStaticBlock:r,errorTemplate:n=Z.InvalidModifierOnTypeMember},s){const enforceOrder=(e,t,r,n)=>{t===r&&s[n]&&this.raise(Z.InvalidModifiersOrder,e,{orderedModifiers:[r,n]})},incompatible=(e,t,r,n)=>{(s[r]&&t===n||s[n]&&t===r)&&this.raise(Z.IncompatibleModifiers,e,{modifiers:[r,n]})};for(;;){const{startLoc:i}=this.state,o=this.tsParseModifier(e.concat(null!=t?t:[]),r,s.static);if(!o)break;tsIsAccessModifier(o)?s.accessibility?this.raise(Z.DuplicateAccessibilityModifier,i,{modifier:o}):(enforceOrder(i,o,o,"override"),enforceOrder(i,o,o,"static"),enforceOrder(i,o,o,"readonly"),s.accessibility=o):tsIsVarianceAnnotations(o)?(s[o]&&this.raise(Z.DuplicateModifier,i,{modifier:o}),s[o]=!0,enforceOrder(i,o,"in","out")):(hasOwnProperty.call(s,o)?this.raise(Z.DuplicateModifier,i,{modifier:o}):(enforceOrder(i,o,"static","readonly"),enforceOrder(i,o,"static","override"),enforceOrder(i,o,"override","readonly"),enforceOrder(i,o,"abstract","override"),incompatible(i,o,"declare","override"),incompatible(i,o,"static","abstract")),s[o]=!0),null!=t&&t.includes(o)&&this.raise(n,i,{modifier:o})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,t){const r=[];for(;!this.tsIsListTerminator(e);)r.push(t());return r}tsParseDelimitedList(e,t,r){return function(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}(this.tsParseDelimitedListWorker(e,t,!0,r))}tsParseDelimitedListWorker(e,t,r,n){const s=[];let i=-1;for(;!this.tsIsListTerminator(e);){i=-1;const n=t();if(null==n)return;if(s.push(n),!this.eat(12)){if(this.tsIsListTerminator(e))break;return void(r&&this.expect(12))}i=this.state.lastTokStartLoc.index}return n&&(n.value=i),s}tsParseBracketedList(e,t,r,n,s){n||(r?this.expect(0):this.expect(47));const i=this.tsParseDelimitedList(e,t,s);return r?this.expect(3):this.expect(48),i}tsParseImportType(){const e=this.startNode();return this.expect(83),this.expect(10),this.match(134)?e.argument=this.parseStringLiteral(this.state.value):(this.raise(Z.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=super.parseExprAtom()),this.eat(12)?e.options=this.tsParseImportTypeOptions():e.options=null,this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName(3)),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseImportTypeOptions(){const e=this.startNode();this.expect(5);const t=this.startNode();return this.isContextual(76)?(t.method=!1,t.key=this.parseIdentifier(!0),t.computed=!1,t.shorthand=!1):this.unexpected(null,76),this.expect(14),t.value=this.tsParseImportTypeWithPropertyValue(),e.properties=[this.finishObjectProperty(t)],this.eat(12),this.expect(8),this.finishNode(e,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){const e=this.startNode(),t=[];for(this.expect(5);!this.match(8);){const e=this.state.type;tokenIsIdentifier(e)||134===e?t.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return e.properties=t,this.next(),this.finishNode(e,"ObjectExpression")}tsParseEntityName(e){let t;if(1&e&&this.match(78))if(2&e)t=this.parseIdentifier(!0);else{const e=this.startNode();this.next(),t=this.finishNode(e,"ThisExpression")}else t=this.parseIdentifier(!!(1&e));for(;this.eat(16);){const r=this.startNodeAtNode(t);r.left=t,r.right=this.parseIdentifier(!!(1&e)),t=this.finishNode(r,"TSQualifiedName")}return t}tsParseTypeReference(){const e=this.startNode();return e.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();const t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){const e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){const e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){const t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(81),t.default=this.tsEatThenParseType(29),this.finishNode(t,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){const t=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();const r={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,r),0===t.params.length&&this.raise(Z.EmptyTypeParameters,t),-1!==r.value&&this.addExtra(t,"trailingComma",r.value),this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){const r=19===e,n="typeAnnotation";t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),(r||this.match(e))&&(t[n]=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){const e=super.parseBindingList(11,41,2);for(const t of e){const{type:e}=t;"AssignmentPattern"!==e&&"TSParameterProperty"!==e||this.raise(Z.UnsupportedSignatureParameterKind,t,{type:e})}return e}tsParseTypeMemberSemicolon(){this.eat(12)||this.isLineTerminator()||this.expect(13)}tsParseSignatureMember(e,t){return this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!tokenIsIdentifier(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(e){if(!this.match(0)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(0);const t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(3),e.parameters=[t];const r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){if(this.eat(17)&&(e.optional=!0),this.match(10)||this.match(47)){t&&this.raise(Z.ReadonlyForMethodSignature,e);const r=e;r.kind&&this.match(47)&&this.raise(Z.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon();const n="parameters",s="typeAnnotation";if("get"===r.kind)r[n].length>0&&(this.raise(c.BadGetterArity,this.state.curPosition()),this.isThisParam(r[n][0])&&this.raise(Z.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===r.kind){if(1!==r[n].length)this.raise(c.BadSetterArity,this.state.curPosition());else{const e=r[n][0];this.isThisParam(e)&&this.raise(Z.AccessorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===e.type&&e.optional&&this.raise(Z.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===e.type&&this.raise(Z.SetAccessorCannotHaveRestParameter,this.state.curPosition())}r[s]&&this.raise(Z.SetAccessorCannotHaveReturnType,r[s])}else r.kind="method";return this.finishNode(r,"TSMethodSignature")}{const r=e;t&&(r.readonly=!0);const n=this.tsTryParseTypeAnnotation();return n&&(r.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSPropertySignature")}}tsParseTypeMember(){const e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){const t=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e);const t=this.tsTryParseIndexSignature(e);return t||(super.parsePropertyName(e),e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||!this.tsTokenCanFollowModifier()||(e.kind=e.key.name,super.parsePropertyName(e),this.match(10)||this.match(47)||this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){const e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))}tsParseMappedType(){const e=this.startNode();this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0);const t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsExpectThenParseType(58),e.typeParameter=this.finishNode(t,"TSTypeParameter"),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1;return e.elementTypes.forEach(e=>{const{type:r}=e;!t||"TSRestType"===r||"TSOptionalType"===r||"TSNamedTupleMember"===r&&e.optional||this.raise(Z.OptionalTypeBeforeRequired,e),t||(t="TSNamedTupleMember"===r&&e.optional||"TSOptionalType"===r)}),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const e=this.state.startLoc,t=this.eat(21),{startLoc:r}=this.state;let n,s,i,o;const a=tokenIsKeywordOrIdentifier(this.state.type)?this.lookaheadCharCode():null;if(58===a)n=!0,i=!1,s=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(63===a){i=!0;const e=this.state.value,t=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(n=!0,s=this.createIdentifier(this.startNodeAt(r),e),this.expect(17),this.expect(14),o=this.tsParseType()):(n=!1,o=t,this.expect(17))}else o=this.tsParseType(),i=this.eat(17),n=this.eat(14);if(n){let e;s?(e=this.startNodeAt(r),e.optional=i,e.label=s,e.elementType=o,this.eat(17)&&(e.optional=!0,this.raise(Z.TupleOptionalAfterType,this.state.lastTokStartLoc))):(e=this.startNodeAt(r),e.optional=i,this.raise(Z.InvalidTupleMemberLabel,o),e.label=o,e.elementType=this.tsParseType()),o=this.finishNode(e,"TSNamedTupleMember")}else if(i){const e=this.startNodeAt(r);e.typeAnnotation=o,o=this.finishNode(e,"TSOptionalType")}if(t){const t=this.startNodeAt(e);t.typeAnnotation=o,o=this.finishNode(t,"TSRestType")}return o}tsParseParenthesizedType(){const e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){const r=this.startNode();return"TSConstructorType"===e&&(r.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,r)),this.finishNode(r,e)}tsParseLiteralTypeNode(){const e=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){const e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){const e=this.startNode(),t=this.lookahead();return 135!==t.type&&136!==t.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type:e}=this.state;if(tokenIsIdentifier(e)||88===e||84===e){const t=88===e?"TSVoidKeyword":84===e?"TSNullKeyword":function(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==t&&46!==this.lookaheadCharCode()){const e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){const{startLoc:e}=this.state;let t=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){const r=this.startNodeAt(e);r.elementType=t,this.expect(3),t=this.finishNode(r,"TSArrayType")}else{const r=this.startNodeAt(e);r.objectType=t,r.indexType=this.tsParseType(),this.expect(3),t=this.finishNode(r,"TSIndexedAccessType")}return t}tsParseTypeOperator(){const e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(Z.UnexpectedReadonly,e)}}tsParseInferType(){const e=this.startNode();this.expectContextual(115);const t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){var e;return(e=this.state.type)>=121&&e<=123&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,t,r){const n=this.startNode(),s=this.eat(r),i=[];do{i.push(t())}while(this.eat(r));return 1!==i.length||s?(n.types=i,this.finishNode(n,e)):i[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(tokenIsIdentifier(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){const{errors:e}=this.state,t=e.length;try{return this.parseObjectLike(8,!0),e.length===t}catch(e){return!1}}if(this.match(0)){this.next();const{errors:e}=this.state,t=e.length;try{return super.parseBindingList(3,93,1),e.length===t}catch(e){return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)&&(this.next(),this.match(19)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{const t=this.startNode();this.expect(e);const r=this.startNode(),n=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(n&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(r.parameterName=e,r.asserts=!0,r.typeAnnotation=null,e=this.finishNode(r,"TSTypePredicate")):(this.resetStartLocationFromNode(e,r),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}const s=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!s)return n?(r.parameterName=this.parseIdentifier(),r.asserts=n,r.typeAnnotation=null,t.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);const i=this.tsParseTypeAnnotation(!1);return r.parameterName=s,r.typeAnnotation=i,r.asserts=n,t.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(109!==this.state.type)return!1;const e=this.state.containsEsc;return this.next(),!(!tokenIsIdentifier(this.state.type)&&!this.match(78))&&(e&&this.raise(c.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType(()=>{e&&this.expect(14),t.typeAnnotation=this.tsParseType()}),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){assert(this.state.inType);const e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;const t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),t.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),t.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(t,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Z.ReservedTypeAssertion,this.state.startLoc);const e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){const t=this.state.startLoc,r=this.tsParseDelimitedList("HeritageClauseElement",()=>{const e=this.startNode();return e.expression=this.tsParseEntityName(3),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")});return r.length||this.raise(Z.EmptyHeritageClauseType,t,{token:e}),r}tsParseInterfaceDeclaration(e,t={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),tokenIsIdentifier(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(Z.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));const r=this.startNode();return r.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(r,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&46!==this.lookaheadCharCode()){const e=this.startNode();return this.next(),this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInTopLevelContext(e){if(this.curContext()===d.brace)return e();{const t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}}tsInType(e){const t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){const e=this.startNode();return e.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,t={}){return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseEnumBody(){const e=this.startNode();return this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumBody")}tsParseModuleBlock(){const e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,t=!1){if(e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,1024),this.eat(16)){const t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.kind="global",e.global=!0,e.id=this.parseIdentifier()):this.match(134)?(e.kind="module",e.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t,r){e.isExport=r||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);const n=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==n.type&&this.raise(Z.ImportAliasHasImportType,n),e.moduleReference=n,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){const e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){const t=this.state.clone(),r=e();return this.state=t,r}tsTryParseAndCatch(e){const t=this.tryParse(t=>e()||t());if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node}tsTryParse(e){const t=this.state.clone(),r=e();if(void 0!==r&&!1!==r)return r;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;const t=this.state.type;return this.tsInAmbientContext(()=>{switch(t){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 100:if(this.state.containsEsc)return;case 75:case 74:return this.match(75)&&this.isLookaheadContextual("enum")?(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0})):(e.declare=!0,this.parseVarStatement(e,this.state.value,!0));case 107:if(this.isUsing())return this.raise(Z.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.parseVarStatement(e,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(Z.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.next(),this.parseVarStatement(e,"await using",!0);break;case 129:{const t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}default:if(tokenIsIdentifier(t))return this.tsParseDeclaration(e,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(e,t,r,n){switch(t){case 124:if(this.tsCheckLineTerminator(r)&&(this.match(80)||tokenIsIdentifier(this.state.type)))return this.tsParseAbstractDeclaration(e,n);break;case 127:if(this.tsCheckLineTerminator(r)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);if(tokenIsIdentifier(this.state.type))return e.kind="module",this.tsParseModuleOrNamespaceDeclaration(e)}break;case 128:if(this.tsCheckLineTerminator(r)&&tokenIsIdentifier(this.state.type))return e.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(e);break;case 130:if(this.tsCheckLineTerminator(r)&&tokenIsIdentifier(this.state.type))return this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;const t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const r=this.tsTryParseAndCatch(()=>{const t=this.startNodeAt(e);return t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(t),t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),t});return this.state.maybeInArrowParameters=t,r?super.parseArrowExpression(r,null,!0):void 0}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){const e=this.startNode();return e.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),0===e.params.length?this.raise(Z.EmptyTypeArguments,e):this.state.inType||this.curContext()!==d.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return(e=this.state.type)>=124&&e<=130;var e}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseBindingElement(e,t){const r=t.length?t[0].loc.start:this.state.startLoc,n={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},n);const s=n.accessibility,i=n.override,o=n.readonly;4&e||!(s||o||i)||this.raise(Z.UnexpectedParameterModifier,r);const a=this.parseMaybeDefault();2&e&&this.parseFunctionParamType(a);const l=this.parseMaybeDefault(a.loc.start,a);if(s||o||i){const e=this.startNodeAt(r);return t.length&&(e.decorators=t),s&&(e.accessibility=s),o&&(e.readonly=o),i&&(e.override=i),"Identifier"!==l.type&&"AssignmentPattern"!==l.type&&this.raise(Z.UnsupportedParameterPropertyKind,e),e.parameter=l,this.finishNode(e,"TSParameterProperty")}return t.length&&(a.decorators=t),l}isSimpleParameter(e){return"TSParameterProperty"===e.type&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(const t of e.params)"Identifier"!==t.type&&t.optional&&!this.state.isAmbientContext&&this.raise(Z.PatternIsOptional,t)}setArrowFunctionParameters(e,t,r){super.setArrowFunctionParameters(e,t,r),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t,r=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const n="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t||"ClassPrivateMethod"===t?"TSDeclareMethod":void 0;return n&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,n):"TSDeclareFunction"===n&&this.state.isAmbientContext&&(this.raise(Z.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,n,r):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,r))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(e=>{"TSTypeCastExpression"===(null==e?void 0:e.type)&&this.raise(Z.UnexpectedTypeAnnotation,e.typeAnnotation)})}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t,r){const n=super.parseArrayLike(e,t,r);return"ArrayExpression"===n.type&&this.tsCheckForInvalidTypeCasts(n.elements),n}parseSubscript(e,t,r,n){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const r=this.startNodeAt(t);return r.expression=e,this.finishNode(r,"TSNonNullExpression")}let s=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(r)return n.stop=!0,e;n.optionalChainMember=s=!0,this.next()}if(this.match(47)||this.match(51)){let i;const o=this.tsTryParseAndCatch(()=>{if(!r&&this.atPossibleAsyncArrow(e)){const e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return n.stop=!0,e}const o=this.tsParseTypeArgumentsInExpression();if(!o)return;if(s&&!this.match(10))return void(i=this.state.curPosition());if(tokenIsTemplate(this.state.type)){const r=super.parseTaggedTemplateExpression(e,t,n);return r.typeParameters=o,r}if(!r&&this.eat(10)){const r=this.startNodeAt(t);return r.callee=e,r.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(r.arguments),r.typeParameters=o,n.optionalChainMember&&(r.optional=s),this.finishCallExpression(r,n.optionalChainMember)}const a=this.state.type;if(48===a||52===a||10!==a&&93!==a&&120!==a&&tokenCanStartExpression(a)&&!this.hasPrecedingLineBreak())return;const l=this.startNodeAt(t);return l.expression=e,l.typeParameters=o,this.finishNode(l,"TSInstantiationExpression")});if(i&&this.unexpected(i,10),o)return"TSInstantiationExpression"===o.type&&((this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(Z.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),this.match(16)||this.match(18)||(o.expression=super.stopParseSubscript(e,n))),o}return super.parseSubscript(e,t,r,n)}parseNewCallee(e){var t;super.parseNewCallee(e);const{callee:r}=e;"TSInstantiationExpression"!==r.type||null!=(t=r.extra)&&t.parenthesized||(e.typeParameters=r.typeParameters,e.callee=r.expression)}parseExprOp(e,t,r){let n;if(tokenOperatorPrecedence(58)>r&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(n=this.isContextual(120)))){const s=this.startNodeAt(t);return s.expression=e,s.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(n&&this.raise(c.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(s,n?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(s,t,r)}return super.parseExprOp(e,t,r)}checkReservedWord(e,t,r,n){this.state.isAmbientContext||super.checkReservedWord(e,t,r,n)}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(Z.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){const t=this.lookaheadCharCode();return e?123===t||42===t:61!==t}return!e&&this.isContextual(87)}applyImportPhase(e,t,r,n){super.applyImportPhase(e,t,r,n),t?e.exportKind="type"===r?"type":"value":e.importKind="type"===r||"typeof"===r?r:"value"}parseImport(e){if(this.match(134))return e.importKind="value",super.parseImport(e);let t;if(tokenIsIdentifier(this.state.type)&&61===this.lookaheadCharCode())return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){const r=this.parseMaybeImportPhase(e,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(e,r);t=super.parseImportSpecifiersAndAfter(e,r)}else t=super.parseImport(e);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type&&this.raise(Z.TypeImportCannotSpecifyDefaultAndNamed,t),t}parseExport(e,t){if(this.match(83)){const t=e;this.next();let r=null;this.isContextual(130)&&this.isPotentialImportPhase(!1)?r=this.parseMaybeImportPhase(t,!1):t.importKind="value";return this.tsParseImportEqualsDeclaration(t,r,!0)}if(this.eat(29)){const t=e;return t.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExportAssignment")}if(this.eatContextual(93)){const t=e;return this.expectContextual(128),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,"TSNamespaceExportDeclaration")}return super.parseExport(e,t)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t,r=!1){const{isAmbientContext:n}=this.state,s=super.parseVarStatement(e,t,r||n);if(!n)return s;if(!e.declare&&("using"===t||"await using"===t))return this.raiseOverwrite(Z.UsingDeclarationInAmbientContext,e,t),s;for(const{id:e,init:r}of s.declarations)r&&("var"===t||"let"===t||e.typeAnnotation?this.raise(Z.InitializerNotAllowedInAmbientContext,r):isValidAmbientConstInitializer(r,this.hasPlugin("estree"))||this.raise(Z.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,r));return s}parseStatementContent(e,t){if(!this.state.containsEsc)switch(this.state.type){case 75:if(this.isLookaheadContextual("enum")){const e=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0})}break;case 124:case 125:if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){const e=this.state.type,r=this.startNode();this.next();const n=125===e?this.tsTryParseDeclare(r):this.tsParseAbstractDeclaration(r,t);return n?(125===e&&(n.declare=!0),n):(r.expression=this.createIdentifier(this.startNodeAt(r.loc.start),125===e?"declare":"abstract"),this.semicolon(!1),this.finishNode(r,"ExpressionStatement"))}break;case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:if(123===this.lookaheadCharCode()){const e=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(e)}break;case 129:{const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e;break}case 127:if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){const e=this.startNode();return this.next(),this.tsParseDeclaration(e,127,!1,t)}break;case 128:if(this.nextTokenIsIdentifierOnSameLine()){const e=this.startNode();return this.next(),this.tsParseDeclaration(e,128,!1,t)}break;case 130:if(this.nextTokenIsIdentifierOnSameLine()){const e=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(e)}}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,t){return t.some(t=>tsIsAccessModifier(t)?e.accessibility===t:!!e[t])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&123===this.lookaheadCharCode()}parseClassMember(e,t,r){const n=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:n,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:Z.InvalidModifierOnTypeParameterPositions},t);const callParseClassMemberWithIsStatic=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,n)&&this.raise(Z.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,r,!!t.static)};t.declare?this.tsInAmbientContext(callParseClassMemberWithIsStatic):callParseClassMemberWithIsStatic()}parseClassMemberWithIsStatic(e,t,r,n){const s=this.tsTryParseIndexSignature(t);if(s)return e.body.push(s),t.abstract&&this.raise(Z.IndexSignatureHasAbstract,t),t.accessibility&&this.raise(Z.IndexSignatureHasAccessibility,t,{modifier:t.accessibility}),t.declare&&this.raise(Z.IndexSignatureHasDeclare,t),void(t.override&&this.raise(Z.IndexSignatureHasOverride,t));!this.state.inAbstractClass&&t.abstract&&this.raise(Z.NonAbstractClassHasAbstractMethod,t),t.override&&(r.hadSuperClass||this.raise(Z.OverrideNotInSubClass,t)),super.parseClassMemberWithIsStatic(e,t,r,n)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(Z.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(Z.ClassMethodHasDeclare,e)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,r){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(r),e}return super.parseConditional(e,t,r)}parseParenItem(e,t){const r=super.parseParenItem(e,t);if(this.eat(17)&&(r.optional=!0,this.resetEndLocation(e)),this.match(14)){const r=this.startNodeAt(t);return r.expression=e,r.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(r,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));const t=this.state.startLoc,r=this.eatContextual(125);if(r&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(Z.ExpectedAmbientAfterExportDeclare,this.state.startLoc);const n=tokenIsIdentifier(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return n?(("TSInterfaceDeclaration"===n.type||"TSTypeAliasDeclaration"===n.type||r)&&(e.exportKind="type"),r&&"TSImportEqualsDeclaration"!==n.type&&(this.resetStartLocation(n,t),n.declare=!0),n):null}parseClassId(e,t,r,n){if((!t||r)&&this.isContextual(113))return;super.parseClassId(e,t,r,e.declare?1024:8331);const s=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);s&&(e.typeParameters=s)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));const t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&(!e.readonly||e.typeAnnotation)&&this.match(29)&&this.raise(Z.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){const{key:t}=e;this.raise(Z.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:"Identifier"!==t.type||e.computed?`[${this.input.slice(this.offsetToSourcePos(t.start),this.offsetToSourcePos(t.end))}]`:t.name})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(Z.PrivateElementHasAbstract,e),e.accessibility&&this.raise(Z.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(Z.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,r,n,s,i){const o=this.tsTryParseTypeParameters(this.tsParseConstModifier);o&&s&&this.raise(Z.ConstructorHasTypeParameters,o);const{declare:a=!1,kind:l}=t;!a||"get"!==l&&"set"!==l||this.raise(Z.DeclareAccessor,t,{kind:l}),o&&(t.typeParameters=o),super.pushClassMethod(e,t,r,n,s,i)}pushClassPrivateMethod(e,t,r,n){const s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&(t.typeParameters=s),super.pushClassPrivateMethod(e,t,r,n)}declareClassPrivateMethodInScope(e,t){"TSDeclareMethod"!==e.type&&("MethodDefinition"===e.type&&null==e.value.body||super.declareClassPrivateMethodInScope(e,t))}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass)if("TSInstantiationExpression"===e.superClass.type){const t=e.superClass,r=t.expression;this.takeSurroundingComments(r,r.start,r.end);const n=t.typeParameters;this.takeSurroundingComments(n,n.start,n.end),e.superClass=r,e.superTypeParameters=n}else(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression());this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,t,r,n,s,i,o){const a=this.tsTryParseTypeParameters(this.tsParseConstModifier);return a&&(e.typeParameters=a),super.parseObjPropValue(e,t,r,n,s,i,o)}parseFunctionParams(e,t){const r=this.tsTryParseTypeParameters(this.tsParseConstModifier);r&&(e.typeParameters=r),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);const r=this.tsTryParseTypeAnnotation();r&&(e.id.typeAnnotation=r,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var r,n,s,i,o;let a,l,p,c;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(a=this.state.clone(),l=this.tryParse(()=>super.parseMaybeAssign(e,t),a),!l.error)return l.node;const{context:r}=this.state,n=r[r.length-1];n!==d.j_oTag&&n!==d.j_expr||r.pop()}if(!(null!=(r=l)&&r.error||this.match(47)))return super.parseMaybeAssign(e,t);a&&a!==this.state||(a=this.state.clone());const u=this.tryParse(r=>{var n,s;c=this.tsParseTypeParameters(this.tsParseConstModifier);const i=super.parseMaybeAssign(e,t);return("ArrowFunctionExpression"!==i.type||null!=(n=i.extra)&&n.parenthesized)&&r(),0!==(null==(s=c)?void 0:s.params.length)&&this.resetStartLocationFromNode(i,c),i.typeParameters=c,i},a);if(!u.error&&!u.aborted)return c&&this.reportReservedArrowTypeParam(c),u.node;if(!l&&(assert(!this.hasPlugin("jsx")),p=this.tryParse(()=>super.parseMaybeAssign(e,t),a),!p.error))return p.node;if(null!=(n=l)&&n.node)return this.state=l.failState,l.node;if(u.node)return this.state=u.failState,c&&this.reportReservedArrowTypeParam(c),u.node;if(null!=(s=p)&&s.node)return this.state=p.failState,p.node;throw(null==(i=l)?void 0:i.error)||u.error||(null==(o=p)?void 0:o.error)}reportReservedArrowTypeParam(e){var t;1!==e.params.length||e.params[0].constraint||null!=(t=e.extra)&&t.trailingComma||!this.getPluginOption("typescript","disallowAmbiguousJSXLike")||this.raise(Z.ReservedArrowTypeParam,e)}parseMaybeUnary(e,t){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse(e=>{const t=this.tsParseTypeOrTypePredicateAnnotation(14);return!this.canInsertSemicolon()&&this.match(19)||e(),t});if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseFunctionParamType(e){this.eat(17)&&(e.optional=!0);const t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":return!0;default:return super.isAssignable(e,t)}}toAssignable(e,t=!1){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,t);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":t?this.expressionScope.recordArrowParameterBindingError(Z.UnexpectedTypeCastInParameter,e):this.raise(Z.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,t);break;case"AssignmentExpression":t||"TSTypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,r,n){switch(e){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(64!==n||!r)&&["expression",!0];default:return super.isValidLVal(e,t,r,n)}}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e,t){if(this.match(47)||this.match(51)){const r=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const n=super.parseMaybeDecoratorArguments(e,t);return n.typeParameters=r,n}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e,t)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){const r=super.parseMaybeDefault(e,t);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(Z.TypeAnnotationAfterAssign,r.typeAnnotation),r}getTokenFromCode(e){if(this.state.inType){if(62===e)return void this.finishOp(48,1);if(60===e)return void this.finishOp(47,1)}super.getTokenFromCode(e)}reScan_lt_gt(){const{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableListItem(e,t,r){const n=e[t];"TSTypeCastExpression"===n.type&&(e[t]=this.typeCastToParameter(n)),super.toAssignableListItem(e,t,r)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every(e=>this.isAssignable(e,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){const t=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){const t=super.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e)[0];return r&&this.isThisParam(r)?t+1:t}parseCatchClauseParam(){const e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){const{isAmbientContext:t,strict:r}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=t,this.state.strict=r}}parseClass(e,t,r){const n=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,r)}finally{this.state.inAbstractClass=n}}tsParseAbstractDeclaration(e,t){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(e.abstract=!0,this.raise(Z.NonClassMethodPropertyHasAbstractModifier,e),this.tsParseInterfaceDeclaration(e));throw this.unexpected(null,80)}parseMethod(e,t,r,n,s,i,o){const a=super.parseMethod(e,t,r,n,s,i,o);if(a.abstract||"TSAbstractMethodDefinition"===a.type){if((this.hasPlugin("estree")?a.value:a).body){const{key:e}=a;this.raise(Z.AbstractMethodHasImplementation,a,{methodName:"Identifier"!==e.type||a.computed?`[${this.input.slice(this.offsetToSourcePos(e.start),this.offsetToSourcePos(e.end))}]`:e.name})}}return a}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,t,r,n){return!t&&n?(this.parseTypeOnlyImportExportSpecifier(e,!1,r),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,t,r,n))}parseImportSpecifier(e,t,r,n,s){return!t&&n?(this.parseTypeOnlyImportExportSpecifier(e,!0,r),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,t,r,n,r?4098:4096))}parseTypeOnlyImportExportSpecifier(e,t,r){const n=t?"imported":"local",s=t?"local":"exported";let i,o=e[n],a=!1,l=!0;const p=o.loc.start;if(this.isContextual(93)){const e=this.parseIdentifier();if(this.isContextual(93)){const r=this.parseIdentifier();tokenIsKeywordOrIdentifier(this.state.type)?(a=!0,o=e,i=t?this.parseIdentifier():this.parseModuleExportName(),l=!1):(i=r,l=!1)}else tokenIsKeywordOrIdentifier(this.state.type)?(l=!1,i=t?this.parseIdentifier():this.parseModuleExportName()):(a=!0,o=e)}else tokenIsKeywordOrIdentifier(this.state.type)&&(a=!0,t?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());a&&r&&this.raise(t?Z.TypeModifierIsUsedInTypeImports:Z.TypeModifierIsUsedInTypeExports,p),e[n]=o,e[s]=i;e[t?"importKind":"exportKind"]=a?"type":"value",l&&this.eatContextual(93)&&(e[s]=t?this.parseIdentifier():this.parseModuleExportName()),e[s]||(e[s]=this.cloneIdentifier(e[n])),t&&this.checkIdentifier(e[s],a?4098:4096)}fillOptionalPropertiesForTSESLint(e){switch(e.type){case"ExpressionStatement":return void(null!=e.directive||(e.directive=void 0));case"RestElement":e.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":return null!=e.decorators||(e.decorators=[]),null!=e.optional||(e.optional=!1),void(null!=e.typeAnnotation||(e.typeAnnotation=void 0));case"TSParameterProperty":return null!=e.accessibility||(e.accessibility=void 0),null!=e.decorators||(e.decorators=[]),null!=e.override||(e.override=!1),null!=e.readonly||(e.readonly=!1),void(null!=e.static||(e.static=!1));case"TSEmptyBodyFunctionExpression":e.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":return null!=e.declare||(e.declare=!1),null!=e.returnType||(e.returnType=void 0),void(null!=e.typeParameters||(e.typeParameters=void 0));case"Property":return void(null!=e.optional||(e.optional=!1));case"TSMethodSignature":case"TSPropertySignature":null!=e.optional||(e.optional=!1);case"TSIndexSignature":return null!=e.accessibility||(e.accessibility=void 0),null!=e.readonly||(e.readonly=!1),void(null!=e.static||(e.static=!1));case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":null!=e.declare||(e.declare=!1),null!=e.definite||(e.definite=!1),null!=e.readonly||(e.readonly=!1),null!=e.typeAnnotation||(e.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":return null!=e.accessibility||(e.accessibility=void 0),null!=e.decorators||(e.decorators=[]),null!=e.override||(e.override=!1),void(null!=e.optional||(e.optional=!1));case"ClassExpression":null!=e.id||(e.id=null);case"ClassDeclaration":return null!=e.abstract||(e.abstract=!1),null!=e.declare||(e.declare=!1),null!=e.decorators||(e.decorators=[]),null!=e.implements||(e.implements=[]),null!=e.superTypeArguments||(e.superTypeArguments=void 0),void(null!=e.typeParameters||(e.typeParameters=void 0));case"TSTypeAliasDeclaration":case"VariableDeclaration":return void(null!=e.declare||(e.declare=!1));case"VariableDeclarator":return void(null!=e.definite||(e.definite=!1));case"TSEnumDeclaration":return null!=e.const||(e.const=!1),void(null!=e.declare||(e.declare=!1));case"TSEnumMember":return void(null!=e.computed||(e.computed=!1));case"TSImportType":return null!=e.qualifier||(e.qualifier=null),void(null!=e.options||(e.options=null));case"TSInterfaceDeclaration":return null!=e.declare||(e.declare=!1),void(null!=e.extends||(e.extends=[]));case"TSMappedType":return null!=e.optional||(e.optional=!1),void(null!=e.readonly||(e.readonly=void 0));case"TSModuleDeclaration":return null!=e.declare||(e.declare=!1),void(null!=e.global||(e.global="global"===e.kind));case"TSTypeParameter":return null!=e.const||(e.const=!1),null!=e.in||(e.in=!1),void(null!=e.out||(e.out=!1))}}chStartsBindingIdentifierAndNotRelationalOperator(e,t){if(isIdentifierStart(e)){if(Q.lastIndex=t,Q.test(this.input)){const e=this.codePointAtPos(Q.lastIndex);if(!isIdentifierChar(e)&&92!==e)return!1}return!0}return 92===e}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifierAndNotRelationalOperator(t,e)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)||34===t||39===t}},v8intrinsic:e=>class extends e{parseV8Intrinsic(){if(this.match(54)){const e=this.state.startLoc,t=this.startNode();if(this.next(),tokenIsIdentifier(this.state.type)){const e=this.parseIdentifierName(),r=this.createIdentifier(t,e);if(this.castNodeTo(r,"V8IntrinsicIdentifier"),this.match(10))return r}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},placeholders:e=>class extends e{parsePlaceholder(e){if(this.match(133)){const t=this.startNode();return this.next(),this.assertNoSpace(),t.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){let r=e;return r.expectedNode&&r.type||(r=this.finishNode(r,"Placeholder")),r.expectedNode=t,r}getTokenFromCode(e){37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(133,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,t,r,n){void 0!==e&&super.checkReservedWord(e,t,r,n)}cloneIdentifier(e){const t=super.cloneIdentifier(e);return"Placeholder"===t.type&&(t.expectedNode=e.expectedNode),t}cloneStringLiteral(e){return"Placeholder"===e.type?this.cloneIdentifier(e):super.cloneStringLiteral(e)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,t,r,n){return"Placeholder"===e||super.isValidLVal(e,t,r,n)}toAssignable(e,t){e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?e.expectedNode="Pattern":super.toAssignable(e,t)}chStartsBindingIdentifier(e,t){if(super.chStartsBindingIdentifier(e,t))return!0;const r=this.nextTokenStart();return 37===this.input.charCodeAt(r)&&37===this.input.charCodeAt(r+1)}verifyBreakContinue(e,t){var r;"Placeholder"!==(null==(r=e.label)?void 0:r.type)&&super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){var r;if("Placeholder"!==t.type||null!=(r=t.extra)&&r.parenthesized)return super.parseExpressionStatement(e,t);if(this.match(14)){const r=e;return r.label=this.finishPlaceholder(t,"Identifier"),this.next(),r.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(r,"LabeledStatement")}this.semicolon();const n=e;return n.name=t.name,this.finishPlaceholder(n,"Statement")}parseBlock(e,t,r){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,r)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,r){const n=t?"ClassDeclaration":"ClassExpression";this.next();const s=this.state.strict,i=this.parsePlaceholder("Identifier");if(i){if(!(this.match(81)||this.match(133)||this.match(5))){if(r||!t)return e.id=null,e.body=this.finishPlaceholder(i,"ClassBody"),this.finishNode(e,n);throw this.raise(ee.ClassNameIsRequired,this.state.startLoc)}e.id=i}else this.parseClassId(e,t,r);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,s),this.finishNode(e,n)}parseExport(e,t){const r=this.parsePlaceholder("Identifier");if(!r)return super.parseExport(e,t);const n=e;if(!this.isContextual(98)&&!this.match(12))return n.specifiers=[],n.source=null,n.declaration=this.finishPlaceholder(r,"Declaration"),this.finishNode(n,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const s=this.startNode();return s.exported=r,n.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],super.parseExport(n,t)}isExportDefaultSpecifier(){if(this.match(65)){const e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(tokenLabelName(133),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){var r;return!(null==(r=e.specifiers)||!r.length)||super.maybeParseExportDefaultSpecifier(e,t)}checkExport(e){const{specifiers:t}=e;null!=t&&t.length&&(e.specifiers=t.filter(e=>"Placeholder"===e.exported.type)),super.checkExport(e),e.specifiers=t}parseImport(e){const t=this.parsePlaceholder("Identifier");if(!t)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");const r=this.startNodeAtNode(t);if(r.local=t,e.specifiers.push(this.finishNode(r,"ImportDefaultSpecifier")),this.eat(12)){this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)}return this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(ee.UnexpectedSpace,this.state.lastTokEndLoc)}}},se=Object.keys(ne);class ExpressionParser extends LValParser{checkProto(e,t,r,n){if("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)return r;const s=e.key;return"__proto__"===("Identifier"===s.type?s.name:s.value)?t?(this.raise(c.RecordNoProto,s),!0):(r&&(n?null===n.doubleProtoLoc&&(n.doubleProtoLoc=s.loc.start):this.raise(c.DuplicateProto,s)),!0):r}shouldExitDescending(e,t){return"ArrowFunctionExpression"===e.type&&this.offsetToSourcePos(e.start)===t}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(c.ParseExpressionEmptyInput,this.state.startLoc);const e=this.parseExpression();if(!this.match(140))throw this.raise(c.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,256&this.optionFlags&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd(()=>this.parseExpressionBase(t)):this.allowInAnd(()=>this.parseExpressionBase(t))}parseExpressionBase(e){const t=this.state.startLoc,r=this.parseMaybeAssign(e);if(this.match(12)){const n=this.startNodeAt(t);for(n.expressions=[r];this.eat(12);)n.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(n.expressions),this.finishNode(n,"SequenceExpression")}return r}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd(()=>this.parseMaybeAssign(e,t))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd(()=>this.parseMaybeAssign(e,t))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,t){const r=this.state.startLoc,n=this.isContextual(108);if(n&&this.prodParam.hasYield){this.next();let e=this.parseYield(r);return t&&(e=t.call(this,e,r)),e}let s;e?s=!1:(e=new ExpressionErrors,s=!0);const{type:i}=this.state;(10===i||tokenIsIdentifier(i))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(e);if(t&&(o=t.call(this,o,r)),(a=this.state.type)>=29&&a<=33){const t=this.startNodeAt(r),n=this.state.value;if(t.operator=n,this.match(29)){this.toAssignable(o,!0),t.left=o;const n=r.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=n&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=n&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=n&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),null!=e.voidPatternLoc&&e.voidPatternLoc.index>=n&&(e.voidPatternLoc=null)}else t.left=o;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(o,this.finishNode(t,"AssignmentExpression"),void 0,void 0,void 0,void 0,"||="===n||"&&="===n||"??="===n),t}var a;if(s&&this.checkExpressionErrors(e,!0),n){const{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?tokenCanStartExpression(e):tokenCanStartExpression(e)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(c.YieldNotInGeneratorFunction,r),this.parseYield(r)}return o}parseMaybeConditional(e){const t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseExprOps(e);return this.shouldExitDescending(n,r)?n:this.parseConditional(n,t,e)}parseConditional(e,t,r){if(this.eat(17)){const r=this.startNodeAt(t);return r.test=e,r.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),r.alternate=this.parseMaybeAssign(),this.finishNode(r,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){const t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(n,r)?n:this.parseExprOp(n,t,-1)}parseExprOp(e,t,r){if(this.isPrivateName(e)){const t=this.getPrivateNameSV(e);(r>=tokenOperatorPrecedence(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(c.PrivateInExpectedIn,e,{identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}const n=this.state.type;if((s=n)>=39&&s<=59&&(this.prodParam.hasIn||!this.match(58))){let s=tokenOperatorPrecedence(n);if(s>r){if(39===n){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}const i=this.startNodeAt(t);i.left=e,i.operator=this.state.value;const o=41===n||42===n,a=40===n;if(a&&(s=tokenOperatorPrecedence(42)),this.next(),39===n&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(c.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);i.right=this.parseExprOpRightExpr(n,s);const l=this.finishNode(i,o||a?"LogicalExpression":"BinaryExpression"),p=this.state.type;if(a&&(41===p||42===p)||o&&40===p)throw this.raise(c.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,t,r)}}var s;return e}parseExprOpRightExpr(e,t){const r=this.state.startLoc;if(39===e){switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(t))}if("smart"===this.getPluginOption("pipelineOperator","proposal"))return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(c.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),r)})}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){const r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,57===e?t-1:t)}parseHackPipeBody(){var e;const{startLoc:t}=this.state,r=this.parseMaybeAssign();return!a.has(r.type)||null!=(e=r.extra)&&e.parenthesized||this.raise(c.PipeUnparenthesizedBody,t,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(c.PipeTopicUnused,t),r}checkExponentialAfterUnary(e){this.match(57)&&this.raise(c.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){const r=this.state.startLoc,n=this.isContextual(96);if(n&&this.recordAwaitIfAllowed()){this.next();const e=this.parseAwait(r);return t||this.checkExponentialAfterUnary(e),e}const s=this.match(34),i=this.startNode();if(o=this.state.type,_[o]){i.operator=this.state.value,i.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const r=this.match(89);if(this.next(),i.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&r){const e=i.argument;"Identifier"===e.type?this.raise(c.StrictDelete,i):this.hasPropertyAsPrivateName(e)&&this.raise(c.DeletePrivateField,i)}if(!s)return t||this.checkExponentialAfterUnary(i),this.finishNode(i,"UnaryExpression")}var o;const a=this.parseUpdate(i,s,e);if(n){const{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?tokenCanStartExpression(e):tokenCanStartExpression(e)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(c.AwaitNotInAsyncContext,r),this.parseAwait(r)}return a}parseUpdate(e,t,r){if(t){const t=e;return this.checkLVal(t.argument,this.finishNode(t,"UpdateExpression")),e}const n=this.state.startLoc;let s=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return s;for(;tokenIsPostfix(this.state.type)&&!this.canInsertSemicolon();){const e=this.startNodeAt(n);e.operator=this.state.value,e.prefix=!1,e.argument=s,this.next(),this.checkLVal(s,s=this.finishNode(e,"UpdateExpression"))}return s}parseExprSubscripts(e){const t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseExprAtom(e);return this.shouldExitDescending(n,r)?n:this.parseSubscripts(n,t)}parseSubscripts(e,t,r){const n={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,r,n),n.maybeAsyncArrow=!1}while(!n.stop);return e}parseSubscript(e,t,r,n){const{type:s}=this.state;if(!r&&15===s)return this.parseBind(e,t,r,n);if(tokenIsTemplate(s))return this.parseTaggedTemplateExpression(e,t,n);let i=!1;if(18===s){if(r&&(this.raise(c.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return this.stopParseSubscript(e,n);n.optionalChainMember=i=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,n,i);{const r=this.eat(0);return r||i||this.eat(16)?this.parseMember(e,t,n,r,i):this.stopParseSubscript(e,n)}}stopParseSubscript(e,t){return t.stop=!0,e}parseMember(e,t,r,n,s){const i=this.startNodeAt(t);return i.object=e,i.computed=n,n?(i.property=this.parseExpression(),this.expect(3)):this.match(139)?("Super"===e.type&&this.raise(c.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),i.property=this.parsePrivateName()):i.property=this.parseIdentifier(!0),r.optionalChainMember?(i.optional=s,this.finishNode(i,"OptionalMemberExpression")):this.finishNode(i,"MemberExpression")}parseBind(e,t,r,n){const s=this.startNodeAt(t);return s.object=e,this.next(),s.callee=this.parseNoCallExpr(),n.stop=!0,this.parseSubscripts(this.finishNode(s,"BindExpression"),t,r)}parseCoverCallAndAsyncArrowHead(e,t,r,n){const s=this.state.maybeInArrowParameters;let i=null;this.state.maybeInArrowParameters=!0,this.next();const o=this.startNodeAt(t);o.callee=e;const{maybeAsyncArrow:a,optionalChainMember:l}=r;a&&(this.expressionScope.enter(new ArrowHeadParsingScope(2)),i=new ExpressionErrors),l&&(o.optional=n),o.arguments=n?this.parseCallExpressionArguments():this.parseCallExpressionArguments("Super"!==e.type,o,i);let p=this.finishCallExpression(o,l);return a&&this.shouldParseAsyncArrow()&&!n?(r.stop=!0,this.checkDestructuringPrivate(i),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),p=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),p)):(a&&(this.checkExpressionErrors(i,!0),this.expressionScope.exit()),this.toReferencedArguments(p)),this.state.maybeInArrowParameters=s,p}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,r){const n=this.startNodeAt(t);return n.tag=e,n.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(c.OptionalChainingNoTemplate,t),this.finishNode(n,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,t){if("Import"===e.callee.type)if(0===e.arguments.length||e.arguments.length>2)this.raise(c.ImportCallArity,e);else for(const t of e.arguments)"SpreadElement"===t.type&&this.raise(c.ImportCallSpreadArgument,t);return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,r){const n=[];let s=!0;const i=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(s)s=!1;else if(this.expect(12),this.match(11)){t&&this.addTrailingCommaExtraToNode(t),this.next();break}n.push(this.parseExprListItem(11,!1,r,e))}return this.state.inFSharpPipelineDirectBody=i,n}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var r;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,null==(r=t.extra)?void 0:r.trailingCommaLoc),t.innerComments&&setInnerComments(e,t.innerComments),t.callee.trailingComments&&setInnerComments(e,t.callee.trailingComments),e}parseNoCallExpr(){const e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,r=null;const{type:n}=this.state;switch(n){case 79:return this.parseSuper();case 83:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(t):this.match(10)?512&this.optionFlags?this.parseImportCall(t):this.finishNode(t,"Import"):(this.raise(c.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,"Import"));case 78:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{const e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 0:return this.parseArrayLike(3,!1,e);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:r=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(r,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;const e=t.callee=this.parseNoCallExpr();if("MemberExpression"===e.type)return this.finishNode(t,"BindExpression");throw this.raise(c.UnsupportedBind,e)}case 139:return this.raise(c.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{const e=this.getPluginOption("pipelineOperator","proposal");if(e)return this.parseTopicReference(e);throw this.unexpected()}case 47:{const e=this.input.codePointAt(this.nextTokenStart());if(isIdentifierStart(e)||62===e)throw this.expectOnePlugin(["jsx","flow","typescript"]);throw this.unexpected()}default:if(137===n)return this.parseDecimalLiteral(this.state.value);if(2===n||1===n)return this.parseArrayLike(2===this.state.type?4:3,!0);if(6===n||7===n)return this.parseObjectLike(6===this.state.type?9:8,!1,!0);if(tokenIsIdentifier(n)){if(this.isContextual(127)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();const e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,r=this.parseIdentifier();if(!t&&"async"===r.name&&!this.canInsertSemicolon()){const{type:t}=this.state;if(68===t)return this.resetPreviousNodeTrailingComments(r),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(r));if(tokenIsIdentifier(t))return e&&61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(r)):r;if(90===t)return this.resetPreviousNodeTrailingComments(r),this.parseDo(this.startNodeAtNode(r),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(r),[r],!1)):r}throw this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){const r=this.getPluginOption("pipelineOperator","proposal");if(r)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=createPositionWithColumnOffset(this.state.endLoc,-1),this.parseTopicReference(r);throw this.unexpected()}parseTopicReference(e){const t=this.startNode(),r=this.state.startLoc,n=this.state.type;return this.next(),this.finishTopicReference(t,r,e,n)}finishTopicReference(e,t,r,n){if(this.testTopicReferenceConfiguration(r,t,n))return"hack"===r?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(c.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,"TopicReference")):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(c.PrimaryTopicNotAllowed,t),this.registerTopicReference(),this.finishNode(e,"PipelinePrimaryTopicReference"));throw this.raise(c.PipeTopicUnconfiguredToken,t,{token:tokenLabelName(n)})}testTopicReferenceConfiguration(e,t,r){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:tokenLabelName(r)}]);case"smart":return 27===r;default:throw this.raise(c.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(functionFlags(!0,this.prodParam.hasYield));const t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(c.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,t,!0)}parseDo(e,t){this.expectPlugin("doExpressions"),t&&this.expectPlugin("asyncDoExpressions"),e.async=t,this.next();const r=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=r,this.finishNode(e,"DoExpression")}parseSuper(){const e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?16&this.optionFlags||this.raise(c.SuperNotAllowed,e):this.scope.allowSuper||16&this.optionFlags||this.raise(c.UnexpectedSuper,e),this.match(10)||this.match(0)||this.match(16)||this.raise(c.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){const e=this.startNode(),t=this.startNodeAt(createPositionWithColumnOffset(this.state.startLoc,1)),r=this.state.value;return this.next(),e.id=this.createIdentifier(t,r),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){const e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,r){e.meta=t;const n=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==r||n)&&this.raise(c.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:r}),this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(105)||this.isContextual(97)){const t=this.isContextual(105);return this.expectPlugin(t?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),e.phase=t?"source":"defer",this.parseImportCall(e)}{const t=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(c.ImportMetaOutsideModule,t),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,t,"meta")}}parseLiteralAtNode(e,t,r){return this.addExtra(r,"rawValue",e),this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.value=e,this.next(),this.finishNode(r,t)}parseLiteral(e,t){const r=this.startNode();return this.parseLiteralAtNode(e,t,r)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){const t=this.startNode();return this.addExtra(t,"raw",this.input.slice(this.offsetToSourcePos(t.start),this.state.end)),t.pattern=e.pattern,t.flags=e.flags,this.next(),this.finishNode(t,"RegExpLiteral")}parseBooleanLiteral(e){const t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){const e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){const t=this.state.startLoc;let r;this.next(),this.expressionScope.enter(new ArrowHeadParsingScope(1));const n=this.state.maybeInArrowParameters,s=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const i=this.state.startLoc,o=[],a=new ExpressionErrors;let l,p,c=!0;for(;!this.match(11);){if(c)c=!1;else if(this.expect(12,null===a.optionalParametersLoc?null:a.optionalParametersLoc),this.match(11)){p=this.state.startLoc;break}if(this.match(21)){const e=this.state.startLoc;if(l=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowInOrVoidPattern(11,a,this.parseParenItem))}const u=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=n,this.state.inFSharpPipelineDirectBody=s;let d=this.startNodeAt(t);return e&&this.shouldParseArrow(o)&&(d=this.parseArrow(d))?(this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(d,o,!1),d):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),p&&this.unexpected(p),l&&this.unexpected(l),this.checkExpressionErrors(a,!0),this.toReferencedListDeep(o,!0),o.length>1?(r=this.startNodeAt(i),r.expressions=o,this.finishNode(r,"SequenceExpression"),this.resetEndLocation(r,u)):r=o[0],this.wrapParenthesis(t,r))}wrapParenthesis(e,t){if(!(1024&this.optionFlags))return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;const r=this.startNodeAt(e);return r.expression=t,this.finishNode(r,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){const e=this.startNode();if(this.next(),this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();const r=this.parseMetaProperty(e,t,"target");return this.scope.allowNewTarget||this.raise(c.UnexpectedNewTarget,r),r}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){const t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){const t=this.match(83),r=this.parseNoCallExpr();e.callee=r,!t||"Import"!==r.type&&"ImportExpression"!==r.type||this.raise(c.ImportCallNotNewExpression,r)}parseTemplateElement(e){const{start:t,startLoc:r,end:n,value:s}=this.state,i=t+1,o=this.startNodeAt(createPositionWithColumnOffset(r,1));null===s&&(e||this.raise(c.InvalidEscapeSequenceTemplate,createPositionWithColumnOffset(this.state.firstInvalidTemplateEscapePos,1)));const a=this.match(24),l=a?-1:-2,p=n+l;o.value={raw:this.input.slice(i,p).replace(/\r\n?/g,"\n"),cooked:null===s?null:s.slice(1,l)},o.tail=a,this.next();const u=this.finishNode(o,"TemplateElement");return this.resetEndLocation(u,createPositionWithColumnOffset(this.state.lastTokEndLoc,l)),u}parseTemplate(e){const t=this.startNode();let r=this.parseTemplateElement(e);const n=[r],s=[];for(;!r.tail;)s.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),n.push(r=this.parseTemplateElement(e));return t.expressions=s,t.quasis=n,this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,r,n){r&&this.expectPlugin("recordAndTuple");const s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let i=!1,o=!0;const a=this.startNode();for(a.properties=[],this.next();!this.match(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(a);break}let s;t?s=this.parseBindingProperty():(s=this.parsePropertyDefinition(n),i=this.checkProto(s,r,i,n)),r&&!this.isObjectProperty(s)&&"SpreadElement"!==s.type&&this.raise(c.InvalidRecordProperty,s),s.shorthand&&this.addExtra(s,"shorthand",!0),a.properties.push(s)}this.next(),this.state.inFSharpPipelineDirectBody=s;let l="ObjectExpression";return t?l="ObjectPattern":r&&(l="RecordExpression"),this.finishNode(a,l)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(c.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());const r=this.startNode();let n,s=!1,i=!1;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(r.decorators=t,t=[]),r.method=!1,e&&(n=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(r);const a=this.state.containsEsc;if(this.parsePropertyName(r,e),!o&&!a&&this.maybeAsyncOrAccessorProp(r)){const{key:e}=r,t=e.name;"async"!==t||this.hasPrecedingLineBreak()||(s=!0,this.resetPreviousNodeTrailingComments(e),o=this.eat(55),this.parsePropertyName(r)),"get"!==t&&"set"!==t||(i=!0,this.resetPreviousNodeTrailingComments(e),r.kind=t,this.match(55)&&(o=!0,this.raise(c.AccessorIsGenerator,this.state.curPosition(),{kind:t}),this.next()),this.parsePropertyName(r))}return this.parseObjPropValue(r,n,o,s,!1,i,e)}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;const r=this.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e);n.length!==r&&this.raise("get"===e.kind?c.BadGetterArity:c.BadSetterArity,e),"set"===e.kind&&"RestElement"===(null==(t=n[n.length-1])?void 0:t.type)&&this.raise(c.BadSetterRestParameter,e)}parseObjectMethod(e,t,r,n,s){if(s){const r=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(r),r}if(r||t||this.match(10))return n&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")}parseObjectProperty(e,t,r,n){if(e.shorthand=!1,this.eat(14))return e.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,n),this.finishObjectProperty(e);if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),r)e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key));else if(this.match(29)){const r=this.state.startLoc;null!=n?null===n.shorthandAssignLoc&&(n.shorthandAssignLoc=r):this.raise(c.InvalidCoverInitializedName,r),e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key))}else e.value=this.cloneIdentifier(e.key);return e.shorthand=!0,this.finishObjectProperty(e)}}finishObjectProperty(e){return this.finishNode(e,"ObjectProperty")}parseObjPropValue(e,t,r,n,s,i,o){const a=this.parseObjectMethod(e,r,n,s,i)||this.parseObjectProperty(e,t,s,o);return a||this.unexpected(),a}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:r,value:n}=this.state;let s;if(tokenIsKeywordOrIdentifier(r))s=this.parseIdentifier(!0);else switch(r){case 135:s=this.parseNumericLiteral(n);break;case 134:s=this.parseStringLiteral(n);break;case 136:s=this.parseBigIntLiteral(n);break;case 139:{const e=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=e):this.raise(c.UnexpectedPrivateField,e),s=this.parsePrivateName();break}default:if(137===r){s=this.parseDecimalLiteral(n);break}this.unexpected()}e.key=s,139!==r&&(e.computed=!1)}}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,r,n,s,i,o=!1){this.initFunction(e,r),e.generator=t,this.scope.enter(530|(o?576:0)|(s?32:0)),this.prodParam.enter(functionFlags(r,e.generator)),this.parseFunctionParams(e,n);const a=this.parseFunctionBodyAndFinish(e,i,!0);return this.prodParam.exit(),this.scope.exit(),a}parseArrayLike(e,t,r){t&&this.expectPlugin("recordAndTuple");const n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const s=this.startNode();return this.next(),s.elements=this.parseExprList(e,!t,r,s),this.state.inFSharpPipelineDirectBody=n,this.finishNode(s,t?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,r,n){this.scope.enter(518);let s=functionFlags(r,!1);!this.match(5)&&this.prodParam.hasIn&&(s|=8),this.prodParam.enter(s),this.initFunction(e,r);const i=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,n)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=i,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,r){this.toAssignableList(t,r,!1),e.params=t}parseFunctionBodyAndFinish(e,t,r=!1){return this.parseFunctionBody(e,!1,r),this.finishNode(e,t)}parseFunctionBody(e,t,r=!1){const n=t&&!this.match(5);if(this.expressionScope.enter(newExpressionScope()),n)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{const n=this.state.strict,s=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,s=>{const i=!this.isSimpleParamList(e.params);s&&i&&this.raise(c.IllegalLanguageModeDirective,"method"!==e.kind&&"constructor"!==e.kind||!e.key?e:e.key.loc.end);const o=!n&&this.state.strict;this.checkParams(e,!(this.state.strict||t||r||i),t,o),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,o)}),this.prodParam.exit(),this.state.labels=s}this.expressionScope.exit()}isSimpleParameter(e){return"Identifier"===e.type}isSimpleParamList(e){for(let t=0,r=e.length;t<r;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,r,n=!0){const s=!t&&new Set,i={type:"FormalParameters"};for(const t of e.params)this.checkLVal(t,i,5,s,n)}parseExprList(e,t,r,n){const s=[];let i=!0;for(;!this.eat(e);){if(i)i=!1;else if(this.expect(12),this.match(e)){n&&this.addTrailingCommaExtraToNode(n),this.next();break}s.push(this.parseExprListItem(e,t,r))}return s}parseExprListItem(e,t,r,n){let s;if(this.match(12))t||this.raise(c.UnexpectedToken,this.state.curPosition(),{unexpected:","}),s=null;else if(this.match(21)){const e=this.state.startLoc;s=this.parseParenItem(this.parseSpread(r),e)}else if(this.match(17)){this.expectPlugin("partialApplication"),n||this.raise(c.UnexpectedArgumentPlaceholder,this.state.startLoc);const e=this.startNode();this.next(),s=this.finishNode(e,"ArgumentPlaceholder")}else s=this.parseMaybeAssignAllowInOrVoidPattern(e,r,this.parseParenItem);return s}parseIdentifier(e){const t=this.startNode(),r=this.parseIdentifierName(e);return this.createIdentifier(t,r)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}createIdentifierAt(e,t,r){return e.name=t,e.loc.identifierName=t,this.finishNodeAt(e,"Identifier",r)}parseIdentifierName(e){let t;const{startLoc:r,type:n}=this.state;tokenIsKeywordOrIdentifier(n)?t=this.state.value:this.unexpected();const s=n<=92;return e?s&&this.replaceToken(132):this.checkReservedWord(t,r,s,!1),this.next(),t}checkReservedWord(e,t,r,n){if(e.length>10)return;if(!function(e){return B.has(e)}(e))return;if(r&&function(e){return F.has(e)}(e))return void this.raise(c.UnexpectedKeyword,t,{keyword:e});if((this.state.strict?n?isStrictBindReservedWord:isStrictReservedWord:isReservedWord)(e,this.inModule))this.raise(c.UnexpectedReservedWord,t,{reservedWord:e});else if("yield"===e){if(this.prodParam.hasYield)return void this.raise(c.YieldBindingIdentifier,t)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(c.AwaitBindingIdentifier,t);if(this.scope.inStaticBlock)return void this.raise(c.AwaitBindingIdentifierInStaticBlock,t);this.expressionScope.recordAsyncArrowParametersError(t)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(c.ArgumentsInClass,t)}recordAwaitIfAllowed(){const e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){const t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(c.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(c.ObsoleteAwaitStar,t),this.scope.inFunction||1&this.optionFlags||(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;const{type:e}=this.state;return 53===e||10===e||0===e||tokenIsTemplate(e)||102===e&&!this.state.containsEsc||138===e||56===e||this.hasPlugin("v8intrinsic")&&54===e}parseYield(e){const t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(c.YieldInParameter,t);let r=!1,n=null;if(!this.hasPrecedingLineBreak())switch(r=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!r)break;default:n=this.parseMaybeAssign()}return t.delegate=r,t.argument=n,this.finishNode(t,"YieldExpression")}parseImportCall(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12))if(this.match(11))this.addTrailingCommaExtraToNode(e.source);else if(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(e.options),!this.match(11))){do{this.parseMaybeAssignAllowIn()}while(this.eat(12)&&!this.match(11));this.raise(c.ImportCallArity,e)}return this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(c.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){const r=this.startNodeAt(t);return r.callee=e,this.finishNode(r,"PipelineBareFunction")}{const r=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),r.expression=e,this.finishNode(r,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(c.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(c.PipelineTopicUnused,e)}withTopicBindingContext(e){const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return e();{const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}}withSoloAwaitPermittingContext(e){const t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){const t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(8|t);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){const t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(-9&t);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){const t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const n=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=r,n}parseModuleExpression(){this.expectPlugin("moduleBlocks");const e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);const t=this.startNodeAt(this.state.endLoc);this.next();const r=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{r()}return this.finishNode(e,"ModuleExpression")}parseVoidPattern(e){this.expectPlugin("discardBinding");const t=this.startNode();return null!=e&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(t,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(e,t,r){if(null!=t&&this.match(88)){const r=this.lookaheadCharCode();if(44===r||r===(3===e?93:8===e?125:41)||61===r)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(t))}return this.parseMaybeAssignAllowIn(t,r)}parsePropertyNamePrefixOperator(e){}}const ie={kind:1},oe={kind:2},ae=/[\uD800-\uDFFF]/u,le=/in(?:stanceof)?/y;class StatementParser extends ExpressionParser{parseTopLevel(e,t){return e.program=this.parseProgram(t,140,"module"===this.options.sourceType?"module":"script"),e.comments=this.comments,256&this.optionFlags&&(e.tokens=function(e,t,r){for(let n=0;n<e.length;n++){const s=e[n],{type:i}=s;if("number"==typeof i){if(139===i){const{loc:t,start:r,value:i,end:o}=s,a=r+1,l=createPositionWithColumnOffset(t.start,1);e.splice(n,1,new Token({type:getExportedToken(27),value:"#",start:r,end:a,startLoc:t.start,endLoc:l}),new Token({type:getExportedToken(132),value:i,start:a,end:o,startLoc:l,endLoc:t.end})),n++;continue}if(tokenIsTemplate(i)){const{loc:o,start:a,value:l,end:p}=s,c=a+1,u=createPositionWithColumnOffset(o.start,1);let d,h,m,f,y;d=96===t.charCodeAt(a-r)?new Token({type:getExportedToken(22),value:"`",start:a,end:c,startLoc:o.start,endLoc:u}):new Token({type:getExportedToken(8),value:"}",start:a,end:c,startLoc:o.start,endLoc:u}),24===i?(m=p-1,f=createPositionWithColumnOffset(o.end,-1),h=null===l?null:l.slice(1,-1),y=new Token({type:getExportedToken(22),value:"`",start:m,end:p,startLoc:f,endLoc:o.end})):(m=p-2,f=createPositionWithColumnOffset(o.end,-2),h=null===l?null:l.slice(1,-2),y=new Token({type:getExportedToken(23),value:"${",start:m,end:p,startLoc:f,endLoc:o.end})),e.splice(n,1,d,new Token({type:getExportedToken(20),value:h,start:c,end:m,startLoc:u,endLoc:f}),y),n+=2;continue}s.type=getExportedToken(i)}}return e}(this.tokens,this.input,this.startIndex)),this.finishNode(e,"File")}parseProgram(e,t,r){if(e.sourceType=r,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule){if(!(64&this.optionFlags)&&this.scope.undefinedExports.size>0)for(const[e,t]of Array.from(this.scope.undefinedExports))this.raise(c.ModuleExportUndefined,t,{localName:e});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}let n;return n=140===t?this.finishNode(e,"Program"):this.finishNodeAt(e,"Program",createPositionWithColumnOffset(this.state.startLoc,-1)),n}stmtToDirective(e){const t=this.castNodeTo(e,"Directive"),r=this.castNodeTo(e.expression,"DirectiveLiteral"),n=r.value,s=this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end)),i=r.value=s.slice(1,-1);return this.addExtra(r,"raw",s),this.addExtra(r,"rawValue",i),this.addExtra(r,"expressionValue",n),t.value=r,delete e.expression,t}parseInterpreterDirective(){if(!this.match(28))return null;const e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return!!this.isContextual(100)&&this.hasFollowingBindingAtom()}isUsing(){return!!this.isContextual(107)&&this.nextTokenIsIdentifierOnSameLine()}isForUsing(){if(!this.isContextual(107))return!1;const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);if(this.isUnparsedContextual(e,"of")){const t=this.lookaheadCharCodeSince(e+2);if(61!==t&&58!==t&&59!==t)return!1}return!(!this.chStartsBindingIdentifier(t,e)&&!this.isUnparsedContextual(e,"void"))}nextTokenIsIdentifierOnSameLine(){const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}isAwaitUsing(){if(!this.isContextual(96))return!1;let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);const t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return!0}return!1}chStartsBindingIdentifier(e,t){if(isIdentifierStart(e)){if(le.lastIndex=t,le.test(this.input)){const e=this.codePointAtPos(le.lastIndex);if(!isIdentifierChar(e)&&92!==e)return!1}return!0}return 92===e}chStartsBindingPattern(e){return 91===e||123===e}hasFollowingBindingAtom(){const e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return 123===t||this.chStartsBindingIdentifier(t,e)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){const r=this.state.type,n=this.startNode(),s=!!(2&e),i=!!(4&e),o=1&e;switch(r){case 60:return this.parseBreakContinueStatement(n,!0);case 63:return this.parseBreakContinueStatement(n,!1);case 64:return this.parseDebuggerStatement(n);case 90:return this.parseDoWhileStatement(n);case 91:return this.parseForStatement(n);case 68:if(46===this.lookaheadCharCode())break;return i||this.raise(this.state.strict?c.StrictFunction:this.options.annexB?c.SloppyFunctionAnnexB:c.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(n,!1,!s&&i);case 80:return s||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,n),!0);case 69:return this.parseIfStatement(n);case 70:return this.parseReturnStatement(n);case 71:return this.parseSwitchStatement(n);case 72:return this.parseThrowStatement(n);case 73:return this.parseTryStatement(n);case 96:if(this.isAwaitUsing())return this.allowsUsing()?s?this.recordAwaitIfAllowed()||this.raise(c.AwaitUsingNotInAsyncContext,n):this.raise(c.UnexpectedLexicalDeclaration,n):this.raise(c.UnexpectedUsingDeclaration,n),this.next(),this.parseVarStatement(n,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?s||this.raise(c.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(c.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(n,"using");case 100:{if(this.state.containsEsc)break;const e=this.nextTokenStart(),t=this.codePointAtPos(e);if(91!==t){if(!s&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(t,e)&&123!==t)break}}case 75:s||this.raise(c.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{const e=this.state.value;return this.parseVarStatement(n,e)}case 92:return this.parseWhileStatement(n);case 76:return this.parseWithStatement(n);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(n);case 83:{const e=this.lookaheadCharCode();if(40===e||46===e)break}case 82:{let e;return 8&this.optionFlags||o||this.raise(c.UnexpectedImportExport,this.state.startLoc),this.next(),e=83===r?this.parseImport(n):this.parseExport(n,t),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return s||this.raise(c.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(n,!0,!s&&i)}const a=this.state.value,l=this.parseExpression();return tokenIsIdentifier(r)&&"Identifier"===l.type&&this.eat(14)?this.parseLabeledStatement(n,a,l,e):this.parseExpressionStatement(n,l,t)}assertModuleNodeAllowed(e){8&this.optionFlags||this.inModule||this.raise(c.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}maybeTakeDecorators(e,t,r){var n;e&&(null!=(n=t.decorators)&&n.length?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(c.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),r&&this.resetStartLocationFromNode(r,t));return t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){const t=[];do{t.push(this.parseDecorator())}while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(c.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(c.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const e=this.startNode();if(this.next(),this.hasPlugin("decorators")){const t=this.state.startLoc;let r;if(this.match(10)){const t=this.state.startLoc;this.next(),r=this.parseExpression(),this.expect(11),r=this.wrapParenthesis(t,r);const n=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(r,t),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==r&&this.raise(c.DecoratorArgumentsOutsideParentheses,n)}else{for(r=this.parseIdentifier(!1);this.eat(16);){const e=this.startNodeAt(t);e.object=r,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,r=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(r,t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,t){if(this.eat(10)){const r=this.startNodeAt(t);return r.callee=e,r.arguments=this.parseCallExpressionArguments(),this.toReferencedList(r.arguments),this.finishNode(r,"CallExpression")}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){let r;for(r=0;r<this.state.labels.length;++r){const n=this.state.labels[r];if(null==e.label||n.name===e.label.name){if(null!=n.kind&&(t||1===n.kind))break;if(e.label&&t)break}}if(r===this.state.labels.length){const r=t?"BreakStatement":"ContinueStatement";this.raise(c.IllegalBreakContinue,e,{type:r})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(ie),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(ie);let t=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(t=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return null!==t&&this.unexpected(t),this.parseFor(e,null);const r=this.isContextual(100);{const n=this.isAwaitUsing(),s=n||this.isForUsing(),i=r&&this.hasFollowingBindingAtom()||s;if(this.match(74)||this.match(75)||i){const r=this.startNode();let i;n?(i="await using",this.recordAwaitIfAllowed()||this.raise(c.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):i=this.state.value,this.next(),this.parseVar(r,!0,i);const o=this.finishNode(r,"VariableDeclaration"),a=this.match(58);return a&&s&&this.raise(c.ForInUsing,o),(a||this.isContextual(102))&&1===o.declarations.length?this.parseForIn(e,o,t):(null!==t&&this.unexpected(t),this.parseFor(e,o))}}const n=this.isContextual(95),s=new ExpressionErrors,i=this.parseExpression(!0,s),o=this.isContextual(102);if(o&&(r&&this.raise(c.ForOfLet,i),null===t&&n&&"Identifier"===i.type&&this.raise(c.ForOfAsync,i)),o||this.match(58)){this.checkDestructuringPrivate(s),this.toAssignable(i,!0);const r=o?"ForOfStatement":"ForInStatement";return this.checkLVal(i,{type:r}),this.parseForIn(e,i,t)}return this.checkExpressionErrors(s,!0),null!==t&&this.unexpected(t),this.parseFor(e,i)}parseFunctionStatement(e,t,r){return this.next(),this.parseFunction(e,1|(r?2:0)|(t?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.raise(c.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();const t=e.cases=[];let r;this.expect(5),this.state.labels.push(oe),this.scope.enter(256);for(let e;!this.match(8);)if(this.match(61)||this.match(65)){const n=this.match(61);r&&this.finishNode(r,"SwitchCase"),t.push(r=this.startNode()),r.consequent=[],this.next(),n?r.test=this.parseExpression():(e&&this.raise(c.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),e=!0,r.test=null),this.expect(14)}else r?r.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),r&&this.finishNode(r,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(c.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){const e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&"Identifier"===e.type?8:0),this.checkLVal(e,{type:"CatchClause"},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){const t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(0)),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,e.handler||e.finalizer||this.raise(c.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,t,r=!1){return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(ie),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(c.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,r,n){for(const e of this.state.labels)e.name===t&&this.raise(c.LabelRedeclaration,r,{labelName:t});const s=(i=this.state.type)>=90&&i<=92?1:this.match(71)?2:null;var i;for(let t=this.state.labels.length-1;t>=0;t--){const r=this.state.labels[t];if(r.statementStart!==e.start)break;r.statementStart=this.sourceToOffsetPos(this.state.start),r.kind=s}return this.state.labels.push({name:t,kind:s,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=8&n?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,r){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,t=!0,r){const n=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(n,e,!1,8,r),t&&this.scope.exit(),this.finishNode(n,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,r,n,s){const i=e.body=[],o=e.directives=[];this.parseBlockOrModuleBlockBody(i,t?o:void 0,r,n,s)}parseBlockOrModuleBlockBody(e,t,r,n,s){const i=this.state.strict;let o=!1,a=!1;for(;!this.match(n);){const n=r?this.parseModuleItem():this.parseStatementListItem();if(t&&!a){if(this.isValidDirective(n)){const e=this.stmtToDirective(n);t.push(e),o||"use strict"!==e.value.value||(o=!0,this.setStrict(!0));continue}a=!0,this.state.strictErrors.clear()}e.push(n)}null==s||s.call(this,o),i||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,r){const n=this.match(58);return this.next(),n?null!==r&&this.unexpected(r):e.await=null!==r,"VariableDeclaration"!==t.type||null==t.declarations[0].init||n&&this.options.annexB&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type||this.raise(c.ForInOfLoopInitializer,t,{type:n?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(c.InvalidLhs,t,{ancestor:{type:"ForStatement"}}),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")}parseVar(e,t,r,n=!1){const s=e.declarations=[];for(e.kind=r;;){const e=this.startNode();if(this.parseVarId(e,r),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==e.init||n||("Identifier"===e.id.type||t&&(this.match(58)||this.isContextual(102))?"const"!==r&&"using"!==r&&"await using"!==r||this.match(58)||this.isContextual(102)||this.raise(c.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:r}):this.raise(c.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),s.push(this.finishNode(e,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){const r=this.parseBindingAtom();"using"===t||"await using"===t?"ArrayPattern"!==r.type&&"ObjectPattern"!==r.type||this.raise(c.UsingDeclarationHasBindingPattern,r.loc.start):"VoidPattern"===r.type&&this.raise(c.UnexpectedVoidPattern,r.loc.start),this.checkLVal(r,{type:"VariableDeclarator"},"var"===t?5:8201),e.id=r}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){const r=2&t,n=!!(1&t),s=n&&!(4&t),i=!!(8&t);this.initFunction(e,i),this.match(55)&&(r&&this.raise(c.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),n&&(e.id=this.parseFunctionId(s));const o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(functionFlags(i,e.generator)),n||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,n?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),n&&!r&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=o,e}parseFunctionId(e){return e||tokenIsIdentifier(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(new ExpressionScope(3)),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,t,r){this.next();const n=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,n),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return"Identifier"===e.type&&"constructor"===e.name||"StringLiteral"===e.type&&"constructor"===e.value}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();const r={hadConstructor:!1,hadSuperClass:e};let n=[];const s=this.startNode();if(s.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(n.length>0)throw this.raise(c.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){n.push(this.parseDecorator());continue}const e=this.startNode();n.length&&(e.decorators=n,this.resetStartLocationFromNode(e,n[0]),n=[]),this.parseClassMember(s,e,r),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(c.DecoratorConstructor,e)}}),this.state.strict=t,this.next(),n.length)throw this.raise(c.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(s,"ClassBody")}parseClassMemberFromModifier(e,t){const r=this.parseIdentifier(!0);if(this.isClassMethod()){const n=t;return n.kind="method",n.computed=!1,n.key=r,n.static=!1,this.pushClassMethod(e,n,!1,!1,!1,!1),!0}if(this.isClassProperty()){const n=t;return n.computed=!1,n.key=r,n.static=!1,e.body.push(this.parseClassProperty(n)),!0}return this.resetPreviousNodeTrailingComments(r),!1}parseClassMember(e,t,r){const n=this.isContextual(106);if(n){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,r,n)}parseClassMemberWithIsStatic(e,t,r,n){const s=t,i=t,o=t,a=t,l=t,p=s,u=s;if(t.static=n,this.parsePropertyNamePrefixOperator(t),this.eat(55)){p.kind="method";const t=this.match(139);return this.parseClassElementName(p),this.parsePostMemberNameModifiers(p),t?void this.pushClassPrivateMethod(e,i,!0,!1):(this.isNonstaticConstructor(s)&&this.raise(c.ConstructorIsGenerator,s.key),void this.pushClassMethod(e,s,!0,!1,!1,!1))}const d=!this.state.containsEsc&&tokenIsIdentifier(this.state.type),h=this.parseClassElementName(t),m=d?h.name:null,f=this.isPrivateName(h),y=this.state.startLoc;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(p.kind="method",f)return void this.pushClassPrivateMethod(e,i,!1,!1);const n=this.isNonstaticConstructor(s);let o=!1;n&&(s.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(c.DuplicateConstructor,h),n&&this.hasPlugin("typescript")&&t.override&&this.raise(c.OverrideOnConstructor,h),r.hadConstructor=!0,o=r.hadSuperClass),this.pushClassMethod(e,s,!1,!1,n,o)}else if(this.isClassProperty())f?this.pushClassPrivateProperty(e,a):this.pushClassProperty(e,o);else if("async"!==m||this.isLineTerminator())if("get"!==m&&"set"!==m||this.match(55)&&this.isLineTerminator())if("accessor"!==m||this.isLineTerminator())this.isLineTerminator()?f?this.pushClassPrivateProperty(e,a):this.pushClassProperty(e,o):this.unexpected();else{this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(h);const t=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(e,l,t)}else{this.resetPreviousNodeTrailingComments(h),p.kind=m;const t=this.match(139);this.parseClassElementName(s),t?this.pushClassPrivateMethod(e,i,!1,!1):(this.isNonstaticConstructor(s)&&this.raise(c.ConstructorIsAccessor,s.key),this.pushClassMethod(e,s,!1,!1,!1,!1)),this.checkGetterSetterParams(s)}else{this.resetPreviousNodeTrailingComments(h);const t=this.eat(55);u.optional&&this.unexpected(y),p.kind="method";const r=this.match(139);this.parseClassElementName(p),this.parsePostMemberNameModifiers(u),r?this.pushClassPrivateMethod(e,i,t,!0):(this.isNonstaticConstructor(s)&&this.raise(c.ConstructorIsAsync,s.key),this.pushClassMethod(e,s,t,!0,!1,!1))}}parseClassElementName(e){const{type:t,value:r}=this.state;if(132!==t&&134!==t||!e.static||"prototype"!==r||this.raise(c.StaticPrototype,this.state.startLoc),139===t){"constructor"===r&&this.raise(c.ConstructorClassPrivateField,this.state.startLoc);const t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,t){var r;this.scope.enter(720);const n=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const s=t.body=[];this.parseBlockOrModuleBlockBody(s,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=n,e.body.push(this.finishNode(t,"StaticBlock")),null!=(r=t.decorators)&&r.length&&this.raise(c.DecoratorStaticBlock,t)}pushClassProperty(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(c.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){const r=this.parseClassPrivateProperty(t);e.body.push(r),this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassAccessorProperty(e,t,r){r||t.computed||!this.nameIsConstructor(t.key)||this.raise(c.ConstructorClassField,t.key);const n=this.parseClassAccessorProperty(t);e.body.push(n),r&&this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassMethod(e,t,r,n,s,i){e.body.push(this.parseMethod(t,r,n,s,i,"ClassMethod",!0))}pushClassPrivateMethod(e,t,r,n){const s=this.parseMethod(t,r,n,!1,!1,"ClassPrivateMethod",!0);e.body.push(s);const i="get"===s.kind?s.static?6:2:"set"===s.kind?s.static?5:1:0;this.declareClassPrivateMethodInScope(s,i)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(592),this.expressionScope.enter(newExpressionScope()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,r,n=8331){if(tokenIsIdentifier(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,n);else{if(!r&&t)throw this.raise(c.MissingClassName,this.state.startLoc);e.id=null}}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){const r=this.parseMaybeImportPhase(e,!0),n=this.maybeParseExportDefaultSpecifier(e,r),s=!n||this.eat(12),i=s&&this.eatExportStar(e),o=i&&this.maybeParseExportNamespaceSpecifier(e),a=s&&(!o||this.eat(12)),l=n||i;if(i&&!o){if(n&&this.unexpected(),t)throw this.raise(c.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}const p=this.maybeParseExportNamedSpecifiers(e);let u;if(n&&s&&!i&&!p&&this.unexpected(null,5),o&&a&&this.unexpected(null,98),l||p){if(u=!1,t)throw this.raise(c.UnsupportedDecoratorExport,e);this.parseExportFrom(e,l)}else u=this.maybeParseExportDeclaration(e);if(l||p||u){var d;const r=e;if(this.checkExport(r,!0,!1,!!r.source),"ClassDeclaration"===(null==(d=r.declaration)?void 0:d.type))this.maybeTakeDecorators(t,r.declaration,r);else if(t)throw this.raise(c.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(r,"ExportNamedDeclaration")}if(this.eat(65)){const r=e,n=this.parseExportDefaultExpression();if(r.declaration=n,"ClassDeclaration"===n.type)this.maybeTakeDecorators(t,n,r);else if(t)throw this.raise(c.UnsupportedDecoratorExport,e);return this.checkExport(r,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(r,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==t?void 0:t.loc.start);const r=t||this.parseIdentifier(!0),n=this.startNodeAtNode(r);return n.exported=r,e.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var t;null!=(t=e).specifiers||(t.specifiers=[]);const r=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),r.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(r,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){const t=e;t.specifiers||(t.specifiers=[]);const r="type"===t.exportKind;return t.specifiers.push(...this.parseExportSpecifiers(r)),t.source=null,this.hasPlugin("importAssertions")?t.assertions=[]:t.attributes=[],t.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")?e.assertions=[]:e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0)}isAsyncFunction(){if(!this.isContextual(95))return!1;const e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){const e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(c.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(c.UnsupportedDefaultExport,this.state.startLoc);const t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){if(this.match(80)){return this.parseClass(this.startNode(),!0,!1)}return this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:e}=this.state;if(tokenIsIdentifier(e)){if(95===e&&!this.state.containsEsc||100===e)return!1;if((130===e||129===e)&&!this.state.containsEsc){const e=this.nextTokenStart(),t=this.input.charCodeAt(e);if(123===t||this.chStartsBindingIdentifier(t,e)&&!this.input.startsWith("from",e))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;const t=this.nextTokenStart(),r=this.isUnparsedContextual(t,"from");if(44===this.input.charCodeAt(t)||tokenIsIdentifier(this.state.type)&&r)return!0;if(this.match(65)&&r){const e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return 34===e||39===e}return!1}parseExportFrom(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){const{type:e}=this.state;return 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(c.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()||this.isAwaitUsing()?(this.raise(c.UsingDeclarationExport,this.state.startLoc),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()}checkExport(e,t,r,n){var s;if(t)if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var i;const t=e.declaration;"Identifier"!==t.type||"from"!==t.name||t.end-t.start!==4||null!=(i=t.extra)&&i.parenthesized||this.raise(c.ExportDefaultFromAsIdentifier,t)}}else if(null!=(s=e.specifiers)&&s.length)for(const t of e.specifiers){const{exported:e}=t,r="Identifier"===e.type?e.name:e.value;if(this.checkDuplicateExports(t,r),!n&&t.local){const{local:e}=t;"Identifier"!==e.type?this.raise(c.ExportBindingIsString,t,{localName:e.value,exportName:r}):(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e))}}else if(e.declaration){const t=e.declaration;if("FunctionDeclaration"===t.type||"ClassDeclaration"===t.type){const{id:r}=t;if(!r)throw new Error("Assertion failure");this.checkDuplicateExports(e,r.name)}else if("VariableDeclaration"===t.type)for(const e of t.declarations)this.checkDeclaration(e.id)}}checkDeclaration(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type)for(const t of e.properties)this.checkDeclaration(t);else if("ArrayPattern"===e.type)for(const t of e.elements)t&&this.checkDeclaration(t);else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"AssignmentPattern"===e.type&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&("default"===t?this.raise(c.DuplicateDefaultExport,e):this.raise(c.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){const t=[];let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else if(this.expect(12),this.eat(8))break;const n=this.isContextual(130),s=this.match(134),i=this.startNode();i.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(i,s,e,n))}return t}parseExportSpecifier(e,t,r,n){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=this.cloneStringLiteral(e.local):e.exported||(e.exported=this.cloneIdentifier(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){const e=this.parseStringLiteral(this.state.value),t=ae.exec(e.value);return t&&this.raise(c.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return null!=e.assertions&&e.assertions.some(({key:e,value:t})=>"json"===t.value&&("Identifier"===e.type?"type"===e.name:"type"===e.value))}checkImportReflection(e){const{specifiers:t}=e,r=1===t.length?t[0].type:null;if("source"===e.phase)"ImportDefaultSpecifier"!==r&&this.raise(c.SourcePhaseImportRequiresDefault,t[0].loc.start);else if("defer"===e.phase)"ImportNamespaceSpecifier"!==r&&this.raise(c.DeferImportRequiresNamespace,t[0].loc.start);else if(e.module){var n;"ImportDefaultSpecifier"!==r&&this.raise(c.ImportReflectionNotBinding,t[0].loc.start),(null==(n=e.assertions)?void 0:n.length)>0&&this.raise(c.ImportReflectionHasAssertion,t[0].loc.start)}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){const{specifiers:t}=e;if(null!=t){const e=t.find(e=>{let t;if("ExportSpecifier"===e.type?t=e.local:"ImportSpecifier"===e.type&&(t=e.imported),void 0!==t)return"Identifier"===t.type?"default"!==t.name:"default"!==t.value});void 0!==e&&this.raise(c.ImportJSONBindingNotDefault,e.loc.start)}}}isPotentialImportPhase(e){return!e&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))}applyImportPhase(e,t,r,n){t||("module"===r?(this.expectPlugin("importReflection",n),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),"source"===r?(this.expectPlugin("sourcePhaseImports",n),e.phase="source"):"defer"===r?(this.expectPlugin("deferredImportEvaluation",n),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;const r=this.startNode(),n=this.parseIdentifierName(!0),{type:s}=this.state;return(tokenIsKeywordOrIdentifier(s)?98!==s||102===this.lookaheadCharCode():12!==s)?(this.applyImportPhase(e,t,n,r.loc.start),null):(this.applyImportPhase(e,t,null),this.createIdentifier(r,n))}isPrecedingIdImportPhase(e){const{type:t}=this.state;return tokenIsIdentifier(t)?98!==t||102===this.lookaheadCharCode():12!==t}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];const r=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),n=r&&this.maybeParseStarImportSpecifier(e);return r&&!n&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return null!=e.specifiers||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,t,r){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))}finishImportSpecifier(e,t,r=8201){return this.checkLVal(e.local,{type:t},r),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);const e=[],t=new Set;do{if(this.match(8))break;const r=this.startNode(),n=this.state.value;if(t.has(n)&&this.raise(c.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:n}),t.add(n),this.match(134)?r.key=this.parseStringLiteral(n):r.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(c.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){const e=[],t=new Set;do{const r=this.startNode();if(r.key=this.parseIdentifier(!0),"type"!==r.key.name&&this.raise(c.ModuleAttributeDifferentFromType,r.key),t.has(r.key.name)&&this.raise(c.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name}),t.add(r.key.name),this.expect(14),!this.match(134))throw this.raise(c.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t;var r=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),this.hasPlugin("moduleAttributes")?(t=this.parseModuleAttributes(),this.addExtra(e,"deprecatedWithLegacySyntax",!0)):t=this.parseImportAttributes(),r=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.hasPlugin("importAssertions")||this.raise(c.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(e,"deprecatedAssertSyntax",!0),this.next(),t=this.parseImportAttributes()):t=[];!r&&this.hasPlugin("importAssertions")?e.assertions=t:e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){const r=this.startNodeAtNode(t);return r.local=t,e.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier")),!0}return!!tokenIsKeywordOrIdentifier(this.state.type)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(55)){const t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(c.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}const r=this.startNode(),n=this.match(134),s=this.isContextual(130);r.imported=this.parseModuleExportName();const i=this.parseImportSpecifier(r,n,"type"===e.importKind||"typeof"===e.importKind,s,void 0);e.specifiers.push(i)}}parseImportSpecifier(e,t,r,n,s){if(this.eatContextual(93))e.local=this.parseIdentifier();else{const{imported:r}=e;if(t)throw this.raise(c.ImportBindingIsString,e,{importName:r.value});this.checkReservedWord(r.name,e.loc.start,!0,!0),e.local||(e.local=this.cloneIdentifier(r))}return this.finishImportSpecifier(e,"ImportSpecifier",s)}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}}class Parser extends StatementParser{constructor(e,t,r){const n=function(e){const t={sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};if(null==e)return t;if(null!=e.annexB&&!1!==e.annexB)throw new Error("The `annexB` option can only be set to `false`.");for(const r of Object.keys(t))null!=e[r]&&(t[r]=e[r]);if(1===t.startLine)null==e.startIndex&&t.startColumn>0?t.startIndex=t.startColumn:null==e.startColumn&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((null==e.startColumn||null==e.startIndex)&&null!=e.startIndex)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if("commonjs"===t.sourceType){if(null!=e.allowAwaitOutsideFunction)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(null!=e.allowReturnOutsideFunction)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(null!=e.allowNewTargetOutsideFunction)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}(e);super(n,t),this.options=n,this.initializeScopes(),this.plugins=r,this.filename=n.sourceFilename,this.startIndex=n.startIndex;let s=0;n.allowAwaitOutsideFunction&&(s|=1),n.allowReturnOutsideFunction&&(s|=2),n.allowImportExportEverywhere&&(s|=8),n.allowSuperOutsideMethod&&(s|=16),n.allowUndeclaredExports&&(s|=64),n.allowNewTargetOutsideFunction&&(s|=4),n.allowYieldOutsideFunction&&(s|=32),n.ranges&&(s|=128),n.tokens&&(s|=256),n.createImportExpressions&&(s|=512),n.createParenthesizedExpressions&&(s|=1024),n.errorRecovery&&(s|=2048),n.attachComment&&(s|=4096),n.annexB&&(s|=8192),this.optionFlags=s}getScopeHandler(){return ScopeHandler}parse(){this.enterInitialScopes();const e=this.startNode(),t=this.startNode();this.nextToken(),e.errors=null;const r=this.parseTopLevel(e,t);return r.errors=this.state.errors,r.comments.length=this.state.commentsLen,r}}const pe=function(e){const t={};for(const r of Object.keys(e))t[r]=getExportedToken(e[r]);return t}(A);function getParser(e,t){let r=Parser;const n=new Map;if(null!=e&&e.plugins){for(const t of e.plugins){let e,r;"string"==typeof t?e=t:[e,r]=t,n.has(e)||n.set(e,r||{})}!function(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const t=e.get("decorators").decoratorsBeforeExport;if(null!=t&&"boolean"!=typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");const r=e.get("decorators").allowCallParenthesized;if(null!=r&&"boolean"!=typeof r)throw new Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){var t;const n=e.get("pipelineOperator").proposal;if(!te.includes(n)){const e=te.map(e=>`"${e}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}if("hack"===n){var r;if(e.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const t=e.get("pipelineOperator").topicToken;if(!re.includes(t)){const e=re.map(e=>`"${e}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}if("#"===t&&"hash"===(null==(r=e.get("recordAndTuple"))?void 0:r.syntaxType))throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}else if("smart"===n&&"hash"===(null==(t=e.get("recordAndTuple"))?void 0:t.syntaxType))throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}if(e.has("moduleAttributes")){if(e.has("deprecatedImportAssert")||e.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if("may-2020"!==e.get("moduleAttributes").version)throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(e.has("importAssertions")&&e.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(e.has("deprecatedImportAssert")||e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax&&e.set("deprecatedImportAssert",{}),e.has("recordAndTuple")){const t=e.get("recordAndTuple").syntaxType;if(null!=t){const e=["hash","bar"];if(!e.includes(t))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+e.map(e=>`'${e}'`).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){const e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}if(e.has("optionalChainingAssign")&&"2023-07"!==e.get("optionalChainingAssign").version)throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(e.has("discardBinding")&&"void"!==e.get("discardBinding").syntaxType)throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}(n),r=function(e){const t=[];for(const r of se)e.has(r)&&t.push(r);const r=t.join("|");let n=ce.get(r);if(!n){n=Parser;for(const e of t)n=ne[e](n);ce.set(r,n)}return n}(n)}return new r(e,t,n)}const ce=new Map;t.parse=function(e,t){var r;if("unambiguous"!==(null==(r=t)?void 0:r.sourceType))return getParser(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";const r=getParser(t,e),n=r.parse();if(r.sawUnambiguousESM)return n;if(r.ambiguousScriptDifferentAst)try{return t.sourceType="script",getParser(t,e).parse()}catch(e){}else n.program.sourceType="script";return n}catch(r){try{return t.sourceType="script",getParser(t,e).parse()}catch(e){}throw r}},t.parseExpression=function(e,t){const r=getParser(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()},t.tokTypes=pe},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-proposal-decorators/lib/index.js"(e,t,r){"use strict";t.A=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-plugin-utils/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-syntax-decorators/lib/index.js"),i=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-create-class-features-plugin/lib/index.js"),o=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-proposal-decorators/lib/transformer-legacy.js");t.A=(0,n.declare)((e,t)=>{e.assertVersion("^7.0.0-0 || ^8.0.0-0");var{legacy:r}=t;const{version:n}=t;if(r||"legacy"===n)return{name:"proposal-decorators",inherits:s.default,visitor:o.default};if(n&&"2018-09"!==n&&"2021-12"!==n&&"2022-03"!==n&&"2023-01"!==n&&"2023-05"!==n&&"2023-11"!==n)throw new Error("The '.version' option must be one of 'legacy', '2023-11', '2023-05', '2023-01', '2022-03', or '2021-12'.");return e.assertVersion("^7.0.2 || ^8.0.0-0"),(0,i.createClassFeaturePlugin)({name:"proposal-decorators",api:e,feature:i.FEATURES.decorators,inherits:s.default,decoratorVersion:n})})},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-proposal-decorators/lib/transformer-legacy.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/index.js");const s=n.template.statement("\n DECORATOR(CLASS_REF = INNER) || CLASS_REF;\n"),i=(0,n.template)("\n CLASS_REF.prototype;\n"),o=(0,n.template)("\n Object.getOwnPropertyDescriptor(TARGET, PROPERTY);\n"),a=(0,n.template)("\n (TEMP = Object.getOwnPropertyDescriptor(TARGET, PROPERTY), (TEMP = TEMP ? TEMP.value : undefined), {\n enumerable: true,\n configurable: true,\n writable: true,\n initializer: function(){\n return TEMP;\n }\n })\n"),l=new WeakSet;function applyEnsureOrdering(e){const t=(e.isClass()?[e,...e.get("body.body")]:e.get("properties")).reduce((e,t)=>e.concat(t.node.decorators||[]),[]).filter(e=>!n.types.isIdentifier(e.expression));if(0!==t.length)return n.types.sequenceExpression(t.map(t=>{const r=t.expression,s=t.expression=e.scope.generateDeclaredUidIdentifier("dec");return n.types.assignmentExpression("=",s,r)}).concat([e.node]))}function hasClassDecorators(e){var t;return!(null==(t=e.decorators)||!t.length)}function hasMethodDecorators(e){return e.some(e=>{var t;return null==(t=e.decorators)?void 0:t.length})}function applyTargetDecorators(e,t,r){const s=e.scope.generateDeclaredUidIdentifier(e.isClass()?"class":"obj"),p=r.reduce(function(r,p){let c=[];if(null!=p.decorators&&(c=p.decorators,p.decorators=null),0===c.length)return r;if(p.computed)throw e.buildCodeFrameError("Computed method/property decorators are not yet supported.");const u=n.types.isLiteral(p.key)?p.key:n.types.stringLiteral(p.key.name),d=e.isClass()&&!p.static?i({CLASS_REF:s}).expression:s;if(n.types.isClassProperty(p,{static:!1})){const s=e.scope.generateDeclaredUidIdentifier("descriptor"),i=p.value?n.types.functionExpression(null,[],n.types.blockStatement([n.types.returnStatement(p.value)])):n.types.nullLiteral();p.value=n.types.callExpression(t.addHelper("initializerWarningHelper"),[s,n.types.thisExpression()]),l.add(p.value),r.push(n.types.assignmentExpression("=",n.types.cloneNode(s),n.types.callExpression(t.addHelper("applyDecoratedDescriptor"),[n.types.cloneNode(d),n.types.cloneNode(u),n.types.arrayExpression(c.map(e=>n.types.cloneNode(e.expression))),n.types.objectExpression([n.types.objectProperty(n.types.identifier("configurable"),n.types.booleanLiteral(!0)),n.types.objectProperty(n.types.identifier("enumerable"),n.types.booleanLiteral(!0)),n.types.objectProperty(n.types.identifier("writable"),n.types.booleanLiteral(!0)),n.types.objectProperty(n.types.identifier("initializer"),i)])])))}else r.push(n.types.callExpression(t.addHelper("applyDecoratedDescriptor"),[n.types.cloneNode(d),n.types.cloneNode(u),n.types.arrayExpression(c.map(e=>n.types.cloneNode(e.expression))),n.types.isObjectProperty(p)||n.types.isClassProperty(p,{static:!0})?a({TEMP:e.scope.generateDeclaredUidIdentifier("init"),TARGET:n.types.cloneNode(d),PROPERTY:n.types.cloneNode(u)}).expression:o({TARGET:n.types.cloneNode(d),PROPERTY:n.types.cloneNode(u)}).expression,n.types.cloneNode(d)]));return r},[]);return n.types.sequenceExpression([n.types.assignmentExpression("=",n.types.cloneNode(s),e.node),n.types.sequenceExpression(p),n.types.cloneNode(s)])}function decoratedClassToExpression({node:e,scope:t}){if(!hasClassDecorators(e)&&!hasMethodDecorators(e.body.body))return;const r=e.id?n.types.cloneNode(e.id):t.generateUidIdentifier("class");return n.types.variableDeclaration("let",[n.types.variableDeclarator(r,n.types.toExpression(e))])}const p={ExportDefaultDeclaration(e){const t=e.get("declaration");if(!t.isClassDeclaration())return;const r=decoratedClassToExpression(t);if(r){const[s]=e.replaceWithMultiple([r,n.types.exportNamedDeclaration(null,[n.types.exportSpecifier(n.types.cloneNode(r.declarations[0].id),n.types.identifier("default"))])]);t.node.id||e.scope.registerDeclaration(s)}},ClassDeclaration(e){const t=decoratedClassToExpression(e);if(t){const[r]=e.replaceWith(t),n=r.get("declarations.0"),s=n.node.id,i=e.scope.getOwnBinding(s.name);i.identifier=s,i.path=n}},ClassExpression(e,t){const r=applyEnsureOrdering(e)||function(e){if(!hasClassDecorators(e.node))return;const t=e.node.decorators||[];e.node.decorators=null;const r=e.scope.generateDeclaredUidIdentifier("class");return t.map(e=>e.expression).reverse().reduce(function(e,t){return s({CLASS_REF:n.types.cloneNode(r),DECORATOR:n.types.cloneNode(t),INNER:e}).expression},e.node)}(e)||function(e,t){if(hasMethodDecorators(e.node.body.body))return applyTargetDecorators(e,t,e.node.body.body)}(e,t);r&&e.replaceWith(r)},ObjectExpression(e,t){const r=applyEnsureOrdering(e)||function(e,t){if(hasMethodDecorators(e.node.properties))return applyTargetDecorators(e,t,e.node.properties.filter(e=>"SpreadElement"!==e.type))}(e,t);r&&e.replaceWith(r)},AssignmentExpression(e,t){l.has(e.node.right)&&e.replaceWith(n.types.callExpression(t.addHelper("initializerDefineProperty"),[n.types.cloneNode(e.get("left.object").node),n.types.stringLiteral(e.get("left.property").node.name||e.get("left.property").node.value),n.types.cloneNode(e.get("right.arguments")[0].node),n.types.cloneNode(e.get("right.arguments")[1].node)]))},CallExpression(e,t){3===e.node.arguments.length&&l.has(e.node.arguments[2])&&e.node.callee.name===t.addHelper("defineProperty").name&&e.replaceWith(n.types.callExpression(t.addHelper("initializerDefineProperty"),[n.types.cloneNode(e.get("arguments")[0].node),n.types.cloneNode(e.get("arguments")[1].node),n.types.cloneNode(e.get("arguments.2.arguments")[0].node),n.types.cloneNode(e.get("arguments.2.arguments")[1].node)]))}};t.default=p},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-syntax-decorators/lib/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-plugin-utils/lib/index.js");t.default=(0,n.declare)((e,t)=>{e.assertVersion("^7.0.0-0 || ^8.0.0-0 || >8.0.0-alpha <8.0.0-beta");let{version:r}=t;const{legacy:n}=t;if(void 0!==n){if("boolean"!=typeof n)throw new Error(".legacy must be a boolean.");if(void 0!==r)throw new Error("You can either use the .legacy or the .version option, not both.")}if(void 0===r)r=n?"legacy":"2018-09";else if("2023-11"!==r&&"2023-05"!==r&&"2023-01"!==r&&"2022-03"!==r&&"2021-12"!==r&&"2018-09"!==r&&"legacy"!==r)throw new Error("Unsupported decorators version: "+r);var{decoratorsBeforeExport:s}=t;if(void 0===s){if("2021-12"===r||"2022-03"===r)s=!1;else if("2018-09"===r)throw new Error("The decorators plugin, when .version is '2018-09' or not specified, requires a 'decoratorsBeforeExport' option, whose value must be a boolean.")}else{if("legacy"===r||"2022-03"===r||"2023-01"===r)throw new Error(`'decoratorsBeforeExport' can't be used with ${r} decorators.`);if("boolean"!=typeof s)throw new Error("'decoratorsBeforeExport' must be a boolean.")}return{name:"syntax-decorators",manipulateOptions({generatorOpts:e},t){"legacy"===r?t.plugins.push("decorators-legacy"):"2023-01"===r||"2023-05"===r||"2023-11"===r?t.plugins.push(["decorators",{allowCallParenthesized:!1}],"decoratorAutoAccessors"):"2022-03"===r?t.plugins.push(["decorators",{decoratorsBeforeExport:!1,allowCallParenthesized:!1}],"decoratorAutoAccessors"):"2021-12"===r?(t.plugins.push(["decorators",{decoratorsBeforeExport:s}],"decoratorAutoAccessors"),e.decoratorsBeforeExport=s):"2018-09"===r&&(t.plugins.push(["decorators",{decoratorsBeforeExport:s}]),e.decoratorsBeforeExport=s)}}})},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-syntax-import-assertions/lib/index.js"(e,t,r){"use strict";t.A=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-plugin-utils/lib/index.js");t.A=(0,n.declare)(e=>{e.assertVersion("^7.0.0-0 || ^8.0.0-0");const isPlugin=(e,t)=>"plugin"===t||Array.isArray(e)&&"plugin"===e[0],options=e=>Array.isArray(e)&&e.length>1?e[1]:{};return{name:"syntax-import-assertions",manipulateOptions(e,{plugins:t}){for(let e=0;e<t.length;e++){const r=t[e];if(isPlugin(r,"deprecatedImportAssert"))return;if(isPlugin(r,"importAttributes"))return void t.splice(e,1,"deprecatedImportAssert",["importAttributes",Object.assign({},options(r),{deprecatedAssertSyntax:!0})])}t.push("importAssertions")}}})},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-syntax-jsx/lib/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-plugin-utils/lib/index.js");t.default=(0,n.declare)(e=>(e.assertVersion("^7.0.0-0 || ^8.0.0-0"),{name:"syntax-jsx",manipulateOptions(e,t){t.plugins.some(e=>"typescript"===(Array.isArray(e)?e[0]:e))||t.plugins.push("jsx")}}))},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-syntax-typescript/lib/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-plugin-utils/lib/index.js"),removePlugin=function(e,t){const r=[];e.forEach((e,n)=>{(Array.isArray(e)?e[0]:e)===t&&r.unshift(n)});for(const t of r)e.splice(t,1)};t.default=(0,n.declare)((e,t)=>{e.assertVersion("^7.0.0-0 || ^8.0.0-0");const{disallowAmbiguousJSXLike:r,dts:n}=t;var{isTSX:s}=t;return{name:"syntax-typescript",manipulateOptions(e,t){const{plugins:i}=t;removePlugin(i,"flow"),removePlugin(i,"jsx"),i.push("objectRestSpread","classProperties"),s&&i.push("jsx"),t.plugins.push(["typescript",{disallowAmbiguousJSXLike:r,dts:n}])}}})},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-destructuring/lib/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-plugin-utils/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/index.js");function isPureVoid(e){return s.types.isUnaryExpression(e)&&"void"===e.operator&&s.types.isPureish(e.argument)}function unshiftForXStatementBody(e,t){e.ensureBlock();const{scope:r,node:n}=e,i=e.get("body").scope.bindings;Object.keys(i).some(e=>r.hasBinding(e))?n.body=s.types.blockStatement([...t,n.body]):n.body.body.unshift(...t)}function hasArrayRest(e){return e.elements.some(e=>s.types.isRestElement(e))}const i={},arrayUnpackVisitor=(e,t,r)=>{if(t.length&&s.types.isIdentifier(e)&&s.types.isReferenced(e,t[t.length-1].node)&&r.bindings[e.name])throw r.deopt=!0,i};class DestructuringTransformer{constructor(e){this.blockHoist=void 0,this.operator=void 0,this.arrayRefSet=void 0,this.nodes=void 0,this.scope=void 0,this.kind=void 0,this.iterableIsArray=void 0,this.arrayLikeIsIterable=void 0,this.objectRestNoSymbols=void 0,this.useBuiltIns=void 0,this.addHelper=void 0,this.blockHoist=e.blockHoist,this.operator=e.operator,this.arrayRefSet=new Set,this.nodes=e.nodes||[],this.scope=e.scope,this.kind=e.kind,this.iterableIsArray=e.iterableIsArray,this.arrayLikeIsIterable=e.arrayLikeIsIterable,this.objectRestNoSymbols=e.objectRestNoSymbols,this.useBuiltIns=e.useBuiltIns,this.addHelper=e.addHelper}getExtendsHelper(){return this.useBuiltIns?s.types.memberExpression(s.types.identifier("Object"),s.types.identifier("assign")):this.addHelper("extends")}buildVariableAssignment(e,t){let r,n=this.operator;if((s.types.isMemberExpression(e)||s.types.isOptionalMemberExpression(e))&&(n="="),n)r=s.types.expressionStatement(s.types.assignmentExpression(n,e,s.types.cloneNode(t)||this.scope.buildUndefinedNode()));else{let n;n="const"===this.kind&&null===t?this.scope.buildUndefinedNode():s.types.cloneNode(t),r=s.types.variableDeclaration(this.kind,[s.types.variableDeclarator(e,n)])}return r._blockHoist=this.blockHoist,r}buildVariableDeclaration(e,t){const r=s.types.variableDeclaration("var",[s.types.variableDeclarator(s.types.cloneNode(e),s.types.cloneNode(t))]);return r._blockHoist=this.blockHoist,r}push(e,t){const r=s.types.cloneNode(t);s.types.isObjectPattern(e)?this.pushObjectPattern(e,r):s.types.isArrayPattern(e)?this.pushArrayPattern(e,r):s.types.isAssignmentPattern(e)?this.pushAssignmentPattern(e,r):this.nodes.push(this.buildVariableAssignment(e,r))}toArray(e,t){if(this.iterableIsArray||s.types.isIdentifier(e)&&this.arrayRefSet.has(e.name))return e;{const{scope:r,arrayLikeIsIterable:n}=this;if(s.types.isIdentifier(e)){const t=r.getBinding(e.name);if(null!=t&&t.constant&&t.path.isGenericType("Array"))return e}if(s.types.isArrayExpression(e))return e;if(s.types.isIdentifier(e,{name:"arguments"}))return s.template.expression.ast`- Array.prototype.slice.call(${e})- `;let i;const o=[e];return"number"==typeof t?(o.push(s.types.numericLiteral(t)),i="slicedToArray"):i="toArray",n&&(o.unshift(r.path.hub.addHelper(i)),i="maybeArrayLike"),s.types.callExpression(r.path.hub.addHelper(i),o)}}pushAssignmentPattern({left:e,right:t},r){if(isPureVoid(r))return void this.push(e,t);const n=this.scope.generateUidIdentifierBasedOnNode(r);this.nodes.push(this.buildVariableDeclaration(n,r));const i=s.types.conditionalExpression(s.types.binaryExpression("===",s.types.cloneNode(n),this.scope.buildUndefinedNode()),t,s.types.cloneNode(n));if(s.types.isPattern(e)){let t,r;"const"===this.kind||"let"===this.kind?(t=this.scope.generateUidIdentifier(n.name),r=this.buildVariableDeclaration(t,i)):(t=n,r=s.types.expressionStatement(s.types.assignmentExpression("=",s.types.cloneNode(n),i))),this.nodes.push(r),this.push(e,t)}else this.nodes.push(this.buildVariableAssignment(e,i))}pushObjectRest(e,t,r,n){const s=buildObjectExcludingKeys(e.properties.slice(0,n),t,this.scope,e=>this.addHelper(e),this.objectRestNoSymbols,this.useBuiltIns);this.nodes.push(this.buildVariableAssignment(r.argument,s))}pushObjectProperty(e,t){s.types.isLiteral(e.key)&&(e.computed=!0);const r=e.value,n=s.types.memberExpression(s.types.cloneNode(t),e.key,e.computed);s.types.isPattern(r)?this.push(r,n):this.nodes.push(this.buildVariableAssignment(r,n))}pushObjectPattern(e,t){if(e.properties.length){if(e.properties.length>1&&!this.scope.isStatic(t)){const e=this.scope.generateUidIdentifierBasedOnNode(t);this.nodes.push(this.buildVariableDeclaration(e,t)),t=e}if(function(e){return e.properties.some(e=>s.types.isRestElement(e))}(e)){let t;for(let r=0;r<e.properties.length;r++){const n=e.properties[r];if(s.types.isRestElement(n))break;const i=n.key;if(n.computed&&!this.scope.isPure(i)){const s=this.scope.generateUidIdentifierBasedOnNode(i);this.nodes.push(this.buildVariableDeclaration(s,i)),t||(t=e=Object.assign({},e,{properties:e.properties.slice()})),t.properties[r]=Object.assign({},n,{key:s})}}}for(let r=0;r<e.properties.length;r++){const n=e.properties[r];s.types.isRestElement(n)?this.pushObjectRest(e,t,n,r):this.pushObjectProperty(n,t)}}else this.nodes.push(s.types.expressionStatement(s.types.callExpression(this.addHelper("objectDestructuringEmpty"),isPureVoid(t)?[]:[t])))}canUnpackArrayPattern(e,t){if(!s.types.isArrayExpression(t))return!1;if(e.elements.length>t.elements.length)return;if(e.elements.length<t.elements.length&&!hasArrayRest(e))return!1;for(const t of e.elements){if(!t)return!1;if(s.types.isMemberExpression(t))return!1}for(const e of t.elements){if(s.types.isSpreadElement(e))return!1;if(s.types.isCallExpression(e))return!1;if(s.types.isMemberExpression(e))return!1}const r={deopt:!1,bindings:s.types.getBindingIdentifiers(e)};try{s.types.traverse(t,arrayUnpackVisitor,r)}catch(e){if(e!==i)throw e}return!r.deopt}pushUnpackedArrayPattern(e,t){const holeToUndefined=e=>null!=e?e:this.scope.buildUndefinedNode();for(let r=0;r<e.elements.length;r++){const n=e.elements[r];s.types.isRestElement(n)?this.push(n.argument,s.types.arrayExpression(t.elements.slice(r).map(holeToUndefined))):this.push(n,holeToUndefined(t.elements[r]))}}pushArrayPattern(e,t){if(null===t)return void this.nodes.push(s.types.expressionStatement(s.types.callExpression(this.addHelper("objectDestructuringEmpty"),[])));if(!e.elements)return;if(this.canUnpackArrayPattern(e,t))return void this.pushUnpackedArrayPattern(e,t);const r=!hasArrayRest(e)&&e.elements.length,n=this.toArray(t,r);s.types.isIdentifier(n)?t=n:(t=this.scope.generateUidIdentifierBasedOnNode(t),this.arrayRefSet.add(t.name),this.nodes.push(this.buildVariableDeclaration(t,n)));for(let r=0;r<e.elements.length;r++){const n=e.elements[r];n&&(s.types.isRestElement(n)?this.push(n.argument,s.types.callExpression(s.types.memberExpression(s.types.callExpression(this.scope.path.hub.addHelper("arrayLikeToArray"),[t]),s.types.identifier("slice")),[s.types.numericLiteral(r)])):this.push(n,s.types.memberExpression(t,s.types.numericLiteral(r),!0)))}}init(e,t){if(!s.types.isArrayExpression(t)&&!s.types.isMemberExpression(t)){const e=this.scope.maybeGenerateMemoised(t,!0);e&&(this.nodes.push(this.buildVariableDeclaration(e,s.types.cloneNode(t))),t=e)}return this.push(e,t),this.nodes}}function buildObjectExcludingKeys(e,t,r,n,i,o){const a=[];let l,p=!0,c=!1;for(let t=0;t<e.length;t++){const r=e[t],n=r.key;s.types.isIdentifier(n)&&!r.computed?a.push(s.types.stringLiteral(n.name)):s.types.isTemplateLiteral(n)?(a.push(s.types.cloneNode(n)),c=!0):s.types.isLiteral(n)?a.push(s.types.stringLiteral(String(n.value))):s.types.isPrivateName(n)||(a.push(s.types.cloneNode(n)),p=!1)}if(0===a.length){const e=o?s.types.memberExpression(s.types.identifier("Object"),s.types.identifier("assign")):n("extends");l=s.types.callExpression(e,[s.types.objectExpression([]),s.types.sequenceExpression([s.types.callExpression(n("objectDestructuringEmpty"),[s.types.cloneNode(t)]),s.types.cloneNode(t)])])}else{let e=s.types.arrayExpression(a);if(p){if(!c&&!s.types.isProgram(r.block)){const t=r.getProgramParent(),n=t.generateUidIdentifier("excluded");t.push({id:n,init:e,kind:"const"}),e=s.types.cloneNode(n)}}else e=s.types.callExpression(s.types.memberExpression(e,s.types.identifier("map")),[n("toPropertyKey")]);l=s.types.callExpression(n("objectWithoutProperties"+(i?"Loose":"")),[s.types.cloneNode(t),e])}return l}function variableDeclarationHasDestructuringPattern(e){for(const t of e.declarations)if(s.types.isPattern(t.id)&&"VoidPattern"!==t.id.type)return!0;return!1}var o=n.declare((e,t)=>{var n,i,o,a,l,p;e.assertVersion(7);const{useBuiltIns:c=!1}=t,u=null!=(n=null!=(i=e.assumption("iterableIsArray"))?i:t.loose)&&n,d=null!=(o=null!=(a=t.allowArrayLike)?a:e.assumption("arrayLikeIsIterable"))&&o,h=null!=(l=null!=(p=e.assumption("objectRestNoSymbols"))?p:t.loose)&&l;return{name:"transform-destructuring",visitor:{ExportNamedDeclaration(e){const t=e.get("declaration");t.isVariableDeclaration()&&(variableDeclarationHasDestructuringPattern(t.node)&&(null!=e.splitExportDeclaration||(e.splitExportDeclaration=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/index.js").NodePath.prototype.splitExportDeclaration),e.splitExportDeclaration()))},ForXStatement(e){const{node:t,scope:r}=e,n=t.left;if(s.types.isPattern(n)){const i=r.generateUidIdentifier("ref");t.left=s.types.variableDeclaration("var",[s.types.variableDeclarator(i)]),e.ensureBlock();const o=[];return 0===e.node.body.body.length&&e.isCompletionRecord()&&o.unshift(s.types.expressionStatement(r.buildUndefinedNode())),o.unshift(s.types.expressionStatement(s.types.assignmentExpression("=",n,s.types.cloneNode(i)))),unshiftForXStatementBody(e,o),void r.crawl()}if(!s.types.isVariableDeclaration(n))return;const i=n.declarations[0].id;if(!s.types.isPattern(i)||"VoidPattern"===i.type)return;const o=r.generateUidIdentifier("ref");t.left=s.types.variableDeclaration(n.kind,[s.types.variableDeclarator(o,null)]);const a=[];new DestructuringTransformer({kind:n.kind,scope:r,nodes:a,arrayLikeIsIterable:d,iterableIsArray:u,objectRestNoSymbols:h,useBuiltIns:c,addHelper:e=>this.addHelper(e)}).init(i,o),unshiftForXStatementBody(e,a),r.crawl()},CatchClause({node:e,scope:t}){const r=e.param;if(!s.types.isPattern(r))return;const n=t.generateUidIdentifier("ref");e.param=n;const i=[];new DestructuringTransformer({kind:"let",scope:t,nodes:i,arrayLikeIsIterable:d,iterableIsArray:u,objectRestNoSymbols:h,useBuiltIns:c,addHelper:e=>this.addHelper(e)}).init(r,n),e.body.body=[...i,...e.body.body],t.crawl()},AssignmentExpression(e,t){s.types.isPattern(e.node.left)&&function(e,t,r,n,i,o){const{node:a,scope:l,parentPath:p}=e,c=[],u=new DestructuringTransformer({operator:a.operator,scope:l,nodes:c,arrayLikeIsIterable:r,iterableIsArray:n,objectRestNoSymbols:i,useBuiltIns:o,addHelper:t});let d;(!p.isExpressionStatement()&&!p.isSequenceExpression()||e.isCompletionRecord())&&(d=l.generateUidIdentifierBasedOnNode(a.right,"ref"),c.push(s.types.variableDeclaration("var",[s.types.variableDeclarator(d,a.right)])),s.types.isArrayExpression(a.right)&&u.arrayRefSet.add(d.name)),u.init(a.left,d||a.right),d&&(p.isArrowFunctionExpression()?(e.replaceWith(s.types.blockStatement([])),c.push(s.types.returnStatement(s.types.cloneNode(d)))):c.push(s.types.expressionStatement(s.types.cloneNode(d)))),e.replaceWithMultiple(c),l.crawl()}(e,e=>t.addHelper(e),d,u,h,c)},VariableDeclaration(e,t){const{node:r,parent:n}=e;s.types.isForXStatement(n)||n&&e.container&&variableDeclarationHasDestructuringPattern(r)&&function(e,t,r,n,i,o){const{node:a,scope:l}=e,p=a.kind,c=a.loc,u=[];for(let e=0;e<a.declarations.length;e++){const p=a.declarations[e],c=p.init,d=p.id,h=new DestructuringTransformer({blockHoist:a._blockHoist,nodes:u,scope:l,kind:a.kind,iterableIsArray:n,arrayLikeIsIterable:r,useBuiltIns:o,objectRestNoSymbols:i,addHelper:t});s.types.isPattern(d)?(h.init(d,c),+e!==a.declarations.length-1&&s.types.inherits(u[u.length-1],p)):u.push(s.types.inherits(h.buildVariableAssignment(d,c),p))}let d=null,h=[];for(const e of u){if(s.types.isVariableDeclaration(e)){if(null!==d){d.declarations.push(...e.declarations);continue}e.kind=p,d=e}else d=null;e.loc||(e.loc=c),h.push(e)}if(2===h.length&&s.types.isVariableDeclaration(h[0])&&s.types.isExpressionStatement(h[1])&&s.types.isCallExpression(h[1].expression)&&1===h[0].declarations.length){const e=h[1].expression;e.arguments=[h[0].declarations[0].init],h=[e]}else if(s.types.isForStatement(e.parent,{init:a})&&!h.some(e=>s.types.isVariableDeclaration(e)))for(let e=0;e<h.length;e++){const t=h[e];s.types.isExpressionStatement(t)&&(h[e]=t.expression)}1===h.length?e.replaceWith(h[0]):e.replaceWithMultiple(h),l.crawl()}(e,e=>t.addHelper(e),d,u,h,c)}}}});t.buildObjectExcludingKeys=buildObjectExcludingKeys,t.default=o,t.unshiftForXStatementBody=unshiftForXStatementBody},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-explicit-resource-management/lib/index.js"(e,t,r){"use strict";t.A=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-plugin-utils/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-destructuring/lib/index.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/index.js");function isAnonymousFunctionDefinition(e){return i.types.isArrowFunctionExpression(e)||(i.types.isFunctionExpression(e)||i.types.isClassExpression(e))&&!e.id}function emitSetFunctionNameCall(e,t,r){return i.types.callExpression(e.addHelper("setFunctionName"),[t,i.types.stringLiteral(r)])}t.A=(0,n.declare)(e=>{e.assertVersion("^7.23.9 || ^8.0.0-0 || >8.0.0-alpha <8.0.0-beta");const t=new Map;function isUsingDeclaration(e){return!!i.types.isVariableDeclaration(e)&&("using"===e.kind||"await using"===e.kind||t.has(e))}const r={ForOfStatement(e){const{left:t}=e.node;if(!isUsingDeclaration(t))return;const{id:r}=t.declarations[0],n=e.scope.generateUidIdentifierBasedOnNode(r);t.declarations[0].id=n,t.kind="const",e.ensureBlock(),(0,s.unshiftForXStatementBody)(e,[i.types.variableDeclaration("using",[i.types.variableDeclarator(r,i.types.cloneNode(n))])])},"BlockStatement|StaticBlock"(e,r){let n=null,s=!1;const o=e.scope;for(const a of e.node.body){if(!isUsingDeclaration(a))continue;null!=n||(n=o.generateUidIdentifier("usingCtx"));const e="await using"===a.kind||1===t.get(a);s||(s=e),t.delete(a)||(a.kind="const");for(const t of a.declarations){const s=t.init;t.init=i.types.callExpression(i.types.memberExpression(i.types.cloneNode(n),e?i.types.identifier("a"):i.types.identifier("u")),[isAnonymousFunctionDefinition(s)&&i.types.isIdentifier(t.id)?emitSetFunctionNameCall(r,s,t.id.name):s])}}if(!n)return;const a=i.types.callExpression(i.types.memberExpression(i.types.cloneNode(n),i.types.identifier("d")),[]),l=i.template.statement.ast`- try {- var ${i.types.cloneNode(n)} = ${r.addHelper("usingCtx")}();- ${e.node.body}- } catch (_) {- ${i.types.cloneNode(n)}.e = _;- } finally {- ${s?i.types.awaitExpression(a):a}- }- `;i.types.inherits(l,e.node);const{parentPath:p}=e;p.isFunction()||p.isTryStatement()||p.isCatchClause()?e.replaceWith(i.types.blockStatement([l])):e.isStaticBlock()?e.node.body=[l]:e.replaceWith(l)}},n=i.traverse.visitors.merge([r,{Function(e){e.skip()}}]);return{name:"transform-explicit-resource-management",manipulateOptions:(e,t)=>t.plugins.push("explicitResourceManagement"),visitor:i.traverse.visitors.merge([r,{Program(e){if(t.clear(),"module"!==e.node.sourceType)return;if(!e.node.body.some(isUsingDeclaration))return;const r=[];for(const n of e.get("body")){if(n.isFunctionDeclaration()||n.isImportDeclaration())continue;let s=n.node,o=!0;if(n.isExportDefaultDeclaration()){let t,{declaration:s}=n.node;if(i.types.isClassDeclaration(s))t=s.id,s.id=i.types.cloneNode(t),s=i.types.toExpression(s);else if(!i.types.isExpression(s))continue;null!=t||(t=e.scope.generateUidIdentifier("_default")),r.push(i.types.variableDeclaration("var",[i.types.variableDeclarator(t,s)])),n.replaceWith(i.types.exportNamedDeclaration(null,[i.types.exportSpecifier(i.types.cloneNode(t),i.types.identifier("default"))]));continue}if(n.isExportNamedDeclaration()){if(s=n.node.declaration,!s||i.types.isFunction(s))continue;n.replaceWith(i.types.exportNamedDeclaration(null,Object.keys(i.types.getOuterBindingIdentifiers(s,!1)).map(e=>i.types.exportSpecifier(i.types.identifier(e),i.types.identifier(e))))),o=!1}else if(n.isExportDeclaration())continue;if(i.types.isClassDeclaration(s)){const{id:e}=s;s.id=i.types.cloneNode(e),r.push(i.types.variableDeclaration("var",[i.types.variableDeclarator(e,i.types.toExpression(s))]))}else i.types.isVariableDeclaration(s)?("using"===s.kind?t.set(n.node,0):"await using"===s.kind&&t.set(n.node,1),s.kind="var",r.push(s)):r.push(n.node);o&&n.remove()}e.pushContainer("body",i.types.blockStatement(r))},Function(e,t){e.node.async&&e.traverse(n,t)}}])}})},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-export-namespace-from/lib/index.js"(e,t,r){"use strict";t.A=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-plugin-utils/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/index.js");t.A=(0,n.declare)(e=>(e.assertVersion(7),{name:"transform-export-namespace-from",manipulateOptions:(e,t)=>t.plugins.push("exportNamespaceFrom"),visitor:{ExportNamedDeclaration(e){var t;const{node:r,scope:n}=e,{specifiers:i}=r,o=s.types.isExportDefaultSpecifier(i[0])?1:0;if(!s.types.isExportNamespaceSpecifier(i[o]))return;const a=[];1===o&&a.push(s.types.exportNamedDeclaration(null,[i.shift()],r.source));const l=i.shift(),{exported:p}=l,c=n.generateUidIdentifier(null!=(t=p.name)?t:p.value);a.push(s.types.importDeclaration([s.types.importNamespaceSpecifier(c)],s.types.cloneNode(r.source)),s.types.exportNamedDeclaration(null,[s.types.exportSpecifier(s.types.cloneNode(c),p)])),r.specifiers.length>=1&&a.push(r);const[u]=e.replaceWithMultiple(a);e.scope.registerDeclaration(u)}}}))},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-modules-commonjs/lib/dynamic-import.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformDynamicImport=function(e,t,r){const n=t?requireNoInterop:requireInterop;e.replaceWith((0,s.buildDynamicImport)(e.node,!0,!1,e=>n(e,r)))};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-module-transforms/lib/index.js");const requireNoInterop=e=>n.template.expression.ast`require(${e})`,requireInterop=(e,t)=>n.types.callExpression(t.addHelper("interopRequireWildcard"),[requireNoInterop(e)])},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-modules-commonjs/lib/hooks.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineCommonJSHook=function(e,t){let n=e.get(r);n||e.set(r,n=[]);n.push(t)},t.makeInvokers=function(e){const t=e.get(r);return{getWrapperPayload:(...e)=>findMap(t,t=>null==t.getWrapperPayload?void 0:t.getWrapperPayload(...e)),wrapReference:(...e)=>findMap(t,t=>null==t.wrapReference?void 0:t.wrapReference(...e)),buildRequireWrapper:(...e)=>findMap(t,t=>null==t.buildRequireWrapper?void 0:t.buildRequireWrapper(...e))}};const r="@babel/plugin-transform-modules-commonjs/customWrapperPlugin";function findMap(e,t){if(e)for(const r of e){const e=t(r);if(null!=e)return e}}},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,Object.defineProperty(t,"defineCommonJSHook",{enumerable:!0,get:function(){return l.defineCommonJSHook}});var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-plugin-utils/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-module-transforms/lib/index.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/index.js"),o=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-modules-commonjs/lib/dynamic-import.js"),a=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-modules-commonjs/lib/lazy.js"),l=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-modules-commonjs/lib/hooks.js");t.default=(0,n.declare)((e,t)=>{var r,n,p;e.assertVersion(7);const{strictNamespace:c=!1,mjsStrictNamespace:u=c,allowTopLevelThis:d,strict:h,strictMode:m,noInterop:f,importInterop:y,lazy:b=!1,allowCommonJSExports:g=!0,loose:x=!1}=t,v=null!=(r=e.assumption("constantReexports"))?r:x,E=null!=(n=e.assumption("enumerableModuleMeta"))?n:x,T=null!=(p=e.assumption("noIncompleteNsImportDetection"))&&p;if(!("boolean"==typeof b||"function"==typeof b||Array.isArray(b)&&b.every(e=>"string"==typeof e)))throw new Error(".lazy must be a boolean, array of strings, or a function");if("boolean"!=typeof c)throw new Error(".strictNamespace must be a boolean, or undefined");if("boolean"!=typeof u)throw new Error(".mjsStrictNamespace must be a boolean, or undefined");const getAssertion=e=>i.template.expression.ast`- (function(){- throw new Error(- "The CommonJS '" + "${e}" + "' variable is not available in ES6 modules." +- "Consider setting setting sourceType:script or sourceType:unambiguous in your " +- "Babel config for this file.");- })()- `,S={ReferencedIdentifier(e){const t=e.node.name;if("module"!==t&&"exports"!==t)return;const r=e.scope.getBinding(t);this.scope.getBinding(t)!==r||e.parentPath.isObjectProperty({value:e.node})&&e.parentPath.parentPath.isObjectPattern()||e.parentPath.isAssignmentExpression({left:e.node})||e.isAssignmentExpression({left:e.node})||e.replaceWith(getAssertion(t))},UpdateExpression(e){const t=e.get("argument");if(!t.isIdentifier())return;const r=t.node.name;if("module"!==r&&"exports"!==r)return;const n=e.scope.getBinding(r);this.scope.getBinding(r)===n&&e.replaceWith(i.types.assignmentExpression(e.node.operator[0]+"=",t.node,getAssertion(r)))},AssignmentExpression(e){const t=e.get("left");if(t.isIdentifier()){const r=t.node.name;if("module"!==r&&"exports"!==r)return;const n=e.scope.getBinding(r);if(this.scope.getBinding(r)!==n)return;const s=e.get("right");s.replaceWith(i.types.sequenceExpression([s.node,getAssertion(r)]))}else if(t.isPattern()){const r=t.getOuterBindingIdentifiers(),n=Object.keys(r).find(t=>("module"===t||"exports"===t)&&this.scope.getBinding(t)===e.scope.getBinding(t));if(n){const t=e.get("right");t.replaceWith(i.types.sequenceExpression([t.node,getAssertion(n)]))}}}};return{name:"transform-modules-commonjs",pre(){this.file.set("@babel/plugin-transform-modules-*","commonjs"),b&&(0,l.defineCommonJSHook)(this.file,(0,a.lazyImportsHook)(b))},visitor:{["CallExpression"+(e.types.importExpression?"|ImportExpression":"")](e){if(!this.file.has("@babel/plugin-proposal-dynamic-import"))return;if(e.isCallExpression()&&!i.types.isImport(e.node.callee))return;let{scope:t}=e;do{t.rename("require")}while(t=t.parent);(0,o.transformDynamicImport)(e,f,this.file)},Program:{exit(e,r){if(!(0,s.isModule)(e))return;e.scope.rename("exports"),e.scope.rename("module"),e.scope.rename("require"),e.scope.rename("__filename"),e.scope.rename("__dirname"),g||e.traverse(S,{scope:e.scope});let n=(0,s.getModuleName)(this.file.opts,t);n&&(n=i.types.stringLiteral(n));const o=(0,l.makeInvokers)(this.file),{meta:a,headers:p}=(0,s.rewriteModuleStatementsAndPrepareHeader)(e,{exportName:"exports",constantReexports:v,enumerableModuleMeta:E,strict:h,strictMode:m,allowTopLevelThis:d,noInterop:f,importInterop:y,wrapReference:o.wrapReference,getWrapperPayload:o.getWrapperPayload,esNamespaceOnly:"string"==typeof r.filename&&r.filename.endsWith(".mjs")?u:c,noIncompleteNsImportDetection:T,filename:this.file.opts.filename});for(const[t,r]of a.source){const n=i.types.callExpression(i.types.identifier("require"),[i.types.stringLiteral(t)]);let l;if((0,s.isSideEffectImport)(r)){if(b&&"function"===r.wrap)throw new Error("Assertion failure");l=i.types.expressionStatement(n)}else{const t=(0,s.wrapInterop)(e,n,r.interop)||n;if(r.wrap){const e=o.buildRequireWrapper(r.name,t,r.wrap,r.referenced);if(!1===e)continue;l=e}null!=l||(l=i.template.statement.ast`- var ${r.name} = ${t};- `)}l.loc=r.loc,p.push(l),p.push(...(0,s.buildNamespaceInitStatements)(a,r,v,o.wrapReference))}(0,s.ensureStatementsHoisted)(p),e.unshiftContainer("body",p),e.get("body").forEach(e=>{p.includes(e.node)&&e.isVariableDeclaration()&&e.scope.registerDeclaration(e)})}}}}})},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-modules-commonjs/lib/lazy.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lazyImportsHook=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-module-transforms/lib/index.js");t.lazyImportsHook=e=>({name:"@babel/plugin-transform-modules-commonjs/lazy",version:"7.28.6",getWrapperPayload:(t,r)=>(0,s.isSideEffectImport)(r)||r.reexportAll?null:!0===e?t.includes(".")?null:"lazy/function":Array.isArray(e)?e.includes(t)?"lazy/function":null:"function"==typeof e?e(t)?"lazy/function":null:void 0,buildRequireWrapper(e,t,r,s){if("lazy/function"===r)return!!s&&n.template.statement.ast`- function ${e}() {- const data = ${t};- ${e} = function(){ return data; };- return data;- }- `},wrapReference(e,t){if("lazy/function"===t)return n.types.callExpression(e,[])}})},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-react-jsx/lib/create-plugin.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({name:e,development:t}){return(0,s.declare)((r,s)=>{const{pure:h,throwIfNamespace:m=!0,filter:f,runtime:y=(t?"automatic":"classic"),importSource:b=l.importSource,pragma:g=l.pragma,pragmaFrag:x=l.pragmaFrag}=s;var{useSpread:v=!1,useBuiltIns:E=!1}=s;if("classic"===y){if("boolean"!=typeof v)throw new Error("transform-react-jsx currently only accepts a boolean option for useSpread (defaults to false)");if("boolean"!=typeof E)throw new Error("transform-react-jsx currently only accepts a boolean option for useBuiltIns (defaults to false)");if(v&&E)throw new Error("transform-react-jsx currently only accepts useBuiltIns or useSpread but not both")}let T=null;return{name:e,inherits:n.default,visitor:{JSXNamespacedName(e){if(m)throw e.buildCodeFrameError("Namespace tags are not supported by default. React's JSX doesn't support namespace tags. You can set `throwIfNamespace: false` to bypass this warning.")},JSXSpreadChild(e){throw e.buildCodeFrameError("Spread children are not supported in React.")},Program:{enter(e,r){const{file:n}=r;let a=y,h=b,m=g,f=x,v=!!s.importSource,E=!!s.pragma,T=!!s.pragmaFrag;if(n.ast.comments)for(const S of n.ast.comments){const P=p.exec(S.value);P&&(h=P[1],v=!0);const _=c.exec(S.value);_&&(a=_[1]);const A=u.exec(S.value);A&&(m=A[1],E=!0);const C=d.exec(S.value);C&&(f=C[1],T=!0)}if(set(r,"runtime",a),"classic"===a){if(v)throw e.buildCodeFrameError("importSource cannot be set when runtime is classic.");const w=toMemberExpression(m),I=toMemberExpression(f);set(r,"id/createElement",()=>i.types.cloneNode(w)),set(r,"id/fragment",()=>i.types.cloneNode(I)),set(r,"defaultPure",m===l.pragma)}else{if("automatic"!==a)throw e.buildCodeFrameError('Runtime must be either "classic" or "automatic".');{if(E||T)throw e.buildCodeFrameError("pragma and pragmaFrag cannot be set when runtime is automatic.");const define=(n,s)=>set(r,n,function(e,r,n,s){return()=>{const a=function(e,r){switch(r){case"Fragment":return`${e}/${t?"jsx-dev-runtime":"jsx-runtime"}`;case"jsxDEV":return`${e}/jsx-dev-runtime`;case"jsx":case"jsxs":return`${e}/jsx-runtime`;case"createElement":return e}}(s,n);if((0,o.isModule)(r)){let t=get(e,`imports/${n}`);return t?i.types.cloneNode(t):(t=(0,o.addNamed)(r,n,a,{importedInterop:"uncompiled",importPosition:"after"}),set(e,`imports/${n}`,t),t)}{let t=get(e,`requires/${a}`);return t?t=i.types.cloneNode(t):(t=(0,o.addNamespace)(r,a,{importedInterop:"uncompiled"}),set(e,`requires/${a}`,t)),i.types.memberExpression(t,i.types.identifier(n))}}}(r,e,s,h));define("id/jsx",t?"jsxDEV":"jsx"),define("id/jsxs",t?"jsxDEV":"jsxs"),define("id/createElement","createElement"),define("id/fragment","Fragment"),set(r,"defaultPure",h===l.importSource)}}if(t){function isDerivedClass(e){return null!==e.superClass}function isThisAllowed(e){let t=e.length-1;do{const{node:r}=e[t];if(i.types.isFunctionParent(r)&&!i.types.isArrowFunctionExpression(r))return!i.types.isMethod(r)||("constructor"!==r.kind||!isDerivedClass(e[t-2].node));if(i.types.isTSModuleBlock(r))return!1}while(t-- >0);return!0}let D;function makeSource(t){const r=t.loc;return r?(D||(D=e.scope.generateUidIdentifier("_jsxFileName")),makeTrace(i.types.cloneNode(D),r.start.line,r.start.column)):e.scope.buildUndefinedNode()}function makeTrace(e,t,r){const n=null!=t?i.types.numericLiteral(t):i.types.nullLiteral(),s=null!=r?i.types.numericLiteral(r+1):i.types.nullLiteral();return i.template.expression.ast`{- fileName: ${e},- lineNumber: ${n},- columnNumber: ${s},- }`}if(i.types.traverse(e.node,{enter(e,t){if(!i.types.isJSXOpeningElement(e))return;const r=e.attributes;isThisAllowed(t)&&r.push(i.types.jsxAttribute(i.types.jsxIdentifier("__self"),i.types.jsxExpressionContainer(i.types.thisExpression()))),r.push(i.types.jsxAttribute(i.types.jsxIdentifier("__source"),i.types.jsxExpressionContainer(makeSource(e))))}}),D){const{filename:k=""}=r;e.scope.push({id:D,init:i.types.stringLiteral(k)})}}}},JSXFragment:{exit(e,r){let n;n="classic"===get(r,"runtime")?function(e,t){if(f&&!f(e.node,t))return;return call(t,"createElement",[get(t,"id/fragment")(),i.types.nullLiteral(),...i.types.react.buildChildren(e.node)])}(e,r):function(e,r){const n=[get(r,"id/fragment")()],s=i.types.react.buildChildren(e.node);n.push(i.types.objectExpression(s.length>0?[buildChildrenProperty(s)]:[])),t&&n.push(e.scope.buildUndefinedNode(),i.types.booleanLiteral(s.length>1));return call(r,s.length>1?"jsxs":"jsx",n)}(e,r),e.replaceWith(i.types.inherits(n,e.node))}},JSXElement:{exit(e,r){let n;n="classic"===get(r,"runtime")||function(e){const t=e.get("openingElement"),r=t.node.attributes;let n=!1;for(let e=0;e<r.length;e++){const t=r[e];if(n&&i.types.isJSXAttribute(t)&&"key"===t.name.name)return!0;i.types.isJSXSpreadAttribute(t)&&(n=!0)}return!1}(e)?function(e,t){const r=e.get("openingElement");return call(t,"createElement",[getTag(r),buildCreateElementOpeningElementAttributes(t,e,r.get("attributes")),...i.types.react.buildChildren(e.node)])}(e,r):function(e,r){const n=e.get("openingElement"),s=[getTag(n)],o=[],a=Object.create(null);for(const t of n.get("attributes"))if(t.isJSXAttribute()&&i.types.isJSXIdentifier(t.node.name)){const{name:r}=t.node.name;switch(r){case"__source":case"__self":if(a[r])throw sourceSelfError(e,r);case"key":{const e=convertAttributeValue(t.node.value);if(null===e)throw t.buildCodeFrameError('Please provide an explicit key value. Using "key" as a shorthand for "key={true}" is not allowed.');a[r]=e;break}default:o.push(t)}}else o.push(t);const l=i.types.react.buildChildren(e.node);let p;o.length||l.length?(p=function(e,t){processComments(e);const r=e.reduce(accumulateAttribute,[]);(null==t?void 0:t.length)>0&&r.push(buildChildrenProperty(t));return i.types.objectExpression(r)}(o,l),T&&i.types.inheritsComments(p,T)):p=i.types.objectExpression([]);if(s.push(p),t){var c;s.push(null!=(c=a.key)?c:e.scope.buildUndefinedNode(),i.types.booleanLiteral(l.length>1)),a.__source?(s.push(a.__source),a.__self&&s.push(a.__self)):a.__self&&s.push(e.scope.buildUndefinedNode(),a.__self)}else void 0!==a.key&&s.push(a.key);return call(r,l.length>1?"jsxs":"jsx",s)}(e,r),e.replaceWith(i.types.inherits(n,e.node))}},JSXAttribute(e){i.types.isJSXElement(e.node.value)&&(e.node.value=i.types.jsxExpressionContainer(e.node.value))}}};function call(e,t,r){const n=i.types.callExpression(get(e,`id/${t}`)(),r);return(null!=h?h:get(e,"defaultPure"))&&(0,a.default)(n),n}function convertJSXIdentifier(e,t){return i.types.isJSXIdentifier(e)?"this"===e.name&&i.types.isReferenced(e,t)?i.types.thisExpression():i.types.isValidIdentifier(e.name,!1)?(e.type="Identifier",e):i.types.stringLiteral(e.name):i.types.isJSXMemberExpression(e)?i.types.memberExpression(convertJSXIdentifier(e.object,e),convertJSXIdentifier(e.property,e)):i.types.isJSXNamespacedName(e)?i.types.stringLiteral(`${e.namespace.name}:${e.name.name}`):e}function convertAttributeValue(e){return i.types.isJSXExpressionContainer(e)?e.expression:e}function processComments(e){if(T=null,e.length&&e[0].isJSXSpreadAttribute()){const t=e[0].node.argument;(t.leadingComments||t.trailingComments)&&(T=i.types.cloneNode(t))}}function accumulateAttribute(e,t){if(i.types.isJSXSpreadAttribute(t.node)){const r=t.node.argument;return i.types.isObjectExpression(r)&&!r.properties.some(e=>i.types.isObjectProperty(e,{computed:!1,shorthand:!1})&&(i.types.isIdentifier(e.key,{name:"__proto__"})||i.types.isStringLiteral(e.key,{value:"__proto__"})))?e.push(...r.properties):e.push(i.types.spreadElement(r)),e}const r=convertAttributeValue("key"!==t.node.name.name?t.node.value||i.types.booleanLiteral(!0):t.node.value);if("key"===t.node.name.name&&null===r)throw t.buildCodeFrameError('Please provide an explicit key value. Using "key" as a shorthand for "key={true}" is not allowed.');var n;i.types.isStringLiteral(r)&&!i.types.isJSXExpressionContainer(t.node.value)&&(r.value=r.value.replace(/\n\s+/g," "),null==(n=r.extra)||delete n.raw);return i.types.isJSXNamespacedName(t.node.name)?t.node.name=i.types.stringLiteral(t.node.name.namespace.name+":"+t.node.name.name.name):i.types.isValidIdentifier(t.node.name.name,!1)?t.node.name.type="Identifier":t.node.name=i.types.stringLiteral(t.node.name.name),e.push(i.types.inherits(i.types.objectProperty(t.node.name,r),t.node)),e}function buildChildrenProperty(e){let t;if(1===e.length)t=e[0];else{if(!(e.length>1))return;t=i.types.arrayExpression(e)}return i.types.objectProperty(i.types.identifier("children"),t)}function getTag(e){const t=convertJSXIdentifier(e.node.name,e.node);let r;return i.types.isIdentifier(t)?r=t.name:i.types.isStringLiteral(t)&&(r=t.value),i.types.react.isCompatTag(r)?i.types.stringLiteral(r):t}function buildCreateElementOpeningElementAttributes(e,t,r){const n=get(e,"runtime");if("automatic"!==n){const t=[];processComments(r);const n=r.reduce(accumulateAttribute,[]);if(v)n.length&&t.push(i.types.objectExpression(n));else{let e=0;n.forEach((r,s)=>{i.types.isSpreadElement(r)&&(s>e&&t.push(i.types.objectExpression(n.slice(e,s))),t.push(r.argument),e=s+1)}),n.length>e&&t.push(i.types.objectExpression(n.slice(e)))}if(!t.length)return i.types.nullLiteral();if(T&&i.types.inheritsComments(t[0],T),!(1!==t.length||i.types.isSpreadElement(n[0])&&i.types.isObjectExpression(n[0].argument)))return t[0];i.types.isObjectExpression(t[0])||t.unshift(i.types.objectExpression([]));const s=E?i.types.memberExpression(i.types.identifier("Object"),i.types.identifier("assign")):e.addHelper("extends");return i.types.callExpression(s,t)}const s=[],o=Object.create(null);processComments(r);for(const e of r){const{node:r}=e,a=i.types.isJSXAttribute(r)&&i.types.isJSXIdentifier(r.name)&&r.name.name;if("automatic"===n&&("__source"===a||"__self"===a)){if(o[a])throw sourceSelfError(t,a);o[a]=!0}accumulateAttribute(s,e)}const a=1===s.length&&i.types.isSpreadElement(s[0])&&!i.types.isObjectExpression(s[0].argument)?s[0].argument:s.length>0?i.types.objectExpression(s):i.types.nullLiteral();return T&&i.types.inheritsComments(a,T),a}})};var n=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-syntax-jsx/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-plugin-utils/lib/index.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/index.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-module-imports/lib/index.js"),a=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-annotate-as-pure/lib/index.js");const l={importSource:"react",runtime:"automatic",pragma:"React.createElement",pragmaFrag:"React.Fragment"},p=/^\s*(?:\*\s*)?@jsxImportSource\s+(\S+)\s*$/m,c=/^\s*(?:\*\s*)?@jsxRuntime\s+(\S+)\s*$/m,u=/^\s*(?:\*\s*)?@jsx\s+(\S+)\s*$/m,d=/^\s*(?:\*\s*)?@jsxFrag\s+(\S+)\s*$/m,get=(e,t)=>e.get(`@babel/plugin-react-jsx/${t}`),set=(e,t,r)=>e.set(`@babel/plugin-react-jsx/${t}`,r);function toMemberExpression(e){return e.split(".").map(e=>i.types.identifier(e)).reduce((e,t)=>i.types.memberExpression(e,t))}function sourceSelfError(e,t){const r=`transform-react-jsx-${t.slice(2)}`;return e.buildCodeFrameError(`Duplicate ${t} prop found. You are most likely using the deprecated ${r} Babel plugin. Both __source and __self are automatically set when using the automatic runtime. Please remove transform-react-jsx-source and transform-react-jsx-self from your Babel config.`)}},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-react-jsx/lib/index.js"(e,t,r){"use strict";t.A=void 0;var n=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-react-jsx/lib/create-plugin.js");t.A=(0,n.default)({name:"transform-react-jsx",development:!1})},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-typescript/lib/const-enum.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EXPORTED_CONST_ENUMS_IN_NAMESPACE=void 0,t.default=function(e,t){const{name:r}=e.node.id,i=e.parentPath.isExportNamedDeclaration();let o=i;!o&&t.isProgram(e.parent)&&(o=e.parent.body.some(e=>t.isExportNamedDeclaration(e)&&"type"!==e.exportKind&&!e.source&&e.specifiers.some(e=>t.isExportSpecifier(e)&&"type"!==e.exportKind&&e.local.name===r)));const{enumValues:a}=(0,n.translateEnumValues)(e,t);if(o||s.has(e.node)){const n=t.objectExpression(a.map(([e,r])=>t.objectProperty(t.isValidIdentifier(e)?t.identifier(e):t.stringLiteral(e),r)));return void(e.scope.hasOwnBinding(r)?(i?e.parentPath:e).replaceWith(t.expressionStatement(t.callExpression(t.memberExpression(t.identifier("Object"),t.identifier("assign")),[e.node.id,n]))):(e.replaceWith(t.variableDeclaration("var",[t.variableDeclarator(e.node.id,n)])),e.scope.registerDeclaration(e)))}const l=new Map(a);e.scope.path.traverse({Scope(e){e.scope.hasOwnBinding(r)&&e.skip()},MemberExpression(e){if(!t.isIdentifier(e.node.object,{name:r}))return;let n;if(e.node.computed){if(!t.isStringLiteral(e.node.property))return;n=e.node.property.value}else{if(!t.isIdentifier(e.node.property))return;n=e.node.property.name}l.has(n)&&e.replaceWith(t.cloneNode(l.get(n)))}}),e.remove()};var n=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-typescript/lib/enum.js");const s=t.EXPORTED_CONST_ENUMS_IN_NAMESPACE=new WeakSet},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-typescript/lib/enum.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const{node:r,parentPath:n}=e;if(r.declare)return void e.remove();const s=r.id.name,{fill:o,data:p,isPure:c}=function(e,t,r){const{enumValues:n,data:s,isPure:i}=translateEnumValues(e,t),o=e.get("members"),a=[];for(let e=0;e<o.length;e++){const[s,i]=n[e];a.push(t.inheritsComments(buildEnumMember(isSyntacticallyString(i),{ENUM:t.cloneNode(r),NAME:s,VALUE:i}),o[e].node))}return{fill:{ID:t.cloneNode(r),ASSIGNMENTS:a},data:s,isPure:i}}(e,t,r.id);switch(n.type){case"BlockStatement":case"ExportNamedDeclaration":case"Program":{const u=t.isProgram(e.parent),d=function seen(e){if(e.isExportDeclaration())return seen(e.parentPath);return!!e.getData(s)||(e.setData(s,!0),!1)}(n);let h=t.objectExpression([]);(d||u)&&(h=t.logicalExpression("||",t.cloneNode(o.ID),h));const m=l(Object.assign({},o,{INIT:h}));if(c&&(0,i.default)(m),d){(n.isExportDeclaration()?n:e).replaceWith(t.expressionStatement(t.assignmentExpression("=",t.cloneNode(r.id),m)))}else e.scope.registerDeclaration(e.replaceWith(t.variableDeclaration(u?"var":"let",[t.variableDeclarator(r.id,m)]))[0]);a.set(e.scope.getBindingIdentifier(s),p);break}default:throw new Error(`Unexpected enum parent '${e.parent.type}`)}},t.isSyntacticallyString=isSyntacticallyString,t.translateEnumValues=translateEnumValues;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/index.js"),s=r("assert"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-annotate-as-pure/lib/index.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-skip-transparent-expression-wrappers/lib/index.js");const a=new WeakMap,l=n.template.expression("\n (function (ID) {\n ASSIGNMENTS;\n return ID;\n })(INIT)\n ");const p=n.template.statement('\n ENUM["NAME"] = VALUE;\n'),c=n.template.statement('\n ENUM[ENUM["NAME"] = VALUE] = "NAME";\n'),buildEnumMember=(e,t)=>(e?p:c)(t);function isSyntacticallyString(e){switch((e=(0,o.skipTransparentExprWrapperNodes)(e)).type){case"BinaryExpression":{const t=e.left,r=e.right;return"+"===e.operator&&(isSyntacticallyString(t)||isSyntacticallyString(r))}case"TemplateLiteral":case"StringLiteral":return!0}return!1}function ReferencedIdentifier(e,t){const{seen:r,path:n,t:s}=t,i=e.node.name;if(r.has(i)){for(let t=e.scope;t!==n.scope;t=t.parent)if(t.hasOwnBinding(i))return;e.replaceWith(s.memberExpression(s.cloneNode(n.node.id),s.cloneNode(e.node))),e.skip()}}const u={ReferencedIdentifier};function translateEnumValues(e,t){var r;const n=e.scope.getBindingIdentifier(e.node.id.name),i=null!=(r=a.get(n))?r:new Map;let o,l=-1,p=!0;const c=e.get("members").map(r=>{const n=r.node,a=t.isIdentifier(n.id)?n.id.name:n.id.value,c=r.get("initializer");let d;if(n.initializer)l=computeConstantValue(c,i),void 0!==l?(i.set(a,l),s("number"==typeof l||"string"==typeof l),d=l===1/0||Number.isNaN(l)?t.identifier(String(l)):l===-1/0?t.unaryExpression("-",t.identifier("Infinity")):t.valueToNode(l)):(p&&(p=c.isPure()),c.isReferencedIdentifier()?ReferencedIdentifier(c,{t,seen:i,path:e}):c.traverse(u,{t,seen:i,path:e}),d=c.node,i.set(a,void 0));else if("number"==typeof l)l+=1,d=t.numericLiteral(l),i.set(a,l);else{if("string"==typeof l)throw e.buildCodeFrameError("Enum member must have initializer.");{const r=t.memberExpression(t.cloneNode(e.node.id),t.stringLiteral(o),!0);d=t.binaryExpression("+",t.numericLiteral(1),r),i.set(a,void 0)}}return o=a,[a,d]});return{isPure:p,data:i,enumValues:c}}function computeConstantValue(e,t,r=new Set){return evaluate(e);function evaluate(e){const n=e.node;switch(n.type){case"MemberExpression":case"Identifier":return evaluateRef(e,t,r);case"StringLiteral":case"NumericLiteral":return n.value;case"UnaryExpression":return function(e){const t=evaluate(e.get("argument"));if(void 0===t)return;switch(e.node.operator){case"+":return t;case"-":return-t;case"~":return~t;default:return}}(e);case"BinaryExpression":return function(e){const t=evaluate(e.get("left"));if(void 0===t)return;const r=evaluate(e.get("right"));if(void 0===r)return;switch(e.node.operator){case"|":return t|r;case"&":return t&r;case">>":return t>>r;case">>>":return t>>>r;case"<<":return t<<r;case"^":return t^r;case"*":return t*r;case"/":return t/r;case"+":return t+r;case"-":return t-r;case"%":return t%r;case"**":return Math.pow(t,r);default:return}}(e);case"ParenthesizedExpression":return evaluate(e.get("expression"));case"TemplateLiteral":{if(1===n.quasis.length)return n.quasis[0].value.cooked;const s=e.get("expressions"),i=n.quasis;let o="";for(let e=0;e<i.length;e++)if(o+=i[e].value.cooked,e+1<i.length){const n=evaluateRef(s[e],t,r);if(void 0===n)return;o+=n}return o}default:return}}function evaluateRef(e,t,r){if(e.isMemberExpression()){const t=e.node,r=t.object,s=t.property;if(!n.types.isIdentifier(r)||(t.computed?!n.types.isStringLiteral(s):!n.types.isIdentifier(s)))return;const i=e.scope.getBindingIdentifier(r.name),o=a.get(i);if(!o)return;return o.get(s.computed?s.value:s.name)}if(e.isIdentifier()){const n=e.node.name;if(["Infinity","NaN"].includes(n))return Number(n);let s=null==t?void 0:t.get(n);if(void 0!==s)return s;if(null!=t&&t.has(n))return;if(r.has(e.node))return;return r.add(e.node),s=computeConstantValue(e.resolve(),t,r),s}}}},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-typescript/lib/global-types.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GLOBAL_TYPES=void 0,t.isGlobalType=function({scope:e},t){return!e.hasBinding(t)&&(!!r.get(e).has(t)||(console.warn(`The exported identifier "${t}" is not declared in Babel's scope tracker\nas a JavaScript value binding, and "@babel/plugin-transform-typescript"\nnever encountered it as a TypeScript type declaration.\nIt will be treated as a JavaScript value.\n\nThis problem is likely caused by another plugin injecting\n"${t}" without registering it in the scope tracker. If you are the author\n of that plugin, please use "scope.registerDeclaration(declarationPath)".`),!1))},t.registerGlobalType=function(e,t){r.get(e).add(t)};const r=t.GLOBAL_TYPES=new WeakMap},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-typescript/lib/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-plugin-utils/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-syntax-typescript/lib/index.js"),i=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-create-class-features-plugin/lib/index.js"),o=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-typescript/lib/const-enum.js"),a=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-typescript/lib/enum.js"),l=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-typescript/lib/global-types.js"),p=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-typescript/lib/namespace.js");function isInType(e){switch(e.parent.type){case"TSTypeReference":case"TSExpressionWithTypeArguments":case"TSExpressionWithTypeArguments":case"TSTypeQuery":return!0;case"TSQualifiedName":return"TSImportEqualsDeclaration"!==e.parentPath.findParent(e=>"TSQualifiedName"!==e.type).type;case"ExportSpecifier":return"type"===e.parent.exportKind||"type"===e.parentPath.parent.exportKind;default:return!1}}const c=new WeakMap,u=new WeakSet;function safeRemove(e){const t=e.getBindingIdentifiers();for(const r of Object.keys(t)){const n=e.scope.getBinding(r);n&&n.identifier===t[r]&&n.scope.removeBinding(r)}e.opts.noScope=!0,e.remove(),e.opts.noScope=!1}function assertCjsTransformEnabled(e,t,r,n,s=""){if("commonjs"!==t.file.get("@babel/plugin-transform-modules-*"))throw e.buildCodeFrameError(`\`${r}\` is only supported when compiling modules to CommonJS.\nPlease consider using \`${n}\`${s}, or add @babel/plugin-transform-modules-commonjs to your Babel config.`)}t.default=(0,n.declare)((e,t)=>{const{types:r,template:n}=e;e.assertVersion(7);const d=/\*?\s*@jsx((?:Frag)?)\s+(\S+)/,{allowNamespaces:h=!0,jsxPragma:m="React.createElement",jsxPragmaFrag:f="React.Fragment",onlyRemoveTypeImports:y=!1,optimizeConstEnums:b=!1}=t;var{allowDeclareFields:g=!1}=t;const x={field(e){const{node:t}=e;if(!g&&t.declare)throw e.buildCodeFrameError("The 'declare' modifier is only allowed when the 'allowDeclareFields' option of @babel/plugin-transform-typescript or @babel/preset-typescript is enabled.");if(t.declare){if(t.value)throw e.buildCodeFrameError("Fields with the 'declare' modifier cannot be initialized here, but only in the constructor");t.decorators||e.remove()}else if(t.definite){if(t.value)throw e.buildCodeFrameError("Definitely assigned fields cannot be initialized here, but only in the constructor");g||t.decorators||r.isClassPrivateProperty(t)||e.remove()}else t.abstract?e.remove():g||t.value||t.decorators||r.isClassPrivateProperty(t)||e.remove();t.accessibility&&(t.accessibility=null),t.abstract&&(t.abstract=null),t.readonly&&(t.readonly=null),t.optional&&(t.optional=null),t.typeAnnotation&&(t.typeAnnotation=null),t.definite&&(t.definite=null),t.declare&&(t.declare=null),t.override&&(t.override=null)},method({node:e}){e.accessibility&&(e.accessibility=null),e.abstract&&(e.abstract=null),e.optional&&(e.optional=null),e.override&&(e.override=null)},constructor(e,t){e.node.accessibility&&(e.node.accessibility=null);const s=[],{scope:o}=e;for(const t of e.get("params")){const e=t.node;if("TSParameterProperty"===e.type){const i=e.parameter;if(u.has(i))continue;let a;if(u.add(i),r.isIdentifier(i))a=i;else{if(!r.isAssignmentPattern(i)||!r.isIdentifier(i.left))throw t.buildCodeFrameError("Parameter properties can not be destructuring patterns.");a=i.left}s.push(n.statement.ast`- this.${r.cloneNode(a)} = ${r.cloneNode(a)}- `),t.replaceWith(t.get("parameter")),o.registerBinding("param",t)}}(0,i.injectInitialization)(t,e,s)}};return{name:"transform-typescript",inherits:s.default,visitor:{Pattern:visitPattern,Identifier:visitPattern,RestElement:visitPattern,Program:{enter(e,t){const{file:r}=t;let n=null,s=null;const i=e.scope;if(l.GLOBAL_TYPES.has(i)||l.GLOBAL_TYPES.set(i,new Set),r.ast.comments)for(const e of r.ast.comments){const t=d.exec(e.value);t&&(t[1]?s=t[2]:n=t[2])}let o=n||m;o&&([o]=o.split("."));let a=s||f;a&&([a]=a.split("."));for(let r of e.get("body")){if(r.isImportDeclaration()){if(c.has(t.file.ast.program)||c.set(t.file.ast.program,!0),"type"===r.node.importKind){for(const e of r.node.specifiers)(0,l.registerGlobalType)(i,e.local.name);r.remove();continue}const n=new Set,s=r.node.specifiers.length,isAllSpecifiersElided=()=>s>0&&s===n.size;for(const e of r.node.specifiers)if("ImportSpecifier"===e.type&&"type"===e.importKind){(0,l.registerGlobalType)(i,e.local.name);const t=r.scope.getBinding(e.local.name);t&&n.add(t.path)}if(y)c.set(e.node,!1);else{if(0===r.node.specifiers.length){c.set(e.node,!1);continue}for(const t of r.node.specifiers){const s=r.scope.getBinding(t.local.name);s&&!n.has(s.path)&&(isImportTypeOnly({binding:s,programPath:e,pragmaImportName:o,pragmaFragImportName:a})?n.add(s.path):c.set(e.node,!1))}}if(isAllSpecifiersElided()&&!y)r.remove();else for(const e of n)e.remove();continue}if(!y&&r.isTSImportEqualsDeclaration()){const{id:t}=r.node,n=r.scope.getBinding(t.name);if(n&&!r.node.isExport&&isImportTypeOnly({binding:n,programPath:e,pragmaImportName:o,pragmaFragImportName:a})){r.remove();continue}}if(r.isExportDeclaration()&&(r=r.get("declaration")),r.isVariableDeclaration({declare:!0}))for(const e of Object.keys(r.getBindingIdentifiers()))(0,l.registerGlobalType)(i,e);else(r.isTSTypeAliasDeclaration()||r.isTSDeclareFunction()&&r.get("id").isIdentifier()||r.isTSInterfaceDeclaration()||r.isClassDeclaration({declare:!0})||r.isTSEnumDeclaration({declare:!0})||r.isTSModuleDeclaration({declare:!0})&&r.get("id").isIdentifier())&&(0,l.registerGlobalType)(i,r.node.id.name)}},exit(e){"module"===e.node.sourceType&&c.get(e.node)&&e.pushContainer("body",r.exportNamedDeclaration())}},ExportNamedDeclaration(e,t){if(c.has(t.file.ast.program)||c.set(t.file.ast.program,!0),"type"!==e.node.exportKind)if(e.node.source&&e.node.specifiers.length>0&&e.node.specifiers.every(e=>"ExportSpecifier"===e.type&&"type"===e.exportKind))e.remove();else if(!e.node.source&&e.node.specifiers.length>0&&e.node.specifiers.every(t=>r.isExportSpecifier(t)&&(0,l.isGlobalType)(e,t.local.name)))e.remove();else{if(r.isTSModuleDeclaration(e.node.declaration)){const t=e.node.declaration;if(!r.isStringLiteral(t.id)){const n=(0,p.getFirstIdentifier)(t.id);if(e.scope.hasOwnBinding(n.name))e.replaceWith(t);else{const[s]=e.replaceWithMultiple([r.exportNamedDeclaration(r.variableDeclaration("let",[r.variableDeclarator(r.cloneNode(n))])),t]);e.scope.registerDeclaration(s)}}}c.set(t.file.ast.program,!1)}else e.remove()},ExportAllDeclaration(e){"type"===e.node.exportKind&&e.remove()},ExportSpecifier(e){(!e.parent.source&&(0,l.isGlobalType)(e,e.node.local.name)||"type"===e.node.exportKind)&&e.remove()},ExportDefaultDeclaration(e,t){c.has(t.file.ast.program)||c.set(t.file.ast.program,!0),r.isIdentifier(e.node.declaration)&&(0,l.isGlobalType)(e,e.node.declaration.name)?e.remove():c.set(t.file.ast.program,!1)},TSDeclareFunction(e){safeRemove(e)},TSDeclareMethod(e){safeRemove(e)},VariableDeclaration(e){e.node.declare&&safeRemove(e)},VariableDeclarator({node:e}){e.definite&&(e.definite=null)},TSIndexSignature(e){e.remove()},ClassDeclaration(e){const{node:t}=e;t.declare&&safeRemove(e)},Class(e){const{node:t}=e;t.typeParameters&&(t.typeParameters=null),t.superTypeParameters&&(t.superTypeParameters=null),t.implements&&(t.implements=null),t.abstract&&(t.abstract=null),e.get("body.body").forEach(t=>{t.isClassMethod()||t.isClassPrivateMethod()?"constructor"===t.node.kind?x.constructor(t,e):x.method(t):(t.isClassProperty()||t.isClassPrivateProperty()||t.isClassAccessorProperty())&&x.field(t)})},Function(e){const{node:t}=e;t.typeParameters&&(t.typeParameters=null),t.returnType&&(t.returnType=null);const n=t.params;n.length>0&&r.isIdentifier(n[0],{name:"this"})&&n.shift()},TSModuleDeclaration(e){(0,p.default)(e,h)},TSInterfaceDeclaration(e){e.remove()},TSTypeAliasDeclaration(e){e.remove()},TSEnumDeclaration(e){b&&e.node.const?(0,o.default)(e,r):(0,a.default)(e,r)},TSImportEqualsDeclaration(e,t){const{id:n,moduleReference:s}=e.node;let i,o;r.isTSExternalModuleReference(s)?(assertCjsTransformEnabled(e,t,`import ${n.name} = require(...);`,`import ${n.name} from '...';`," alongside Typescript's --allowSyntheticDefaultImports option"),i=r.callExpression(r.identifier("require"),[s.expression]),o="const"):(i=entityNameToExpr(s),o="var");const a=r.variableDeclaration(o,[r.variableDeclarator(n,i)]);e.replaceWith(e.node.isExport?r.exportNamedDeclaration(a):a),e.scope.registerDeclaration(e)},TSExportAssignment(e,t){assertCjsTransformEnabled(e,t,"export = <value>;","export default <value>;"),e.replaceWith(n.statement.ast`module.exports = ${e.node.expression}`)},TSTypeAssertion(e){e.replaceWith(e.node.expression)},["TSAsExpression"+(r.tsSatisfiesExpression?"|TSSatisfiesExpression":"")](e){let{node:t}=e;do{t=t.expression}while(r.isTSAsExpression(t)||null!=r.isTSSatisfiesExpression&&r.isTSSatisfiesExpression(t));e.replaceWith(t)},[e.types.tsInstantiationExpression?"TSNonNullExpression|TSInstantiationExpression":"TSNonNullExpression"](e){e.replaceWith(e.node.expression)},CallExpression(e){e.node.typeParameters=null},OptionalCallExpression(e){e.node.typeParameters=null},NewExpression(e){e.node.typeParameters=null},JSXOpeningElement(e){e.node.typeParameters=null},TaggedTemplateExpression(e){e.node.typeParameters=null}}};function entityNameToExpr(e){return r.isTSQualifiedName(e)?r.memberExpression(entityNameToExpr(e.left),e.right):e}function visitPattern({node:e}){e.typeAnnotation&&(e.typeAnnotation=null),r.isIdentifier(e)&&e.optional&&(e.optional=null)}function isImportTypeOnly({binding:e,programPath:t,pragmaImportName:r,pragmaFragImportName:n}){for(const t of e.referencePaths)if(!isInType(t))return!1;if(e.identifier.name!==r&&e.identifier.name!==n)return!0;let s=!1;return t.traverse({"JSXElement|JSXFragment"(e){s=!0,e.stop()}}),!s}})},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-typescript/lib/namespace.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e.node.declare||"StringLiteral"===e.node.id.type)return void e.remove();if(!t)throw e.get("id").buildCodeFrameError("Namespace not marked type-only declare. Non-declarative namespaces are only supported experimentally in Babel. To enable and review caveats see: https://babeljs.io/docs/en/babel-plugin-transform-typescript");const r=getFirstIdentifier(e.node.id).name,n=handleNested(e,e.node);if(null===n){const t=e.findParent(e=>e.isProgram());(0,s.registerGlobalType)(t.scope,r),e.remove()}else e.scope.hasOwnBinding(r)?e.replaceWith(n):e.scope.registerDeclaration(e.replaceWithMultiple([getDeclaration(r),n])[0])},t.getFirstIdentifier=getFirstIdentifier;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-typescript/lib/global-types.js"),i=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-typescript/lib/const-enum.js");function getFirstIdentifier(e){return n.types.isIdentifier(e)?e:getFirstIdentifier(e.left)}function getDeclaration(e){return n.types.variableDeclaration("let",[n.types.variableDeclarator(n.types.identifier(e))])}function getMemberExpression(e,t){return n.types.memberExpression(n.types.identifier(e),n.types.identifier(t))}function handleVariableDeclaration(e,t,r){if("const"!==e.kind)throw r.file.buildCodeFrameError(e,"Namespaces exporting non-const are not supported by Babel. Change to const or see: https://babeljs.io/docs/en/babel-plugin-transform-typescript");const{declarations:s}=e;if(s.every(e=>n.types.isIdentifier(e.id))){for(const e of s)e.init=n.types.assignmentExpression("=",getMemberExpression(t,e.id.name),e.init);return[e]}const i=n.types.getBindingIdentifiers(e),o=[];for(const e in i)o.push(n.types.assignmentExpression("=",getMemberExpression(t,e),n.types.cloneNode(i[e])));return[e,n.types.expressionStatement(n.types.sequenceExpression(o))]}function buildNestedAmbientModuleError(e,t){return e.hub.buildError(t,"Ambient modules cannot be nested in other modules or namespaces.",Error)}function handleNested(e,t,r){const s=new Set,o=t.id,a=e.scope.generateUid(o.name),l=t.body;let p;t.id;p=n.types.isTSModuleBlock(l)?l.body:[n.types.exportNamedDeclaration(l)];let c=!0;for(let t=0;t<p.length;t++){const r=p[t];switch(r.type){case"TSModuleDeclaration":{if(!n.types.isIdentifier(r.id))throw buildNestedAmbientModuleError(e,r);const i=handleNested(e,r);if(null!==i){c=!1;const e=r.id.name;s.has(e)?p[t]=i:(s.add(e),p.splice(t++,1,getDeclaration(e),i))}continue}case"TSEnumDeclaration":case"FunctionDeclaration":case"ClassDeclaration":c=!1,s.add(r.id.name);continue;case"VariableDeclaration":c=!1;for(const e in n.types.getBindingIdentifiers(r))s.add(e);continue;default:c&&(c=n.types.isTypeScript(r));continue;case"ExportNamedDeclaration":}if(!("declare"in r.declaration)||!r.declaration.declare)switch(r.declaration.type){case"TSEnumDeclaration":i.EXPORTED_CONST_ENUMS_IN_NAMESPACE.add(r.declaration);case"FunctionDeclaration":case"ClassDeclaration":{c=!1;const e=r.declaration.id.name;s.add(e),p.splice(t++,1,r.declaration,n.types.expressionStatement(n.types.assignmentExpression("=",getMemberExpression(a,e),n.types.identifier(e))));break}case"VariableDeclaration":{c=!1;const n=handleVariableDeclaration(r.declaration,a,e.hub);p.splice(t,n.length,...n),t+=n.length-1;break}case"TSModuleDeclaration":{if(!n.types.isIdentifier(r.declaration.id))throw buildNestedAmbientModuleError(e,r.declaration);const i=handleNested(e,r.declaration,n.types.identifier(a));if(null!==i){c=!1;const e=r.declaration.id.name;s.has(e)?p[t]=i:(s.add(e),p.splice(t++,1,getDeclaration(e),i))}else p.splice(t,1),t--}}}if(c)return null;let u=n.types.objectExpression([]);if(r){const e=n.types.memberExpression(r,o);u=n.template.expression.ast`- ${n.types.cloneNode(e)} ||- (${n.types.cloneNode(e)} = ${u})- `}return n.template.statement.ast`- (function (${n.types.identifier(a)}) {- ${p}- })(${o} || (${n.types.cloneNode(o)} = ${u}));- `}},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/preset-typescript/lib/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-plugin-utils/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-typescript/lib/index.js");r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-syntax-jsx/lib/index.js");var i=r("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-validator-option/lib/index.js");function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var a=_interopDefault(s),l=_interopDefault(i);const p=new o.OptionValidator("@babel/preset-typescript");var c=n.declare(function({types:e,template:t}){function maybeReplace(r,n,s){r&&(e.isStringLiteral(r)?/^\.\.?\//.test(r.value)&&(r.value=r.value.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+)?)\.([cm]?)ts$/i,function(e,t,r,n,s){return t?".js":!r||n&&s?r+n+"."+s.toLowerCase()+"js":e})):s.availableHelper("tsRewriteRelativeImportExtensions")?n.replaceWith(e.callExpression(s.addHelper("tsRewriteRelativeImportExtensions"),[r])):n.replaceWith(t.expression.ast`(${r} + "").replace(/([\\/].*\.[mc]?)tsx?$/, "$1js")`))}return{name:"preset-typescript/plugin-rewrite-ts-imports",visitor:{"ImportDeclaration|ExportAllDeclaration|ExportNamedDeclaration"(t,r){const n=t.node;"value"===(e.isImportDeclaration(n)?n.importKind:n.exportKind)&&maybeReplace(n.source,t.get("source"),r)},CallExpression(t,r){e.isImport(t.node.callee)&&maybeReplace(t.node.arguments[0],t.get("arguments.0"),r)},ImportExpression(e,t){maybeReplace(e.node.source,e.get("source"),t)}}}}),u=n.declarePreset((e,t)=>{e.assertVersion(7);const{allExtensions:r,ignoreExtensions:n,allowNamespaces:s,disallowAmbiguousJSXLike:i,isTSX:o,jsxPragma:u,jsxPragmaFrag:d,onlyRemoveTypeImports:h,optimizeConstEnums:m,rewriteImportExtensions:f}=function(e={}){let{allowNamespaces:t=!0,jsxPragma:r,onlyRemoveTypeImports:n}=e;const s="ignoreExtensions",i="disallowAmbiguousJSXLike",o="jsxPragmaFrag",a="optimizeConstEnums",l="rewriteImportExtensions",c="allExtensions",u="isTSX",d=p.validateStringOption(o,e.jsxPragmaFrag,"React.Fragment");var h=p.validateBooleanOption(c,e.allExtensions,!1),m=p.validateBooleanOption(u,e.isTSX,!1);m&&p.invariant(h,"isTSX:true requires allExtensions:true");const f=p.validateBooleanOption(s,e.ignoreExtensions,!1),y=p.validateBooleanOption(i,e.disallowAmbiguousJSXLike,!1);y&&p.invariant(h,"disallowAmbiguousJSXLike:true requires allExtensions:true");const b={ignoreExtensions:f,allowNamespaces:t,disallowAmbiguousJSXLike:y,jsxPragma:r,jsxPragmaFrag:d,onlyRemoveTypeImports:n,optimizeConstEnums:p.validateBooleanOption(a,e.optimizeConstEnums,!1),rewriteImportExtensions:p.validateBooleanOption(l,e.rewriteImportExtensions,!1)};return b.allExtensions=h,b.isTSX=m,b}(t),pluginOptions=e=>({allowDeclareFields:t.allowDeclareFields,allowNamespaces:s,disallowAmbiguousJSXLike:e,jsxPragma:u,jsxPragmaFrag:d,onlyRemoveTypeImports:h,optimizeConstEnums:m}),getPlugins=(e,t)=>[[a.default,Object.assign({isTSX:e},pluginOptions(t))]];return{plugins:f?[c]:[],overrides:r||n?[{plugins:getPlugins(o,i)}]:[{test:/\.ts$/,plugins:getPlugins(!1,!1)},{test:/\.mts$/,sourceType:"module",plugins:getPlugins(!1,!0)},{test:/\.cts$/,sourceType:"unambiguous",plugins:[[l.default,{allowTopLevelThis:!0}],[a.default,pluginOptions(!0)]]},{test:/\.tsx$/,plugins:getPlugins(!0,!1)}]}});t.default=u},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/template/lib/builder.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function createTemplateBuilder(e,t){const r=new WeakMap,a=new WeakMap,l=t||(0,n.validate)(null);return Object.assign((t,...o)=>{if("string"==typeof t){if(o.length>1)throw new Error("Unexpected extra params.");return extendedTrace((0,s.default)(e,t,(0,n.merge)(l,(0,n.validate)(o[0]))))}if(Array.isArray(t)){let n=r.get(t);return n||(n=(0,i.default)(e,t,l),r.set(t,n)),extendedTrace(n(o))}if("object"==typeof t&&t){if(o.length>0)throw new Error("Unexpected extra params.");return createTemplateBuilder(e,(0,n.merge)(l,(0,n.validate)(t)))}throw new Error("Unexpected template param "+typeof t)},{ast:(t,...r)=>{if("string"==typeof t){if(r.length>1)throw new Error("Unexpected extra params.");return(0,s.default)(e,t,(0,n.merge)((0,n.merge)(l,(0,n.validate)(r[0])),o))()}if(Array.isArray(t)){let s=a.get(t);return s||(s=(0,i.default)(e,t,(0,n.merge)(l,o)),a.set(t,s)),s(r)()}throw new Error("Unexpected template param "+typeof t)}})};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/template/lib/options.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/template/lib/string.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/template/lib/literal.js");const o=(0,n.validate)({placeholderPattern:!1});function extendedTrace(e){let t="";try{throw new Error}catch(e){e.stack&&(t=e.stack.split("\n").slice(3).join("\n"))}return r=>{try{return e(r)}catch(e){throw e.stack+=`\n =============\n${t}`,e}}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/template/lib/formatters.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statements=t.statement=t.smart=t.program=t.expression=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js");const{assertExpressionStatement:s}=n;function makeStatementFormatter(e){return{code:e=>`/* @babel/template */;\n${e}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}t.smart=makeStatementFormatter(e=>e.length>1?e:e[0]),t.statements=makeStatementFormatter(e=>e),t.statement=makeStatementFormatter(e=>{if(0===e.length)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]});const i=t.expression={code:e=>`(\n${e}\n)`,validate:e=>{if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(0===i.unwrap(e).start)throw new Error("Parse result included parens.")},unwrap:({program:e})=>{const[t]=e.body;return s(t),t.expression}};t.program={code:e=>e,validate:()=>{},unwrap:e=>e.program}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/template/lib/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statements=t.statement=t.smart=t.program=t.expression=t.default=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/template/lib/formatters.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/template/lib/builder.js");const i=t.smart=(0,s.default)(n.smart),o=t.statement=(0,s.default)(n.statement),a=t.statements=(0,s.default)(n.statements),l=t.expression=(0,s.default)(n.expression),p=t.program=(0,s.default)(n.program);t.default=Object.assign(i.bind(void 0),{smart:i,statement:o,statements:a,expression:l,program:p,ast:i.ast})},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/template/lib/literal.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){const{metadata:o,names:a}=function(e,t,r){let n="BABEL_TPL$";const i=t.join("");do{n="$$"+n}while(i.includes(n));const{names:o,code:a}=function(e,t){const r=[];let n=e[0];for(let s=1;s<e.length;s++){const i=`${t}${s-1}`;r.push(i),n+=i+e[s]}return{names:r,code:n}}(t,n),l=(0,s.default)(e,e.code(a),{parser:r.parser,placeholderWhitelist:new Set(o.concat(r.placeholderWhitelist?Array.from(r.placeholderWhitelist):[])),placeholderPattern:r.placeholderPattern,preserveComments:r.preserveComments,syntacticPlaceholders:r.syntacticPlaceholders});return{metadata:l,names:o}}(e,t,r);return t=>{const r={};return t.forEach((e,t)=>{r[a[t]]=e}),t=>{const s=(0,n.normalizeReplacements)(t);return s&&Object.keys(s).forEach(e=>{if(hasOwnProperty.call(r,e))throw new Error("Unexpected replacement overlap.")}),e.unwrap((0,i.default)(o,s?Object.assign(s,r):r))}}};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/template/lib/options.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/template/lib/parse.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/template/lib/populate.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/template/lib/options.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.merge=function(e,t){const{placeholderWhitelist:r=e.placeholderWhitelist,placeholderPattern:n=e.placeholderPattern,preserveComments:s=e.preserveComments,syntacticPlaceholders:i=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:r,placeholderPattern:n,preserveComments:s,syntacticPlaceholders:i}},t.normalizeReplacements=function(e){if(Array.isArray(e))return e.reduce((e,t,r)=>(e["$"+r]=t,e),{});if("object"==typeof e||null==e)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")},t.validate=function(e){if(null!=e&&"object"!=typeof e)throw new Error("Unknown template options.");const t=e||{},{placeholderWhitelist:n,placeholderPattern:s,preserveComments:i,syntacticPlaceholders:o}=t,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(t,r);if(null!=n&&!(n instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(null!=s&&!(s instanceof RegExp)&&!1!==s)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(null!=i&&"boolean"!=typeof i)throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(null!=o&&"boolean"!=typeof o)throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(!0===o&&(null!=n||null!=s))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:a,placeholderWhitelist:n||void 0,placeholderPattern:null==s?void 0:s,preserveComments:null==i?void 0:i,syntacticPlaceholders:null==o?void 0:o}};const r=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"]},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/template/lib/parse.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){const{placeholderWhitelist:n,placeholderPattern:o,preserveComments:a,syntacticPlaceholders:l}=r,p=function(e,t,r){const n=(t.plugins||[]).slice();!1!==r&&n.push("placeholders");t=Object.assign({allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowYieldOutsideFunction:!0,sourceType:"module"},t,{plugins:n});try{return(0,s.parse)(e,t)}catch(t){const r=t.loc;throw r&&(t.message+="\n"+(0,i.codeFrameColumns)(e,{start:r}),t.code="BABEL_TEMPLATE_PARSE_ERROR"),t}}(t,r.parser,l);f(p,{preserveComments:a}),e.validate(p);const c={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:n,placeholderPattern:o,syntacticPlaceholders:l};return y(p,placeholderVisitorHandler,c),Object.assign({ast:p},c.syntactic.placeholders.length?c.syntactic:c.legacy)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/parser/lib/index.js"),i=r("./stubs/babel-codeframe.mjs");const{isCallExpression:o,isExpressionStatement:a,isFunction:l,isIdentifier:p,isJSXIdentifier:c,isNewExpression:u,isPlaceholder:d,isStatement:h,isStringLiteral:m,removePropertiesDeep:f,traverse:y}=n,b=/^[_$A-Z0-9]+$/;function placeholderVisitorHandler(e,t,r){var n;let s,i=r.syntactic.placeholders.length>0;if(d(e)){if(!1===r.syntacticPlaceholders)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");s=e.name.name,i=!0}else{if(i||r.syntacticPlaceholders)return;if(p(e)||c(e))s=e.name;else{if(!m(e))return;s=e.value}}if(i&&(null!=r.placeholderPattern||null!=r.placeholderWhitelist))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!(i||!1!==r.placeholderPattern&&(r.placeholderPattern||b).test(s)||null!=(n=r.placeholderWhitelist)&&n.has(s)))return;t=t.slice();const{node:f,key:y}=t[t.length-1];let g;m(e)||d(e,{expectedNode:"StringLiteral"})?g="string":u(f)&&"arguments"===y||o(f)&&"arguments"===y||l(f)&&"params"===y?g="param":a(f)&&!d(e)?(g="statement",t=t.slice(0,-1)):g=h(e)&&d(e)?"statement":"other";const{placeholders:x,placeholderNames:v}=i?r.syntactic:r.legacy;x.push({name:s,type:g,resolve:e=>function(e,t){let r=e;for(let e=0;e<t.length-1;e++){const{key:n,index:s}=t[e];r=void 0===s?r[n]:r[n][s]}const{key:n,index:s}=t[t.length-1];return{parent:r,key:n,index:s}}(e,t),isDuplicate:v.has(s)}),v.add(s)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/template/lib/populate.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const r=i(e.ast);t&&(e.placeholders.forEach(e=>{if(!hasOwnProperty.call(t,e.name)){const t=e.name;throw new Error(`Error: No substitution given for "${t}". If this is not meant to be a\n placeholder you may want to consider passing one of the following options to @babel/template:\n - { placeholderPattern: false, placeholderWhitelist: new Set(['${t}'])}\n - { placeholderPattern: /^${t}$/ }`)}}),Object.keys(t).forEach(t=>{if(!e.placeholderNames.has(t))throw new Error(`Unknown substitution "${t}" given`)}));return e.placeholders.slice().reverse().forEach(e=>{try{var n;!function(e,t,r){e.isDuplicate&&(Array.isArray(r)?r=r.map(e=>i(e)):"object"==typeof r&&(r=i(r)));const{parent:n,key:h,index:m}=e.resolve(t);if("string"===e.type){if("string"==typeof r&&(r=u(r)),!r||!c(r))throw new Error("Expected string substitution")}else if("statement"===e.type)void 0===m?r?Array.isArray(r)?r=s(r):"string"==typeof r?r=a(l(r)):p(r)||(r=a(r)):r=o():r&&!Array.isArray(r)&&("string"==typeof r&&(r=l(r)),p(r)||(r=a(r)));else if("param"===e.type){if("string"==typeof r&&(r=l(r)),void 0===m)throw new Error("Assertion failure.")}else if("string"==typeof r&&(r=l(r)),Array.isArray(r))throw new Error("Cannot replace single expression with an array.");function set(e,t,r){const n=e[t];e[t]=r,"Identifier"!==n.type&&"Placeholder"!==n.type||(n.typeAnnotation&&(r.typeAnnotation=n.typeAnnotation),n.optional&&(r.optional=n.optional),n.decorators&&(r.decorators=n.decorators))}if(void 0===m)d(n,h,r),set(n,h,r);else{const t=n[h].slice();"statement"===e.type||"param"===e.type?null==r?t.splice(m,1):Array.isArray(r)?t.splice(m,1,...r):set(t,m,r):set(t,m,r),d(n,h,t),n[h]=t}}(e,r,null!=(n=t&&t[e.name])?n:null)}catch(t){throw t.message=`@babel/template placeholder "${e.name}": ${t.message}`,t}}),r};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js");const{blockStatement:s,cloneNode:i,emptyStatement:o,expressionStatement:a,identifier:l,isStatement:p,isStringLiteral:c,stringLiteral:u,validate:d}=n},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/template/lib/string.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){let o;return t=e.code(t),a=>{const l=(0,n.normalizeReplacements)(a);return o||(o=(0,s.default)(e,t,r)),e.unwrap((0,i.default)(o,l))}};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/template/lib/options.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/template/lib/parse.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/template/lib/populate.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/cache.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clear=function(){clearPath(),clearScope()},t.clearPath=clearPath,t.clearScope=clearScope,t.getCachedPaths=function(e){const{parent:t,parentPath:n}=e;return r.get(t)},t.getOrCreateCachedPaths=function(e,t){let n=r.get(e);n||r.set(e,n=new Map);return n},t.scope=t.path=void 0;let r=t.path=new WeakMap,n=t.scope=new WeakMap;function clearPath(){t.path=r=new WeakMap}function clearScope(){t.scope=n=new WeakMap}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/context.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/context.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/hub.js");const{VISITOR_KEYS:a}=s;t.default=class{constructor(e,t,r,n){this.queue=null,this.priorityQueue=null,this.parentPath=n,this.scope=e,this.state=r,this.opts=t}shouldVisit(e){const t=this.opts;if(t.enter||t.exit)return!0;if(t[e.type])return!0;const r=a[e.type];if(null==r||!r.length)return!1;for(const t of r)if(e[t])return!0;return!1}create(e,t,r,s){const{parentPath:i}=this,a=null==i?"Program"===e.type||"File"===e.type?new o.default:void 0:i.hub;return n.default.get({parentPath:i,parent:e,container:t,key:r,listKey:s,hub:a})}maybeQueue(e,t){this.queue&&(t?this.queue.push(e):this.priorityQueue.push(e))}visitMultiple(e,t,r){if(0===e.length)return!1;const n=[];for(let s=0;s<e.length;s++){const i=e[s];i&&this.shouldVisit(i)&&n.push(this.create(t,e,s,r))}return this.visitQueue(n)}visitSingle(e,t){return!!this.shouldVisit(e[t])&&this.visitQueue([this.create(e,e,t)])}visitQueue(e){this.queue=e,this.priorityQueue=[];const t=new WeakSet;let r=!1,n=0;for(;n<e.length;){const s=e[n];if(n++,i.resync.call(s),0!==s.contexts.length&&s.contexts[s.contexts.length-1]===this||i.pushContext.call(s,this),null===s.key)continue;const{node:o}=s;if(!t.has(o)){if(o&&t.add(o),s.visit()){r=!0;break}if(this.priorityQueue.length&&(r=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,r))break}}for(let t=0;t<n;t++)i.popContext.call(e[t]);return this.queue=null,r}visit(e,t){const r=e[t];return!!r&&(Array.isArray(r)?this.visitMultiple(r,e,t):this.visitSingle(e,t))}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/hub.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(e,t,r=TypeError){return new r(t)}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Hub",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"NodePath",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return l.default}}),t.visitors=t.default=void 0,r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/context.js");var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/visitors.js");t.visitors=n;var s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/cache.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/traverse-node.js"),a=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/index.js"),l=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/scope/index.js"),p=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/hub.js");const{VISITOR_KEYS:c,removeProperties:u,traverseFast:d}=s;function traverse(e,t={},r,s,i,a){if(e){if(!t.noScope&&!r&&"Program"!==e.type&&"File"!==e.type)throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${e.type} node without passing scope and parentPath.`);if(!i&&a)throw new Error("visitSelf can only be used when providing a NodePath.");c[e.type]&&(n.explode(t),(0,o.traverseNode)(e,t,r,s,i,void 0,a))}}t.default=traverse;traverse.visitors=n,traverse.verify=n.verify,traverse.explode=n.explode,traverse.cheap=function(e,t){d(e,t)},traverse.node=function(e,t,r,n,s,i){(0,o.traverseNode)(e,t,r,n,s,i)},traverse.clearNode=function(e,t){u(e,t)},traverse.removeProperties=function(e,t){return d(e,traverse.clearNode,t),e},traverse.hasType=function(e,t,r){return(null==r||!r.includes(e.type))&&(e.type===t||d(e,function(e){return null!=r&&r.includes(e.type)?d.skip:e.type===t?d.stop:void 0}))},traverse.cache=i},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/ancestry.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.find=function(e){let t=this;do{if(e(t))return t}while(t=t.parentPath);return null},t.findParent=function(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null},t.getAncestry=function(){let e=this;const t=[];do{t.push(e)}while(e=e.parentPath);return t},t.getDeepestCommonAncestorFrom=function(e,t){if(!e.length)return this;if(1===e.length)return e[0];let r,n,s=1/0;const i=e.map(e=>{const t=[];do{t.unshift(e)}while((e=e.parentPath)&&e!==this);return t.length<s&&(s=t.length),t}),o=i[0];e:for(let e=0;e<s;e++){const t=o[e];for(const r of i)if(r[e]!==t)break e;r=e,n=t}if(n)return t?t(n,r,i):n;throw new Error("Couldn't find intersection")},t.getEarliestCommonAncestorFrom=function(e){return this.getDeepestCommonAncestorFrom(e,function(e,t,r){let n;const i=s[e.type];for(const e of r){const r=e[t+1];if(!n){n=r;continue}if(r.listKey&&n.listKey===r.listKey&&r.key<n.key){n=r;continue}i.indexOf(n.parentKey)>i.indexOf(r.parentKey)&&(n=r)}return n})},t.getFunctionParent=function(){return this.findParent(e=>e.isFunction())},t.getStatementParent=function(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return e},t.inType=function(...e){let t=this;for(;t;){if(e.includes(t.node.type))return!0;t=t.parentPath}return!1},t.isAncestor=function(e){return e.isDescendant(this)},t.isDescendant=function(e){return!!this.findParent(t=>t===e)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js");const{VISITOR_KEYS:s}=n},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/comments.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addComment=function(e,t,r){s(this.node,e,t,r)},t.addComments=function(e,t){i(this.node,e,t)},t.shareCommentsWithSiblings=function(){if("string"==typeof this.key)return;const e=this.node;if(!e)return;const t=e.trailingComments,r=e.leadingComments;if(!t&&!r)return;const n=this.getSibling(this.key-1),s=this.getSibling(this.key+1),i=Boolean(n.node),o=Boolean(s.node);i&&(r&&n.addComments("trailing",removeIfExisting(r,n.node.trailingComments)),t&&!o&&n.addComments("trailing",t));o&&(t&&s.addComments("leading",removeIfExisting(t,s.node.leadingComments)),r&&!i&&s.addComments("leading",r))};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js");const{addComment:s,addComments:i}=n;function removeIfExisting(e,t){if(null==t||!t.length)return e;const r=new Set(t);return e.filter(e=>!r.has(e))}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/context.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._call=_call,t._forceSetScope=function(){var e;let t,r=this.parentPath;(("key"===this.key||"decorators"===this.listKey)&&r.isMethod()||"discriminant"===this.key&&r.isSwitchStatement())&&(r=r.parentPath);for(;r&&!t;)t=r.scope,r=r.parentPath;this.scope=this.getScope(t),null==(e=this.scope)||e.init()},t._getQueueContexts=function(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath,e);)t=e.contexts;return t},t._resyncKey=_resyncKey,t._resyncList=_resyncList,t._resyncParent=_resyncParent,t._resyncRemoved=function(){null!=this.key&&this.container&&this.container[this.key]===this.node||i._markRemoved.call(this)},t.call=call,t.isDenylisted=isDenylisted,t.popContext=function(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)},t.pushContext=function(e){this.contexts.push(e),this.setContext(e)},t.requeue=function(e=this){if(e.removed)return;const t=this.contexts;for(const r of t)r.maybeQueue(e)},t.requeueComputedKeyAndDecorators=function(){const{context:e,node:t}=this;!o.isPrivate(t)&&t.computed&&e.maybeQueue(this.get("key"));if(t.decorators)for(const t of this.get("decorators"))e.maybeQueue(t)},t.resync=function(){if(this.removed)return;_resyncParent.call(this),_resyncList.call(this),_resyncKey.call(this)},t.setContext=function(e){null!=this.skipKeys&&(this.skipKeys={});this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts);return setScope.call(this),this},t.setKey=setKey,t.setScope=setScope,t.setup=function(e,t,r,n){this.listKey=r,this.container=t,this.parentPath=e||this.parentPath,setKey.call(this,n)},t.skip=function(){this.shouldSkip=!0},t.skipKey=function(e){null==this.skipKeys&&(this.skipKeys={});this.skipKeys[e]=!0},t.stop=function(){this._traverseFlags|=s.SHOULD_SKIP|s.SHOULD_STOP},t.visit=function(){var e,t;if(!this.node)return!1;if(this.isDenylisted())return!1;if(null!=(e=(t=this.opts).shouldSkip)&&e.call(t,this))return!1;const r=this.context;if(this.shouldSkip||call.call(this,"enter"))return this.debug("Skip..."),this.shouldStop;return restoreContext(this,r),this.debug("Recursing into..."),this.shouldStop=(0,n.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),restoreContext(this,r),call.call(this,"exit"),this.shouldStop};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/traverse-node.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/index.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/removal.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js");function call(e){const t=this.opts;return this.debug(e),!(!this.node||!_call.call(this,t[e]))||!!this.node&&_call.call(this,null==(r=t[this.node.type])?void 0:r[e]);var r}function _call(e){if(!e)return!1;for(const t of e){if(!t)continue;const e=this.node;if(!e)return!0;const r=t.call(this.state,this,this.state);if(r&&"object"==typeof r&&"function"==typeof r.then)throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(r)throw new Error(`Unexpected return value from visitor method ${t}`);if(this.node!==e)return!0;if(this._traverseFlags>0)return!0}return!1}function isDenylisted(){var e;const t=null!=(e=this.opts.denylist)?e:this.opts.blacklist;return null==t?void 0:t.includes(this.node.type)}function restoreContext(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts)}function setScope(){var e,t;if(null!=(e=this.opts)&&e.noScope)return;let r,n=this.parentPath;for((("key"===this.key||"decorators"===this.listKey)&&n.isMethod()||"discriminant"===this.key&&n.isSwitchStatement())&&(n=n.parentPath);n&&!r;){var s;if(null!=(s=n.opts)&&s.noScope)return;r=n.scope,n=n.parentPath}this.scope=this.getScope(r),null==(t=this.scope)||t.init()}function _resyncParent(){this.parentPath&&(this.parent=this.parentPath.node)}function _resyncKey(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let e=0;e<this.container.length;e++)if(this.container[e]===this.node)return void setKey.call(this,e)}else for(const e of Object.keys(this.container))if(this.container[e]===this.node)return void setKey.call(this,e);this.key=null}}function _resyncList(){if(!this.parent||!this.inList)return;const e=this.parent[this.listKey];this.container!==e&&(this.container=e||null)}function setKey(e){var t;this.key=e,this.node=this.container[this.key],this.type=null==(t=this.node)?void 0:t.type}t.isBlacklisted=isDenylisted},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/conversion.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrowFunctionToExpression=function({allowInsertArrow:e=!0,allowInsertArrowWithRest:t=e,noNewArrows:r=!(e=>null==(e=arguments[0])?void 0:e.specCompliant)()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let n=this;var s;r||(n=null!=(s=n.ensureFunctionName(!1))?s:n);const{thisBinding:i,fnPath:o}=hoistFunctionEnvironment(n,r,e,t);if(o.ensureBlock(),function(e,t){e.node.type=t}(o,"FunctionExpression"),!r){const e=i?null:o.scope.generateUidIdentifier("arrowCheckId");return e&&o.parentPath.scope.push({id:e,init:T([])}),o.get("body").unshiftContainer("body",h(u(this.hub.addHelper("newArrowCheck"),[I(),m(e?e.name:i)]))),o.replaceWith(u(x(o.node,m("bind")),[e?m(e.name):I()])),o.get("callee.object")}return o},t.ensureBlock=function(){const e=this.get("body"),t=e.node;if(Array.isArray(e))throw new Error("Can't convert array path to a block statement");if(!t)throw new Error("Can't convert node without a body");if(e.isBlockStatement())return t;const r=[];let n,s,i="body";e.isStatement()?(s="body",n=0,r.push(e.node)):(i+=".body.0",this.isFunction()?(n="argument",r.push(P(e.node))):(n="expression",r.push(h(e.node))));this.node.body=c(r);const a=this.get(i);return o.setup.call(e,a,s?a.node[s]:a.node,s,n),this.node},t.ensureFunctionName=function(e){if(this.node.id)return this;const t=L(this.node,this.parent);if(null==t)return this;let{name:r}=t;if(!e&&/[\uD800-\uDFFF]/.test(r))return null;if(r.startsWith("get ")||r.startsWith("set "))return null;r=N(r.replace(/[/ ]/g,"_"));const n=m(r);$(n,t.originalNode);const i={needsRename:!1,name:r},{scope:o}=this,a=o.getOwnBinding(r);a?"param"===a.kind&&(i.needsRename=!0):(o.parent.hasBinding(r)||o.hasGlobal(r))&&this.traverse(H,i);if(!i.needsRename)return this.node.id=n,o.getProgramParent().references[n.name]=!0,this;if(o.hasBinding(n.name)&&!o.hasGlobal(n.name))return o.rename(n.name),this.node.id=n,o.getProgramParent().references[n.name]=!0,this;if(!O(this.node))return null;const l=o.generateUidIdentifier(n.name),p=[];for(let e=0,t=function(e){const t=e.params.findIndex(e=>j(e)||F(e));return-1===t?e.params.length:t}(this.node);e<t;e++)p.push(o.generateUidIdentifier("x"));const c=s.default.expression.ast`- (function (${l}) {- function ${n}(${p}) {- return ${M(l)}.apply(this, arguments);- }-- ${M(n)}.toString = function () {- return ${M(l)}.toString();- }-- return ${M(n)};- })(${D(this.node)})- `;return this.replaceWith(c)[0].get("arguments.0")},t.splitExportDeclaration=function(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const e=this.get("declaration");if(this.isExportDefaultDeclaration()){const t=e.isFunctionDeclaration()||e.isClassDeclaration(),r=e.isFunctionExpression()||e.isClassExpression(),n=e.isScope()?e.scope.parent:e.scope;let s=e.node.id,i=!1;s?r&&n.hasBinding(s.name)&&(i=!0,s=n.generateUidIdentifier(s.name)):(i=!0,s=n.generateUidIdentifier("default"),(t||r)&&(e.node.id=M(s)));const o=t?e.node:B("var",[R(M(s),e.node)]),a=U(null,[V(M(s),m("default"))]);return this.insertAfter(a),this.replaceWith(o),i&&n.registerDeclaration(this),this}if(this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const t=e.getOuterBindingIdentifiers(),r=Object.keys(t).map(e=>V(m(e),m(e))),n=U(null,r);return this.insertAfter(n),this.replaceWith(e.node),this},t.toComputedKey=function(){let e;if(this.isMemberExpression())e=this.node.property;else{if(!this.isProperty()&&!this.isMethod())throw new ReferenceError("todo");e=this.node.key}this.node.computed||f(e)&&(e=C(e.name));return e},t.unwrapFunctionEnvironment=function(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");hoistFunctionEnvironment(this)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/template/lib/index.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/visitors.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/context.js");const{arrowFunctionExpression:a,assignmentExpression:l,binaryExpression:p,blockStatement:c,callExpression:u,conditionalExpression:d,expressionStatement:h,identifier:m,isIdentifier:f,jsxIdentifier:y,logicalExpression:b,LOGICAL_OPERATORS:g,memberExpression:x,metaProperty:v,numericLiteral:E,objectExpression:T,restElement:S,returnStatement:P,sequenceExpression:_,spreadElement:A,stringLiteral:C,super:w,thisExpression:I,toExpression:D,unaryExpression:k,toBindingIdentifierName:N,isFunction:O,isAssignmentPattern:j,isRestElement:F,getFunctionName:L,cloneNode:M,variableDeclaration:B,variableDeclarator:R,exportNamedDeclaration:U,exportSpecifier:V,inherits:$}=n;t.arrowFunctionToShadowed=function(){this.isArrowFunctionExpression()&&this.arrowFunctionToExpression()};const K=(0,i.environmentVisitor)({CallExpression(e,{allSuperCalls:t}){e.get("callee").isSuper()&&t.push(e)}});function hoistFunctionEnvironment(e,t=!0,r=!0,n=!0){let s,i=e.findParent(e=>e.isArrowFunctionExpression()?(null!=s||(s=e),!1):e.isFunction()||e.isProgram()||e.isClassProperty({static:!1})||e.isClassPrivateProperty({static:!1}));const o=i.isClassMethod({kind:"constructor"});if(i.isClassProperty()||i.isClassPrivateProperty())if(s)i=s;else{if(!r)throw e.buildCodeFrameError("Unable to transform arrow inside class property");e.replaceWith(u(a([],D(e.node)),[])),i=e.get("callee"),e=i.get("body")}const{thisPaths:c,argumentsPaths:h,newTargetPaths:f,superProps:T,superCalls:P}=function(e){const t=[],r=[],n=[],s=[],i=[];return e.traverse(q,{thisPaths:t,argumentsPaths:r,newTargetPaths:n,superProps:s,superCalls:i}),{thisPaths:t,argumentsPaths:r,newTargetPaths:n,superProps:s,superCalls:i}}(e);if(o&&P.length>0){if(!r)throw P[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!n)throw P[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");const e=[];i.traverse(K,{allSuperCalls:e});const t=function(e){return getBinding(e,"supercall",()=>{const t=e.scope.generateUidIdentifier("args");return a([S(t)],u(w(),[A(m(t.name))]))})}(i);e.forEach(e=>{const r=m(t);r.loc=e.node.callee.loc,e.get("callee").replaceWith(r)})}if(h.length>0){const e=getBinding(i,"arguments",()=>{const args=()=>m("arguments");return i.scope.path.isProgram()?d(p("===",k("typeof",args()),C("undefined")),i.scope.buildUndefinedNode(),args()):args()});h.forEach(t=>{const r=m(e);r.loc=t.node.loc,t.replaceWith(r)})}if(f.length>0){const e=getBinding(i,"newtarget",()=>v(m("new"),m("target")));f.forEach(t=>{const r=m(e);r.loc=t.node.loc,t.replaceWith(r)})}if(T.length>0){if(!r)throw T[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");T.reduce((e,t)=>e.concat(function(e){if(e.parentPath.isAssignmentExpression()&&"="!==e.parentPath.node.operator){const t=e.parentPath,r=t.node.operator.slice(0,-1),n=t.node.right,s=function(e){return g.includes(e)}(r);if(e.node.computed){const i=e.scope.generateDeclaredUidIdentifier("tmp"),{object:o,property:a}=e.node;t.get("left").replaceWith(x(o,l("=",i,a),!0)),t.get("right").replaceWith(rightExpression(s?"=":r,x(o,m(i.name),!0),n))}else{const i=e.node.object,o=e.node.property;t.get("left").replaceWith(x(i,o)),t.get("right").replaceWith(rightExpression(s?"=":r,x(i,m(o.name)),n))}return s?t.replaceWith(b(r,t.node.left,t.node.right)):t.node.operator="=",[t.get("left"),t.get("right").get("left")]}if(e.parentPath.isUpdateExpression()){const t=e.parentPath,r=e.scope.generateDeclaredUidIdentifier("tmp"),n=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,s=[l("=",r,x(e.node.object,n?l("=",n,e.node.property):e.node.property,e.node.computed)),l("=",x(e.node.object,n?m(n.name):e.node.property,e.node.computed),p(e.parentPath.node.operator[0],m(r.name),E(1)))];e.parentPath.node.prefix||s.push(m(r.name)),t.replaceWith(_(s));return[t.get("expressions.0.right"),t.get("expressions.1.left")]}return[e];function rightExpression(e,t,r){return"="===e?l("=",t,r):p(e,t,r)}}(t)),[]).forEach(e=>{const t=e.node.computed?"":e.get("property").node.name,r=e.parentPath,n=r.isAssignmentExpression({left:e.node}),s=r.isCallExpression({callee:e.node}),o=r.isTaggedTemplateExpression({tag:e.node}),p=function(e,t,r){const n=t?"set":"get";return getBinding(e,`superprop_${n}:${r||""}`,()=>{const n=[];let s;if(r)s=x(w(),m(r));else{const t=e.scope.generateUidIdentifier("prop");n.unshift(t),s=x(w(),m(t.name),!0)}if(t){const t=e.scope.generateUidIdentifier("value");n.push(t),s=l("=",s,m(t.name))}return a(n,s)})}(i,n,t),d=[];if(e.node.computed&&d.push(e.get("property").node),n){const e=r.node.right;d.push(e)}const h=u(m(p),d);s?(r.unshiftContainer("arguments",I()),e.replaceWith(x(h,m("call"))),c.push(r.get("arguments.0"))):n?r.replaceWith(h):o?(e.replaceWith(u(x(h,m("bind"),!1),[I()])),c.push(e.get("arguments.0"))):e.replaceWith(h)})}let N;return(c.length>0||!t)&&(N=function(e,t){return getBinding(e,"this",r=>{if(!t||!hasSuperClass(e))return I();e.traverse(W,{supers:new WeakSet,thisBinding:r})})}(i,o),(t||o&&hasSuperClass(i))&&(c.forEach(e=>{const t=e.isJSX()?y(N):m(N);t.loc=e.node.loc,e.replaceWith(t)}),t||(N=null))),{thisBinding:N,fnPath:e}}function hasSuperClass(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}const W=(0,i.environmentVisitor)({CallExpression(e,{supers:t,thisBinding:r}){e.get("callee").isSuper()&&(t.has(e.node)||(t.add(e.node),e.replaceWithMultiple([e.node,l("=",m(r),m("this"))])))}});function getBinding(e,t,r){const n="binding:"+t;let s=e.getData(n);if(!s){const i=e.scope.generateUidIdentifier(t);s=i.name,e.setData(n,s),e.scope.push({id:i,init:r(s)})}return s}const q=(0,i.environmentVisitor)({ThisExpression(e,{thisPaths:t}){t.push(e)},JSXIdentifier(e,{thisPaths:t}){"this"===e.node.name&&(e.parentPath.isJSXMemberExpression({object:e.node})||e.parentPath.isJSXOpeningElement({name:e.node}))&&t.push(e)},CallExpression(e,{superCalls:t}){e.get("callee").isSuper()&&t.push(e)},MemberExpression(e,{superProps:t}){e.get("object").isSuper()&&t.push(e)},Identifier(e,{argumentsPaths:t}){if(!e.isReferencedIdentifier({name:"arguments"}))return;let r=e.scope;do{if(r.hasOwnBinding("arguments"))return void r.rename("arguments");if(r.path.isFunction()&&!r.path.isArrowFunctionExpression())break}while(r=r.parent);t.push(e)},MetaProperty(e,{newTargetPaths:t}){e.get("meta").isIdentifier({name:"new"})&&e.get("property").isIdentifier({name:"target"})&&t.push(e)}});const H={"ReferencedIdentifier|BindingIdentifier"(e,t){e.node.name===t.name&&(t.needsRename=!0,e.stop())},Scope(e,t){e.scope.hasOwnBinding(t.name)&&e.skip()}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/evaluation.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.evaluate=function(){const e={confident:!0,deoptPath:null,seen:new Map};let t=evaluateCached(this,e);e.confident||(t=void 0);return{confident:e.confident,deopt:e.deoptPath,value:t}},t.evaluateTruthy=function(){const e=this.evaluate();if(e.confident)return!!e.value};const r=["Number","String","Math"],n=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],s=["random"];function isValidObjectCallee(e){return r.includes(e)}function deopt(e,t){t.confident&&(t.deoptPath=e,t.confident=!1)}const i=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function evaluateCached(e,t){const{node:r}=e,{seen:o}=t;if(o.has(r)){const n=o.get(r);return n.resolved?n.value:void deopt(e,t)}{const a={resolved:!1};o.set(r,a);const l=function(e,t){if(!t.confident)return;if(e.isSequenceExpression()){const r=e.get("expressions");return evaluateCached(r[r.length-1],t)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return e.node.value;if(e.isNullLiteral())return null;if(e.isTemplateLiteral())return evaluateQuasis(e,e.node.quasis,t);if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){const r=e.get("tag.object"),{node:{name:n}}=r,s=e.get("tag.property");if(r.isIdentifier()&&"String"===n&&!e.scope.getBinding(n)&&s.isIdentifier()&&"raw"===s.node.name)return evaluateQuasis(e,e.node.quasi.quasis,t,!0)}if(e.isConditionalExpression()){const r=evaluateCached(e.get("test"),t);if(!t.confident)return;return evaluateCached(r?e.get("consequent"):e.get("alternate"),t)}if(e.isExpressionWrapper())return evaluateCached(e.get("expression"),t);if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:e.node})){const r=e.get("property"),n=e.get("object");if(n.isLiteral()){const s=n.node.value,i=typeof s;let o=null;if(e.node.computed){if(o=evaluateCached(r,t),!t.confident)return}else r.isIdentifier()&&(o=r.node.name);if(!("number"!==i&&"string"!==i||null==o||"number"!=typeof o&&"string"!=typeof o))return s[o]}}if(e.isReferencedIdentifier()){const n=e.scope.getBinding(e.node.name);if(n){if(n.constantViolations.length>0||e.node.start<n.path.node.end)return void deopt(n.path,t);const s=n.path.scope;if("var"===n.kind&&s!==n.scope){let i=!s.path.parentPath.isBlockStatement();for(let o=s.parent;o;o=o.parent){var r;if(o===e.scope){if(i)return void deopt(n.path,t);break}null!=(r=o.path.parentPath)&&r.isBlockStatement()&&(i=!0)}}if(n.hasValue)return n.value}const s=e.node.name;if(i.has(s))return n?void deopt(n.path,t):i.get(s);if(!n)return void deopt(e,t);const o=n.path;if(!o.isVariableDeclarator())return void deopt(o,t);const a=o.get("init"),l=evaluateCached(a,t);return"object"==typeof l&&null!==l&&n.references>1?void deopt(a,t):l}if(e.isUnaryExpression({prefix:!0})){if("void"===e.node.operator)return;const r=e.get("argument");if("typeof"===e.node.operator&&(r.isFunction()||r.isClass()))return"function";const n=evaluateCached(r,t);if(!t.confident)return;switch(e.node.operator){case"!":return!n;case"+":return+n;case"-":return-n;case"~":return~n;case"typeof":return typeof n}}if(e.isArrayExpression()){const r=[],n=e.get("elements");for(const e of n){const n=e.evaluate();if(!n.confident)return void deopt(n.deopt,t);r.push(n.value)}return r}if(e.isObjectExpression()){const r={},n=e.get("properties");for(const e of n){if(e.isObjectMethod()||e.isSpreadElement())return void deopt(e,t);const n=e.get("key");let s;if(e.node.computed){if(s=n.evaluate(),!s.confident)return void deopt(s.deopt,t);s=s.value}else s=n.isIdentifier()?n.node.name:n.node.value;let i=e.get("value").evaluate();if(!i.confident)return void deopt(i.deopt,t);i=i.value,r[s]=i}return r}if(e.isLogicalExpression()){const r=t.confident,n=evaluateCached(e.get("left"),t),s=t.confident;t.confident=r;const i=evaluateCached(e.get("right"),t),o=t.confident;switch(e.node.operator){case"||":if(t.confident=s&&(!!n||o),!t.confident)return;return n||i;case"&&":if(t.confident=s&&(!n||o),!t.confident)return;return n&&i;case"??":if(t.confident=s&&(null!=n||o),!t.confident)return;return null!=n?n:i}}if(e.isBinaryExpression()){const r=evaluateCached(e.get("left"),t);if(!t.confident)return;const n=evaluateCached(e.get("right"),t);if(!t.confident)return;switch(e.node.operator){case"-":return r-n;case"+":return r+n;case"/":return r/n;case"*":return r*n;case"%":return r%n;case"**":return Math.pow(r,n);case"<":return r<n;case">":return r>n;case"<=":return r<=n;case">=":return r>=n;case"==":return r==n;case"!=":return r!=n;case"===":return r===n;case"!==":return r!==n;case"|":return r|n;case"&":return r&n;case"^":return r^n;case"<<":return r<<n;case">>":return r>>n;case">>>":return r>>>n}}if(e.isCallExpression()){const r=e.get("callee");let i,o;if(r.isIdentifier()&&!e.scope.getBinding(r.node.name)&&(isValidObjectCallee(r.node.name)||function(e){return n.includes(e)}(r.node.name))&&(o=global[r.node.name]),r.isMemberExpression()){const e=r.get("object"),t=r.get("property");if(e.isIdentifier()&&t.isIdentifier()&&isValidObjectCallee(e.node.name)&&!function(e){return s.includes(e)}(t.node.name)){i=global[e.node.name];const r=t.node.name;hasOwnProperty.call(i,r)&&(o=i[r])}if(e.isLiteral()&&t.isIdentifier()){const r=typeof e.node.value;"string"!==r&&"number"!==r||(i=e.node.value,o=i[t.node.name])}}if(o){const r=e.get("arguments").map(e=>evaluateCached(e,t));if(!t.confident)return;return o.apply(i,r)}}deopt(e,t)}(e,t);return t.confident&&(a.resolved=!0,a.value=l),l}}function evaluateQuasis(e,t,r,n=!1){let s="",i=0;const o=e.isTemplateLiteral()?e.get("expressions"):e.get("quasi.expressions");for(const e of t){if(!r.confident)break;s+=n?e.value.raw:e.value.cooked;const t=o[i++];t&&(s+=String(evaluateCached(t,r)))}if(r.confident)return s}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/family.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getKey=_getKey,t._getPattern=_getPattern,t.get=function(e,t=!0){!0===t&&(t=this.context);const r=e.split(".");return 1===r.length?_getKey.call(this,e,t):_getPattern.call(this,r,t)},t.getAllNextSiblings=function(){let e=this.key,t=this.getSibling(++e);const r=[];for(;t.node;)r.push(t),t=this.getSibling(++e);return r},t.getAllPrevSiblings=function(){let e=this.key,t=this.getSibling(--e);const r=[];for(;t.node;)r.push(t),t=this.getSibling(--e);return r},t.getAssignmentIdentifiers=function(){return i(this.node)},t.getBindingIdentifierPaths=function(e=!1,t=!1){const r=[this],n=Object.create(null);for(;r.length;){const s=r.shift();if(!s)continue;if(!s.node)continue;const i=o.keys[s.node.type];if(s.isIdentifier())if(e){(n[s.node.name]=n[s.node.name]||[]).push(s)}else n[s.node.name]=s;else{if(s.isExportDeclaration()){const e=s.get("declaration");e.isDeclaration()&&r.push(e);continue}if(t){if(s.isFunctionDeclaration()){r.push(s.get("id"));continue}if(s.isFunctionExpression())continue}if(i)for(let e=0;e<i.length;e++){const t=i[e],n=s.get(t);Array.isArray(n)?r.push(...n):n.node&&r.push(n)}}}return n},t.getBindingIdentifiers=function(e){return o(this.node,e)},t.getCompletionRecords=function(e=!1){return _getCompletionRecords(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:e}).map(e=>e.path)},t.getNextSibling=function(){return this.getSibling(this.key+1)},t.getOpposite=function(){if("left"===this.key)return this.getSibling("right");if("right"===this.key)return this.getSibling("left");return null},t.getOuterBindingIdentifierPaths=function(e=!1){return this.getBindingIdentifierPaths(e,!0)},t.getOuterBindingIdentifiers=function(e){return a(this.node,e)},t.getPrevSibling=function(){return this.getSibling(this.key-1)},t.getSibling=function(e){return n.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js");const{getAssignmentIdentifiers:i,getBindingIdentifiers:o,getOuterBindingIdentifiers:a,numericLiteral:l,unaryExpression:p}=s;function addCompletionRecords(e,t,r){return e&&t.push(..._getCompletionRecords(e,r)),t}function normalCompletionToBreak(e){e.forEach(e=>{e.type=1})}function replaceBreakStatementInBreakCompletion(e,t){e.forEach(e=>{e.path.isBreakStatement({label:null})&&(t?e.path.replaceWith(p("void",l(0))):e.path.remove())})}function getStatementListCompletion(e,t){const r=[];if(t.canHaveBreak){let n=[];for(let s=0;s<e.length;s++){const i=e[s],o=Object.assign({},t,{inCaseClause:!1});i.isBlockStatement()&&(t.inCaseClause||t.shouldPopulateBreak)?o.shouldPopulateBreak=!0:o.shouldPopulateBreak=!1;const a=_getCompletionRecords(i,o);if(a.length>0&&a.every(e=>1===e.type)){n.length>0&&a.every(e=>e.path.isBreakStatement({label:null}))?(normalCompletionToBreak(n),r.push(...n),n.some(e=>e.path.isDeclaration())&&(r.push(...a),t.shouldPreserveBreak||replaceBreakStatementInBreakCompletion(a,!0)),t.shouldPreserveBreak||replaceBreakStatementInBreakCompletion(a,!1)):(r.push(...a),t.shouldPopulateBreak||t.shouldPreserveBreak||replaceBreakStatementInBreakCompletion(a,!0));break}if(s===e.length-1)r.push(...a);else{n=[];for(let e=0;e<a.length;e++){const t=a[e];1===t.type&&r.push(t),0===t.type&&n.push(t)}}}}else if(e.length)for(let n=e.length-1;n>=0;n--){const s=_getCompletionRecords(e[n],t);if(s.length>1||1===s.length&&!s[0].path.isVariableDeclaration()&&!s[0].path.isEmptyStatement()){r.push(...s);break}}return r}function _getCompletionRecords(e,t){let r=[];if(e.isIfStatement())r=addCompletionRecords(e.get("consequent"),r,t),r=addCompletionRecords(e.get("alternate"),r,t);else{if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement())return addCompletionRecords(e.get("body"),r,t);if(e.isProgram()||e.isBlockStatement())return getStatementListCompletion(e.get("body"),t);if(e.isFunction())return _getCompletionRecords(e.get("body"),t);if(e.isTryStatement())r=addCompletionRecords(e.get("block"),r,t),r=addCompletionRecords(e.get("handler"),r,t);else{if(e.isCatchClause())return addCompletionRecords(e.get("body"),r,t);if(e.isSwitchStatement())return function(e,t,r){let n=[];for(let s=0;s<e.length;s++){const i=_getCompletionRecords(e[s],r),o=[],a=[];for(const e of i)0===e.type&&o.push(e),1===e.type&&a.push(e);o.length&&(n=o),t.push(...a)}return t.push(...n),t}(e.get("cases"),r,t);if(e.isSwitchCase())return getStatementListCompletion(e.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:t.shouldPreserveBreak});e.isBreakStatement()?r.push(function(e){return{type:1,path:e}}(e)):r.push(function(e){return{type:0,path:e}}(e))}}return r}function _getKey(e,t){const r=this.node,s=r[e];return Array.isArray(s)?s.map((i,o)=>n.default.get({listKey:e,parentPath:this,parent:r,container:s,key:o}).setContext(t)):n.default.get({parentPath:this,parent:r,container:r,key:e}).setContext(t)}function _getPattern(e,t){let r=this;for(const n of e)r="."===n?r.parentPath:Array.isArray(r)?r[n]:r.get(n,t);return r}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SHOULD_STOP=t.SHOULD_SKIP=t.REMOVED=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/lib/virtual-types.js"),s=r("./node_modules/.pnpm/[email protected]/node_modules/debug/src/index.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/index.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/scope/index.js"),a=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"),l=a,p=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/cache.js"),c=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/generator/lib/index.js"),u=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/ancestry.js"),d=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/inference/index.js"),h=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/replacement.js"),m=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/evaluation.js"),f=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/conversion.js"),y=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/introspection.js"),b=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/context.js"),g=b,x=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/removal.js"),v=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/modification.js"),E=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/family.js"),T=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/comments.js"),S=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js");const{validate:P}=a,_=s("babel"),A=(t.REMOVED=1,t.SHOULD_STOP=2,t.SHOULD_SKIP=4,t.default=class NodePath{constructor(e,t){this.contexts=[],this.state=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this._store=null,this.parent=t,this.hub=e,this.data=null,this.context=null,this.scope=null}get removed(){return(1&this._traverseFlags)>0}set removed(e){e?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(2&this._traverseFlags)>0}set shouldStop(e){e?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(4&this._traverseFlags)>0}set shouldSkip(e){e?this._traverseFlags|=4:this._traverseFlags&=-5}static get({hub:e,parentPath:t,parent:r,container:n,listKey:s,key:i}){if(!e&&t&&(e=t.hub),!r)throw new Error("To get a node path the parent needs to exist");const o=n[i],a=p.getOrCreateCachedPaths(r,t);let l=a.get(o);return l||(l=new NodePath(e,r),o&&a.set(o,l)),b.setup.call(l,t,n,s,i),l}getScope(e){return this.isScope()?new o.default(this):e}setData(e,t){return null==this.data&&(this.data=Object.create(null)),this.data[e]=t}getData(e,t){null==this.data&&(this.data=Object.create(null));let r=this.data[e];return void 0===r&&void 0!==t&&(r=this.data[e]=t),r}hasNode(){return null!=this.node}buildCodeFrameError(e,t=SyntaxError){return this.hub.buildError(this.node,e,t)}traverse(e,t){(0,i.default)(this.node,e,this.scope,t,this)}set(e,t){P(this.node,e,t),this.node[e]=t}getPathLocation(){const e=[];let t=this;do{let r=t.key;t.inList&&(r=`${t.listKey}[${r}]`),e.unshift(r)}while(t=t.parentPath);return e.join(".")}debug(e){_.enabled&&_(`${this.getPathLocation()} ${this.type}: ${e}`)}toString(){return(0,c.default)(this.node).code}get inList(){return!!this.listKey}set inList(e){e||(this.listKey=null)}get parentKey(){return this.listKey||this.key}}),C={findParent:u.findParent,find:u.find,getFunctionParent:u.getFunctionParent,getStatementParent:u.getStatementParent,getEarliestCommonAncestorFrom:u.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:u.getDeepestCommonAncestorFrom,getAncestry:u.getAncestry,isAncestor:u.isAncestor,isDescendant:u.isDescendant,inType:u.inType,getTypeAnnotation:d.getTypeAnnotation,isBaseType:d.isBaseType,couldBeBaseType:d.couldBeBaseType,baseTypeStrictlyMatches:d.baseTypeStrictlyMatches,isGenericType:d.isGenericType,replaceWithMultiple:h.replaceWithMultiple,replaceWithSourceString:h.replaceWithSourceString,replaceWith:h.replaceWith,replaceExpressionWithStatements:h.replaceExpressionWithStatements,replaceInline:h.replaceInline,evaluateTruthy:m.evaluateTruthy,evaluate:m.evaluate,toComputedKey:f.toComputedKey,ensureBlock:f.ensureBlock,unwrapFunctionEnvironment:f.unwrapFunctionEnvironment,arrowFunctionToExpression:f.arrowFunctionToExpression,splitExportDeclaration:f.splitExportDeclaration,ensureFunctionName:f.ensureFunctionName,matchesPattern:y.matchesPattern,isStatic:y.isStatic,isNodeType:y.isNodeType,canHaveVariableDeclarationOrExpression:y.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:y.canSwapBetweenExpressionAndStatement,isCompletionRecord:y.isCompletionRecord,isStatementOrBlock:y.isStatementOrBlock,referencesImport:y.referencesImport,getSource:y.getSource,willIMaybeExecuteBefore:y.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:y._guessExecutionStatusRelativeTo,resolve:y.resolve,isConstantExpression:y.isConstantExpression,isInStrictMode:y.isInStrictMode,isDenylisted:g.isDenylisted,visit:g.visit,skip:g.skip,skipKey:g.skipKey,stop:g.stop,setContext:g.setContext,requeue:g.requeue,requeueComputedKeyAndDecorators:g.requeueComputedKeyAndDecorators,remove:x.remove,insertBefore:v.insertBefore,insertAfter:v.insertAfter,unshiftContainer:v.unshiftContainer,pushContainer:v.pushContainer,getOpposite:E.getOpposite,getCompletionRecords:E.getCompletionRecords,getSibling:E.getSibling,getPrevSibling:E.getPrevSibling,getNextSibling:E.getNextSibling,getAllNextSiblings:E.getAllNextSiblings,getAllPrevSiblings:E.getAllPrevSiblings,get:E.get,getAssignmentIdentifiers:E.getAssignmentIdentifiers,getBindingIdentifiers:E.getBindingIdentifiers,getOuterBindingIdentifiers:E.getOuterBindingIdentifiers,getBindingIdentifierPaths:E.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:E.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:T.shareCommentsWithSiblings,addComment:T.addComment,addComments:T.addComments};Object.assign(A.prototype,C),A.prototype.arrowFunctionToShadowed=f[String("arrowFunctionToShadowed")],Object.assign(A.prototype,{has:y[String("has")],is:y[String("is")],isnt:y[String("isnt")],equals:y[String("equals")],hoist:v[String("hoist")],updateSiblingKeys:v.updateSiblingKeys,call:g.call,isBlacklisted:g[String("isBlacklisted")],setScope:g.setScope,resync:g.resync,popContext:g.popContext,pushContext:g.pushContext,setup:g.setup,setKey:g.setKey}),A.prototype._guessExecutionStatusRelativeToDifferentFunctions=y._guessExecutionStatusRelativeTo,A.prototype._guessExecutionStatusRelativeToDifferentFunctions=y._guessExecutionStatusRelativeTo,Object.assign(A.prototype,{_getTypeAnnotation:d._getTypeAnnotation,_replaceWith:h._replaceWith,_resolve:y._resolve,_call:g._call,_resyncParent:g._resyncParent,_resyncKey:g._resyncKey,_resyncList:g._resyncList,_resyncRemoved:g._resyncRemoved,_getQueueContexts:g._getQueueContexts,_removeFromScope:x._removeFromScope,_callRemovalHooks:x._callRemovalHooks,_remove:x._remove,_markRemoved:x._markRemoved,_assertUnremoved:x._assertUnremoved,_containerInsert:v._containerInsert,_containerInsertBefore:v._containerInsertBefore,_containerInsertAfter:v._containerInsertAfter,_verifyNodeList:v._verifyNodeList,_getKey:E._getKey,_getPattern:E._getPattern});for(const e of l.TYPES){const t=`is${e}`,r=l[t];A.prototype[t]=function(e){return r(this.node,e)},A.prototype[`assert${e}`]=function(t){if(!r(this.node,t))throw new TypeError(`Expected node path of type ${e}`)}}Object.assign(A.prototype,S);for(const e of Object.keys(n))e.startsWith("_")||l.TYPES.includes(e)||l.TYPES.push(e)},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/inference/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getTypeAnnotation=_getTypeAnnotation,t.baseTypeStrictlyMatches=function(e){const t=this.getTypeAnnotation(),r=e.getTypeAnnotation();if(!o(t)&&c(t))return r.type===t.type;return!1},t.couldBeBaseType=function(e){const t=this.getTypeAnnotation();if(o(t))return!0;if(E(t)){for(const r of t.types)if(o(r)||_isBaseType(e,r,!0))return!0;return!1}return _isBaseType(e,t,!0)},t.getTypeAnnotation=function(){let e=this.getData("typeAnnotation");if(null!=e)return e;e=_getTypeAnnotation.call(this)||i(),(v(e)||b(e))&&(e=e.typeAnnotation);return this.setData("typeAnnotation",e),e},t.isBaseType=function(e,t){return _isBaseType(e,this.getTypeAnnotation(),t)},t.isGenericType=function(e){const t=this.getTypeAnnotation();if("Array"===e&&(y(t)||a(t)||x(t)))return!0;return u(t)&&d(t.id,{name:e})||g(t)&&d(t.typeName,{name:e})};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/inference/inferers.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js");const{anyTypeAnnotation:i,isAnyTypeAnnotation:o,isArrayTypeAnnotation:a,isBooleanTypeAnnotation:l,isEmptyTypeAnnotation:p,isFlowBaseAnnotation:c,isGenericTypeAnnotation:u,isIdentifier:d,isMixedTypeAnnotation:h,isNumberTypeAnnotation:m,isStringTypeAnnotation:f,isTSArrayType:y,isTSTypeAnnotation:b,isTSTypeReference:g,isTupleTypeAnnotation:x,isTypeAnnotation:v,isUnionTypeAnnotation:E,isVoidTypeAnnotation:T,stringTypeAnnotation:S,voidTypeAnnotation:P}=s;const _=new WeakSet;function _getTypeAnnotation(){const e=this.node;if(e){if(e.typeAnnotation)return e.typeAnnotation;if(!_.has(e)){_.add(e);try{var t;let r=n[e.type];if(r)return r.call(this,e);if(r=n[this.parentPath.type],null!=(t=r)&&t.validParent)return this.parentPath.getTypeAnnotation()}finally{_.delete(e)}}}else if("init"===this.key&&this.parentPath.isVariableDeclarator()){const e=this.parentPath.parentPath,t=e.parentPath;return"left"===e.key&&t.isForInStatement()?S():"left"===e.key&&t.isForOfStatement()?i():P()}}function _isBaseType(e,t,r){if("string"===e)return f(t);if("number"===e)return m(t);if("boolean"===e)return l(t);if("any"===e)return o(t);if("mixed"===e)return h(t);if("empty"===e)return p(t);if("void"===e)return T(t);if(r)return!1;throw new Error(`Unknown base type ${e}`)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!this.isReferenced())return;const t=this.scope.getBinding(e.name);if(t)return t.identifier.typeAnnotation?t.identifier.typeAnnotation:function(e,t,r){const n=[],i=[];let o=getConstantViolationsBefore(e,t,i);const a=getConditionalAnnotation(e,t,r);if(a){const t=getConstantViolationsBefore(e,a.ifStatement);o=o.filter(e=>!t.includes(e)),n.push(a.typeAnnotation)}if(o.length){o.push(...i);for(const e of o)n.push(e.getTypeAnnotation())}if(!n.length)return;return(0,s.createUnionType)(n)}(t,this,e.name);if("undefined"===e.name)return l();if("NaN"===e.name||"Infinity"===e.name)return a();e.name};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/inference/util.js");const{BOOLEAN_NUMBER_BINARY_OPERATORS:i,createTypeAnnotationBasedOnTypeof:o,numberTypeAnnotation:a,voidTypeAnnotation:l}=n;function getConstantViolationsBefore(e,t,r){const n=e.constantViolations.slice();return n.unshift(e.path),n.filter(e=>{const n=(e=e.resolve())._guessExecutionStatusRelativeTo(t);return r&&"unknown"===n&&r.push(e),"before"===n})}function inferAnnotationFromBinaryExpression(e,t){const r=t.node.operator,n=t.get("right").resolve(),s=t.get("left").resolve();let l,p,c;if(s.isIdentifier({name:e})?l=n:n.isIdentifier({name:e})&&(l=s),l)return"==="===r?l.getTypeAnnotation():i.includes(r)?a():void 0;if("==="!==r&&"=="!==r)return;if(s.isUnaryExpression({operator:"typeof"})?(p=s,c=n):n.isUnaryExpression({operator:"typeof"})&&(p=n,c=s),!p)return;if(!p.get("argument").isIdentifier({name:e}))return;if(c=c.resolve(),!c.isLiteral())return;const u=c.node.value;return"string"==typeof u?o(u):void 0}function getConditionalAnnotation(e,t,r){const n=function(e,t,r){let n;for(;n=t.parentPath;){if(n.isIfStatement()||n.isConditionalExpression()){if("test"===t.key)return;return n}if(n.isFunction()&&(null==r||n.parentPath.scope.getBinding(r)!==e))return;t=n}}(e,t,r);if(!n)return;const i=[n.get("test")],o=[];for(let e=0;e<i.length;e++){const t=i[e];if(t.isLogicalExpression())"&&"===t.node.operator&&(i.push(t.get("left")),i.push(t.get("right")));else if(t.isBinaryExpression()){const e=inferAnnotationFromBinaryExpression(r,t);e&&o.push(e)}}return o.length?{typeAnnotation:(0,s.createUnionType)(o),ifStatement:n}:getConditionalAnnotation(e,n,r)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/inference/inferers.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayExpression=ArrayExpression,t.AssignmentExpression=function(){return this.get("right").getTypeAnnotation()},t.BinaryExpression=function(e){const t=e.operator;if(l.includes(t))return g();if(o.includes(t))return h();if("+"===t){const e=this.get("right"),t=this.get("left");return t.isBaseType("number")&&e.isBaseType("number")?g():t.isBaseType("string")||e.isBaseType("string")?x():E([x(),g()])}},t.BooleanLiteral=function(){return h()},t.CallExpression=function(){const{callee:e}=this.node;if(_(e))return d(x());if(P(e)||A(e)||S(e,{name:"Array"}))return d(u());if(C(e))return d(v([x(),u()]));return resolveCall(this.get("callee"))},t.ConditionalExpression=function(){const e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,i.createUnionType)(e)},t.ClassDeclaration=t.ClassExpression=t.FunctionDeclaration=t.ArrowFunctionExpression=t.FunctionExpression=function(){return f(y("Function"))},Object.defineProperty(t,"Identifier",{enumerable:!0,get:function(){return s.default}}),t.LogicalExpression=function(){const e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,i.createUnionType)(e)},t.NewExpression=function(e){if("Identifier"===e.callee.type)return f(e.callee)},t.NullLiteral=function(){return b()},t.NumericLiteral=function(){return g()},t.ObjectExpression=function(){return f(y("Object"))},t.ParenthesizedExpression=function(){return this.get("expression").getTypeAnnotation()},t.RegExpLiteral=function(){return f(y("RegExp"))},t.RestElement=RestElement,t.SequenceExpression=function(){return this.get("expressions").pop().getTypeAnnotation()},t.StringLiteral=function(){return x()},t.TSAsExpression=TSAsExpression,t.TSNonNullExpression=function(){return this.get("expression").getTypeAnnotation()},t.TaggedTemplateExpression=function(){return resolveCall(this.get("tag"))},t.TemplateLiteral=function(){return x()},t.TypeCastExpression=TypeCastExpression,t.UnaryExpression=function(e){const t=e.operator;if("void"===t)return T();if(p.includes(t))return g();if(c.includes(t))return x();if(a.includes(t))return h()},t.UpdateExpression=function(e){const t=e.operator;if("++"===t||"--"===t)return g()},t.VariableDeclarator=function(){if(!this.get("id").isIdentifier())return;return this.get("init").getTypeAnnotation()};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/inference/util.js");const{BOOLEAN_BINARY_OPERATORS:o,BOOLEAN_UNARY_OPERATORS:a,NUMBER_BINARY_OPERATORS:l,NUMBER_UNARY_OPERATORS:p,STRING_UNARY_OPERATORS:c,anyTypeAnnotation:u,arrayTypeAnnotation:d,booleanTypeAnnotation:h,buildMatchMemberExpression:m,genericTypeAnnotation:f,identifier:y,nullLiteralTypeAnnotation:b,numberTypeAnnotation:g,stringTypeAnnotation:x,tupleTypeAnnotation:v,unionTypeAnnotation:E,voidTypeAnnotation:T,isIdentifier:S}=n;function TypeCastExpression(e){return e.typeAnnotation}function TSAsExpression(e){return e.typeAnnotation}function ArrayExpression(){return f(y("Array"))}function RestElement(){return ArrayExpression()}TypeCastExpression.validParent=!0,TSAsExpression.validParent=!0,RestElement.validParent=!0;const P=m("Array.from"),_=m("Object.keys"),A=m("Object.values"),C=m("Object.entries");function resolveCall(e){if((e=e.resolve()).isFunction()){const{node:t}=e;if(t.async)return t.generator?f(y("AsyncIterator")):f(y("Promise"));if(t.generator)return f(y("Iterator"));if(e.node.returnType)return e.node.returnType}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/inference/util.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createUnionType=function(e){if(e.every(e=>a(e)))return s?s(e):o(e);if(e.every(e=>l(e))&&i)return i(e)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js");const{createFlowUnionType:s,createTSUnionType:i,createUnionTypeAnnotation:o,isFlowType:a,isTSType:l}=n},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/introspection.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._guessExecutionStatusRelativeTo=function(e){return _guessExecutionStatusRelativeToCached(this,e,new Map)},t._resolve=_resolve,t.canHaveVariableDeclarationOrExpression=function(){return("init"===this.key||"left"===this.key)&&this.parentPath.isFor()},t.canSwapBetweenExpressionAndStatement=function(e){if("body"!==this.key||!this.parentPath.isArrowFunctionExpression())return!1;if(this.isExpression())return o(e);if(this.isBlockStatement())return a(e);return!1},t.getSource=function(){const e=this.node;if(e.end){const t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""},t.isCompletionRecord=function(e){let t=this,r=!0;do{const{type:n,container:s}=t;if(!r&&(t.isFunction()||"StaticBlock"===n))return!!e;if(r=!1,Array.isArray(s)&&t.key!==s.length-1)return!1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return!0},t.isConstantExpression=function(){if(this.isIdentifier()){const e=this.scope.getBinding(this.node.name);return!!e&&e.constant}if(this.isLiteral())return!this.isRegExpLiteral()&&(!this.isTemplateLiteral()||this.get("expressions").every(e=>e.isConstantExpression()));if(this.isUnaryExpression())return"void"===this.node.operator&&this.get("argument").isConstantExpression();if(this.isBinaryExpression()){const{operator:e}=this.node;return"in"!==e&&"instanceof"!==e&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}if(this.isMemberExpression())return!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0});if(this.isCallExpression())return 1===this.node.arguments.length&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral();return!1},t.isInStrictMode=function(){const e=this.isProgram()?this:this.parentPath;return!!e.find(e=>{if(e.isProgram({sourceType:"module"}))return!0;if(e.isClass())return!0;if(e.isArrowFunctionExpression()&&!e.get("body").isBlockStatement())return!1;let t;if(e.isFunction())t=e.node.body;else{if(!e.isProgram())return!1;t=e.node}for(const e of t.directives)if("use strict"===e.value.value)return!0;return!1})},t.isNodeType=function(e){return u(this.type,e)},t.isStatementOrBlock=function(){return!this.parentPath.isLabeledStatement()&&!o(this.container)&&s.includes(this.key)},t.isStatic=function(){return this.scope.isStatic(this.node)},t.matchesPattern=function(e,t){return d(this.node,e,t)},t.referencesImport=function(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?c(this.node.property,{value:t}):this.node.property.name===t)){const t=this.get("object");return t.isReferencedIdentifier()&&t.referencesImport(e,"*")}return!1}const r=this.scope.getBinding(this.node.name);if("module"!==(null==r?void 0:r.kind))return!1;const n=r.path,s=n.parentPath;if(!s.isImportDeclaration())return!1;if(s.node.source.value!==e)return!1;if(!t)return!0;if(n.isImportDefaultSpecifier()&&"default"===t)return!0;if(n.isImportNamespaceSpecifier()&&"*"===t)return!0;if(n.isImportSpecifier()&&l(n.node.imported,{name:t}))return!0;return!1},t.resolve=function(e,t){return _resolve.call(this,e,t)||this},t.willIMaybeExecuteBefore=function(e){return"after"!==this._guessExecutionStatusRelativeTo(e)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js");const{STATEMENT_OR_BLOCK_KEYS:s,VISITOR_KEYS:i,isBlockStatement:o,isExpression:a,isIdentifier:l,isLiteral:p,isStringLiteral:c,isType:u,matchesPattern:d}=n;function getOuterFunction(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function isExecutionUncertain(e,t){switch(e){case"LogicalExpression":case"AssignmentPattern":return"right"===t;case"ConditionalExpression":case"IfStatement":return"consequent"===t||"alternate"===t;case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return"body"===t;case"ForStatement":return"body"===t||"update"===t;case"SwitchStatement":return"cases"===t;case"TryStatement":return"handler"===t;case"OptionalMemberExpression":return"property"===t;case"OptionalCallExpression":return"arguments"===t;default:return!1}}function isExecutionUncertainInList(e,t){for(let r=0;r<t;r++){const t=e[r];if(isExecutionUncertain(t.parent.type,t.parentKey))return!0}return!1}t.has=function(e){var t;const r=null==(t=this.node)?void 0:t[e];return r&&Array.isArray(r)?!!r.length:!!r},t.is=t.has,t.isnt=function(e){return!this.has(e)},t.equals=function(e,t){return this.node[e]===t};const h=Symbol();function _guessExecutionStatusRelativeToCached(e,t,r){const n={this:getOuterFunction(e),target:getOuterFunction(t)};if(n.target.node!==n.this.node)return function(e,t,r){let n,s=r.get(e.node);if(s){if(n=s.get(t.node))return n===h?"unknown":n}else r.set(e.node,s=new Map);s.set(t.node,h);const i=function(e,t,r){if(!t.isFunctionDeclaration())return"before"===_guessExecutionStatusRelativeToCached(e,t,r)?"before":"unknown";if(t.parentPath.isExportDeclaration())return"unknown";const n=t.scope.getBinding(t.node.id.name);if(!n.references)return"before";const s=n.referencePaths;let i;for(const n of s){if(!!n.find(e=>e.node===t.node))continue;if("callee"!==n.key||!n.parentPath.isCallExpression())return"unknown";const s=_guessExecutionStatusRelativeToCached(e,n,r);if(i&&i!==s)return"unknown";i=s}return i}(e,t,r);return s.set(t.node,i),i}(e,n.target,r);const s={target:t.getAncestry(),this:e.getAncestry()};if(s.target.includes(e))return"after";if(s.this.includes(t))return"before";let o;const a={target:0,this:0};for(;!o&&a.this<s.this.length;){const e=s.this[a.this];a.target=s.target.indexOf(e),a.target>=0?o=e:a.this++}if(!o)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(isExecutionUncertainInList(s.this,a.this-1)||isExecutionUncertainInList(s.target,a.target-1))return"unknown";const l={this:s.this[a.this-1],target:s.target[a.target-1]};if(l.target.listKey&&l.this.listKey&&l.target.container===l.this.container)return l.target.key>l.this.key?"before":"after";const p=i[o.type],c=p.indexOf(l.this.parentKey);return p.indexOf(l.target.parentKey)>c?"before":"after"}function _resolve(e,t){var r;if(null==(r=t)||!r.includes(this))if((t=t||[]).push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){const r=this.scope.getBinding(this.node.name);if(!r)return;if(!r.constant)return;if("module"===r.kind)return;if(r.path!==this){const n=r.path.resolve(e,t);if(this.find(e=>e.node===n.node))return;return n}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);if(e&&this.isMemberExpression()){const r=this.toComputedKey();if(!p(r))return;const n=r.value,s=this.get("object").resolve(e,t);if(s.isObjectExpression()){const r=s.get("properties");for(const s of r){if(!s.isProperty())continue;const r=s.get("key");let i=s.isnt("computed")&&r.isIdentifier({name:n});if(i=i||r.isLiteral({value:n}),i)return s.get("value").resolve(e,t)}}else if(s.isArrayExpression()&&!isNaN(+n)){const r=s.get("elements")[n];if(r)return r.resolve(e,t)}}}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/lib/hoister.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"),s=n;const{react:i}=n,{cloneNode:o,jsxExpressionContainer:a,variableDeclaration:l,variableDeclarator:p}=s,c={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&i.isCompatTag(e.node.name)&&!e.parentPath.isJSXMemberExpression())return;if("this"===e.node.name){let r=e.scope;do{if(r.path.isFunction()&&!r.path.isArrowFunctionExpression())break}while(r=r.parent);r&&t.breakOnScopePaths.push(r.path)}const r=e.scope.getBinding(e.node.name);if(r){for(const n of r.constantViolations)if(n.scope!==r.path.scope)return t.mutableBinding=!0,void e.stop();r===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=r)}}};t.default=class{constructor(e,t){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=t,this.path=e,this.attachAfter=!1}isCompatibleScope(e){for(const t of Object.keys(this.bindings)){const r=this.bindings[t];if(!e.bindingIdentifierEquals(t,r.identifier))return!1}return!0}getCompatibleScopes(){let e=this.path.scope;do{if(!this.isCompatibleScope(e))break;if(this.scopes.push(e),this.breakOnScopePaths.includes(e.path))break}while(e=e.parent)}getAttachmentPath(){let e=this._getAttachmentPath();if(!e)return;let t=e.scope;if(t.path===e&&(t=e.scope.parent),t.path.isProgram()||t.path.isFunction())for(const r of Object.keys(this.bindings)){if(!t.hasOwnBinding(r))continue;const n=this.bindings[r];if("param"===n.kind||"params"===n.path.parentKey)continue;if(this.getAttachmentParentForPath(n.path).key>=e.key){this.attachAfter=!0,e=n.path;for(const t of n.constantViolations)this.getAttachmentParentForPath(t).key>e.key&&(e=t)}}return e}_getAttachmentPath(){const e=this.scopes.pop();if(e)if(e.path.isFunction()){if(!this.hasOwnParamBindings(e))return this.getNextScopeAttachmentParent();{if(this.scope===e)return;const t=e.path.get("body").get("body");for(let e=0;e<t.length;e++)if(!t[e].node._blockHoist)return t[e]}}else if(e.path.isProgram())return this.getNextScopeAttachmentParent()}getNextScopeAttachmentParent(){const e=this.scopes.pop();if(e)return this.getAttachmentParentForPath(e.path)}getAttachmentParentForPath(e){do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())return e}while(e=e.parentPath);return e}hasOwnParamBindings(e){for(const t of Object.keys(this.bindings)){if(!e.hasOwnBinding(t))continue;const r=this.bindings[t];if("param"===r.kind&&r.constant)return!0}return!1}run(){if(this.path.traverse(c,this),this.mutableBinding)return;this.getCompatibleScopes();const e=this.getAttachmentPath();if(!e)return;if(e.getFunctionParent()===this.path.getFunctionParent())return;let t=e.scope.generateUidIdentifier("ref");const r=p(t,this.path.node),n=this.attachAfter?"insertAfter":"insertBefore",[s]=e[n]([e.isVariableDeclarator()?r:l("var",[r])]),i=this.path.parentPath;return i.isJSXElement()&&this.path.container===i.node.children&&(t=a(t)),this.path.replaceWith(o(t)),s.isVariableDeclarator()?s.get("init"):s.get("declarations.0.init")}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/lib/removal-hooks.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hooks=void 0;t.hooks=[function(e,t){if("test"===e.key&&(t.isWhile()||t.isSwitchCase())||"declaration"===e.key&&t.isExportDeclaration()||"body"===e.key&&t.isLabeledStatement()||"declarations"===e.listKey&&t.isVariableDeclaration()&&1===t.node.declarations.length||"expression"===e.key&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&1===t.node.expressions.length)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return"left"===e.key?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&"consequent"===e.key||"body"===e.key&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",directives:[],body:[]}),!0}]},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBindingIdentifier=function(){const{node:e,parent:t}=this,r=this.parentPath.parent;return u(e)&&s(e,t,r)},t.isBlockScoped=function(){return i(this.node)},t.isExpression=function(){return this.isIdentifier()?this.isReferencedIdentifier():a(this.node)},t.isFlow=function(){const{node:e}=this;return!!l(e)||(d(e)?"type"===e.importKind||"typeof"===e.importKind:o(e)?"type"===e.exportKind:!!h(e)&&("type"===e.importKind||"typeof"===e.importKind))},t.isForAwaitStatement=function(){return P(this.node,{await:!0})},t.isGenerated=function(){return!this.isUser()},t.isPure=function(e){return this.scope.isPure(this.node,e)},t.isReferenced=function(){return g(this.node,this.parent)},t.isReferencedIdentifier=function(e){const{node:t,parent:r}=this;return u(t,e)?g(t,r,this.parentPath.parent):!!m(t,e)&&(!(!f(r)&&_(t.name))&&g(t,r,this.parentPath.parent))},t.isReferencedMemberExpression=function(){const{node:e,parent:t}=this;return y(e)&&g(e,t)},t.isRestProperty=function(){var e;return b(this.node)&&(null==(e=this.parentPath)?void 0:e.isObjectPattern())},t.isScope=function(){return x(this.node,this.parent)},t.isSpreadProperty=function(){var e;return b(this.node)&&(null==(e=this.parentPath)?void 0:e.isObjectExpression())},t.isStatement=function(){const{node:e,parent:t}=this;if(v(e)){if(T(e)){if(c(t,{left:e}))return!1;if(p(t,{init:e}))return!1}return!0}return!1},t.isUser=function(){var e;return!(null==(e=this.node)||!e.loc)},t.isVar=function(){return E(this.node)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js");const{isBinding:s,isBlockScoped:i,isExportDeclaration:o,isExpression:a,isFlow:l,isForStatement:p,isForXStatement:c,isIdentifier:u,isImportDeclaration:d,isImportSpecifier:h,isJSXIdentifier:m,isJSXMemberExpression:f,isMemberExpression:y,isRestElement:b,isReferenced:g,isScope:x,isStatement:v,isVar:E,isVariableDeclaration:T,react:S,isForOfStatement:P}=n,{isCompatTag:_}=S;t.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},t.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/lib/virtual-types.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Var=t.User=t.Statement=t.SpreadProperty=t.Scope=t.RestProperty=t.ReferencedMemberExpression=t.ReferencedIdentifier=t.Referenced=t.Pure=t.NumericLiteralTypeAnnotation=t.Generated=t.ForAwaitStatement=t.Flow=t.Expression=t.ExistentialTypeParam=t.BlockScoped=t.BindingIdentifier=void 0;t.ReferencedIdentifier=["Identifier","JSXIdentifier"],t.ReferencedMemberExpression=["MemberExpression"],t.BindingIdentifier=["Identifier"],t.Statement=["Statement"],t.Expression=["Expression"],t.Scope=["Scopable","Pattern"],t.Referenced=null,t.BlockScoped=["FunctionDeclaration","ClassDeclaration","VariableDeclaration"],t.Var=["VariableDeclaration"],t.User=null,t.Generated=null,t.Pure=null,t.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],t.RestProperty=["RestElement"],t.SpreadProperty=["RestElement"],t.ExistentialTypeParam=["ExistsTypeAnnotation"],t.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],t.ForAwaitStatement=["ForOfStatement"]},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/modification.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._containerInsert=_containerInsert,t._containerInsertAfter=_containerInsertAfter,t._containerInsertBefore=_containerInsertBefore,t._verifyNodeList=_verifyNodeList,t.insertAfter=function(e){if(o._assertUnremoved.call(this),this.isSequenceExpression())return last(this.get("expressions")).insertAfter(e);const t=_verifyNodeList.call(this,e),{parentPath:r,parent:n}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||g(n)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertAfter(t.map(e=>x(e)?f(e):e));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!r.isJSXElement()||r.isForStatement()&&"init"===this.key){const e=this;if(e.node){const n=e.node;let{scope:s}=this;if(s.path.isPattern())return c(n),e.replaceWith(h(p([],n),[])),e.get("callee.body").insertAfter(t),[e];if(isHiddenInSequenceExpression(e))t.unshift(n);else if(b(n)&&T(n.callee))t.unshift(n),t.push(S());else if(function(e,t){if(!y(e)||!v(e.left))return!1;const r=t.getBlockParent();return r.hasOwnBinding(e.left.name)&&r.getOwnBinding(e.left.name).constantViolations.length<=1}(n,s))t.unshift(n),t.push(m(n.left));else if(s.isPure(n,!0))t.push(n);else{r.isMethod({computed:!0,key:n})&&(s=s.parent);const e=s.generateDeclaredUidIdentifier();t.unshift(f(u("=",m(e),n))),t.push(f(m(e)))}}return this.replaceExpressionWithStatements(t)}if(Array.isArray(this.container))return _containerInsertAfter.call(this,t);if(this.isStatementOrBlock()){const e=this.node,r=e&&(!this.isExpressionStatement()||null!=e.expression),[n]=this.replaceWith(d(r?[e]:[]));return n.pushContainer("body",t)}throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},t.insertBefore=function(e){o._assertUnremoved.call(this);const t=_verifyNodeList.call(this,e),{parentPath:r,parent:n}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||g(n)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertBefore(t);if(this.isNodeType("Expression")&&!this.isJSXElement()||r.isForStatement()&&"init"===this.key)return this.node&&t.push(this.node),this.replaceExpressionWithStatements(t);if(Array.isArray(this.container))return _containerInsertBefore.call(this,t);if(this.isStatementOrBlock()){const e=this.node,r=e&&(!this.isExpressionStatement()||null!=e.expression),[n]=this.replaceWith(d(r?[e]:[]));return n.unshiftContainer("body",t)}throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},t.pushContainer=function(e,t){o._assertUnremoved.call(this);const r=_verifyNodeList.call(this,t),n=this.node[e];return s.default.get({parentPath:this,parent:this.node,container:n,listKey:e,key:n.length}).setContext(this.context).replaceWithMultiple(r)},t.unshiftContainer=function(e,t){o._assertUnremoved.call(this);const r=_verifyNodeList.call(this,t),n=this.node[e],i=s.default.get({parentPath:this,parent:this.node,container:n,listKey:e,key:0}).setContext(this.context);return _containerInsertBefore.call(i,r)},t.updateSiblingKeys=updateSiblingKeys;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/cache.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/index.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/context.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/removal.js"),a=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"),l=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/lib/hoister.js");const{arrowFunctionExpression:p,assertExpression:c,assignmentExpression:u,blockStatement:d,callExpression:h,cloneNode:m,expressionStatement:f,isAssignmentExpression:y,isCallExpression:b,isExportNamedDeclaration:g,isExpression:x,isIdentifier:v,isSequenceExpression:E,isSuper:T,thisExpression:S}=a;function _containerInsert(e,t){updateSiblingKeys.call(this,e,t.length);const r=[];this.container.splice(e,0,...t);for(let s=0;s<t.length;s++){var n;const t=e+s,o=this.getSibling(t);r.push(o),null!=(n=this.context)&&n.queue&&i.pushContext.call(o,this.context)}const s=i._getQueueContexts.call(this);for(const e of r){i.setScope.call(e),e.debug("Inserted.");for(const t of s)t.maybeQueue(e,!0)}return r}function _containerInsertBefore(e){return _containerInsert.call(this,this.key,e)}function _containerInsertAfter(e){return _containerInsert.call(this,this.key+1,e)}const last=e=>e[e.length-1];function isHiddenInSequenceExpression(e){return E(e.parent)&&(last(e.parent.expressions)!==e.node||isHiddenInSequenceExpression(e.parentPath))}function updateSiblingKeys(e,t){if(!this.parent)return;const r=(0,n.getCachedPaths)(this);if(r)for(const[,n]of r)"number"==typeof n.key&&n.container===this.container&&n.key>=e&&(n.key+=t)}function _verifyNodeList(e){if(!e)return[];Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){const r=e[t];let n;if(r?"object"!=typeof r?n="contains a non-object node":r.type?r instanceof s.default&&(n="has a NodePath when it expected a raw object"):n="without a type":n="has falsy node",n){const e=Array.isArray(r)?"array":typeof r;throw new Error(`Node list ${n} with the index of ${t} and type of ${e}`)}}return e}t.hoist=function(e=this.scope){return new l.default(this,e).run()}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/removal.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._assertUnremoved=_assertUnremoved,t._callRemovalHooks=_callRemovalHooks,t._markRemoved=_markRemoved,t._remove=_remove,t._removeFromScope=_removeFromScope,t.remove=function(){var e;if(_assertUnremoved.call(this),p.resync.call(this),_callRemovalHooks.call(this))return void _markRemoved.call(this);null!=(e=this.opts)&&e.noScope||_removeFromScope.call(this);this.shareCommentsWithSiblings(),_remove.call(this),_markRemoved.call(this)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/lib/removal-hooks.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/cache.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/replacement.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/index.js"),a=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"),l=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/modification.js"),p=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/context.js");function _removeFromScope(){const e=a.getBindingIdentifiers(this.node,!1,!1,!0);Object.keys(e).forEach(e=>this.scope.removeBinding(e))}function _callRemovalHooks(){if(this.parentPath)for(const e of n.hooks)if(e(this,this.parentPath))return!0}function _remove(){Array.isArray(this.container)?(this.container.splice(this.key,1),l.updateSiblingKeys.call(this,this.key,-1)):i._replaceWith.call(this,null)}function _markRemoved(){var e;(this._traverseFlags|=o.SHOULD_SKIP|o.REMOVED,this.parent)&&(null==(e=(0,s.getCachedPaths)(this))||e.delete(this.node));this.node=null}function _assertUnremoved(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/replacement.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._replaceWith=_replaceWith,t.replaceExpressionWithStatements=function(e){c.resync.call(this);const t=[],r=gatherSequenceExpressions(e,t);if(r){for(const e of t)this.scope.push({id:e});return this.replaceWith(r)[0].get("expressions")}const n=this.getFunctionParent(),i=null==n?void 0:n.node.async,o=null==n?void 0:n.node.generator,a=d([],f(e));this.replaceWith(b(a,[]));const l=this.get("callee");l.get("body").scope.hoistVariables(e=>this.scope.push({id:e}));const p=l.getCompletionRecords();for(const e of p){if(!e.isExpressionStatement())continue;const t=e.findParent(e=>e.isLoop());if(t){let r=t.getData("expressionReplacementReturnUid");r?r=T(r.name):(r=l.scope.generateDeclaredUidIdentifier("ret"),l.get("body").pushContainer("body",F(g(r))),t.setData("expressionReplacementReturnUid",r)),e.get("expression").replaceWith(h("=",g(r),e.node.expression))}else e.replaceWith(F(e.node.expression))}l.arrowFunctionToExpression();const y=l,x=i&&s.default.hasType(y.node.body,"AwaitExpression",u),v=o&&s.default.hasType(y.node.body,"YieldExpression",u);x&&(y.set("async",!0),v||this.replaceWith(m(this.node)));v&&(y.set("generator",!0),this.replaceWith(B(this.node,!0)));return y.get("body.body")},t.replaceInline=function(e){if(c.resync.call(this),Array.isArray(e)){if(Array.isArray(this.container)){e=a._verifyNodeList.call(this,e);const t=a._containerInsertAfter.call(this,e);return this.remove(),t}return this.replaceWithMultiple(e)}return this.replaceWith(e)},t.replaceWith=function(e){if(c.resync.call(this),this.removed)throw new Error("You can't replace this node, we've already removed it");let t=e instanceof i.default?e.node:e;if(!t)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===t)return[this];if(this.isProgram()&&!k(t))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(t))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if("string"==typeof t)throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let r="";this.isNodeType("Statement")&&w(t)&&(this.canHaveVariableDeclarationOrExpression()||this.canSwapBetweenExpressionAndStatement(t)||this.parentPath.isExportDefaultDeclaration()||(t=v(t),r="expression"));if(this.isNodeType("Expression")&&N(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t))return this.replaceExpressionWithStatements([t]);const n=this.node;n&&(_(t,n),j(n));return _replaceWith.call(this,t),this.type=t.type,c.setScope.call(this),this.requeue(),[r?this.get(r):this]},t.replaceWithMultiple=function(e){var t;c.resync.call(this);const r=a._verifyNodeList.call(this,e);S(r[0],this.node),P(r[r.length-1],this.node),null==(t=(0,o.getCachedPaths)(this))||t.delete(this.node),this.node=this.container[this.key]=null;const n=this.insertAfter(e);this.node?this.requeue():this.remove();return n},t.replaceWithSourceString=function(e){let t;c.resync.call(this);try{e=`(${e})`,t=(0,l.parse)(e)}catch(t){const r=t.loc;throw r&&(t.message+=" - make sure this is an expression.\n"+(0,n.codeFrameColumns)(e,{start:{line:r.line,column:r.column+1}}),t.code="BABEL_REPLACE_SOURCE_ERROR"),t}const r=t.program.body[0].expression;return s.default.removeProperties(r),this.replaceWith(r)};var n=r("./stubs/babel-codeframe.mjs"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/index.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/index.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/cache.js"),a=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/modification.js"),l=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/parser/lib/index.js"),p=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"),c=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/context.js");const{FUNCTION_TYPES:u,arrowFunctionExpression:d,assignmentExpression:h,awaitExpression:m,blockStatement:f,buildUndefinedNode:y,callExpression:b,cloneNode:g,conditionalExpression:x,expressionStatement:v,getBindingIdentifiers:E,identifier:T,inheritLeadingComments:S,inheritTrailingComments:P,inheritsComments:_,isBlockStatement:A,isEmptyStatement:C,isExpression:w,isExpressionStatement:I,isIfStatement:D,isProgram:k,isStatement:N,isVariableDeclaration:O,removeComments:j,returnStatement:F,sequenceExpression:L,validate:M,yieldExpression:B}=p;function _replaceWith(e){var t;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?M(this.parent,this.key,[e]):M(this.parent,this.key,e),this.debug(`Replace with ${null==e?void 0:e.type}`),null==(t=(0,o.getCachedPaths)(this))||t.set(e,this).delete(this.node),this.node=e,this.container[this.key]=e}function gatherSequenceExpressions(e,t){const r=[];let n=!0;for(const s of e)if(C(s)||(n=!1),w(s))r.push(s);else if(I(s))r.push(s.expression);else if(O(s)){if("var"!==s.kind)return;for(const e of s.declarations){const n=E(e);for(const e of Object.keys(n))t.push(g(n[e]));e.init&&r.push(h("=",e.id,e.init))}n=!0}else if(D(s)){const e=s.consequent?gatherSequenceExpressions([s.consequent],t):y(),n=s.alternate?gatherSequenceExpressions([s.alternate],t):y();if(!e||!n)return;r.push(x(s.test,e,n))}else if(A(s)){const e=gatherSequenceExpressions(s.body,t);if(!e)return;r.push(e)}else{if(!C(s))return;0===e.indexOf(s)&&(n=!0)}return n&&r.push(y()),1===r.length?r[0]:L(r)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/scope/binding.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class{constructor({identifier:e,scope:t,path:r,kind:n}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=e,this.scope=t,this.path=r,this.kind=n,"var"!==n&&"hoisted"!==n||!function(e){const t=!e.isVariableDeclarator()||e.node.init;for(let{parentPath:r,key:n}=e;r;({parentPath:r,key:n}=r)){if(r.isFunctionParent())return!1;if("left"===n&&r.isForXStatement()||t&&"body"===n&&r.isLoop())return!0}return!1}(r)||this.reassign(r),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(e){this.hasDeoptedValue||(this.hasValue=!0,this.value=e)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(e){this.constant=!1,this.constantViolations.includes(e)||this.constantViolations.push(e)}reference(e){this.referencePaths.includes(e)||(this.referenced=!0,this.references++,this.referencePaths.push(e))}dereference(){this.references--,this.referenced=!!this.references}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/scope/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/scope/lib/renamer.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/index.js"),i=(r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/scope/traverseForScope.js"),r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/scope/binding.js")),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"),a=o,l=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/cache.js");const p=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-globals/data/builtin-lower.json"),c=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-globals/data/builtin-upper.json"),{assignmentExpression:u,callExpression:d,cloneNode:h,getBindingIdentifiers:m,identifier:f,isArrayExpression:y,isBinary:b,isCallExpression:g,isClass:x,isClassBody:v,isClassDeclaration:E,isExportAllDeclaration:T,isExportDefaultDeclaration:S,isExportNamedDeclaration:P,isFunctionDeclaration:_,isIdentifier:A,isImportDeclaration:C,isLiteral:w,isMemberExpression:I,isMethod:D,isModuleSpecifier:k,isNullLiteral:N,isObjectExpression:O,isProperty:j,isPureish:F,isRegExpLiteral:L,isSuper:M,isTaggedTemplateExpression:B,isTemplateLiteral:R,isThisExpression:U,isUnaryExpression:V,isVariableDeclaration:$,expressionStatement:K,matchesPattern:W,memberExpression:q,numericLiteral:H,toIdentifier:z,variableDeclaration:G,variableDeclarator:X,isObjectProperty:J,isTopicReference:Y,isMetaProperty:Q,isPrivateName:Z,isExportDeclaration:ee,buildUndefinedNode:te,sequenceExpression:re}=o;function gatherNodeParts(e,t){switch(null==e?void 0:e.type){default:var r;if(C(e)||ee(e))if((T(e)||P(e)||C(e))&&e.source)gatherNodeParts(e.source,t);else if((P(e)||C(e))&&null!=(r=e.specifiers)&&r.length)for(const r of e.specifiers)gatherNodeParts(r,t);else(S(e)||P(e))&&e.declaration&&gatherNodeParts(e.declaration,t);else k(e)?gatherNodeParts(e.local,t):!w(e)||N(e)||L(e)||R(e)||t.push(e.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":gatherNodeParts(e.object,t),gatherNodeParts(e.property,t);break;case"Identifier":case"JSXIdentifier":t.push(e.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":gatherNodeParts(e.callee,t);break;case"ObjectExpression":case"ObjectPattern":for(const r of e.properties)gatherNodeParts(r,t);break;case"SpreadElement":case"RestElement":case"UnaryExpression":case"UpdateExpression":gatherNodeParts(e.argument,t);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":gatherNodeParts(e.key,t);break;case"ThisExpression":t.push("this");break;case"Super":t.push("super");break;case"Import":case"ImportExpression":t.push("import");break;case"DoExpression":t.push("do");break;case"YieldExpression":t.push("yield"),gatherNodeParts(e.argument,t);break;case"AwaitExpression":t.push("await"),gatherNodeParts(e.argument,t);break;case"AssignmentExpression":gatherNodeParts(e.left,t);break;case"VariableDeclarator":case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":case"PrivateName":gatherNodeParts(e.id,t);break;case"ParenthesizedExpression":gatherNodeParts(e.expression,t);break;case"MetaProperty":gatherNodeParts(e.meta,t),gatherNodeParts(e.property,t);break;case"JSXElement":gatherNodeParts(e.openingElement,t);break;case"JSXOpeningElement":gatherNodeParts(e.name,t);break;case"JSXFragment":gatherNodeParts(e.openingFragment,t);break;case"JSXOpeningFragment":t.push("Fragment");break;case"JSXNamespacedName":gatherNodeParts(e.namespace,t),gatherNodeParts(e.name,t)}}function resetScope(e){e.references=Object.create(null),e.uids=Object.create(null),e.bindings=Object.create(null),e.globals=Object.create(null)}var ne=Symbol.for("should not be considered a local binding");const se={ForStatement(e){const t=e.get("init");if(t.isVar()){const{scope:r}=e;(r.getFunctionParent()||r.getProgramParent()).registerBinding("var",t)}},Declaration(e){if(e.isBlockScoped())return;if(e.isImportDeclaration())return;if(e.isExportDeclaration())return;(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e)},ImportDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},TSImportEqualsDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},ReferencedIdentifier(e,t){a.isTSQualifiedName(e.parent)&&e.parent.right===e.node||e.parentPath.isTSImportEqualsDeclaration()||t.references.push(e)},ForXStatement(e,t){const r=e.get("left");if(r.isPattern()||r.isIdentifier())t.constantViolations.push(e);else if(r.isVar()){const{scope:t}=e;(t.getFunctionParent()||t.getProgramParent()).registerBinding("var",r)}},ExportDeclaration:{exit(e){const{node:t,scope:r}=e;if(T(t))return;const n=t.declaration;if(E(n)||_(n)){const t=n.id;if(!t)return;const s=r.getBinding(t.name);null==s||s.reference(e)}else if($(n))for(const t of n.declarations)for(const n of Object.keys(m(t))){const t=r.getBinding(n);null==t||t.reference(e)}}},LabeledStatement(e){e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression(e,t){t.assignments.push(e)},UpdateExpression(e,t){t.constantViolations.push(e)},UnaryExpression(e,t){"delete"===e.node.operator&&t.constantViolations.push(e)},BlockScoped(e){let t=e.scope;t.path===e&&(t=t.parent);if(t.getBlockParent().registerDeclaration(e),e.isClassDeclaration()&&e.node.id){const t=e.node.id.name;e.scope.bindings[t]=e.scope.parent.getBinding(t)}},CatchClause(e){e.scope.registerBinding("let",e)},Function(e){const t=e.get("params");for(const r of t)e.scope.registerBinding("param",r);e.isFunctionExpression()&&e.node.id&&!e.node.id[ne]&&e.scope.registerBinding("local",e.get("id"),e)},ClassExpression(e){e.node.id&&!e.node.id[ne]&&e.scope.registerBinding("local",e.get("id"),e)},TSTypeAnnotation(e){e.skip()}};let ie,oe=0;class Scope{constructor(e){this.uid=void 0,this.path=void 0,this.block=void 0,this.inited=void 0,this.labels=void 0,this.bindings=void 0,this.referencesSet=void 0,this.globals=void 0,this.uidsSet=void 0,this.data=void 0,this.crawling=void 0;const{node:t}=e,r=l.scope.get(t);if((null==r?void 0:r.path)===e)return r;l.scope.set(t,this),this.uid=oe++,this.block=t,this.path=e,this.labels=new Map,this.inited=!1,Object.defineProperties(this,{references:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)},uids:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)}})}get parent(){var e;let t,r=this.path;do{var n;const e="key"===r.key||"decorators"===r.listKey;r=r.parentPath,e&&r.isMethod()&&(r=r.parentPath),null!=(n=r)&&n.isScope()&&(t=r)}while(r&&!t);return null==(e=t)?void 0:e.scope}get references(){throw new Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw new Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(e){const t=this.generateUidIdentifier(e);return this.push({id:t}),h(t)}generateUidIdentifier(e){return f(this.generateUid(e))}generateUid(e="temp"){let t;e=z(e).replace(/^_+/,"").replace(/\d+$/g,"");let r=0;do{t=`_${e}`,r>=11?t+=r-1:r>=9?t+=r-9:r>=1&&(t+=r+1),r++}while(this.hasLabel(t)||this.hasBinding(t)||this.hasGlobal(t)||this.hasReference(t));const n=this.getProgramParent();return n.references[t]=!0,n.uids[t]=!0,t}generateUidBasedOnNode(e,t){const r=[];gatherNodeParts(e,r);let n=r.join("$");return n=n.replace(/^_/,"")||t||"ref",this.generateUid(n.slice(0,20))}generateUidIdentifierBasedOnNode(e,t){return f(this.generateUidBasedOnNode(e,t))}isStatic(e){if(U(e)||M(e)||Y(e))return!0;if(A(e)){const t=this.getBinding(e.name);return t?t.constant:this.hasBinding(e.name)}return!1}maybeGenerateMemoised(e,t){if(this.isStatic(e))return null;{const r=this.generateUidIdentifierBasedOnNode(e);return t?r:(this.push({id:r}),h(r))}}checkBlockScopedCollisions(e,t,r,n){if("param"===t)return;if("local"===e.kind)return;if("let"===t||"let"===e.kind||"const"===e.kind||"module"===e.kind||"param"===e.kind&&"const"===t)throw this.path.hub.buildError(n,`Duplicate declaration "${r}"`,TypeError)}rename(e,t){const r=this.getBinding(e);if(r){t||(t=this.generateUidIdentifier(e).name);new n.default(r,e,t).rename(arguments[2])}}dump(){const e="-".repeat(60);console.log(e);let t=this;do{console.log("#",t.block.type);for(const e of Object.keys(t.bindings)){const r=t.bindings[e];console.log(" -",e,{constant:r.constant,references:r.references,violations:r.constantViolations.length,kind:r.kind})}}while(t=t.parent);console.log(e)}hasLabel(e){return!!this.getLabel(e)}getLabel(e){return this.labels.get(e)}registerLabel(e){this.labels.set(e.node.label.name,e)}registerDeclaration(e){if(e.isLabeledStatement())this.registerLabel(e);else if(e.isFunctionDeclaration())this.registerBinding("hoisted",e.get("id"),e);else if(e.isVariableDeclaration()){const t=e.get("declarations"),{kind:r}=e.node;for(const e of t)this.registerBinding("using"===r||"await using"===r?"const":r,e)}else if(e.isClassDeclaration()){if(e.node.declare)return;this.registerBinding("let",e)}else if(e.isImportDeclaration()){const t="type"===e.node.importKind||"typeof"===e.node.importKind,r=e.get("specifiers");for(const e of r){const r=t||e.isImportSpecifier()&&("type"===e.node.importKind||"typeof"===e.node.importKind);this.registerBinding(r?"unknown":"module",e)}}else if(e.isExportDeclaration()){const t=e.get("declaration");(t.isClassDeclaration()||t.isFunctionDeclaration()||t.isVariableDeclaration())&&this.registerDeclaration(t)}else this.registerBinding("unknown",e)}buildUndefinedNode(){return te()}registerConstantViolation(e){const t=e.getAssignmentIdentifiers();for(const n of Object.keys(t)){var r;null==(r=this.getBinding(n))||r.reassign(e)}}registerBinding(e,t,r=t){if(!e)throw new ReferenceError("no `kind`");if(t.isVariableDeclaration()){const r=t.get("declarations");for(const t of r)this.registerBinding(e,t);return}const n=this.getProgramParent(),s=t.getOuterBindingIdentifiers(!0);for(const t of Object.keys(s)){n.references[t]=!0;for(const n of s[t]){const s=this.getOwnBinding(t);if(s){if(s.identifier===n)continue;this.checkBlockScopedCollisions(s,e,t,n)}s?s.reassign(r):this.bindings[t]=new i.default({identifier:n,scope:this,path:r,kind:e})}}}addGlobal(e){this.globals[e.name]=e}hasUid(e){let t=this;do{if(t.uids[e])return!0}while(t=t.parent);return!1}hasGlobal(e){let t=this;do{if(t.globals[e])return!0}while(t=t.parent);return!1}hasReference(e){return!!this.getProgramParent().references[e]}isPure(e,t){if(A(e)){const r=this.getBinding(e.name);return!!r&&(!t||r.constant)}if(U(e)||Q(e)||Y(e)||Z(e))return!0;var r,n,s;if(x(e))return!(e.superClass&&!this.isPure(e.superClass,t))&&(!((null==(r=e.decorators)?void 0:r.length)>0)&&this.isPure(e.body,t));if(v(e)){for(const r of e.body)if(!this.isPure(r,t))return!1;return!0}if(b(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);if(y(e)||"TupleExpression"===(null==e?void 0:e.type)){for(const r of e.elements)if(null!==r&&!this.isPure(r,t))return!1;return!0}if(O(e)||"RecordExpression"===(null==e?void 0:e.type)){for(const r of e.properties)if(!this.isPure(r,t))return!1;return!0}if(D(e))return!(e.computed&&!this.isPure(e.key,t))&&!((null==(n=e.decorators)?void 0:n.length)>0);if(j(e))return!(e.computed&&!this.isPure(e.key,t))&&(!((null==(s=e.decorators)?void 0:s.length)>0)&&!((J(e)||e.static)&&null!==e.value&&!this.isPure(e.value,t)));if(V(e))return this.isPure(e.argument,t);if(R(e)){for(const r of e.expressions)if(!this.isPure(r,t))return!1;return!0}return B(e)?W(e.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(e.quasi,t):I(e)?!e.computed&&A(e.object)&&"Symbol"===e.object.name&&A(e.property)&&"for"!==e.property.name&&!this.hasBinding("Symbol",{noGlobals:!0}):g(e)?W(e.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&1===e.arguments.length&&a.isStringLiteral(e.arguments[0]):F(e)}setData(e,t){return this.data[e]=t}getData(e){let t=this;do{const r=t.data[e];if(null!=r)return r}while(t=t.parent)}removeData(e){let t=this;do{null!=t.data[e]&&(t.data[e]=null)}while(t=t.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){const e=this.path;resetScope(this),this.data=Object.create(null);let t=this;do{if(t.crawling)return;if(t.path.isProgram())break}while(t=t.parent);const r=t,n={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,ie||(ie=s.default.visitors.merge([{Scope(e){resetScope(e.scope)}},se])),"Program"!==e.type){const t=ie[e.type];if(t)for(const r of t.enter)r.call(n,e,n)}e.traverse(ie,n),this.crawling=!1;for(const e of n.assignments){const t=e.getAssignmentIdentifiers();for(const n of Object.keys(t))e.scope.getBinding(n)||r.addGlobal(t[n]);e.scope.registerConstantViolation(e)}for(const e of n.references){const t=e.scope.getBinding(e.node.name);t?t.reference(e):r.addGlobal(e.node)}for(const e of n.constantViolations)e.scope.registerConstantViolation(e)}push(e){let t=this.path;t.isPattern()?t=this.getPatternParent().path:t.isBlockStatement()||t.isProgram()||(t=this.getBlockParent().path),t.isSwitchStatement()&&(t=(this.getFunctionParent()||this.getProgramParent()).path);const{init:r,unique:n,kind:s="var",id:i}=e;if(!r&&!n&&("var"===s||"let"===s)&&function(e){return e.isFunctionExpression()&&!e.node.id||e.isArrowFunctionExpression()}(t)&&g(t.parent,{callee:t.node})&&t.parent.arguments.length<=t.node.params.length&&A(i))return t.pushContainer("params",i),void t.scope.registerBinding("param",t.get("params")[t.node.params.length-1]);(t.isLoop()||t.isCatchClause()||t.isFunction())&&(t.ensureBlock(),t=t.get("body"));const o=null==e._blockHoist?2:e._blockHoist,a=`declaration:${s}:${o}`;let l=!n&&t.getData(a);if(!l){const e=G(s,[]);e._blockHoist=o,[l]=t.unshiftContainer("body",[e]),n||t.setData(a,l)}const p=X(i,r),c=l.node.declarations.push(p);t.scope.registerBinding(s,l.get("declarations")[c-1])}getProgramParent(){let e=this;do{if(e.path.isProgram())return e}while(e=e.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let e=this;do{if(e.path.isFunctionParent())return e}while(e=e.parent);return null}getBlockParent(){let e=this;do{if(e.path.isBlockParent())return e}while(e=e.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let e=this;do{if(!e.path.isPattern())return e.getBlockParent()}while(e=e.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){const e=Object.create(null);let t=this;do{for(const r of Object.keys(t.bindings))r in e==!1&&(e[r]=t.bindings[r]);t=t.parent}while(t);return e}bindingIdentifierEquals(e,t){return this.getBindingIdentifier(e)===t}getBinding(e){let t,r=this;do{const s=r.getOwnBinding(e);var n;if(s){if(null==(n=t)||!n.isPattern()||"param"===s.kind||"local"===s.kind)return s}else if(!s&&"arguments"===e&&r.path.isFunction()&&!r.path.isArrowFunctionExpression())break;t=r.path}while(r=r.parent)}getOwnBinding(e){return this.bindings[e]}getBindingIdentifier(e){var t;return null==(t=this.getBinding(e))?void 0:t.identifier}getOwnBindingIdentifier(e){const t=this.bindings[e];return null==t?void 0:t.identifier}hasOwnBinding(e){return!!this.getOwnBinding(e)}hasBinding(e,t){if(!e)return!1;let r,n,s;"object"==typeof t?(r=t.noGlobals,n=t.noUids,s=t.upToScope):"boolean"==typeof t&&(r=t);let i=this;do{if(s===i)break;if(i.hasOwnBinding(e))return!0}while(i=i.parent);return!(n||!this.hasUid(e))||(!(r||!Scope.globals.includes(e))||!(r||!Scope.contextVariables.includes(e)))}parentHasBinding(e,t){var r;return null==(r=this.parent)?void 0:r.hasBinding(e,t)}moveBindingTo(e,t){const r=this.getBinding(e);r&&(r.scope.removeOwnBinding(e),r.scope=t,t.bindings[e]=r)}removeOwnBinding(e){delete this.bindings[e]}removeBinding(e){var t;null==(t=this.getBinding(e))||t.scope.removeOwnBinding(e);let r=this;do{r.uids[e]&&(r.uids[e]=!1)}while(r=r.parent)}hoistVariables(e=e=>this.push({id:e})){this.crawl();const t=new Set;for(const r of Object.keys(this.bindings)){const n=this.bindings[r];if(!n)continue;const{path:s}=n;if(!s.isVariableDeclarator())continue;const{parent:i,parentPath:o}=s;if("var"!==i.kind||t.has(i))continue;let a;t.add(s.parent);const l=[];for(const t of i.declarations){null!=a||(a=t.id),t.init&&l.push(u("=",t.id,t.init));const r=Object.keys(m(t,!1,!0,!0));for(const n of r)e(f(n),null!=t.init)}if(o.parentPath.isForXStatement({left:i}))o.replaceWith(a);else if(0===l.length)o.remove();else{const e=1===l.length?l[0]:re(l);o.parentPath.isForStatement({init:i})?o.replaceWith(e):o.replaceWith(K(e))}}}}t.default=Scope,Scope.globals=[...p,...c],Scope.contextVariables=["arguments","undefined","Infinity","NaN"],Scope.prototype._renameFromMap=function(e,t,r,n){e[t]&&(e[r]=n,e[t]=null)},Scope.prototype.traverse=function(e,t,r){(0,s.default)(e,t,this,r,this.path)},Scope.prototype._generateUid=function(e,t){let r=e;return t>1&&(r+=t),`_${r}`},Scope.prototype.toArray=function(e,t,r){if(A(e)){const t=this.getBinding(e.name);if(null!=t&&t.constant&&t.path.isGenericType("Array"))return e}if(y(e))return e;if(A(e,{name:"arguments"}))return d(q(q(q(f("Array"),f("prototype")),f("slice")),f("call")),[e]);let n;const s=[e];return!0===t?n="toConsumableArray":"number"==typeof t?(s.push(H(t)),n="slicedToArray"):n="toArray",r&&(s.unshift(this.path.hub.addHelper(n)),n="maybeArrayLike"),d(this.path.hub.addHelper(n),s)},Scope.prototype.getAllBindingsOfKind=function(...e){const t=Object.create(null);for(const r of e){let e=this;do{for(const n of Object.keys(e.bindings)){const s=e.bindings[n];s.kind===r&&(t[n]=s)}e=e.parent}while(e)}return t},Object.defineProperties(Scope.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}})},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/scope/lib/renamer.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"),s=n,i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/traverse-node.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/visitors.js"),a=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/context.js");const{getAssignmentIdentifiers:l}=s,p={ReferencedIdentifier({node:e},t){e.name===t.oldName&&(e.name=t.newName)},Scope(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():a.requeueComputedKeyAndDecorators.call(e)),e.isSwitchStatement()&&e.context.maybeQueue(e.get("discriminant")))},ObjectProperty({node:e,scope:t},r){const{name:n}=e.key;var s;!e.shorthand||n!==r.oldName&&n!==r.newName||t.getBindingIdentifier(n)!==r.binding.identifier||(e.shorthand=!1,null!=(s=e.extra)&&s.shorthand&&(e.extra.shorthand=!1))},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;const r=e.isAssignmentExpression()?l(e.node):e.getOuterBindingIdentifiers();for(const e in r)e===t.oldName&&(r[e].name=t.newName)}};t.default=class{constructor(e,t,r){this.newName=r,this.oldName=t,this.binding=e}maybeConvertFromExportDeclaration(e){const t=e.parentPath;if(t.isExportDeclaration()){if(t.isExportDefaultDeclaration()){const{declaration:e}=t.node;if(n.isDeclaration(e)&&!e.id)return}t.isExportAllDeclaration()||t.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(e){return e}maybeConvertFromClassFunctionExpression(e){return e}rename(){const{binding:e,oldName:t,newName:r}=this,{scope:s,path:a}=e,l=a.find(e=>e.isDeclaration()||e.isFunctionExpression()||e.isClassExpression());if(l){l.getOuterBindingIdentifiers()[t]===e.identifier&&this.maybeConvertFromExportDeclaration(l)}const c=arguments[0]||s.block,u={discriminant:!0};n.isMethod(c)&&(c.computed&&(u.key=!0),n.isObjectMethod(c)||(u.decorators=!0)),(0,i.traverseNode)(c,(0,o.explode)(p),s,this,s.path,u),arguments[0]||(s.removeOwnBinding(t),s.bindings[r]=e,this.binding.identifier.name=r),l&&(this.maybeConvertFromClassFunctionDeclaration(a),this.maybeConvertFromClassFunctionExpression(a))}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/scope/traverseForScope.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){const n=(0,i.explode)(t);if(n.enter||n.exit)throw new Error("Should not be used with enter/exit visitors.");!function _traverse(e,t,i,l,p,c,u,d){if(!i)return;const h=d||s.NodePath.get({hub:u,parentPath:e,parent:t,container:l,listKey:c,key:p});o._forceSetScope.call(h);const m=n[i.type];if(null!=m&&m.enter)for(const e of m.enter)e.call(r,h,r);if(h.shouldSkip)return;const f=a[i.type];if(null!=f&&f.length){for(const e of f){const t=i[e];if(t)if(Array.isArray(t))for(let r=0;r<t.length;r++)_traverse(h,i,t[r],t,r,e);else _traverse(h,i,t,i,e,null)}if(null!=m&&m.exit)for(const e of m.exit)e.call(r,h,r)}}(e.parentPath,e.parent,e.node,e.container,e.key,e.listKey,e.hub,e)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/index.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/visitors.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/context.js");const{VISITOR_KEYS:a}=n},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/traverse-node.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.traverseNode=function(e,t,r,s,o,a,l){const p=i[e.type];if(!p)return!1;const c=new n.default(r,t,s,o);if(l)return(null==a||!a[o.parentKey])&&c.visitQueue([o]);for(const t of p)if((null==a||!a[t])&&c.visit(e,t))return!0;return!1};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/context.js"),s=(r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/index.js"),r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"));r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/context.js");const{VISITOR_KEYS:i}=s},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/visitors.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.environmentVisitor=function(e){return merge([d,e])},t.explode=explode$1,t.isExplodedVisitor=isExplodedVisitor,t.merge=merge,t.verify=verify$1;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/lib/virtual-types.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/traverse/lib/path/context.js");const{DEPRECATED_KEYS:a,DEPRECATED_ALIASES:l,FLIPPED_ALIAS_KEYS:p,TYPES:c,__internal__deprecationWarning:u}=i;function isVirtualType(e){return e in n}function isExplodedVisitor(e){return null==e?void 0:e._exploded}function explode$1(e){if(isExplodedVisitor(e))return e;e._exploded=!0;for(const t of Object.keys(e)){if(shouldIgnoreKey(t))continue;const r=t.split("|");if(1===r.length)continue;const n=e[t];delete e[t];for(const t of r)e[t]=n}verify$1(e),delete e.__esModule,function(e){for(const t of Object.keys(e)){if(shouldIgnoreKey(t))continue;const r=e[t];"function"==typeof r&&(e[t]={enter:r})}}(e),ensureCallbackArrays(e);for(const t of Object.keys(e)){if(shouldIgnoreKey(t))continue;if(!isVirtualType(t))continue;const r=e[t];for(const e of Object.keys(r))r[e]=wrapCheck(t,r[e]);delete e[t];const s=n[t];if(null!==s)for(const t of s){null!=e[t]||(e[t]={}),mergePair(e[t],r)}else mergePair(e,r)}for(const t of Object.keys(e)){if(shouldIgnoreKey(t))continue;let r=p[t];if(t in a){const e=a[t];u(t,e,"Visitor "),r=[e]}else if(t in l){const e=l[t];u(t,e,"Visitor "),r=p[e]}if(!r)continue;const n=e[t];delete e[t];for(const t of r){const r=e[t];r?mergePair(r,n):e[t]=Object.assign({},n)}}for(const t of Object.keys(e))shouldIgnoreKey(t)||ensureCallbackArrays(e[t]);return e}function verify$1(e){if(!e._verified){if("function"==typeof e)throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(const t of Object.keys(e)){if("enter"!==t&&"exit"!==t||validateVisitorMethods(t,e[t]),shouldIgnoreKey(t))continue;if(!c.includes(t))throw new Error(`You gave us a visitor for the node type ${t} but it's not a valid type in @babel/traverse 7.29.0`);const r=e[t];if("object"==typeof r)for(const e of Object.keys(r)){if("enter"!==e&&"exit"!==e)throw new Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${e}`);validateVisitorMethods(`${t}.${e}`,r[e])}}e._verified=!0}}function validateVisitorMethods(e,t){const r=[].concat(t);for(const t of r)if("function"!=typeof t)throw new TypeError(`Non-function found defined in ${e} with type ${typeof t}`)}function merge(e,t=[],r){const n={_verified:!0,_exploded:!0};Object.defineProperty(n,"_exploded",{enumerable:!1}),Object.defineProperty(n,"_verified",{enumerable:!1});for(let s=0;s<e.length;s++){const i=explode$1(e[s]),o=t[s];let a=i;(o||r)&&(a=wrapWithStateOrWrapper(a,o,r)),mergePair(n,a);for(const e of Object.keys(i)){if(shouldIgnoreKey(e))continue;let t=i[e];(o||r)&&(t=wrapWithStateOrWrapper(t,o,r));mergePair(n[e]||(n[e]={}),t)}}return n}function wrapWithStateOrWrapper(e,t,r){const n={};for(const s of["enter","exit"]){let i=e[s];Array.isArray(i)&&(i=i.map(function(e){let n=e;return t&&(n=function(r){e.call(t,r,t)}),r&&(n=r(null==t?void 0:t.key,s,n)),n!==e&&(n.toString=()=>e.toString()),n}),n[s]=i)}return n}function ensureCallbackArrays(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function wrapCheck(e,t){const r=s[`is${e}`],newFn=function(e){if(r.call(e))return t.apply(this,arguments)};return newFn.toString=()=>t.toString(),newFn}function shouldIgnoreKey(e){return!!e.startsWith("_")||("enter"===e||"exit"===e||"shouldSkip"===e||("denylist"===e||"noScope"===e||"skipKeys"===e||"blacklist"===e))}function mergePair(e,t){for(const r of["enter","exit"])t[r]&&(e[r]=[].concat(e[r]||[],t[r]))}const d={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():o.requeueComputedKeyAndDecorators.call(e)))},Property(e){e.isObjectProperty()||(e.skip(),e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():o.requeueComputedKeyAndDecorators.call(e))}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/asserts/assertNode.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!(0,n.default)(e)){var t;const r=null!=(t=null==e?void 0:e.type)?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${r}"`)}};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isNode.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/asserts/generated/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertAccessor=function(e,t){assert("Accessor",e,t)},t.assertAnyTypeAnnotation=function(e,t){assert("AnyTypeAnnotation",e,t)},t.assertArgumentPlaceholder=function(e,t){assert("ArgumentPlaceholder",e,t)},t.assertArrayExpression=function(e,t){assert("ArrayExpression",e,t)},t.assertArrayPattern=function(e,t){assert("ArrayPattern",e,t)},t.assertArrayTypeAnnotation=function(e,t){assert("ArrayTypeAnnotation",e,t)},t.assertArrowFunctionExpression=function(e,t){assert("ArrowFunctionExpression",e,t)},t.assertAssignmentExpression=function(e,t){assert("AssignmentExpression",e,t)},t.assertAssignmentPattern=function(e,t){assert("AssignmentPattern",e,t)},t.assertAwaitExpression=function(e,t){assert("AwaitExpression",e,t)},t.assertBigIntLiteral=function(e,t){assert("BigIntLiteral",e,t)},t.assertBinary=function(e,t){assert("Binary",e,t)},t.assertBinaryExpression=function(e,t){assert("BinaryExpression",e,t)},t.assertBindExpression=function(e,t){assert("BindExpression",e,t)},t.assertBlock=function(e,t){assert("Block",e,t)},t.assertBlockParent=function(e,t){assert("BlockParent",e,t)},t.assertBlockStatement=function(e,t){assert("BlockStatement",e,t)},t.assertBooleanLiteral=function(e,t){assert("BooleanLiteral",e,t)},t.assertBooleanLiteralTypeAnnotation=function(e,t){assert("BooleanLiteralTypeAnnotation",e,t)},t.assertBooleanTypeAnnotation=function(e,t){assert("BooleanTypeAnnotation",e,t)},t.assertBreakStatement=function(e,t){assert("BreakStatement",e,t)},t.assertCallExpression=function(e,t){assert("CallExpression",e,t)},t.assertCatchClause=function(e,t){assert("CatchClause",e,t)},t.assertClass=function(e,t){assert("Class",e,t)},t.assertClassAccessorProperty=function(e,t){assert("ClassAccessorProperty",e,t)},t.assertClassBody=function(e,t){assert("ClassBody",e,t)},t.assertClassDeclaration=function(e,t){assert("ClassDeclaration",e,t)},t.assertClassExpression=function(e,t){assert("ClassExpression",e,t)},t.assertClassImplements=function(e,t){assert("ClassImplements",e,t)},t.assertClassMethod=function(e,t){assert("ClassMethod",e,t)},t.assertClassPrivateMethod=function(e,t){assert("ClassPrivateMethod",e,t)},t.assertClassPrivateProperty=function(e,t){assert("ClassPrivateProperty",e,t)},t.assertClassProperty=function(e,t){assert("ClassProperty",e,t)},t.assertCompletionStatement=function(e,t){assert("CompletionStatement",e,t)},t.assertConditional=function(e,t){assert("Conditional",e,t)},t.assertConditionalExpression=function(e,t){assert("ConditionalExpression",e,t)},t.assertContinueStatement=function(e,t){assert("ContinueStatement",e,t)},t.assertDebuggerStatement=function(e,t){assert("DebuggerStatement",e,t)},t.assertDecimalLiteral=function(e,t){assert("DecimalLiteral",e,t)},t.assertDeclaration=function(e,t){assert("Declaration",e,t)},t.assertDeclareClass=function(e,t){assert("DeclareClass",e,t)},t.assertDeclareExportAllDeclaration=function(e,t){assert("DeclareExportAllDeclaration",e,t)},t.assertDeclareExportDeclaration=function(e,t){assert("DeclareExportDeclaration",e,t)},t.assertDeclareFunction=function(e,t){assert("DeclareFunction",e,t)},t.assertDeclareInterface=function(e,t){assert("DeclareInterface",e,t)},t.assertDeclareModule=function(e,t){assert("DeclareModule",e,t)},t.assertDeclareModuleExports=function(e,t){assert("DeclareModuleExports",e,t)},t.assertDeclareOpaqueType=function(e,t){assert("DeclareOpaqueType",e,t)},t.assertDeclareTypeAlias=function(e,t){assert("DeclareTypeAlias",e,t)},t.assertDeclareVariable=function(e,t){assert("DeclareVariable",e,t)},t.assertDeclaredPredicate=function(e,t){assert("DeclaredPredicate",e,t)},t.assertDecorator=function(e,t){assert("Decorator",e,t)},t.assertDirective=function(e,t){assert("Directive",e,t)},t.assertDirectiveLiteral=function(e,t){assert("DirectiveLiteral",e,t)},t.assertDoExpression=function(e,t){assert("DoExpression",e,t)},t.assertDoWhileStatement=function(e,t){assert("DoWhileStatement",e,t)},t.assertEmptyStatement=function(e,t){assert("EmptyStatement",e,t)},t.assertEmptyTypeAnnotation=function(e,t){assert("EmptyTypeAnnotation",e,t)},t.assertEnumBody=function(e,t){assert("EnumBody",e,t)},t.assertEnumBooleanBody=function(e,t){assert("EnumBooleanBody",e,t)},t.assertEnumBooleanMember=function(e,t){assert("EnumBooleanMember",e,t)},t.assertEnumDeclaration=function(e,t){assert("EnumDeclaration",e,t)},t.assertEnumDefaultedMember=function(e,t){assert("EnumDefaultedMember",e,t)},t.assertEnumMember=function(e,t){assert("EnumMember",e,t)},t.assertEnumNumberBody=function(e,t){assert("EnumNumberBody",e,t)},t.assertEnumNumberMember=function(e,t){assert("EnumNumberMember",e,t)},t.assertEnumStringBody=function(e,t){assert("EnumStringBody",e,t)},t.assertEnumStringMember=function(e,t){assert("EnumStringMember",e,t)},t.assertEnumSymbolBody=function(e,t){assert("EnumSymbolBody",e,t)},t.assertExistsTypeAnnotation=function(e,t){assert("ExistsTypeAnnotation",e,t)},t.assertExportAllDeclaration=function(e,t){assert("ExportAllDeclaration",e,t)},t.assertExportDeclaration=function(e,t){assert("ExportDeclaration",e,t)},t.assertExportDefaultDeclaration=function(e,t){assert("ExportDefaultDeclaration",e,t)},t.assertExportDefaultSpecifier=function(e,t){assert("ExportDefaultSpecifier",e,t)},t.assertExportNamedDeclaration=function(e,t){assert("ExportNamedDeclaration",e,t)},t.assertExportNamespaceSpecifier=function(e,t){assert("ExportNamespaceSpecifier",e,t)},t.assertExportSpecifier=function(e,t){assert("ExportSpecifier",e,t)},t.assertExpression=function(e,t){assert("Expression",e,t)},t.assertExpressionStatement=function(e,t){assert("ExpressionStatement",e,t)},t.assertExpressionWrapper=function(e,t){assert("ExpressionWrapper",e,t)},t.assertFile=function(e,t){assert("File",e,t)},t.assertFlow=function(e,t){assert("Flow",e,t)},t.assertFlowBaseAnnotation=function(e,t){assert("FlowBaseAnnotation",e,t)},t.assertFlowDeclaration=function(e,t){assert("FlowDeclaration",e,t)},t.assertFlowPredicate=function(e,t){assert("FlowPredicate",e,t)},t.assertFlowType=function(e,t){assert("FlowType",e,t)},t.assertFor=function(e,t){assert("For",e,t)},t.assertForInStatement=function(e,t){assert("ForInStatement",e,t)},t.assertForOfStatement=function(e,t){assert("ForOfStatement",e,t)},t.assertForStatement=function(e,t){assert("ForStatement",e,t)},t.assertForXStatement=function(e,t){assert("ForXStatement",e,t)},t.assertFunction=function(e,t){assert("Function",e,t)},t.assertFunctionDeclaration=function(e,t){assert("FunctionDeclaration",e,t)},t.assertFunctionExpression=function(e,t){assert("FunctionExpression",e,t)},t.assertFunctionParameter=function(e,t){assert("FunctionParameter",e,t)},t.assertFunctionParent=function(e,t){assert("FunctionParent",e,t)},t.assertFunctionTypeAnnotation=function(e,t){assert("FunctionTypeAnnotation",e,t)},t.assertFunctionTypeParam=function(e,t){assert("FunctionTypeParam",e,t)},t.assertGenericTypeAnnotation=function(e,t){assert("GenericTypeAnnotation",e,t)},t.assertIdentifier=function(e,t){assert("Identifier",e,t)},t.assertIfStatement=function(e,t){assert("IfStatement",e,t)},t.assertImmutable=function(e,t){assert("Immutable",e,t)},t.assertImport=function(e,t){assert("Import",e,t)},t.assertImportAttribute=function(e,t){assert("ImportAttribute",e,t)},t.assertImportDeclaration=function(e,t){assert("ImportDeclaration",e,t)},t.assertImportDefaultSpecifier=function(e,t){assert("ImportDefaultSpecifier",e,t)},t.assertImportExpression=function(e,t){assert("ImportExpression",e,t)},t.assertImportNamespaceSpecifier=function(e,t){assert("ImportNamespaceSpecifier",e,t)},t.assertImportOrExportDeclaration=function(e,t){assert("ImportOrExportDeclaration",e,t)},t.assertImportSpecifier=function(e,t){assert("ImportSpecifier",e,t)},t.assertIndexedAccessType=function(e,t){assert("IndexedAccessType",e,t)},t.assertInferredPredicate=function(e,t){assert("InferredPredicate",e,t)},t.assertInterfaceDeclaration=function(e,t){assert("InterfaceDeclaration",e,t)},t.assertInterfaceExtends=function(e,t){assert("InterfaceExtends",e,t)},t.assertInterfaceTypeAnnotation=function(e,t){assert("InterfaceTypeAnnotation",e,t)},t.assertInterpreterDirective=function(e,t){assert("InterpreterDirective",e,t)},t.assertIntersectionTypeAnnotation=function(e,t){assert("IntersectionTypeAnnotation",e,t)},t.assertJSX=function(e,t){assert("JSX",e,t)},t.assertJSXAttribute=function(e,t){assert("JSXAttribute",e,t)},t.assertJSXClosingElement=function(e,t){assert("JSXClosingElement",e,t)},t.assertJSXClosingFragment=function(e,t){assert("JSXClosingFragment",e,t)},t.assertJSXElement=function(e,t){assert("JSXElement",e,t)},t.assertJSXEmptyExpression=function(e,t){assert("JSXEmptyExpression",e,t)},t.assertJSXExpressionContainer=function(e,t){assert("JSXExpressionContainer",e,t)},t.assertJSXFragment=function(e,t){assert("JSXFragment",e,t)},t.assertJSXIdentifier=function(e,t){assert("JSXIdentifier",e,t)},t.assertJSXMemberExpression=function(e,t){assert("JSXMemberExpression",e,t)},t.assertJSXNamespacedName=function(e,t){assert("JSXNamespacedName",e,t)},t.assertJSXOpeningElement=function(e,t){assert("JSXOpeningElement",e,t)},t.assertJSXOpeningFragment=function(e,t){assert("JSXOpeningFragment",e,t)},t.assertJSXSpreadAttribute=function(e,t){assert("JSXSpreadAttribute",e,t)},t.assertJSXSpreadChild=function(e,t){assert("JSXSpreadChild",e,t)},t.assertJSXText=function(e,t){assert("JSXText",e,t)},t.assertLVal=function(e,t){assert("LVal",e,t)},t.assertLabeledStatement=function(e,t){assert("LabeledStatement",e,t)},t.assertLiteral=function(e,t){assert("Literal",e,t)},t.assertLogicalExpression=function(e,t){assert("LogicalExpression",e,t)},t.assertLoop=function(e,t){assert("Loop",e,t)},t.assertMemberExpression=function(e,t){assert("MemberExpression",e,t)},t.assertMetaProperty=function(e,t){assert("MetaProperty",e,t)},t.assertMethod=function(e,t){assert("Method",e,t)},t.assertMiscellaneous=function(e,t){assert("Miscellaneous",e,t)},t.assertMixedTypeAnnotation=function(e,t){assert("MixedTypeAnnotation",e,t)},t.assertModuleDeclaration=function(e,t){(0,s.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),assert("ModuleDeclaration",e,t)},t.assertModuleExpression=function(e,t){assert("ModuleExpression",e,t)},t.assertModuleSpecifier=function(e,t){assert("ModuleSpecifier",e,t)},t.assertNewExpression=function(e,t){assert("NewExpression",e,t)},t.assertNoop=function(e,t){assert("Noop",e,t)},t.assertNullLiteral=function(e,t){assert("NullLiteral",e,t)},t.assertNullLiteralTypeAnnotation=function(e,t){assert("NullLiteralTypeAnnotation",e,t)},t.assertNullableTypeAnnotation=function(e,t){assert("NullableTypeAnnotation",e,t)},t.assertNumberLiteral=function(e,t){(0,s.default)("assertNumberLiteral","assertNumericLiteral"),assert("NumberLiteral",e,t)},t.assertNumberLiteralTypeAnnotation=function(e,t){assert("NumberLiteralTypeAnnotation",e,t)},t.assertNumberTypeAnnotation=function(e,t){assert("NumberTypeAnnotation",e,t)},t.assertNumericLiteral=function(e,t){assert("NumericLiteral",e,t)},t.assertObjectExpression=function(e,t){assert("ObjectExpression",e,t)},t.assertObjectMember=function(e,t){assert("ObjectMember",e,t)},t.assertObjectMethod=function(e,t){assert("ObjectMethod",e,t)},t.assertObjectPattern=function(e,t){assert("ObjectPattern",e,t)},t.assertObjectProperty=function(e,t){assert("ObjectProperty",e,t)},t.assertObjectTypeAnnotation=function(e,t){assert("ObjectTypeAnnotation",e,t)},t.assertObjectTypeCallProperty=function(e,t){assert("ObjectTypeCallProperty",e,t)},t.assertObjectTypeIndexer=function(e,t){assert("ObjectTypeIndexer",e,t)},t.assertObjectTypeInternalSlot=function(e,t){assert("ObjectTypeInternalSlot",e,t)},t.assertObjectTypeProperty=function(e,t){assert("ObjectTypeProperty",e,t)},t.assertObjectTypeSpreadProperty=function(e,t){assert("ObjectTypeSpreadProperty",e,t)},t.assertOpaqueType=function(e,t){assert("OpaqueType",e,t)},t.assertOptionalCallExpression=function(e,t){assert("OptionalCallExpression",e,t)},t.assertOptionalIndexedAccessType=function(e,t){assert("OptionalIndexedAccessType",e,t)},t.assertOptionalMemberExpression=function(e,t){assert("OptionalMemberExpression",e,t)},t.assertParenthesizedExpression=function(e,t){assert("ParenthesizedExpression",e,t)},t.assertPattern=function(e,t){assert("Pattern",e,t)},t.assertPatternLike=function(e,t){assert("PatternLike",e,t)},t.assertPipelineBareFunction=function(e,t){assert("PipelineBareFunction",e,t)},t.assertPipelinePrimaryTopicReference=function(e,t){assert("PipelinePrimaryTopicReference",e,t)},t.assertPipelineTopicExpression=function(e,t){assert("PipelineTopicExpression",e,t)},t.assertPlaceholder=function(e,t){assert("Placeholder",e,t)},t.assertPrivate=function(e,t){assert("Private",e,t)},t.assertPrivateName=function(e,t){assert("PrivateName",e,t)},t.assertProgram=function(e,t){assert("Program",e,t)},t.assertProperty=function(e,t){assert("Property",e,t)},t.assertPureish=function(e,t){assert("Pureish",e,t)},t.assertQualifiedTypeIdentifier=function(e,t){assert("QualifiedTypeIdentifier",e,t)},t.assertRecordExpression=function(e,t){assert("RecordExpression",e,t)},t.assertRegExpLiteral=function(e,t){assert("RegExpLiteral",e,t)},t.assertRegexLiteral=function(e,t){(0,s.default)("assertRegexLiteral","assertRegExpLiteral"),assert("RegexLiteral",e,t)},t.assertRestElement=function(e,t){assert("RestElement",e,t)},t.assertRestProperty=function(e,t){(0,s.default)("assertRestProperty","assertRestElement"),assert("RestProperty",e,t)},t.assertReturnStatement=function(e,t){assert("ReturnStatement",e,t)},t.assertScopable=function(e,t){assert("Scopable",e,t)},t.assertSequenceExpression=function(e,t){assert("SequenceExpression",e,t)},t.assertSpreadElement=function(e,t){assert("SpreadElement",e,t)},t.assertSpreadProperty=function(e,t){(0,s.default)("assertSpreadProperty","assertSpreadElement"),assert("SpreadProperty",e,t)},t.assertStandardized=function(e,t){assert("Standardized",e,t)},t.assertStatement=function(e,t){assert("Statement",e,t)},t.assertStaticBlock=function(e,t){assert("StaticBlock",e,t)},t.assertStringLiteral=function(e,t){assert("StringLiteral",e,t)},t.assertStringLiteralTypeAnnotation=function(e,t){assert("StringLiteralTypeAnnotation",e,t)},t.assertStringTypeAnnotation=function(e,t){assert("StringTypeAnnotation",e,t)},t.assertSuper=function(e,t){assert("Super",e,t)},t.assertSwitchCase=function(e,t){assert("SwitchCase",e,t)},t.assertSwitchStatement=function(e,t){assert("SwitchStatement",e,t)},t.assertSymbolTypeAnnotation=function(e,t){assert("SymbolTypeAnnotation",e,t)},t.assertTSAnyKeyword=function(e,t){assert("TSAnyKeyword",e,t)},t.assertTSArrayType=function(e,t){assert("TSArrayType",e,t)},t.assertTSAsExpression=function(e,t){assert("TSAsExpression",e,t)},t.assertTSBaseType=function(e,t){assert("TSBaseType",e,t)},t.assertTSBigIntKeyword=function(e,t){assert("TSBigIntKeyword",e,t)},t.assertTSBooleanKeyword=function(e,t){assert("TSBooleanKeyword",e,t)},t.assertTSCallSignatureDeclaration=function(e,t){assert("TSCallSignatureDeclaration",e,t)},t.assertTSConditionalType=function(e,t){assert("TSConditionalType",e,t)},t.assertTSConstructSignatureDeclaration=function(e,t){assert("TSConstructSignatureDeclaration",e,t)},t.assertTSConstructorType=function(e,t){assert("TSConstructorType",e,t)},t.assertTSDeclareFunction=function(e,t){assert("TSDeclareFunction",e,t)},t.assertTSDeclareMethod=function(e,t){assert("TSDeclareMethod",e,t)},t.assertTSEntityName=function(e,t){assert("TSEntityName",e,t)},t.assertTSEnumBody=function(e,t){assert("TSEnumBody",e,t)},t.assertTSEnumDeclaration=function(e,t){assert("TSEnumDeclaration",e,t)},t.assertTSEnumMember=function(e,t){assert("TSEnumMember",e,t)},t.assertTSExportAssignment=function(e,t){assert("TSExportAssignment",e,t)},t.assertTSExpressionWithTypeArguments=function(e,t){assert("TSExpressionWithTypeArguments",e,t)},t.assertTSExternalModuleReference=function(e,t){assert("TSExternalModuleReference",e,t)},t.assertTSFunctionType=function(e,t){assert("TSFunctionType",e,t)},t.assertTSImportEqualsDeclaration=function(e,t){assert("TSImportEqualsDeclaration",e,t)},t.assertTSImportType=function(e,t){assert("TSImportType",e,t)},t.assertTSIndexSignature=function(e,t){assert("TSIndexSignature",e,t)},t.assertTSIndexedAccessType=function(e,t){assert("TSIndexedAccessType",e,t)},t.assertTSInferType=function(e,t){assert("TSInferType",e,t)},t.assertTSInstantiationExpression=function(e,t){assert("TSInstantiationExpression",e,t)},t.assertTSInterfaceBody=function(e,t){assert("TSInterfaceBody",e,t)},t.assertTSInterfaceDeclaration=function(e,t){assert("TSInterfaceDeclaration",e,t)},t.assertTSIntersectionType=function(e,t){assert("TSIntersectionType",e,t)},t.assertTSIntrinsicKeyword=function(e,t){assert("TSIntrinsicKeyword",e,t)},t.assertTSLiteralType=function(e,t){assert("TSLiteralType",e,t)},t.assertTSMappedType=function(e,t){assert("TSMappedType",e,t)},t.assertTSMethodSignature=function(e,t){assert("TSMethodSignature",e,t)},t.assertTSModuleBlock=function(e,t){assert("TSModuleBlock",e,t)},t.assertTSModuleDeclaration=function(e,t){assert("TSModuleDeclaration",e,t)},t.assertTSNamedTupleMember=function(e,t){assert("TSNamedTupleMember",e,t)},t.assertTSNamespaceExportDeclaration=function(e,t){assert("TSNamespaceExportDeclaration",e,t)},t.assertTSNeverKeyword=function(e,t){assert("TSNeverKeyword",e,t)},t.assertTSNonNullExpression=function(e,t){assert("TSNonNullExpression",e,t)},t.assertTSNullKeyword=function(e,t){assert("TSNullKeyword",e,t)},t.assertTSNumberKeyword=function(e,t){assert("TSNumberKeyword",e,t)},t.assertTSObjectKeyword=function(e,t){assert("TSObjectKeyword",e,t)},t.assertTSOptionalType=function(e,t){assert("TSOptionalType",e,t)},t.assertTSParameterProperty=function(e,t){assert("TSParameterProperty",e,t)},t.assertTSParenthesizedType=function(e,t){assert("TSParenthesizedType",e,t)},t.assertTSPropertySignature=function(e,t){assert("TSPropertySignature",e,t)},t.assertTSQualifiedName=function(e,t){assert("TSQualifiedName",e,t)},t.assertTSRestType=function(e,t){assert("TSRestType",e,t)},t.assertTSSatisfiesExpression=function(e,t){assert("TSSatisfiesExpression",e,t)},t.assertTSStringKeyword=function(e,t){assert("TSStringKeyword",e,t)},t.assertTSSymbolKeyword=function(e,t){assert("TSSymbolKeyword",e,t)},t.assertTSTemplateLiteralType=function(e,t){assert("TSTemplateLiteralType",e,t)},t.assertTSThisType=function(e,t){assert("TSThisType",e,t)},t.assertTSTupleType=function(e,t){assert("TSTupleType",e,t)},t.assertTSType=function(e,t){assert("TSType",e,t)},t.assertTSTypeAliasDeclaration=function(e,t){assert("TSTypeAliasDeclaration",e,t)},t.assertTSTypeAnnotation=function(e,t){assert("TSTypeAnnotation",e,t)},t.assertTSTypeAssertion=function(e,t){assert("TSTypeAssertion",e,t)},t.assertTSTypeElement=function(e,t){assert("TSTypeElement",e,t)},t.assertTSTypeLiteral=function(e,t){assert("TSTypeLiteral",e,t)},t.assertTSTypeOperator=function(e,t){assert("TSTypeOperator",e,t)},t.assertTSTypeParameter=function(e,t){assert("TSTypeParameter",e,t)},t.assertTSTypeParameterDeclaration=function(e,t){assert("TSTypeParameterDeclaration",e,t)},t.assertTSTypeParameterInstantiation=function(e,t){assert("TSTypeParameterInstantiation",e,t)},t.assertTSTypePredicate=function(e,t){assert("TSTypePredicate",e,t)},t.assertTSTypeQuery=function(e,t){assert("TSTypeQuery",e,t)},t.assertTSTypeReference=function(e,t){assert("TSTypeReference",e,t)},t.assertTSUndefinedKeyword=function(e,t){assert("TSUndefinedKeyword",e,t)},t.assertTSUnionType=function(e,t){assert("TSUnionType",e,t)},t.assertTSUnknownKeyword=function(e,t){assert("TSUnknownKeyword",e,t)},t.assertTSVoidKeyword=function(e,t){assert("TSVoidKeyword",e,t)},t.assertTaggedTemplateExpression=function(e,t){assert("TaggedTemplateExpression",e,t)},t.assertTemplateElement=function(e,t){assert("TemplateElement",e,t)},t.assertTemplateLiteral=function(e,t){assert("TemplateLiteral",e,t)},t.assertTerminatorless=function(e,t){assert("Terminatorless",e,t)},t.assertThisExpression=function(e,t){assert("ThisExpression",e,t)},t.assertThisTypeAnnotation=function(e,t){assert("ThisTypeAnnotation",e,t)},t.assertThrowStatement=function(e,t){assert("ThrowStatement",e,t)},t.assertTopicReference=function(e,t){assert("TopicReference",e,t)},t.assertTryStatement=function(e,t){assert("TryStatement",e,t)},t.assertTupleExpression=function(e,t){assert("TupleExpression",e,t)},t.assertTupleTypeAnnotation=function(e,t){assert("TupleTypeAnnotation",e,t)},t.assertTypeAlias=function(e,t){assert("TypeAlias",e,t)},t.assertTypeAnnotation=function(e,t){assert("TypeAnnotation",e,t)},t.assertTypeCastExpression=function(e,t){assert("TypeCastExpression",e,t)},t.assertTypeParameter=function(e,t){assert("TypeParameter",e,t)},t.assertTypeParameterDeclaration=function(e,t){assert("TypeParameterDeclaration",e,t)},t.assertTypeParameterInstantiation=function(e,t){assert("TypeParameterInstantiation",e,t)},t.assertTypeScript=function(e,t){assert("TypeScript",e,t)},t.assertTypeofTypeAnnotation=function(e,t){assert("TypeofTypeAnnotation",e,t)},t.assertUnaryExpression=function(e,t){assert("UnaryExpression",e,t)},t.assertUnaryLike=function(e,t){assert("UnaryLike",e,t)},t.assertUnionTypeAnnotation=function(e,t){assert("UnionTypeAnnotation",e,t)},t.assertUpdateExpression=function(e,t){assert("UpdateExpression",e,t)},t.assertUserWhitespacable=function(e,t){assert("UserWhitespacable",e,t)},t.assertV8IntrinsicIdentifier=function(e,t){assert("V8IntrinsicIdentifier",e,t)},t.assertVariableDeclaration=function(e,t){assert("VariableDeclaration",e,t)},t.assertVariableDeclarator=function(e,t){assert("VariableDeclarator",e,t)},t.assertVariance=function(e,t){assert("Variance",e,t)},t.assertVoidPattern=function(e,t){assert("VoidPattern",e,t)},t.assertVoidTypeAnnotation=function(e,t){assert("VoidTypeAnnotation",e,t)},t.assertWhile=function(e,t){assert("While",e,t)},t.assertWhileStatement=function(e,t){assert("WhileStatement",e,t)},t.assertWithStatement=function(e,t){assert("WithStatement",e,t)},t.assertYieldExpression=function(e,t){assert("YieldExpression",e,t)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/is.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/utils/deprecationWarning.js");function assert(e,t,r){if(!(0,n.default)(e,t,r))throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=(0,s.default)(e);return 1===t.length?t[0]:(0,n.unionTypeAnnotation)(t)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/generated/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/generated/index.js");t.default=function(e){switch(e){case"string":return(0,n.stringTypeAnnotation)();case"number":return(0,n.numberTypeAnnotation)();case"undefined":return(0,n.voidTypeAnnotation)();case"boolean":return(0,n.booleanTypeAnnotation)();case"function":return(0,n.genericTypeAnnotation)((0,n.identifier)("Function"));case"object":return(0,n.genericTypeAnnotation)((0,n.identifier)("Object"));case"symbol":return(0,n.genericTypeAnnotation)((0,n.identifier)("Symbol"));case"bigint":return(0,n.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+e)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/generated/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/generated/lowercase.js");Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))});var s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/generated/uppercase.js");Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))})},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/generated/lowercase.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.anyTypeAnnotation=function(){return{type:"AnyTypeAnnotation"}},t.argumentPlaceholder=function(){return{type:"ArgumentPlaceholder"}},t.arrayExpression=function(e=[]){const t={type:"ArrayExpression",elements:e},r=a.ArrayExpression;return o(r.elements,t,"elements",e,1),t},t.arrayPattern=function(e){const t={type:"ArrayPattern",elements:e},r=a.ArrayPattern;return o(r.elements,t,"elements",e,1),t},t.arrayTypeAnnotation=function(e){const t={type:"ArrayTypeAnnotation",elementType:e},r=a.ArrayTypeAnnotation;return o(r.elementType,t,"elementType",e,1),t},t.arrowFunctionExpression=function(e,t,r=!1){const n={type:"ArrowFunctionExpression",params:e,body:t,async:r,expression:null},s=a.ArrowFunctionExpression;return o(s.params,n,"params",e,1),o(s.body,n,"body",t,1),o(s.async,n,"async",r),n},t.assignmentExpression=function(e,t,r){const n={type:"AssignmentExpression",operator:e,left:t,right:r},s=a.AssignmentExpression;return o(s.operator,n,"operator",e),o(s.left,n,"left",t,1),o(s.right,n,"right",r,1),n},t.assignmentPattern=function(e,t){const r={type:"AssignmentPattern",left:e,right:t},n=a.AssignmentPattern;return o(n.left,r,"left",e,1),o(n.right,r,"right",t,1),r},t.awaitExpression=function(e){const t={type:"AwaitExpression",argument:e},r=a.AwaitExpression;return o(r.argument,t,"argument",e,1),t},t.bigIntLiteral=function(e){"bigint"==typeof e&&(e=e.toString());const t={type:"BigIntLiteral",value:e},r=a.BigIntLiteral;return o(r.value,t,"value",e),t},t.binaryExpression=function(e,t,r){const n={type:"BinaryExpression",operator:e,left:t,right:r},s=a.BinaryExpression;return o(s.operator,n,"operator",e),o(s.left,n,"left",t,1),o(s.right,n,"right",r,1),n},t.bindExpression=function(e,t){const r={type:"BindExpression",object:e,callee:t},n=a.BindExpression;return o(n.object,r,"object",e,1),o(n.callee,r,"callee",t,1),r},t.blockStatement=function(e,t=[]){const r={type:"BlockStatement",body:e,directives:t},n=a.BlockStatement;return o(n.body,r,"body",e,1),o(n.directives,r,"directives",t,1),r},t.booleanLiteral=function(e){const t={type:"BooleanLiteral",value:e},r=a.BooleanLiteral;return o(r.value,t,"value",e),t},t.booleanLiteralTypeAnnotation=function(e){const t={type:"BooleanLiteralTypeAnnotation",value:e},r=a.BooleanLiteralTypeAnnotation;return o(r.value,t,"value",e),t},t.booleanTypeAnnotation=function(){return{type:"BooleanTypeAnnotation"}},t.breakStatement=function(e=null){const t={type:"BreakStatement",label:e},r=a.BreakStatement;return o(r.label,t,"label",e,1),t},t.callExpression=function(e,t){const r={type:"CallExpression",callee:e,arguments:t},n=a.CallExpression;return o(n.callee,r,"callee",e,1),o(n.arguments,r,"arguments",t,1),r},t.catchClause=function(e=null,t){const r={type:"CatchClause",param:e,body:t},n=a.CatchClause;return o(n.param,r,"param",e,1),o(n.body,r,"body",t,1),r},t.classAccessorProperty=function(e,t=null,r=null,n=null,s=!1,i=!1){const l={type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:r,decorators:n,computed:s,static:i},p=a.ClassAccessorProperty;return o(p.key,l,"key",e,1),o(p.value,l,"value",t,1),o(p.typeAnnotation,l,"typeAnnotation",r,1),o(p.decorators,l,"decorators",n,1),o(p.computed,l,"computed",s),o(p.static,l,"static",i),l},t.classBody=function(e){const t={type:"ClassBody",body:e},r=a.ClassBody;return o(r.body,t,"body",e,1),t},t.classDeclaration=function(e=null,t=null,r,n=null){const s={type:"ClassDeclaration",id:e,superClass:t,body:r,decorators:n},i=a.ClassDeclaration;return o(i.id,s,"id",e,1),o(i.superClass,s,"superClass",t,1),o(i.body,s,"body",r,1),o(i.decorators,s,"decorators",n,1),s},t.classExpression=function(e=null,t=null,r,n=null){const s={type:"ClassExpression",id:e,superClass:t,body:r,decorators:n},i=a.ClassExpression;return o(i.id,s,"id",e,1),o(i.superClass,s,"superClass",t,1),o(i.body,s,"body",r,1),o(i.decorators,s,"decorators",n,1),s},t.classImplements=function(e,t=null){const r={type:"ClassImplements",id:e,typeParameters:t},n=a.ClassImplements;return o(n.id,r,"id",e,1),o(n.typeParameters,r,"typeParameters",t,1),r},t.classMethod=function(e="method",t,r,n,s=!1,i=!1,l=!1,p=!1){const c={type:"ClassMethod",kind:e,key:t,params:r,body:n,computed:s,static:i,generator:l,async:p},u=a.ClassMethod;return o(u.kind,c,"kind",e),o(u.key,c,"key",t,1),o(u.params,c,"params",r,1),o(u.body,c,"body",n,1),o(u.computed,c,"computed",s),o(u.static,c,"static",i),o(u.generator,c,"generator",l),o(u.async,c,"async",p),c},t.classPrivateMethod=function(e="method",t,r,n,s=!1){const i={type:"ClassPrivateMethod",kind:e,key:t,params:r,body:n,static:s},l=a.ClassPrivateMethod;return o(l.kind,i,"kind",e),o(l.key,i,"key",t,1),o(l.params,i,"params",r,1),o(l.body,i,"body",n,1),o(l.static,i,"static",s),i},t.classPrivateProperty=function(e,t=null,r=null,n=!1){const s={type:"ClassPrivateProperty",key:e,value:t,decorators:r,static:n},i=a.ClassPrivateProperty;return o(i.key,s,"key",e,1),o(i.value,s,"value",t,1),o(i.decorators,s,"decorators",r,1),o(i.static,s,"static",n),s},t.classProperty=function(e,t=null,r=null,n=null,s=!1,i=!1){const l={type:"ClassProperty",key:e,value:t,typeAnnotation:r,decorators:n,computed:s,static:i},p=a.ClassProperty;return o(p.key,l,"key",e,1),o(p.value,l,"value",t,1),o(p.typeAnnotation,l,"typeAnnotation",r,1),o(p.decorators,l,"decorators",n,1),o(p.computed,l,"computed",s),o(p.static,l,"static",i),l},t.conditionalExpression=function(e,t,r){const n={type:"ConditionalExpression",test:e,consequent:t,alternate:r},s=a.ConditionalExpression;return o(s.test,n,"test",e,1),o(s.consequent,n,"consequent",t,1),o(s.alternate,n,"alternate",r,1),n},t.continueStatement=function(e=null){const t={type:"ContinueStatement",label:e},r=a.ContinueStatement;return o(r.label,t,"label",e,1),t},t.debuggerStatement=function(){return{type:"DebuggerStatement"}},t.decimalLiteral=function(e){const t={type:"DecimalLiteral",value:e},r=a.DecimalLiteral;return o(r.value,t,"value",e),t},t.declareClass=function(e,t=null,r=null,n){const s={type:"DeclareClass",id:e,typeParameters:t,extends:r,body:n},i=a.DeclareClass;return o(i.id,s,"id",e,1),o(i.typeParameters,s,"typeParameters",t,1),o(i.extends,s,"extends",r,1),o(i.body,s,"body",n,1),s},t.declareExportAllDeclaration=function(e,t=null){const r={type:"DeclareExportAllDeclaration",source:e,attributes:t},n=a.DeclareExportAllDeclaration;return o(n.source,r,"source",e,1),o(n.attributes,r,"attributes",t,1),r},t.declareExportDeclaration=function(e=null,t=null,r=null,n=null){const s={type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:r,attributes:n},i=a.DeclareExportDeclaration;return o(i.declaration,s,"declaration",e,1),o(i.specifiers,s,"specifiers",t,1),o(i.source,s,"source",r,1),o(i.attributes,s,"attributes",n,1),s},t.declareFunction=function(e){const t={type:"DeclareFunction",id:e},r=a.DeclareFunction;return o(r.id,t,"id",e,1),t},t.declareInterface=function(e,t=null,r=null,n){const s={type:"DeclareInterface",id:e,typeParameters:t,extends:r,body:n},i=a.DeclareInterface;return o(i.id,s,"id",e,1),o(i.typeParameters,s,"typeParameters",t,1),o(i.extends,s,"extends",r,1),o(i.body,s,"body",n,1),s},t.declareModule=function(e,t,r=null){const n={type:"DeclareModule",id:e,body:t,kind:r},s=a.DeclareModule;return o(s.id,n,"id",e,1),o(s.body,n,"body",t,1),o(s.kind,n,"kind",r),n},t.declareModuleExports=function(e){const t={type:"DeclareModuleExports",typeAnnotation:e},r=a.DeclareModuleExports;return o(r.typeAnnotation,t,"typeAnnotation",e,1),t},t.declareOpaqueType=function(e,t=null,r=null){const n={type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:r},s=a.DeclareOpaqueType;return o(s.id,n,"id",e,1),o(s.typeParameters,n,"typeParameters",t,1),o(s.supertype,n,"supertype",r,1),n},t.declareTypeAlias=function(e,t=null,r){const n={type:"DeclareTypeAlias",id:e,typeParameters:t,right:r},s=a.DeclareTypeAlias;return o(s.id,n,"id",e,1),o(s.typeParameters,n,"typeParameters",t,1),o(s.right,n,"right",r,1),n},t.declareVariable=function(e){const t={type:"DeclareVariable",id:e},r=a.DeclareVariable;return o(r.id,t,"id",e,1),t},t.declaredPredicate=function(e){const t={type:"DeclaredPredicate",value:e},r=a.DeclaredPredicate;return o(r.value,t,"value",e,1),t},t.decorator=function(e){const t={type:"Decorator",expression:e},r=a.Decorator;return o(r.expression,t,"expression",e,1),t},t.directive=function(e){const t={type:"Directive",value:e},r=a.Directive;return o(r.value,t,"value",e,1),t},t.directiveLiteral=function(e){const t={type:"DirectiveLiteral",value:e},r=a.DirectiveLiteral;return o(r.value,t,"value",e),t},t.doExpression=function(e,t=!1){const r={type:"DoExpression",body:e,async:t},n=a.DoExpression;return o(n.body,r,"body",e,1),o(n.async,r,"async",t),r},t.doWhileStatement=function(e,t){const r={type:"DoWhileStatement",test:e,body:t},n=a.DoWhileStatement;return o(n.test,r,"test",e,1),o(n.body,r,"body",t,1),r},t.emptyStatement=function(){return{type:"EmptyStatement"}},t.emptyTypeAnnotation=function(){return{type:"EmptyTypeAnnotation"}},t.enumBooleanBody=function(e){const t={type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null},r=a.EnumBooleanBody;return o(r.members,t,"members",e,1),t},t.enumBooleanMember=function(e){const t={type:"EnumBooleanMember",id:e,init:null},r=a.EnumBooleanMember;return o(r.id,t,"id",e,1),t},t.enumDeclaration=function(e,t){const r={type:"EnumDeclaration",id:e,body:t},n=a.EnumDeclaration;return o(n.id,r,"id",e,1),o(n.body,r,"body",t,1),r},t.enumDefaultedMember=function(e){const t={type:"EnumDefaultedMember",id:e},r=a.EnumDefaultedMember;return o(r.id,t,"id",e,1),t},t.enumNumberBody=function(e){const t={type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null},r=a.EnumNumberBody;return o(r.members,t,"members",e,1),t},t.enumNumberMember=function(e,t){const r={type:"EnumNumberMember",id:e,init:t},n=a.EnumNumberMember;return o(n.id,r,"id",e,1),o(n.init,r,"init",t,1),r},t.enumStringBody=function(e){const t={type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null},r=a.EnumStringBody;return o(r.members,t,"members",e,1),t},t.enumStringMember=function(e,t){const r={type:"EnumStringMember",id:e,init:t},n=a.EnumStringMember;return o(n.id,r,"id",e,1),o(n.init,r,"init",t,1),r},t.enumSymbolBody=function(e){const t={type:"EnumSymbolBody",members:e,hasUnknownMembers:null},r=a.EnumSymbolBody;return o(r.members,t,"members",e,1),t},t.existsTypeAnnotation=function(){return{type:"ExistsTypeAnnotation"}},t.exportAllDeclaration=function(e,t=null){const r={type:"ExportAllDeclaration",source:e,attributes:t},n=a.ExportAllDeclaration;return o(n.source,r,"source",e,1),o(n.attributes,r,"attributes",t,1),r},t.exportDefaultDeclaration=function(e){const t={type:"ExportDefaultDeclaration",declaration:e},r=a.ExportDefaultDeclaration;return o(r.declaration,t,"declaration",e,1),t},t.exportDefaultSpecifier=function(e){const t={type:"ExportDefaultSpecifier",exported:e},r=a.ExportDefaultSpecifier;return o(r.exported,t,"exported",e,1),t},t.exportNamedDeclaration=function(e=null,t=[],r=null,n=null){const s={type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:r,attributes:n},i=a.ExportNamedDeclaration;return o(i.declaration,s,"declaration",e,1),o(i.specifiers,s,"specifiers",t,1),o(i.source,s,"source",r,1),o(i.attributes,s,"attributes",n,1),s},t.exportNamespaceSpecifier=function(e){const t={type:"ExportNamespaceSpecifier",exported:e},r=a.ExportNamespaceSpecifier;return o(r.exported,t,"exported",e,1),t},t.exportSpecifier=function(e,t){const r={type:"ExportSpecifier",local:e,exported:t},n=a.ExportSpecifier;return o(n.local,r,"local",e,1),o(n.exported,r,"exported",t,1),r},t.expressionStatement=function(e){const t={type:"ExpressionStatement",expression:e},r=a.ExpressionStatement;return o(r.expression,t,"expression",e,1),t},t.file=function(e,t=null,r=null){const n={type:"File",program:e,comments:t,tokens:r},s=a.File;return o(s.program,n,"program",e,1),o(s.comments,n,"comments",t,1),o(s.tokens,n,"tokens",r),n},t.forInStatement=function(e,t,r){const n={type:"ForInStatement",left:e,right:t,body:r},s=a.ForInStatement;return o(s.left,n,"left",e,1),o(s.right,n,"right",t,1),o(s.body,n,"body",r,1),n},t.forOfStatement=function(e,t,r,n=!1){const s={type:"ForOfStatement",left:e,right:t,body:r,await:n},i=a.ForOfStatement;return o(i.left,s,"left",e,1),o(i.right,s,"right",t,1),o(i.body,s,"body",r,1),o(i.await,s,"await",n),s},t.forStatement=function(e=null,t=null,r=null,n){const s={type:"ForStatement",init:e,test:t,update:r,body:n},i=a.ForStatement;return o(i.init,s,"init",e,1),o(i.test,s,"test",t,1),o(i.update,s,"update",r,1),o(i.body,s,"body",n,1),s},t.functionDeclaration=function(e=null,t,r,n=!1,s=!1){const i={type:"FunctionDeclaration",id:e,params:t,body:r,generator:n,async:s},l=a.FunctionDeclaration;return o(l.id,i,"id",e,1),o(l.params,i,"params",t,1),o(l.body,i,"body",r,1),o(l.generator,i,"generator",n),o(l.async,i,"async",s),i},t.functionExpression=function(e=null,t,r,n=!1,s=!1){const i={type:"FunctionExpression",id:e,params:t,body:r,generator:n,async:s},l=a.FunctionExpression;return o(l.id,i,"id",e,1),o(l.params,i,"params",t,1),o(l.body,i,"body",r,1),o(l.generator,i,"generator",n),o(l.async,i,"async",s),i},t.functionTypeAnnotation=function(e=null,t,r=null,n){const s={type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:r,returnType:n},i=a.FunctionTypeAnnotation;return o(i.typeParameters,s,"typeParameters",e,1),o(i.params,s,"params",t,1),o(i.rest,s,"rest",r,1),o(i.returnType,s,"returnType",n,1),s},t.functionTypeParam=function(e=null,t){const r={type:"FunctionTypeParam",name:e,typeAnnotation:t},n=a.FunctionTypeParam;return o(n.name,r,"name",e,1),o(n.typeAnnotation,r,"typeAnnotation",t,1),r},t.genericTypeAnnotation=function(e,t=null){const r={type:"GenericTypeAnnotation",id:e,typeParameters:t},n=a.GenericTypeAnnotation;return o(n.id,r,"id",e,1),o(n.typeParameters,r,"typeParameters",t,1),r},t.identifier=function(e){const t={type:"Identifier",name:e},r=a.Identifier;return o(r.name,t,"name",e),t},t.ifStatement=function(e,t,r=null){const n={type:"IfStatement",test:e,consequent:t,alternate:r},s=a.IfStatement;return o(s.test,n,"test",e,1),o(s.consequent,n,"consequent",t,1),o(s.alternate,n,"alternate",r,1),n},t.import=function(){return{type:"Import"}},t.importAttribute=function(e,t){const r={type:"ImportAttribute",key:e,value:t},n=a.ImportAttribute;return o(n.key,r,"key",e,1),o(n.value,r,"value",t,1),r},t.importDeclaration=function(e,t,r=null){const n={type:"ImportDeclaration",specifiers:e,source:t,attributes:r},s=a.ImportDeclaration;return o(s.specifiers,n,"specifiers",e,1),o(s.source,n,"source",t,1),o(s.attributes,n,"attributes",r,1),n},t.importDefaultSpecifier=function(e){const t={type:"ImportDefaultSpecifier",local:e},r=a.ImportDefaultSpecifier;return o(r.local,t,"local",e,1),t},t.importExpression=function(e,t=null){const r={type:"ImportExpression",source:e,options:t},n=a.ImportExpression;return o(n.source,r,"source",e,1),o(n.options,r,"options",t,1),r},t.importNamespaceSpecifier=function(e){const t={type:"ImportNamespaceSpecifier",local:e},r=a.ImportNamespaceSpecifier;return o(r.local,t,"local",e,1),t},t.importSpecifier=function(e,t){const r={type:"ImportSpecifier",local:e,imported:t},n=a.ImportSpecifier;return o(n.local,r,"local",e,1),o(n.imported,r,"imported",t,1),r},t.indexedAccessType=function(e,t){const r={type:"IndexedAccessType",objectType:e,indexType:t},n=a.IndexedAccessType;return o(n.objectType,r,"objectType",e,1),o(n.indexType,r,"indexType",t,1),r},t.inferredPredicate=function(){return{type:"InferredPredicate"}},t.interfaceDeclaration=function(e,t=null,r=null,n){const s={type:"InterfaceDeclaration",id:e,typeParameters:t,extends:r,body:n},i=a.InterfaceDeclaration;return o(i.id,s,"id",e,1),o(i.typeParameters,s,"typeParameters",t,1),o(i.extends,s,"extends",r,1),o(i.body,s,"body",n,1),s},t.interfaceExtends=function(e,t=null){const r={type:"InterfaceExtends",id:e,typeParameters:t},n=a.InterfaceExtends;return o(n.id,r,"id",e,1),o(n.typeParameters,r,"typeParameters",t,1),r},t.interfaceTypeAnnotation=function(e=null,t){const r={type:"InterfaceTypeAnnotation",extends:e,body:t},n=a.InterfaceTypeAnnotation;return o(n.extends,r,"extends",e,1),o(n.body,r,"body",t,1),r},t.interpreterDirective=function(e){const t={type:"InterpreterDirective",value:e},r=a.InterpreterDirective;return o(r.value,t,"value",e),t},t.intersectionTypeAnnotation=function(e){const t={type:"IntersectionTypeAnnotation",types:e},r=a.IntersectionTypeAnnotation;return o(r.types,t,"types",e,1),t},t.jSXAttribute=t.jsxAttribute=function(e,t=null){const r={type:"JSXAttribute",name:e,value:t},n=a.JSXAttribute;return o(n.name,r,"name",e,1),o(n.value,r,"value",t,1),r},t.jSXClosingElement=t.jsxClosingElement=function(e){const t={type:"JSXClosingElement",name:e},r=a.JSXClosingElement;return o(r.name,t,"name",e,1),t},t.jSXClosingFragment=t.jsxClosingFragment=function(){return{type:"JSXClosingFragment"}},t.jSXElement=t.jsxElement=function(e,t=null,r,n=null){const s={type:"JSXElement",openingElement:e,closingElement:t,children:r,selfClosing:n},i=a.JSXElement;return o(i.openingElement,s,"openingElement",e,1),o(i.closingElement,s,"closingElement",t,1),o(i.children,s,"children",r,1),o(i.selfClosing,s,"selfClosing",n),s},t.jSXEmptyExpression=t.jsxEmptyExpression=function(){return{type:"JSXEmptyExpression"}},t.jSXExpressionContainer=t.jsxExpressionContainer=function(e){const t={type:"JSXExpressionContainer",expression:e},r=a.JSXExpressionContainer;return o(r.expression,t,"expression",e,1),t},t.jSXFragment=t.jsxFragment=function(e,t,r){const n={type:"JSXFragment",openingFragment:e,closingFragment:t,children:r},s=a.JSXFragment;return o(s.openingFragment,n,"openingFragment",e,1),o(s.closingFragment,n,"closingFragment",t,1),o(s.children,n,"children",r,1),n},t.jSXIdentifier=t.jsxIdentifier=function(e){const t={type:"JSXIdentifier",name:e},r=a.JSXIdentifier;return o(r.name,t,"name",e),t},t.jSXMemberExpression=t.jsxMemberExpression=function(e,t){const r={type:"JSXMemberExpression",object:e,property:t},n=a.JSXMemberExpression;return o(n.object,r,"object",e,1),o(n.property,r,"property",t,1),r},t.jSXNamespacedName=t.jsxNamespacedName=function(e,t){const r={type:"JSXNamespacedName",namespace:e,name:t},n=a.JSXNamespacedName;return o(n.namespace,r,"namespace",e,1),o(n.name,r,"name",t,1),r},t.jSXOpeningElement=t.jsxOpeningElement=function(e,t,r=!1){const n={type:"JSXOpeningElement",name:e,attributes:t,selfClosing:r},s=a.JSXOpeningElement;return o(s.name,n,"name",e,1),o(s.attributes,n,"attributes",t,1),o(s.selfClosing,n,"selfClosing",r),n},t.jSXOpeningFragment=t.jsxOpeningFragment=function(){return{type:"JSXOpeningFragment"}},t.jSXSpreadAttribute=t.jsxSpreadAttribute=function(e){const t={type:"JSXSpreadAttribute",argument:e},r=a.JSXSpreadAttribute;return o(r.argument,t,"argument",e,1),t},t.jSXSpreadChild=t.jsxSpreadChild=function(e){const t={type:"JSXSpreadChild",expression:e},r=a.JSXSpreadChild;return o(r.expression,t,"expression",e,1),t},t.jSXText=t.jsxText=function(e){const t={type:"JSXText",value:e},r=a.JSXText;return o(r.value,t,"value",e),t},t.labeledStatement=function(e,t){const r={type:"LabeledStatement",label:e,body:t},n=a.LabeledStatement;return o(n.label,r,"label",e,1),o(n.body,r,"body",t,1),r},t.logicalExpression=function(e,t,r){const n={type:"LogicalExpression",operator:e,left:t,right:r},s=a.LogicalExpression;return o(s.operator,n,"operator",e),o(s.left,n,"left",t,1),o(s.right,n,"right",r,1),n},t.memberExpression=function(e,t,r=!1,n=null){const s={type:"MemberExpression",object:e,property:t,computed:r,optional:n},i=a.MemberExpression;return o(i.object,s,"object",e,1),o(i.property,s,"property",t,1),o(i.computed,s,"computed",r),o(i.optional,s,"optional",n),s},t.metaProperty=function(e,t){const r={type:"MetaProperty",meta:e,property:t},n=a.MetaProperty;return o(n.meta,r,"meta",e,1),o(n.property,r,"property",t,1),r},t.mixedTypeAnnotation=function(){return{type:"MixedTypeAnnotation"}},t.moduleExpression=function(e){const t={type:"ModuleExpression",body:e},r=a.ModuleExpression;return o(r.body,t,"body",e,1),t},t.newExpression=function(e,t){const r={type:"NewExpression",callee:e,arguments:t},n=a.NewExpression;return o(n.callee,r,"callee",e,1),o(n.arguments,r,"arguments",t,1),r},t.noop=function(){return{type:"Noop"}},t.nullLiteral=function(){return{type:"NullLiteral"}},t.nullLiteralTypeAnnotation=function(){return{type:"NullLiteralTypeAnnotation"}},t.nullableTypeAnnotation=function(e){const t={type:"NullableTypeAnnotation",typeAnnotation:e},r=a.NullableTypeAnnotation;return o(r.typeAnnotation,t,"typeAnnotation",e,1),t},t.numberLiteral=function(e){return(0,s.default)("NumberLiteral","NumericLiteral","The node type "),numericLiteral(e)},t.numberLiteralTypeAnnotation=function(e){const t={type:"NumberLiteralTypeAnnotation",value:e},r=a.NumberLiteralTypeAnnotation;return o(r.value,t,"value",e),t},t.numberTypeAnnotation=function(){return{type:"NumberTypeAnnotation"}},t.numericLiteral=numericLiteral,t.objectExpression=function(e){const t={type:"ObjectExpression",properties:e},r=a.ObjectExpression;return o(r.properties,t,"properties",e,1),t},t.objectMethod=function(e="method",t,r,n,s=!1,i=!1,l=!1){const p={type:"ObjectMethod",kind:e,key:t,params:r,body:n,computed:s,generator:i,async:l},c=a.ObjectMethod;return o(c.kind,p,"kind",e),o(c.key,p,"key",t,1),o(c.params,p,"params",r,1),o(c.body,p,"body",n,1),o(c.computed,p,"computed",s),o(c.generator,p,"generator",i),o(c.async,p,"async",l),p},t.objectPattern=function(e){const t={type:"ObjectPattern",properties:e},r=a.ObjectPattern;return o(r.properties,t,"properties",e,1),t},t.objectProperty=function(e,t,r=!1,n=!1,s=null){const i={type:"ObjectProperty",key:e,value:t,computed:r,shorthand:n,decorators:s},l=a.ObjectProperty;return o(l.key,i,"key",e,1),o(l.value,i,"value",t,1),o(l.computed,i,"computed",r),o(l.shorthand,i,"shorthand",n),o(l.decorators,i,"decorators",s,1),i},t.objectTypeAnnotation=function(e,t=[],r=[],n=[],s=!1){const i={type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:r,internalSlots:n,exact:s},l=a.ObjectTypeAnnotation;return o(l.properties,i,"properties",e,1),o(l.indexers,i,"indexers",t,1),o(l.callProperties,i,"callProperties",r,1),o(l.internalSlots,i,"internalSlots",n,1),o(l.exact,i,"exact",s),i},t.objectTypeCallProperty=function(e){const t={type:"ObjectTypeCallProperty",value:e,static:null},r=a.ObjectTypeCallProperty;return o(r.value,t,"value",e,1),t},t.objectTypeIndexer=function(e=null,t,r,n=null){const s={type:"ObjectTypeIndexer",id:e,key:t,value:r,variance:n,static:null},i=a.ObjectTypeIndexer;return o(i.id,s,"id",e,1),o(i.key,s,"key",t,1),o(i.value,s,"value",r,1),o(i.variance,s,"variance",n,1),s},t.objectTypeInternalSlot=function(e,t,r,n,s){const i={type:"ObjectTypeInternalSlot",id:e,value:t,optional:r,static:n,method:s},l=a.ObjectTypeInternalSlot;return o(l.id,i,"id",e,1),o(l.value,i,"value",t,1),o(l.optional,i,"optional",r),o(l.static,i,"static",n),o(l.method,i,"method",s),i},t.objectTypeProperty=function(e,t,r=null){const n={type:"ObjectTypeProperty",key:e,value:t,variance:r,kind:null,method:null,optional:null,proto:null,static:null},s=a.ObjectTypeProperty;return o(s.key,n,"key",e,1),o(s.value,n,"value",t,1),o(s.variance,n,"variance",r,1),n},t.objectTypeSpreadProperty=function(e){const t={type:"ObjectTypeSpreadProperty",argument:e},r=a.ObjectTypeSpreadProperty;return o(r.argument,t,"argument",e,1),t},t.opaqueType=function(e,t=null,r=null,n){const s={type:"OpaqueType",id:e,typeParameters:t,supertype:r,impltype:n},i=a.OpaqueType;return o(i.id,s,"id",e,1),o(i.typeParameters,s,"typeParameters",t,1),o(i.supertype,s,"supertype",r,1),o(i.impltype,s,"impltype",n,1),s},t.optionalCallExpression=function(e,t,r){const n={type:"OptionalCallExpression",callee:e,arguments:t,optional:r},s=a.OptionalCallExpression;return o(s.callee,n,"callee",e,1),o(s.arguments,n,"arguments",t,1),o(s.optional,n,"optional",r),n},t.optionalIndexedAccessType=function(e,t){const r={type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null},n=a.OptionalIndexedAccessType;return o(n.objectType,r,"objectType",e,1),o(n.indexType,r,"indexType",t,1),r},t.optionalMemberExpression=function(e,t,r=!1,n){const s={type:"OptionalMemberExpression",object:e,property:t,computed:r,optional:n},i=a.OptionalMemberExpression;return o(i.object,s,"object",e,1),o(i.property,s,"property",t,1),o(i.computed,s,"computed",r),o(i.optional,s,"optional",n),s},t.parenthesizedExpression=function(e){const t={type:"ParenthesizedExpression",expression:e},r=a.ParenthesizedExpression;return o(r.expression,t,"expression",e,1),t},t.pipelineBareFunction=function(e){const t={type:"PipelineBareFunction",callee:e},r=a.PipelineBareFunction;return o(r.callee,t,"callee",e,1),t},t.pipelinePrimaryTopicReference=function(){return{type:"PipelinePrimaryTopicReference"}},t.pipelineTopicExpression=function(e){const t={type:"PipelineTopicExpression",expression:e},r=a.PipelineTopicExpression;return o(r.expression,t,"expression",e,1),t},t.placeholder=function(e,t){const r={type:"Placeholder",expectedNode:e,name:t},n=a.Placeholder;return o(n.expectedNode,r,"expectedNode",e),o(n.name,r,"name",t,1),r},t.privateName=function(e){const t={type:"PrivateName",id:e},r=a.PrivateName;return o(r.id,t,"id",e,1),t},t.program=function(e,t=[],r="script",n=null){const s={type:"Program",body:e,directives:t,sourceType:r,interpreter:n},i=a.Program;return o(i.body,s,"body",e,1),o(i.directives,s,"directives",t,1),o(i.sourceType,s,"sourceType",r),o(i.interpreter,s,"interpreter",n,1),s},t.qualifiedTypeIdentifier=function(e,t){const r={type:"QualifiedTypeIdentifier",id:e,qualification:t},n=a.QualifiedTypeIdentifier;return o(n.id,r,"id",e,1),o(n.qualification,r,"qualification",t,1),r},t.recordExpression=function(e){const t={type:"RecordExpression",properties:e},r=a.RecordExpression;return o(r.properties,t,"properties",e,1),t},t.regExpLiteral=regExpLiteral,t.regexLiteral=function(e,t=""){return(0,s.default)("RegexLiteral","RegExpLiteral","The node type "),regExpLiteral(e,t)},t.restElement=restElement,t.restProperty=function(e){return(0,s.default)("RestProperty","RestElement","The node type "),restElement(e)},t.returnStatement=function(e=null){const t={type:"ReturnStatement",argument:e},r=a.ReturnStatement;return o(r.argument,t,"argument",e,1),t},t.sequenceExpression=function(e){const t={type:"SequenceExpression",expressions:e},r=a.SequenceExpression;return o(r.expressions,t,"expressions",e,1),t},t.spreadElement=spreadElement,t.spreadProperty=function(e){return(0,s.default)("SpreadProperty","SpreadElement","The node type "),spreadElement(e)},t.staticBlock=function(e){const t={type:"StaticBlock",body:e},r=a.StaticBlock;return o(r.body,t,"body",e,1),t},t.stringLiteral=function(e){const t={type:"StringLiteral",value:e},r=a.StringLiteral;return o(r.value,t,"value",e),t},t.stringLiteralTypeAnnotation=function(e){const t={type:"StringLiteralTypeAnnotation",value:e},r=a.StringLiteralTypeAnnotation;return o(r.value,t,"value",e),t},t.stringTypeAnnotation=function(){return{type:"StringTypeAnnotation"}},t.super=function(){return{type:"Super"}},t.switchCase=function(e=null,t){const r={type:"SwitchCase",test:e,consequent:t},n=a.SwitchCase;return o(n.test,r,"test",e,1),o(n.consequent,r,"consequent",t,1),r},t.switchStatement=function(e,t){const r={type:"SwitchStatement",discriminant:e,cases:t},n=a.SwitchStatement;return o(n.discriminant,r,"discriminant",e,1),o(n.cases,r,"cases",t,1),r},t.symbolTypeAnnotation=function(){return{type:"SymbolTypeAnnotation"}},t.taggedTemplateExpression=function(e,t){const r={type:"TaggedTemplateExpression",tag:e,quasi:t},n=a.TaggedTemplateExpression;return o(n.tag,r,"tag",e,1),o(n.quasi,r,"quasi",t,1),r},t.templateElement=function(e,t=!1){const r={type:"TemplateElement",value:e,tail:t},n=a.TemplateElement;return o(n.value,r,"value",e),o(n.tail,r,"tail",t),r},t.templateLiteral=function(e,t){const r={type:"TemplateLiteral",quasis:e,expressions:t},n=a.TemplateLiteral;return o(n.quasis,r,"quasis",e,1),o(n.expressions,r,"expressions",t,1),r},t.thisExpression=function(){return{type:"ThisExpression"}},t.thisTypeAnnotation=function(){return{type:"ThisTypeAnnotation"}},t.throwStatement=function(e){const t={type:"ThrowStatement",argument:e},r=a.ThrowStatement;return o(r.argument,t,"argument",e,1),t},t.topicReference=function(){return{type:"TopicReference"}},t.tryStatement=function(e,t=null,r=null){const n={type:"TryStatement",block:e,handler:t,finalizer:r},s=a.TryStatement;return o(s.block,n,"block",e,1),o(s.handler,n,"handler",t,1),o(s.finalizer,n,"finalizer",r,1),n},t.tSAnyKeyword=t.tsAnyKeyword=function(){return{type:"TSAnyKeyword"}},t.tSArrayType=t.tsArrayType=function(e){const t={type:"TSArrayType",elementType:e},r=a.TSArrayType;return o(r.elementType,t,"elementType",e,1),t},t.tSAsExpression=t.tsAsExpression=function(e,t){const r={type:"TSAsExpression",expression:e,typeAnnotation:t},n=a.TSAsExpression;return o(n.expression,r,"expression",e,1),o(n.typeAnnotation,r,"typeAnnotation",t,1),r},t.tSBigIntKeyword=t.tsBigIntKeyword=function(){return{type:"TSBigIntKeyword"}},t.tSBooleanKeyword=t.tsBooleanKeyword=function(){return{type:"TSBooleanKeyword"}},t.tSCallSignatureDeclaration=t.tsCallSignatureDeclaration=function(e=null,t,r=null){const n={type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},s=a.TSCallSignatureDeclaration;return o(s.typeParameters,n,"typeParameters",e,1),o(s.parameters,n,"parameters",t,1),o(s.typeAnnotation,n,"typeAnnotation",r,1),n},t.tSConditionalType=t.tsConditionalType=function(e,t,r,n){const s={type:"TSConditionalType",checkType:e,extendsType:t,trueType:r,falseType:n},i=a.TSConditionalType;return o(i.checkType,s,"checkType",e,1),o(i.extendsType,s,"extendsType",t,1),o(i.trueType,s,"trueType",r,1),o(i.falseType,s,"falseType",n,1),s},t.tSConstructSignatureDeclaration=t.tsConstructSignatureDeclaration=function(e=null,t,r=null){const n={type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},s=a.TSConstructSignatureDeclaration;return o(s.typeParameters,n,"typeParameters",e,1),o(s.parameters,n,"parameters",t,1),o(s.typeAnnotation,n,"typeAnnotation",r,1),n},t.tSConstructorType=t.tsConstructorType=function(e=null,t,r=null){const n={type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:r},s=a.TSConstructorType;return o(s.typeParameters,n,"typeParameters",e,1),o(s.parameters,n,"parameters",t,1),o(s.typeAnnotation,n,"typeAnnotation",r,1),n},t.tSDeclareFunction=t.tsDeclareFunction=function(e=null,t=null,r,n=null){const s={type:"TSDeclareFunction",id:e,typeParameters:t,params:r,returnType:n},i=a.TSDeclareFunction;return o(i.id,s,"id",e,1),o(i.typeParameters,s,"typeParameters",t,1),o(i.params,s,"params",r,1),o(i.returnType,s,"returnType",n,1),s},t.tSDeclareMethod=t.tsDeclareMethod=function(e=null,t,r=null,n,s=null){const i={type:"TSDeclareMethod",decorators:e,key:t,typeParameters:r,params:n,returnType:s},l=a.TSDeclareMethod;return o(l.decorators,i,"decorators",e,1),o(l.key,i,"key",t,1),o(l.typeParameters,i,"typeParameters",r,1),o(l.params,i,"params",n,1),o(l.returnType,i,"returnType",s,1),i},t.tSEnumBody=t.tsEnumBody=function(e){const t={type:"TSEnumBody",members:e},r=a.TSEnumBody;return o(r.members,t,"members",e,1),t},t.tSEnumDeclaration=t.tsEnumDeclaration=function(e,t){const r={type:"TSEnumDeclaration",id:e,members:t},n=a.TSEnumDeclaration;return o(n.id,r,"id",e,1),o(n.members,r,"members",t,1),r},t.tSEnumMember=t.tsEnumMember=function(e,t=null){const r={type:"TSEnumMember",id:e,initializer:t},n=a.TSEnumMember;return o(n.id,r,"id",e,1),o(n.initializer,r,"initializer",t,1),r},t.tSExportAssignment=t.tsExportAssignment=function(e){const t={type:"TSExportAssignment",expression:e},r=a.TSExportAssignment;return o(r.expression,t,"expression",e,1),t},t.tSExpressionWithTypeArguments=t.tsExpressionWithTypeArguments=function(e,t=null){const r={type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t},n=a.TSExpressionWithTypeArguments;return o(n.expression,r,"expression",e,1),o(n.typeParameters,r,"typeParameters",t,1),r},t.tSExternalModuleReference=t.tsExternalModuleReference=function(e){const t={type:"TSExternalModuleReference",expression:e},r=a.TSExternalModuleReference;return o(r.expression,t,"expression",e,1),t},t.tSFunctionType=t.tsFunctionType=function(e=null,t,r=null){const n={type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:r},s=a.TSFunctionType;return o(s.typeParameters,n,"typeParameters",e,1),o(s.parameters,n,"parameters",t,1),o(s.typeAnnotation,n,"typeAnnotation",r,1),n},t.tSImportEqualsDeclaration=t.tsImportEqualsDeclaration=function(e,t){const r={type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null},n=a.TSImportEqualsDeclaration;return o(n.id,r,"id",e,1),o(n.moduleReference,r,"moduleReference",t,1),r},t.tSImportType=t.tsImportType=function(e,t=null,r=null){const n={type:"TSImportType",argument:e,qualifier:t,typeParameters:r},s=a.TSImportType;return o(s.argument,n,"argument",e,1),o(s.qualifier,n,"qualifier",t,1),o(s.typeParameters,n,"typeParameters",r,1),n},t.tSIndexSignature=t.tsIndexSignature=function(e,t=null){const r={type:"TSIndexSignature",parameters:e,typeAnnotation:t},n=a.TSIndexSignature;return o(n.parameters,r,"parameters",e,1),o(n.typeAnnotation,r,"typeAnnotation",t,1),r},t.tSIndexedAccessType=t.tsIndexedAccessType=function(e,t){const r={type:"TSIndexedAccessType",objectType:e,indexType:t},n=a.TSIndexedAccessType;return o(n.objectType,r,"objectType",e,1),o(n.indexType,r,"indexType",t,1),r},t.tSInferType=t.tsInferType=function(e){const t={type:"TSInferType",typeParameter:e},r=a.TSInferType;return o(r.typeParameter,t,"typeParameter",e,1),t},t.tSInstantiationExpression=t.tsInstantiationExpression=function(e,t=null){const r={type:"TSInstantiationExpression",expression:e,typeParameters:t},n=a.TSInstantiationExpression;return o(n.expression,r,"expression",e,1),o(n.typeParameters,r,"typeParameters",t,1),r},t.tSInterfaceBody=t.tsInterfaceBody=function(e){const t={type:"TSInterfaceBody",body:e},r=a.TSInterfaceBody;return o(r.body,t,"body",e,1),t},t.tSInterfaceDeclaration=t.tsInterfaceDeclaration=function(e,t=null,r=null,n){const s={type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:r,body:n},i=a.TSInterfaceDeclaration;return o(i.id,s,"id",e,1),o(i.typeParameters,s,"typeParameters",t,1),o(i.extends,s,"extends",r,1),o(i.body,s,"body",n,1),s},t.tSIntersectionType=t.tsIntersectionType=function(e){const t={type:"TSIntersectionType",types:e},r=a.TSIntersectionType;return o(r.types,t,"types",e,1),t},t.tSIntrinsicKeyword=t.tsIntrinsicKeyword=function(){return{type:"TSIntrinsicKeyword"}},t.tSLiteralType=t.tsLiteralType=function(e){const t={type:"TSLiteralType",literal:e},r=a.TSLiteralType;return o(r.literal,t,"literal",e,1),t},t.tSMappedType=t.tsMappedType=function(e,t=null,r=null){const n={type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:r},s=a.TSMappedType;return o(s.typeParameter,n,"typeParameter",e,1),o(s.typeAnnotation,n,"typeAnnotation",t,1),o(s.nameType,n,"nameType",r,1),n},t.tSMethodSignature=t.tsMethodSignature=function(e,t=null,r,n=null){const s={type:"TSMethodSignature",key:e,typeParameters:t,parameters:r,typeAnnotation:n,kind:null},i=a.TSMethodSignature;return o(i.key,s,"key",e,1),o(i.typeParameters,s,"typeParameters",t,1),o(i.parameters,s,"parameters",r,1),o(i.typeAnnotation,s,"typeAnnotation",n,1),s},t.tSModuleBlock=t.tsModuleBlock=function(e){const t={type:"TSModuleBlock",body:e},r=a.TSModuleBlock;return o(r.body,t,"body",e,1),t},t.tSModuleDeclaration=t.tsModuleDeclaration=function(e,t){const r={type:"TSModuleDeclaration",id:e,body:t,kind:null},n=a.TSModuleDeclaration;return o(n.id,r,"id",e,1),o(n.body,r,"body",t,1),r},t.tSNamedTupleMember=t.tsNamedTupleMember=function(e,t,r=!1){const n={type:"TSNamedTupleMember",label:e,elementType:t,optional:r},s=a.TSNamedTupleMember;return o(s.label,n,"label",e,1),o(s.elementType,n,"elementType",t,1),o(s.optional,n,"optional",r),n},t.tSNamespaceExportDeclaration=t.tsNamespaceExportDeclaration=function(e){const t={type:"TSNamespaceExportDeclaration",id:e},r=a.TSNamespaceExportDeclaration;return o(r.id,t,"id",e,1),t},t.tSNeverKeyword=t.tsNeverKeyword=function(){return{type:"TSNeverKeyword"}},t.tSNonNullExpression=t.tsNonNullExpression=function(e){const t={type:"TSNonNullExpression",expression:e},r=a.TSNonNullExpression;return o(r.expression,t,"expression",e,1),t},t.tSNullKeyword=t.tsNullKeyword=function(){return{type:"TSNullKeyword"}},t.tSNumberKeyword=t.tsNumberKeyword=function(){return{type:"TSNumberKeyword"}},t.tSObjectKeyword=t.tsObjectKeyword=function(){return{type:"TSObjectKeyword"}},t.tSOptionalType=t.tsOptionalType=function(e){const t={type:"TSOptionalType",typeAnnotation:e},r=a.TSOptionalType;return o(r.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSParameterProperty=t.tsParameterProperty=function(e){const t={type:"TSParameterProperty",parameter:e},r=a.TSParameterProperty;return o(r.parameter,t,"parameter",e,1),t},t.tSParenthesizedType=t.tsParenthesizedType=function(e){const t={type:"TSParenthesizedType",typeAnnotation:e},r=a.TSParenthesizedType;return o(r.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSPropertySignature=t.tsPropertySignature=function(e,t=null){const r={type:"TSPropertySignature",key:e,typeAnnotation:t},n=a.TSPropertySignature;return o(n.key,r,"key",e,1),o(n.typeAnnotation,r,"typeAnnotation",t,1),r},t.tSQualifiedName=t.tsQualifiedName=function(e,t){const r={type:"TSQualifiedName",left:e,right:t},n=a.TSQualifiedName;return o(n.left,r,"left",e,1),o(n.right,r,"right",t,1),r},t.tSRestType=t.tsRestType=function(e){const t={type:"TSRestType",typeAnnotation:e},r=a.TSRestType;return o(r.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSSatisfiesExpression=t.tsSatisfiesExpression=function(e,t){const r={type:"TSSatisfiesExpression",expression:e,typeAnnotation:t},n=a.TSSatisfiesExpression;return o(n.expression,r,"expression",e,1),o(n.typeAnnotation,r,"typeAnnotation",t,1),r},t.tSStringKeyword=t.tsStringKeyword=function(){return{type:"TSStringKeyword"}},t.tSSymbolKeyword=t.tsSymbolKeyword=function(){return{type:"TSSymbolKeyword"}},t.tSTemplateLiteralType=t.tsTemplateLiteralType=function(e,t){const r={type:"TSTemplateLiteralType",quasis:e,types:t},n=a.TSTemplateLiteralType;return o(n.quasis,r,"quasis",e,1),o(n.types,r,"types",t,1),r},t.tSThisType=t.tsThisType=function(){return{type:"TSThisType"}},t.tSTupleType=t.tsTupleType=function(e){const t={type:"TSTupleType",elementTypes:e},r=a.TSTupleType;return o(r.elementTypes,t,"elementTypes",e,1),t},t.tSTypeAliasDeclaration=t.tsTypeAliasDeclaration=function(e,t=null,r){const n={type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:r},s=a.TSTypeAliasDeclaration;return o(s.id,n,"id",e,1),o(s.typeParameters,n,"typeParameters",t,1),o(s.typeAnnotation,n,"typeAnnotation",r,1),n},t.tSTypeAnnotation=t.tsTypeAnnotation=function(e){const t={type:"TSTypeAnnotation",typeAnnotation:e},r=a.TSTypeAnnotation;return o(r.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSTypeAssertion=t.tsTypeAssertion=function(e,t){const r={type:"TSTypeAssertion",typeAnnotation:e,expression:t},n=a.TSTypeAssertion;return o(n.typeAnnotation,r,"typeAnnotation",e,1),o(n.expression,r,"expression",t,1),r},t.tSTypeLiteral=t.tsTypeLiteral=function(e){const t={type:"TSTypeLiteral",members:e},r=a.TSTypeLiteral;return o(r.members,t,"members",e,1),t},t.tSTypeOperator=t.tsTypeOperator=function(e,t="keyof"){const r={type:"TSTypeOperator",typeAnnotation:e,operator:t},n=a.TSTypeOperator;return o(n.typeAnnotation,r,"typeAnnotation",e,1),o(n.operator,r,"operator",t),r},t.tSTypeParameter=t.tsTypeParameter=function(e=null,t=null,r){const n={type:"TSTypeParameter",constraint:e,default:t,name:r},s=a.TSTypeParameter;return o(s.constraint,n,"constraint",e,1),o(s.default,n,"default",t,1),o(s.name,n,"name",r),n},t.tSTypeParameterDeclaration=t.tsTypeParameterDeclaration=function(e){const t={type:"TSTypeParameterDeclaration",params:e},r=a.TSTypeParameterDeclaration;return o(r.params,t,"params",e,1),t},t.tSTypeParameterInstantiation=t.tsTypeParameterInstantiation=function(e){const t={type:"TSTypeParameterInstantiation",params:e},r=a.TSTypeParameterInstantiation;return o(r.params,t,"params",e,1),t},t.tSTypePredicate=t.tsTypePredicate=function(e,t=null,r=null){const n={type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:r},s=a.TSTypePredicate;return o(s.parameterName,n,"parameterName",e,1),o(s.typeAnnotation,n,"typeAnnotation",t,1),o(s.asserts,n,"asserts",r),n},t.tSTypeQuery=t.tsTypeQuery=function(e,t=null){const r={type:"TSTypeQuery",exprName:e,typeParameters:t},n=a.TSTypeQuery;return o(n.exprName,r,"exprName",e,1),o(n.typeParameters,r,"typeParameters",t,1),r},t.tSTypeReference=t.tsTypeReference=function(e,t=null){const r={type:"TSTypeReference",typeName:e,typeParameters:t},n=a.TSTypeReference;return o(n.typeName,r,"typeName",e,1),o(n.typeParameters,r,"typeParameters",t,1),r},t.tSUndefinedKeyword=t.tsUndefinedKeyword=function(){return{type:"TSUndefinedKeyword"}},t.tSUnionType=t.tsUnionType=function(e){const t={type:"TSUnionType",types:e},r=a.TSUnionType;return o(r.types,t,"types",e,1),t},t.tSUnknownKeyword=t.tsUnknownKeyword=function(){return{type:"TSUnknownKeyword"}},t.tSVoidKeyword=t.tsVoidKeyword=function(){return{type:"TSVoidKeyword"}},t.tupleExpression=function(e=[]){const t={type:"TupleExpression",elements:e},r=a.TupleExpression;return o(r.elements,t,"elements",e,1),t},t.tupleTypeAnnotation=function(e){const t={type:"TupleTypeAnnotation",types:e},r=a.TupleTypeAnnotation;return o(r.types,t,"types",e,1),t},t.typeAlias=function(e,t=null,r){const n={type:"TypeAlias",id:e,typeParameters:t,right:r},s=a.TypeAlias;return o(s.id,n,"id",e,1),o(s.typeParameters,n,"typeParameters",t,1),o(s.right,n,"right",r,1),n},t.typeAnnotation=function(e){const t={type:"TypeAnnotation",typeAnnotation:e},r=a.TypeAnnotation;return o(r.typeAnnotation,t,"typeAnnotation",e,1),t},t.typeCastExpression=function(e,t){const r={type:"TypeCastExpression",expression:e,typeAnnotation:t},n=a.TypeCastExpression;return o(n.expression,r,"expression",e,1),o(n.typeAnnotation,r,"typeAnnotation",t,1),r},t.typeParameter=function(e=null,t=null,r=null){const n={type:"TypeParameter",bound:e,default:t,variance:r,name:null},s=a.TypeParameter;return o(s.bound,n,"bound",e,1),o(s.default,n,"default",t,1),o(s.variance,n,"variance",r,1),n},t.typeParameterDeclaration=function(e){const t={type:"TypeParameterDeclaration",params:e},r=a.TypeParameterDeclaration;return o(r.params,t,"params",e,1),t},t.typeParameterInstantiation=function(e){const t={type:"TypeParameterInstantiation",params:e},r=a.TypeParameterInstantiation;return o(r.params,t,"params",e,1),t},t.typeofTypeAnnotation=function(e){const t={type:"TypeofTypeAnnotation",argument:e},r=a.TypeofTypeAnnotation;return o(r.argument,t,"argument",e,1),t},t.unaryExpression=function(e,t,r=!0){const n={type:"UnaryExpression",operator:e,argument:t,prefix:r},s=a.UnaryExpression;return o(s.operator,n,"operator",e),o(s.argument,n,"argument",t,1),o(s.prefix,n,"prefix",r),n},t.unionTypeAnnotation=function(e){const t={type:"UnionTypeAnnotation",types:e},r=a.UnionTypeAnnotation;return o(r.types,t,"types",e,1),t},t.updateExpression=function(e,t,r=!1){const n={type:"UpdateExpression",operator:e,argument:t,prefix:r},s=a.UpdateExpression;return o(s.operator,n,"operator",e),o(s.argument,n,"argument",t,1),o(s.prefix,n,"prefix",r),n},t.v8IntrinsicIdentifier=function(e){const t={type:"V8IntrinsicIdentifier",name:e},r=a.V8IntrinsicIdentifier;return o(r.name,t,"name",e),t},t.variableDeclaration=function(e,t){const r={type:"VariableDeclaration",kind:e,declarations:t},n=a.VariableDeclaration;return o(n.kind,r,"kind",e),o(n.declarations,r,"declarations",t,1),r},t.variableDeclarator=function(e,t=null){const r={type:"VariableDeclarator",id:e,init:t},n=a.VariableDeclarator;return o(n.id,r,"id",e,1),o(n.init,r,"init",t,1),r},t.variance=function(e){const t={type:"Variance",kind:e},r=a.Variance;return o(r.kind,t,"kind",e),t},t.voidPattern=function(){return{type:"VoidPattern"}},t.voidTypeAnnotation=function(){return{type:"VoidTypeAnnotation"}},t.whileStatement=function(e,t){const r={type:"WhileStatement",test:e,body:t},n=a.WhileStatement;return o(n.test,r,"test",e,1),o(n.body,r,"body",t,1),r},t.withStatement=function(e,t){const r={type:"WithStatement",object:e,body:t},n=a.WithStatement;return o(n.object,r,"object",e,1),o(n.body,r,"body",t,1),r},t.yieldExpression=function(e=null,t=!1){const r={type:"YieldExpression",argument:e,delegate:t},n=a.YieldExpression;return o(n.argument,r,"argument",e,1),o(n.delegate,r,"delegate",t),r};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/validate.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/utils/deprecationWarning.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/utils.js");const{validateInternal:o}=n,{NODE_FIELDS:a}=i;function numericLiteral(e){const t={type:"NumericLiteral",value:e},r=a.NumericLiteral;return o(r.value,t,"value",e),t}function regExpLiteral(e,t=""){const r={type:"RegExpLiteral",pattern:e,flags:t},n=a.RegExpLiteral;return o(n.pattern,r,"pattern",e),o(n.flags,r,"flags",t),r}function restElement(e){const t={type:"RestElement",argument:e},r=a.RestElement;return o(r.argument,t,"argument",e,1),t}function spreadElement(e){const t={type:"SpreadElement",argument:e},r=a.SpreadElement;return o(r.argument,t,"argument",e,1),t}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/generated/uppercase.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSXIdentifier=t.JSXFragment=t.JSXExpressionContainer=t.JSXEmptyExpression=t.JSXElement=t.JSXClosingFragment=t.JSXClosingElement=t.JSXAttribute=t.IntersectionTypeAnnotation=t.InterpreterDirective=t.InterfaceTypeAnnotation=t.InterfaceExtends=t.InterfaceDeclaration=t.InferredPredicate=t.IndexedAccessType=t.ImportSpecifier=t.ImportNamespaceSpecifier=t.ImportExpression=t.ImportDefaultSpecifier=t.ImportDeclaration=t.ImportAttribute=t.Import=t.IfStatement=t.Identifier=t.GenericTypeAnnotation=t.FunctionTypeParam=t.FunctionTypeAnnotation=t.FunctionExpression=t.FunctionDeclaration=t.ForStatement=t.ForOfStatement=t.ForInStatement=t.File=t.ExpressionStatement=t.ExportSpecifier=t.ExportNamespaceSpecifier=t.ExportNamedDeclaration=t.ExportDefaultSpecifier=t.ExportDefaultDeclaration=t.ExportAllDeclaration=t.ExistsTypeAnnotation=t.EnumSymbolBody=t.EnumStringMember=t.EnumStringBody=t.EnumNumberMember=t.EnumNumberBody=t.EnumDefaultedMember=t.EnumDeclaration=t.EnumBooleanMember=t.EnumBooleanBody=t.EmptyTypeAnnotation=t.EmptyStatement=t.DoWhileStatement=t.DoExpression=t.DirectiveLiteral=t.Directive=t.Decorator=t.DeclaredPredicate=t.DeclareVariable=t.DeclareTypeAlias=t.DeclareOpaqueType=t.DeclareModuleExports=t.DeclareModule=t.DeclareInterface=t.DeclareFunction=t.DeclareExportDeclaration=t.DeclareExportAllDeclaration=t.DeclareClass=t.DecimalLiteral=t.DebuggerStatement=t.ContinueStatement=t.ConditionalExpression=t.ClassProperty=t.ClassPrivateProperty=t.ClassPrivateMethod=t.ClassMethod=t.ClassImplements=t.ClassExpression=t.ClassDeclaration=t.ClassBody=t.ClassAccessorProperty=t.CatchClause=t.CallExpression=t.BreakStatement=t.BooleanTypeAnnotation=t.BooleanLiteralTypeAnnotation=t.BooleanLiteral=t.BlockStatement=t.BindExpression=t.BinaryExpression=t.BigIntLiteral=t.AwaitExpression=t.AssignmentPattern=t.AssignmentExpression=t.ArrowFunctionExpression=t.ArrayTypeAnnotation=t.ArrayPattern=t.ArrayExpression=t.ArgumentPlaceholder=t.AnyTypeAnnotation=void 0,t.TSNumberKeyword=t.TSNullKeyword=t.TSNonNullExpression=t.TSNeverKeyword=t.TSNamespaceExportDeclaration=t.TSNamedTupleMember=t.TSModuleDeclaration=t.TSModuleBlock=t.TSMethodSignature=t.TSMappedType=t.TSLiteralType=t.TSIntrinsicKeyword=t.TSIntersectionType=t.TSInterfaceDeclaration=t.TSInterfaceBody=t.TSInstantiationExpression=t.TSInferType=t.TSIndexedAccessType=t.TSIndexSignature=t.TSImportType=t.TSImportEqualsDeclaration=t.TSFunctionType=t.TSExternalModuleReference=t.TSExpressionWithTypeArguments=t.TSExportAssignment=t.TSEnumMember=t.TSEnumDeclaration=t.TSEnumBody=t.TSDeclareMethod=t.TSDeclareFunction=t.TSConstructorType=t.TSConstructSignatureDeclaration=t.TSConditionalType=t.TSCallSignatureDeclaration=t.TSBooleanKeyword=t.TSBigIntKeyword=t.TSAsExpression=t.TSArrayType=t.TSAnyKeyword=t.SymbolTypeAnnotation=t.SwitchStatement=t.SwitchCase=t.Super=t.StringTypeAnnotation=t.StringLiteralTypeAnnotation=t.StringLiteral=t.StaticBlock=t.SpreadProperty=t.SpreadElement=t.SequenceExpression=t.ReturnStatement=t.RestProperty=t.RestElement=t.RegexLiteral=t.RegExpLiteral=t.RecordExpression=t.QualifiedTypeIdentifier=t.Program=t.PrivateName=t.Placeholder=t.PipelineTopicExpression=t.PipelinePrimaryTopicReference=t.PipelineBareFunction=t.ParenthesizedExpression=t.OptionalMemberExpression=t.OptionalIndexedAccessType=t.OptionalCallExpression=t.OpaqueType=t.ObjectTypeSpreadProperty=t.ObjectTypeProperty=t.ObjectTypeInternalSlot=t.ObjectTypeIndexer=t.ObjectTypeCallProperty=t.ObjectTypeAnnotation=t.ObjectProperty=t.ObjectPattern=t.ObjectMethod=t.ObjectExpression=t.NumericLiteral=t.NumberTypeAnnotation=t.NumberLiteralTypeAnnotation=t.NumberLiteral=t.NullableTypeAnnotation=t.NullLiteralTypeAnnotation=t.NullLiteral=t.Noop=t.NewExpression=t.ModuleExpression=t.MixedTypeAnnotation=t.MetaProperty=t.MemberExpression=t.LogicalExpression=t.LabeledStatement=t.JSXText=t.JSXSpreadChild=t.JSXSpreadAttribute=t.JSXOpeningFragment=t.JSXOpeningElement=t.JSXNamespacedName=t.JSXMemberExpression=void 0,t.YieldExpression=t.WithStatement=t.WhileStatement=t.VoidTypeAnnotation=t.VoidPattern=t.Variance=t.VariableDeclarator=t.VariableDeclaration=t.V8IntrinsicIdentifier=t.UpdateExpression=t.UnionTypeAnnotation=t.UnaryExpression=t.TypeofTypeAnnotation=t.TypeParameterInstantiation=t.TypeParameterDeclaration=t.TypeParameter=t.TypeCastExpression=t.TypeAnnotation=t.TypeAlias=t.TupleTypeAnnotation=t.TupleExpression=t.TryStatement=t.TopicReference=t.ThrowStatement=t.ThisTypeAnnotation=t.ThisExpression=t.TemplateLiteral=t.TemplateElement=t.TaggedTemplateExpression=t.TSVoidKeyword=t.TSUnknownKeyword=t.TSUnionType=t.TSUndefinedKeyword=t.TSTypeReference=t.TSTypeQuery=t.TSTypePredicate=t.TSTypeParameterInstantiation=t.TSTypeParameterDeclaration=t.TSTypeParameter=t.TSTypeOperator=t.TSTypeLiteral=t.TSTypeAssertion=t.TSTypeAnnotation=t.TSTypeAliasDeclaration=t.TSTupleType=t.TSThisType=t.TSTemplateLiteralType=t.TSSymbolKeyword=t.TSStringKeyword=t.TSSatisfiesExpression=t.TSRestType=t.TSQualifiedName=t.TSPropertySignature=t.TSParenthesizedType=t.TSParameterProperty=t.TSOptionalType=t.TSObjectKeyword=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/generated/lowercase.js");r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/utils/deprecationWarning.js");function alias(e){return n[e]}t.ArrayExpression=alias("arrayExpression"),t.AssignmentExpression=alias("assignmentExpression"),t.BinaryExpression=alias("binaryExpression"),t.InterpreterDirective=alias("interpreterDirective"),t.Directive=alias("directive"),t.DirectiveLiteral=alias("directiveLiteral"),t.BlockStatement=alias("blockStatement"),t.BreakStatement=alias("breakStatement"),t.CallExpression=alias("callExpression"),t.CatchClause=alias("catchClause"),t.ConditionalExpression=alias("conditionalExpression"),t.ContinueStatement=alias("continueStatement"),t.DebuggerStatement=alias("debuggerStatement"),t.DoWhileStatement=alias("doWhileStatement"),t.EmptyStatement=alias("emptyStatement"),t.ExpressionStatement=alias("expressionStatement"),t.File=alias("file"),t.ForInStatement=alias("forInStatement"),t.ForStatement=alias("forStatement"),t.FunctionDeclaration=alias("functionDeclaration"),t.FunctionExpression=alias("functionExpression"),t.Identifier=alias("identifier"),t.IfStatement=alias("ifStatement"),t.LabeledStatement=alias("labeledStatement"),t.StringLiteral=alias("stringLiteral"),t.NumericLiteral=alias("numericLiteral"),t.NullLiteral=alias("nullLiteral"),t.BooleanLiteral=alias("booleanLiteral"),t.RegExpLiteral=alias("regExpLiteral"),t.LogicalExpression=alias("logicalExpression"),t.MemberExpression=alias("memberExpression"),t.NewExpression=alias("newExpression"),t.Program=alias("program"),t.ObjectExpression=alias("objectExpression"),t.ObjectMethod=alias("objectMethod"),t.ObjectProperty=alias("objectProperty"),t.RestElement=alias("restElement"),t.ReturnStatement=alias("returnStatement"),t.SequenceExpression=alias("sequenceExpression"),t.ParenthesizedExpression=alias("parenthesizedExpression"),t.SwitchCase=alias("switchCase"),t.SwitchStatement=alias("switchStatement"),t.ThisExpression=alias("thisExpression"),t.ThrowStatement=alias("throwStatement"),t.TryStatement=alias("tryStatement"),t.UnaryExpression=alias("unaryExpression"),t.UpdateExpression=alias("updateExpression"),t.VariableDeclaration=alias("variableDeclaration"),t.VariableDeclarator=alias("variableDeclarator"),t.WhileStatement=alias("whileStatement"),t.WithStatement=alias("withStatement"),t.AssignmentPattern=alias("assignmentPattern"),t.ArrayPattern=alias("arrayPattern"),t.ArrowFunctionExpression=alias("arrowFunctionExpression"),t.ClassBody=alias("classBody"),t.ClassExpression=alias("classExpression"),t.ClassDeclaration=alias("classDeclaration"),t.ExportAllDeclaration=alias("exportAllDeclaration"),t.ExportDefaultDeclaration=alias("exportDefaultDeclaration"),t.ExportNamedDeclaration=alias("exportNamedDeclaration"),t.ExportSpecifier=alias("exportSpecifier"),t.ForOfStatement=alias("forOfStatement"),t.ImportDeclaration=alias("importDeclaration"),t.ImportDefaultSpecifier=alias("importDefaultSpecifier"),t.ImportNamespaceSpecifier=alias("importNamespaceSpecifier"),t.ImportSpecifier=alias("importSpecifier"),t.ImportExpression=alias("importExpression"),t.MetaProperty=alias("metaProperty"),t.ClassMethod=alias("classMethod"),t.ObjectPattern=alias("objectPattern"),t.SpreadElement=alias("spreadElement"),t.Super=alias("super"),t.TaggedTemplateExpression=alias("taggedTemplateExpression"),t.TemplateElement=alias("templateElement"),t.TemplateLiteral=alias("templateLiteral"),t.YieldExpression=alias("yieldExpression"),t.AwaitExpression=alias("awaitExpression"),t.Import=alias("import"),t.BigIntLiteral=alias("bigIntLiteral"),t.ExportNamespaceSpecifier=alias("exportNamespaceSpecifier"),t.OptionalMemberExpression=alias("optionalMemberExpression"),t.OptionalCallExpression=alias("optionalCallExpression"),t.ClassProperty=alias("classProperty"),t.ClassAccessorProperty=alias("classAccessorProperty"),t.ClassPrivateProperty=alias("classPrivateProperty"),t.ClassPrivateMethod=alias("classPrivateMethod"),t.PrivateName=alias("privateName"),t.StaticBlock=alias("staticBlock"),t.ImportAttribute=alias("importAttribute"),t.AnyTypeAnnotation=alias("anyTypeAnnotation"),t.ArrayTypeAnnotation=alias("arrayTypeAnnotation"),t.BooleanTypeAnnotation=alias("booleanTypeAnnotation"),t.BooleanLiteralTypeAnnotation=alias("booleanLiteralTypeAnnotation"),t.NullLiteralTypeAnnotation=alias("nullLiteralTypeAnnotation"),t.ClassImplements=alias("classImplements"),t.DeclareClass=alias("declareClass"),t.DeclareFunction=alias("declareFunction"),t.DeclareInterface=alias("declareInterface"),t.DeclareModule=alias("declareModule"),t.DeclareModuleExports=alias("declareModuleExports"),t.DeclareTypeAlias=alias("declareTypeAlias"),t.DeclareOpaqueType=alias("declareOpaqueType"),t.DeclareVariable=alias("declareVariable"),t.DeclareExportDeclaration=alias("declareExportDeclaration"),t.DeclareExportAllDeclaration=alias("declareExportAllDeclaration"),t.DeclaredPredicate=alias("declaredPredicate"),t.ExistsTypeAnnotation=alias("existsTypeAnnotation"),t.FunctionTypeAnnotation=alias("functionTypeAnnotation"),t.FunctionTypeParam=alias("functionTypeParam"),t.GenericTypeAnnotation=alias("genericTypeAnnotation"),t.InferredPredicate=alias("inferredPredicate"),t.InterfaceExtends=alias("interfaceExtends"),t.InterfaceDeclaration=alias("interfaceDeclaration"),t.InterfaceTypeAnnotation=alias("interfaceTypeAnnotation"),t.IntersectionTypeAnnotation=alias("intersectionTypeAnnotation"),t.MixedTypeAnnotation=alias("mixedTypeAnnotation"),t.EmptyTypeAnnotation=alias("emptyTypeAnnotation"),t.NullableTypeAnnotation=alias("nullableTypeAnnotation"),t.NumberLiteralTypeAnnotation=alias("numberLiteralTypeAnnotation"),t.NumberTypeAnnotation=alias("numberTypeAnnotation"),t.ObjectTypeAnnotation=alias("objectTypeAnnotation"),t.ObjectTypeInternalSlot=alias("objectTypeInternalSlot"),t.ObjectTypeCallProperty=alias("objectTypeCallProperty"),t.ObjectTypeIndexer=alias("objectTypeIndexer"),t.ObjectTypeProperty=alias("objectTypeProperty"),t.ObjectTypeSpreadProperty=alias("objectTypeSpreadProperty"),t.OpaqueType=alias("opaqueType"),t.QualifiedTypeIdentifier=alias("qualifiedTypeIdentifier"),t.StringLiteralTypeAnnotation=alias("stringLiteralTypeAnnotation"),t.StringTypeAnnotation=alias("stringTypeAnnotation"),t.SymbolTypeAnnotation=alias("symbolTypeAnnotation"),t.ThisTypeAnnotation=alias("thisTypeAnnotation"),t.TupleTypeAnnotation=alias("tupleTypeAnnotation"),t.TypeofTypeAnnotation=alias("typeofTypeAnnotation"),t.TypeAlias=alias("typeAlias"),t.TypeAnnotation=alias("typeAnnotation"),t.TypeCastExpression=alias("typeCastExpression"),t.TypeParameter=alias("typeParameter"),t.TypeParameterDeclaration=alias("typeParameterDeclaration"),t.TypeParameterInstantiation=alias("typeParameterInstantiation"),t.UnionTypeAnnotation=alias("unionTypeAnnotation"),t.Variance=alias("variance"),t.VoidTypeAnnotation=alias("voidTypeAnnotation"),t.EnumDeclaration=alias("enumDeclaration"),t.EnumBooleanBody=alias("enumBooleanBody"),t.EnumNumberBody=alias("enumNumberBody"),t.EnumStringBody=alias("enumStringBody"),t.EnumSymbolBody=alias("enumSymbolBody"),t.EnumBooleanMember=alias("enumBooleanMember"),t.EnumNumberMember=alias("enumNumberMember"),t.EnumStringMember=alias("enumStringMember"),t.EnumDefaultedMember=alias("enumDefaultedMember"),t.IndexedAccessType=alias("indexedAccessType"),t.OptionalIndexedAccessType=alias("optionalIndexedAccessType"),t.JSXAttribute=alias("jsxAttribute"),t.JSXClosingElement=alias("jsxClosingElement"),t.JSXElement=alias("jsxElement"),t.JSXEmptyExpression=alias("jsxEmptyExpression"),t.JSXExpressionContainer=alias("jsxExpressionContainer"),t.JSXSpreadChild=alias("jsxSpreadChild"),t.JSXIdentifier=alias("jsxIdentifier"),t.JSXMemberExpression=alias("jsxMemberExpression"),t.JSXNamespacedName=alias("jsxNamespacedName"),t.JSXOpeningElement=alias("jsxOpeningElement"),t.JSXSpreadAttribute=alias("jsxSpreadAttribute"),t.JSXText=alias("jsxText"),t.JSXFragment=alias("jsxFragment"),t.JSXOpeningFragment=alias("jsxOpeningFragment"),t.JSXClosingFragment=alias("jsxClosingFragment"),t.Noop=alias("noop"),t.Placeholder=alias("placeholder"),t.V8IntrinsicIdentifier=alias("v8IntrinsicIdentifier"),t.ArgumentPlaceholder=alias("argumentPlaceholder"),t.BindExpression=alias("bindExpression"),t.Decorator=alias("decorator"),t.DoExpression=alias("doExpression"),t.ExportDefaultSpecifier=alias("exportDefaultSpecifier"),t.RecordExpression=alias("recordExpression"),t.TupleExpression=alias("tupleExpression"),t.DecimalLiteral=alias("decimalLiteral"),t.ModuleExpression=alias("moduleExpression"),t.TopicReference=alias("topicReference"),t.PipelineTopicExpression=alias("pipelineTopicExpression"),t.PipelineBareFunction=alias("pipelineBareFunction"),t.PipelinePrimaryTopicReference=alias("pipelinePrimaryTopicReference"),t.VoidPattern=alias("voidPattern"),t.TSParameterProperty=alias("tsParameterProperty"),t.TSDeclareFunction=alias("tsDeclareFunction"),t.TSDeclareMethod=alias("tsDeclareMethod"),t.TSQualifiedName=alias("tsQualifiedName"),t.TSCallSignatureDeclaration=alias("tsCallSignatureDeclaration"),t.TSConstructSignatureDeclaration=alias("tsConstructSignatureDeclaration"),t.TSPropertySignature=alias("tsPropertySignature"),t.TSMethodSignature=alias("tsMethodSignature"),t.TSIndexSignature=alias("tsIndexSignature"),t.TSAnyKeyword=alias("tsAnyKeyword"),t.TSBooleanKeyword=alias("tsBooleanKeyword"),t.TSBigIntKeyword=alias("tsBigIntKeyword"),t.TSIntrinsicKeyword=alias("tsIntrinsicKeyword"),t.TSNeverKeyword=alias("tsNeverKeyword"),t.TSNullKeyword=alias("tsNullKeyword"),t.TSNumberKeyword=alias("tsNumberKeyword"),t.TSObjectKeyword=alias("tsObjectKeyword"),t.TSStringKeyword=alias("tsStringKeyword"),t.TSSymbolKeyword=alias("tsSymbolKeyword"),t.TSUndefinedKeyword=alias("tsUndefinedKeyword"),t.TSUnknownKeyword=alias("tsUnknownKeyword"),t.TSVoidKeyword=alias("tsVoidKeyword"),t.TSThisType=alias("tsThisType"),t.TSFunctionType=alias("tsFunctionType"),t.TSConstructorType=alias("tsConstructorType"),t.TSTypeReference=alias("tsTypeReference"),t.TSTypePredicate=alias("tsTypePredicate"),t.TSTypeQuery=alias("tsTypeQuery"),t.TSTypeLiteral=alias("tsTypeLiteral"),t.TSArrayType=alias("tsArrayType"),t.TSTupleType=alias("tsTupleType"),t.TSOptionalType=alias("tsOptionalType"),t.TSRestType=alias("tsRestType"),t.TSNamedTupleMember=alias("tsNamedTupleMember"),t.TSUnionType=alias("tsUnionType"),t.TSIntersectionType=alias("tsIntersectionType"),t.TSConditionalType=alias("tsConditionalType"),t.TSInferType=alias("tsInferType"),t.TSParenthesizedType=alias("tsParenthesizedType"),t.TSTypeOperator=alias("tsTypeOperator"),t.TSIndexedAccessType=alias("tsIndexedAccessType"),t.TSMappedType=alias("tsMappedType"),t.TSTemplateLiteralType=alias("tsTemplateLiteralType"),t.TSLiteralType=alias("tsLiteralType"),t.TSExpressionWithTypeArguments=alias("tsExpressionWithTypeArguments"),t.TSInterfaceDeclaration=alias("tsInterfaceDeclaration"),t.TSInterfaceBody=alias("tsInterfaceBody"),t.TSTypeAliasDeclaration=alias("tsTypeAliasDeclaration"),t.TSInstantiationExpression=alias("tsInstantiationExpression"),t.TSAsExpression=alias("tsAsExpression"),t.TSSatisfiesExpression=alias("tsSatisfiesExpression"),t.TSTypeAssertion=alias("tsTypeAssertion"),t.TSEnumBody=alias("tsEnumBody"),t.TSEnumDeclaration=alias("tsEnumDeclaration"),t.TSEnumMember=alias("tsEnumMember"),t.TSModuleDeclaration=alias("tsModuleDeclaration"),t.TSModuleBlock=alias("tsModuleBlock"),t.TSImportType=alias("tsImportType"),t.TSImportEqualsDeclaration=alias("tsImportEqualsDeclaration"),t.TSExternalModuleReference=alias("tsExternalModuleReference"),t.TSNonNullExpression=alias("tsNonNullExpression"),t.TSExportAssignment=alias("tsExportAssignment"),t.TSNamespaceExportDeclaration=alias("tsNamespaceExportDeclaration"),t.TSTypeAnnotation=alias("tsTypeAnnotation"),t.TSTypeParameterInstantiation=alias("tsTypeParameterInstantiation"),t.TSTypeParameterDeclaration=alias("tsTypeParameterDeclaration"),t.TSTypeParameter=alias("tsTypeParameter"),t.NumberLiteral=n.numberLiteral,t.RegexLiteral=n.regexLiteral,t.RestProperty=n.restProperty,t.SpreadProperty=n.spreadProperty},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/productions.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildUndefinedNode=function(){return(0,n.unaryExpression)("void",(0,n.numericLiteral)(0),!0)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/generated/index.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/react/buildChildren.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=[];for(let r=0;r<e.children.length;r++){let i=e.children[r];(0,n.isJSXText)(i)?(0,s.default)(i,t):((0,n.isJSXExpressionContainer)(i)&&(i=i.expression),(0,n.isJSXEmptyExpression)(i)||t.push(i))}return t};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/generated/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.map(e=>(0,i.isTSTypeAnnotation)(e)?e.typeAnnotation:e),r=(0,s.default)(t);return 1===r.length?r[0]:(0,n.tsUnionType)(r)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/generated/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/generated/index.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/clone/clone.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e,!1)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/clone/cloneNode.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/clone/cloneDeep.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/clone/cloneNode.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e,!0,!0)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/clone/cloneNode.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/clone/cloneNode.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=!0,r=!1){return cloneNodeInternal(e,t,r,new Map)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/generated/index.js");const{hasOwn:i}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function cloneIfNode(e,t,r,n){return e&&"string"==typeof e.type?cloneNodeInternal(e,t,r,n):e}function cloneIfNodeOrArray(e,t,r,n){return Array.isArray(e)?e.map(e=>cloneIfNode(e,t,r,n)):cloneIfNode(e,t,r,n)}function cloneNodeInternal(e,t=!0,r=!1,o){if(!e)return e;const{type:a}=e,l={type:e.type};if((0,s.isIdentifier)(e))l.name=e.name,i(e,"optional")&&"boolean"==typeof e.optional&&(l.optional=e.optional),i(e,"typeAnnotation")&&(l.typeAnnotation=t?cloneIfNodeOrArray(e.typeAnnotation,!0,r,o):e.typeAnnotation),i(e,"decorators")&&(l.decorators=t?cloneIfNodeOrArray(e.decorators,!0,r,o):e.decorators);else{if(!i(n.NODE_FIELDS,a))throw new Error(`Unknown node type: "${a}"`);for(const p of Object.keys(n.NODE_FIELDS[a]))i(e,p)&&(l[p]=t?(0,s.isFile)(e)&&"comments"===p?maybeCloneComments(e.comments,t,r,o):cloneIfNodeOrArray(e[p],!0,r,o):e[p])}return i(e,"loc")&&(l.loc=r?null:e.loc),i(e,"leadingComments")&&(l.leadingComments=maybeCloneComments(e.leadingComments,t,r,o)),i(e,"innerComments")&&(l.innerComments=maybeCloneComments(e.innerComments,t,r,o)),i(e,"trailingComments")&&(l.trailingComments=maybeCloneComments(e.trailingComments,t,r,o)),i(e,"extra")&&(l.extra=Object.assign({},e.extra)),l}function maybeCloneComments(e,t,r,n){return e&&t?e.map(e=>{const t=n.get(e);if(t)return t;const{type:s,value:i,loc:o}=e,a={type:s,value:i,loc:o};return r&&(a.loc=null),n.set(e,a),a}):e}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e,!1,!0)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/clone/cloneNode.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/comments/addComment.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,s){return(0,n.default)(e,t,[{type:s?"CommentLine":"CommentBlock",value:r}])};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/comments/addComments.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/comments/addComments.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(!r||!e)return e;const n=`${t}Comments`;e[n]?"leading"===t?e[n]=r.concat(e[n]):e[n].push(...r):e[n]=r;return e}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/comments/inheritInnerComments.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)("innerComments",e,t)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/utils/inherit.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/comments/inheritLeadingComments.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)("leadingComments",e,t)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/utils/inherit.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/comments/inheritTrailingComments.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)("trailingComments",e,t)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/utils/inherit.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/comments/inheritsComments.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e,t),(0,s.default)(e,t),(0,i.default)(e,t),e};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/comments/inheritTrailingComments.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/comments/inheritLeadingComments.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/comments/inheritInnerComments.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/comments/removeComments.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return n.COMMENT_KEYS.forEach(t=>{e[t]=null}),e};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/constants/index.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/constants/generated/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WHILE_TYPES=t.USERWHITESPACABLE_TYPES=t.UNARYLIKE_TYPES=t.TYPESCRIPT_TYPES=t.TSTYPE_TYPES=t.TSTYPEELEMENT_TYPES=t.TSENTITYNAME_TYPES=t.TSBASETYPE_TYPES=t.TERMINATORLESS_TYPES=t.STATEMENT_TYPES=t.STANDARDIZED_TYPES=t.SCOPABLE_TYPES=t.PUREISH_TYPES=t.PROPERTY_TYPES=t.PRIVATE_TYPES=t.PATTERN_TYPES=t.PATTERNLIKE_TYPES=t.OBJECTMEMBER_TYPES=t.MODULESPECIFIER_TYPES=t.MODULEDECLARATION_TYPES=t.MISCELLANEOUS_TYPES=t.METHOD_TYPES=t.LVAL_TYPES=t.LOOP_TYPES=t.LITERAL_TYPES=t.JSX_TYPES=t.IMPORTOREXPORTDECLARATION_TYPES=t.IMMUTABLE_TYPES=t.FUNCTION_TYPES=t.FUNCTIONPARENT_TYPES=t.FUNCTIONPARAMETER_TYPES=t.FOR_TYPES=t.FORXSTATEMENT_TYPES=t.FLOW_TYPES=t.FLOWTYPE_TYPES=t.FLOWPREDICATE_TYPES=t.FLOWDECLARATION_TYPES=t.FLOWBASEANNOTATION_TYPES=t.EXPRESSION_TYPES=t.EXPRESSIONWRAPPER_TYPES=t.EXPORTDECLARATION_TYPES=t.ENUMMEMBER_TYPES=t.ENUMBODY_TYPES=t.DECLARATION_TYPES=t.CONDITIONAL_TYPES=t.COMPLETIONSTATEMENT_TYPES=t.CLASS_TYPES=t.BLOCK_TYPES=t.BLOCKPARENT_TYPES=t.BINARY_TYPES=t.ACCESSOR_TYPES=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/index.js");t.STANDARDIZED_TYPES=n.FLIPPED_ALIAS_KEYS.Standardized,t.EXPRESSION_TYPES=n.FLIPPED_ALIAS_KEYS.Expression,t.BINARY_TYPES=n.FLIPPED_ALIAS_KEYS.Binary,t.SCOPABLE_TYPES=n.FLIPPED_ALIAS_KEYS.Scopable,t.BLOCKPARENT_TYPES=n.FLIPPED_ALIAS_KEYS.BlockParent,t.BLOCK_TYPES=n.FLIPPED_ALIAS_KEYS.Block,t.STATEMENT_TYPES=n.FLIPPED_ALIAS_KEYS.Statement,t.TERMINATORLESS_TYPES=n.FLIPPED_ALIAS_KEYS.Terminatorless,t.COMPLETIONSTATEMENT_TYPES=n.FLIPPED_ALIAS_KEYS.CompletionStatement,t.CONDITIONAL_TYPES=n.FLIPPED_ALIAS_KEYS.Conditional,t.LOOP_TYPES=n.FLIPPED_ALIAS_KEYS.Loop,t.WHILE_TYPES=n.FLIPPED_ALIAS_KEYS.While,t.EXPRESSIONWRAPPER_TYPES=n.FLIPPED_ALIAS_KEYS.ExpressionWrapper,t.FOR_TYPES=n.FLIPPED_ALIAS_KEYS.For,t.FORXSTATEMENT_TYPES=n.FLIPPED_ALIAS_KEYS.ForXStatement,t.FUNCTION_TYPES=n.FLIPPED_ALIAS_KEYS.Function,t.FUNCTIONPARENT_TYPES=n.FLIPPED_ALIAS_KEYS.FunctionParent,t.PUREISH_TYPES=n.FLIPPED_ALIAS_KEYS.Pureish,t.DECLARATION_TYPES=n.FLIPPED_ALIAS_KEYS.Declaration,t.FUNCTIONPARAMETER_TYPES=n.FLIPPED_ALIAS_KEYS.FunctionParameter,t.PATTERNLIKE_TYPES=n.FLIPPED_ALIAS_KEYS.PatternLike,t.LVAL_TYPES=n.FLIPPED_ALIAS_KEYS.LVal,t.TSENTITYNAME_TYPES=n.FLIPPED_ALIAS_KEYS.TSEntityName,t.LITERAL_TYPES=n.FLIPPED_ALIAS_KEYS.Literal,t.IMMUTABLE_TYPES=n.FLIPPED_ALIAS_KEYS.Immutable,t.USERWHITESPACABLE_TYPES=n.FLIPPED_ALIAS_KEYS.UserWhitespacable,t.METHOD_TYPES=n.FLIPPED_ALIAS_KEYS.Method,t.OBJECTMEMBER_TYPES=n.FLIPPED_ALIAS_KEYS.ObjectMember,t.PROPERTY_TYPES=n.FLIPPED_ALIAS_KEYS.Property,t.UNARYLIKE_TYPES=n.FLIPPED_ALIAS_KEYS.UnaryLike,t.PATTERN_TYPES=n.FLIPPED_ALIAS_KEYS.Pattern,t.CLASS_TYPES=n.FLIPPED_ALIAS_KEYS.Class;const s=t.IMPORTOREXPORTDECLARATION_TYPES=n.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration;t.EXPORTDECLARATION_TYPES=n.FLIPPED_ALIAS_KEYS.ExportDeclaration,t.MODULESPECIFIER_TYPES=n.FLIPPED_ALIAS_KEYS.ModuleSpecifier,t.ACCESSOR_TYPES=n.FLIPPED_ALIAS_KEYS.Accessor,t.PRIVATE_TYPES=n.FLIPPED_ALIAS_KEYS.Private,t.FLOW_TYPES=n.FLIPPED_ALIAS_KEYS.Flow,t.FLOWTYPE_TYPES=n.FLIPPED_ALIAS_KEYS.FlowType,t.FLOWBASEANNOTATION_TYPES=n.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,t.FLOWDECLARATION_TYPES=n.FLIPPED_ALIAS_KEYS.FlowDeclaration,t.FLOWPREDICATE_TYPES=n.FLIPPED_ALIAS_KEYS.FlowPredicate,t.ENUMBODY_TYPES=n.FLIPPED_ALIAS_KEYS.EnumBody,t.ENUMMEMBER_TYPES=n.FLIPPED_ALIAS_KEYS.EnumMember,t.JSX_TYPES=n.FLIPPED_ALIAS_KEYS.JSX,t.MISCELLANEOUS_TYPES=n.FLIPPED_ALIAS_KEYS.Miscellaneous,t.TYPESCRIPT_TYPES=n.FLIPPED_ALIAS_KEYS.TypeScript,t.TSTYPEELEMENT_TYPES=n.FLIPPED_ALIAS_KEYS.TSTypeElement,t.TSTYPE_TYPES=n.FLIPPED_ALIAS_KEYS.TSType,t.TSBASETYPE_TYPES=n.FLIPPED_ALIAS_KEYS.TSBaseType,t.MODULEDECLARATION_TYPES=s},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/constants/index.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UPDATE_OPERATORS=t.UNARY_OPERATORS=t.STRING_UNARY_OPERATORS=t.STATEMENT_OR_BLOCK_KEYS=t.NUMBER_UNARY_OPERATORS=t.NUMBER_BINARY_OPERATORS=t.LOGICAL_OPERATORS=t.INHERIT_KEYS=t.FOR_INIT_KEYS=t.FLATTENABLE_KEYS=t.EQUALITY_BINARY_OPERATORS=t.COMPARISON_BINARY_OPERATORS=t.COMMENT_KEYS=t.BOOLEAN_UNARY_OPERATORS=t.BOOLEAN_NUMBER_BINARY_OPERATORS=t.BOOLEAN_BINARY_OPERATORS=t.BINARY_OPERATORS=t.ASSIGNMENT_OPERATORS=void 0;t.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],t.FLATTENABLE_KEYS=["body","expressions"],t.FOR_INIT_KEYS=["left","init"],t.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];const r=t.LOGICAL_OPERATORS=["||","&&","??"],n=(t.UPDATE_OPERATORS=["++","--"],t.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="]),s=t.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],i=t.COMPARISON_BINARY_OPERATORS=[...s,"in","instanceof"],o=t.BOOLEAN_BINARY_OPERATORS=[...i,...n],a=t.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],l=(t.BINARY_OPERATORS=["+",...a,...o,"|>"],t.ASSIGNMENT_OPERATORS=["=","+=",...a.map(e=>e+"="),...r.map(e=>e+"=")],t.BOOLEAN_UNARY_OPERATORS=["delete","!"]),p=t.NUMBER_UNARY_OPERATORS=["+","-","~"],c=t.STRING_UNARY_OPERATORS=["typeof"];t.UNARY_OPERATORS=["void","throw",...l,...p,...c],t.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};t.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),t.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/converters/ensureBlock.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t="body"){const r=(0,n.default)(e[t],e);return e[t]=r,r};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/converters/toBlock.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function gatherSequenceExpressions(e,t){const r=[];let l=!0;for(const p of e)if((0,s.isEmptyStatement)(p)||(l=!1),(0,s.isExpression)(p))r.push(p);else if((0,s.isExpressionStatement)(p))r.push(p.expression);else if((0,s.isVariableDeclaration)(p)){if("var"!==p.kind)return;for(const e of p.declarations){const s=(0,n.default)(e);for(const e of Object.keys(s))t.push({kind:p.kind,id:(0,a.default)(s[e])});e.init&&r.push((0,i.assignmentExpression)("=",e.id,e.init))}l=!0}else if((0,s.isIfStatement)(p)){const e=p.consequent?gatherSequenceExpressions([p.consequent],t):(0,o.buildUndefinedNode)(),n=p.alternate?gatherSequenceExpressions([p.alternate],t):(0,o.buildUndefinedNode)();if(!e||!n)return;r.push((0,i.conditionalExpression)(p.test,e,n))}else if((0,s.isBlockStatement)(p)){const e=gatherSequenceExpressions(p.body,t);if(!e)return;r.push(e)}else{if(!(0,s.isEmptyStatement)(p))return;0===e.indexOf(p)&&(l=!0)}l&&r.push((0,o.buildUndefinedNode)());return 1===r.length?r[0]:(0,i.sequenceExpression)(r)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/generated/index.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/generated/index.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/productions.js"),a=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/clone/cloneNode.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){"eval"!==(e=(0,n.default)(e))&&"arguments"!==e||(e="_"+e);return e};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/converters/toIdentifier.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/converters/toBlock.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.isBlockStatement)(e))return e;let r=[];(0,n.isEmptyStatement)(e)?r=[]:((0,n.isStatement)(e)||(e=(0,n.isFunction)(t)?(0,s.returnStatement)(e):(0,s.expressionStatement)(e)),r=[e]);return(0,s.blockStatement)(r)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/generated/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/generated/index.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/converters/toComputedKey.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=e.key||e.property){!e.computed&&(0,n.isIdentifier)(t)&&(t=(0,s.stringLiteral)(t.name));return t};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/generated/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/generated/index.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/converters/toExpression.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/generated/index.js");t.default=function(e){(0,n.isExpressionStatement)(e)&&(e=e.expression);if((0,n.isExpression)(e))return e;(0,n.isClass)(e)?(e.type="ClassExpression",e.abstract=!1):(0,n.isFunction)(e)&&(e.type="FunctionExpression");if(!(0,n.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/converters/toIdentifier.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e+="";let t="";for(const r of e)t+=(0,s.isIdentifierChar)(r.codePointAt(0))?r:"-";t=t.replace(/^[-0-9]+/,""),t=t.replace(/[-\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""}),(0,n.default)(t)||(t=`_${t}`);return t||"_"};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isValidIdentifier.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-validator-identifier/lib/index.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/converters/toKeyAlias.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=toKeyAlias;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/generated/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/clone/cloneNode.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js");function toKeyAlias(e,t=e.key){let r;return"method"===e.kind?toKeyAlias.increment()+"":(r=(0,n.isIdentifier)(t)?t.name:(0,n.isStringLiteral)(t)?JSON.stringify(t.value):JSON.stringify((0,i.default)((0,s.default)(t))),e.computed&&(r=`[${r}]`),e.static&&(r=`static:${r}`),r)}toKeyAlias.uid=0,toKeyAlias.increment=function(){return toKeyAlias.uid>=Number.MAX_SAFE_INTEGER?toKeyAlias.uid=0:toKeyAlias.uid++}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/converters/toSequenceExpression.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(null==e||!e.length)return;const r=[],s=(0,n.default)(e,r);if(!s)return;for(const e of r)t.push(e);return s};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/converters/toStatement.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/generated/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/generated/index.js");t.default=function(e,t){if((0,n.isStatement)(e))return e;let r,i=!1;if((0,n.isClass)(e))i=!0,r="ClassDeclaration";else if((0,n.isFunction)(e))i=!0,r="FunctionDeclaration";else if((0,n.isAssignmentExpression)(e))return(0,s.expressionStatement)(e);i&&!e.id&&(r=!1);if(!r){if(t)return!1;throw new Error(`cannot turn ${e.type} to a statement`)}return e.type=r,e}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/converters/valueToNode.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isValidIdentifier.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/generated/index.js");t.default=function valueToNode(e){if(void 0===e)return(0,s.identifier)("undefined");if(!0===e||!1===e)return(0,s.booleanLiteral)(e);if(null===e)return(0,s.nullLiteral)();if("string"==typeof e)return(0,s.stringLiteral)(e);if("number"==typeof e){let t;if(Number.isFinite(e))t=(0,s.numericLiteral)(Math.abs(e));else{let r;r=Number.isNaN(e)?(0,s.numericLiteral)(0):(0,s.numericLiteral)(1),t=(0,s.binaryExpression)("/",r,(0,s.numericLiteral)(0))}return(e<0||Object.is(e,-0))&&(t=(0,s.unaryExpression)("-",t)),t}if("bigint"==typeof e)return e<0?(0,s.unaryExpression)("-",(0,s.bigIntLiteral)(-e)):(0,s.bigIntLiteral)(e);if(function(e){return"[object RegExp]"===i(e)}(e)){const t=e.source,r=/\/([a-z]*)$/.exec(e.toString())[1];return(0,s.regExpLiteral)(t,r)}if(Array.isArray(e))return(0,s.arrayExpression)(e.map(valueToNode));if(function(e){if("object"!=typeof e||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(e)){const t=[];for(const r of Object.keys(e)){let i,o=!1;(0,n.default)(r)?"__proto__"===r?(o=!0,i=(0,s.stringLiteral)(r)):i=(0,s.identifier)(r):i=(0,s.stringLiteral)(r),t.push((0,s.objectProperty)(i,valueToNode(e[r]),o))}return(0,s.objectExpression)(t)}throw new Error("don't know how to turn this value into a node")};const i=Function.call.bind(Object.prototype.toString)},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/core.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.patternLikeCommon=t.importAttributes=t.functionTypeAnnotationCommon=t.functionDeclarationCommon=t.functionCommon=t.classMethodOrPropertyUnionShapeCommon=t.classMethodOrPropertyCommon=t.classMethodOrDeclareMethodCommon=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/is.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isValidIdentifier.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-validator-identifier/lib/index.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-string-parser/lib/index.js"),a=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/constants/index.js"),l=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/utils.js");const classMethodOrPropertyUnionShapeCommon=(e=!1)=>({unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,l.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:e?(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"):(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral")}}}]}});t.classMethodOrPropertyUnionShapeCommon=classMethodOrPropertyUnionShapeCommon;const p=(0,l.defineAliasedType)("Standardized");p("ArrayExpression",{fields:{elements:{validate:(0,l.arrayOf)((0,l.assertNodeOrValueType)("null","Expression","SpreadElement")),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]}),p("AssignmentExpression",{fields:{operator:{validate:process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(){const e=(0,l.assertOneOf)(...a.ASSIGNMENT_OPERATORS),t=(0,l.assertOneOf)("=");return function(r,s,i){((0,n.default)("Pattern",r.left)?t:e)(r,s,i)}}(),{oneOf:a.ASSIGNMENT_OPERATORS}):(0,l.assertValueType)("string")},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,l.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,l.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),p("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,l.assertOneOf)(...a.BINARY_OPERATORS)},left:{validate:function(){const e=(0,l.assertNodeType)("Expression"),t=(0,l.assertNodeType)("Expression","PrivateName");return Object.assign(function(r,n,s){("in"===r.operator?t:e)(r,n,s)},{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:(0,l.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),p("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}}}),p("Directive",{visitor:["value"],fields:{value:{validate:(0,l.assertNodeType)("DirectiveLiteral")}}}),p("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}}}),p("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,l.arrayOfType)("Directive"),default:[]},body:(0,l.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]}),p("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,l.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),p("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,l.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,l.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,l.assertNodeType)("TypeParameterInstantiation"),optional:!0}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,l.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,l.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),p("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,l.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]}),p("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},consequent:{validate:(0,l.assertNodeType)("Expression")},alternate:{validate:(0,l.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]}),p("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,l.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),p("DebuggerStatement",{aliases:["Statement"]}),p("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),p("EmptyStatement",{aliases:["Statement"]}),p("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,l.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]}),p("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,l.assertNodeType)("Program")},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.assertEach)((0,l.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,l.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}}),p("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,l.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}}}),p("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,l.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,l.assertNodeType)("Expression"),optional:!0},update:{validate:(0,l.assertNodeType)("Expression"),optional:!0},body:{validate:(0,l.assertNodeType)("Statement")}}});const functionCommon=()=>({params:(0,l.validateArrayOfType)("FunctionParameter"),generator:{default:!1},async:{default:!1}});t.functionCommon=functionCommon;const functionTypeAnnotationCommon=()=>({returnType:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});t.functionTypeAnnotationCommon=functionTypeAnnotationCommon;const functionDeclarationCommon=()=>Object.assign({},functionCommon(),{declare:{validate:(0,l.assertValueType)("boolean"),optional:!0},id:{validate:(0,l.assertNodeType)("Identifier"),optional:!0}});t.functionDeclarationCommon=functionDeclarationCommon,p("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},functionDeclarationCommon(),functionTypeAnnotationCommon(),{body:{validate:(0,l.assertNodeType)("BlockStatement")},predicate:{validate:(0,l.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:process.env.BABEL_TYPES_8_BREAKING?function(){const e=(0,l.assertNodeType)("Identifier");return function(t,r,s){(0,n.default)("ExportDefaultDeclaration",t)||e(s,"id",s.id)}}():void 0}),p("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},functionCommon(),functionTypeAnnotationCommon(),{id:{validate:(0,l.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,l.assertNodeType)("BlockStatement")},predicate:{validate:(0,l.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});const patternLikeCommon=()=>({typeAnnotation:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,l.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0}});t.patternLikeCommon=patternLikeCommon,p("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},patternLikeCommon(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertValueType)("string"),Object.assign(function(e,t,r){if(!(0,s.default)(r,!1))throw new TypeError(`"${r}" is not a valid identifier name`)},{type:"string"})):(0,l.assertValueType)("string")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t,r){const s=/\.(\w+)$/.exec(t.toString());if(!s)return;const[,o]=s,a={computed:!1};if("property"===o){if((0,n.default)("MemberExpression",e,a))return;if((0,n.default)("OptionalMemberExpression",e,a))return}else if("key"===o){if((0,n.default)("Property",e,a))return;if((0,n.default)("Method",e,a))return}else if("exported"===o){if((0,n.default)("ExportSpecifier",e))return}else if("imported"===o){if((0,n.default)("ImportSpecifier",e,{imported:r}))return}else if("meta"===o&&(0,n.default)("MetaProperty",e,{meta:r}))return;if(((0,i.isKeyword)(r.name)||(0,i.isReservedWord)(r.name,!1))&&"this"!==r.name)throw new TypeError(`"${r.name}" is not a valid identifier`)}:void 0}),p("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},consequent:{validate:(0,l.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,l.assertNodeType)("Statement")}}}),p("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,l.assertNodeType)("Identifier")},body:{validate:(0,l.assertNodeType)("Statement")}}}),p("StringLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),p("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,l.chain)((0,l.assertValueType)("number"),Object.assign(function(e,t,r){if(1/r<0||!Number.isFinite(r)){new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${r}) instead.`)}},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]}),p("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),p("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),p("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,l.assertValueType)("string")},flags:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertValueType)("string"),Object.assign(function(e,t,r){const n=/[^dgimsuvy]/.exec(r);if(n)throw new TypeError(`"${n[0]}" is not a valid RegExp flag`)},{type:"string"})):(0,l.assertValueType)("string"),default:""}}}),p("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,l.assertOneOf)(...a.LOGICAL_OPERATORS)},left:{validate:(0,l.assertNodeType)("Expression")},right:{validate:(0,l.assertNodeType)("Expression")}}}),p("MemberExpression",{builder:["object","property","computed",...process.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{property:{validate:(0,l.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{property:{validate:(0,l.assertNodeType)("Identifier","PrivateName")}}}]},fields:Object.assign({object:{validate:(0,l.assertNodeType)("Expression","Super")},property:{validate:function(){const e=(0,l.assertNodeType)("Identifier","PrivateName"),t=(0,l.assertNodeType)("Expression"),validator=function(r,n,s){(r.computed?t:e)(r,n,s)};return validator.oneOfNodeTypes=["Expression","Identifier","PrivateName"],validator}()},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,l.assertValueType)("boolean"),optional:!0}})}),p("NewExpression",{inherits:"CallExpression"}),p("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,l.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,l.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,l.arrayOfType)("Directive"),default:[]},body:(0,l.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]}),p("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,l.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}}),p("ObjectMethod",Object.assign({builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},classMethodOrPropertyUnionShapeCommon(),{fields:Object.assign({},functionCommon(),functionTypeAnnotationCommon(),{kind:Object.assign({validate:(0,l.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,l.assertNodeType)("Expression"),validator=function(r,n,s){(r.computed?t:e)(r,n,s)};return validator.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],validator}()},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,l.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]})),p("ObjectProperty",{builder:["key","value","computed","shorthand",...process.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,l.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName")}}}]},fields:{computed:{default:!1},key:{validate:function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),t=(0,l.assertNodeType)("Expression");return Object.assign(function(r,n,s){(r.computed?t:e)(r,n,s)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})}()},value:{validate:(0,l.assertNodeType)("Expression","PatternLike")},shorthand:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertValueType)("boolean"),Object.assign(function(e,t,r){if(r){if(e.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!(0,n.default)("Identifier",e.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}},{type:"boolean"})):(0,l.assertValueType)("boolean"),default:!1},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:process.env.BABEL_TYPES_8_BREAKING?function(){const e=(0,l.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),t=(0,l.assertNodeType)("Expression");return function(r,s,i){((0,n.default)("ObjectPattern",r)?e:t)(i,"value",i.value)}}():void 0}),p("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},patternLikeCommon(),{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","RestElement","AssignmentPattern")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t){const r=/(\w+)\[(\d+)\]/.exec(t.toString());if(!r)throw new Error("Internal Babel error: malformed key.");const[,n,s]=r;if(e[n].length>+s+1)throw new TypeError(`RestElement must be last element of ${n}`)}:void 0}),p("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,l.assertNodeType)("Expression"),optional:!0}}}),p("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,l.validateArrayOfType)("Expression")},aliases:["Expression"]}),p("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,l.assertNodeType)("Expression")}}}),p("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,l.assertNodeType)("Expression"),optional:!0},consequent:(0,l.validateArrayOfType)("Statement")}}),p("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,l.assertNodeType)("Expression")},cases:(0,l.validateArrayOfType)("SwitchCase")}}),p("ThisExpression",{aliases:["Expression"]}),p("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,l.assertNodeType)("Expression")}}}),p("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertNodeType)("BlockStatement"),Object.assign(function(e){if(!e.handler&&!e.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]})):(0,l.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0,l.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,l.assertNodeType)("BlockStatement")}}}),p("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,l.assertNodeType)("Expression")},operator:{validate:(0,l.assertOneOf)(...a.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),p("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("Identifier","MemberExpression"):(0,l.assertNodeType)("Expression")},operator:{validate:(0,l.assertOneOf)(...a.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),p("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,l.assertValueType)("boolean"),optional:!0},kind:{validate:(0,l.assertOneOf)("var","let","const","using","await using")},declarations:(0,l.validateArrayOfType)("VariableDeclarator")},validate:process.env.BABEL_TYPES_8_BREAKING?(()=>{const e=(0,l.assertNodeType)("Identifier","Placeholder"),t=(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","Placeholder"),r=(0,l.assertNodeType)("Identifier","VoidPattern","Placeholder");return function(s,i,o){const{kind:a,declarations:l}=o,p=(0,n.default)("ForXStatement",s,{left:o});if(p&&1!==l.length)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${s.type}`);for(const n of l)"const"===a||"let"===a||"var"===a?p||n.init?t(n,"id",n.id):e(n,"id",n.id):r(n,"id",n.id)}})():void 0}),p("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern"):(0,l.assertNodeType)("LVal","VoidPattern")},definite:{optional:!0,validate:(0,l.assertValueType)("boolean")},init:{optional:!0,validate:(0,l.assertNodeType)("Expression")}}}),p("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}}}),p("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}}}),p("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},patternLikeCommon(),{left:{validate:(0,l.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,l.assertNodeType)("Expression")},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0}})}),p("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},patternLikeCommon(),{elements:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeOrValueType)("null","PatternLike")))}})}),p("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},functionCommon(),functionTypeAnnotationCommon(),{expression:{validate:(0,l.assertValueType)("boolean")},body:{validate:(0,l.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,l.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})}),p("ClassBody",{visitor:["body"],fields:{body:(0,l.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}}),p("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,l.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,l.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,l.assertNodeType)("Expression")},superTypeParameters:{validate:(0,l.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,l.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,l.assertNodeType)("InterfaceExtends"),optional:!0}}}),p("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,l.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,l.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,l.assertNodeType)("Expression")},superTypeParameters:{validate:(0,l.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,l.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,l.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,l.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,l.assertValueType)("boolean"),optional:!0}},validate:process.env.BABEL_TYPES_8_BREAKING?function(){const e=(0,l.assertNodeType)("Identifier");return function(t,r,s){(0,n.default)("ExportDefaultDeclaration",t)||e(s,"id",s.id)}}():void 0});const c=t.importAttributes={attributes:{optional:!0,validate:(0,l.arrayOfType)("ImportAttribute")}};c.assertions={deprecated:!0,optional:!0,validate:(0,l.arrayOfType)("ImportAttribute")},p("ExportAllDeclaration",{builder:["source","attributes"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:(0,l.assertNodeType)("StringLiteral")},exportKind:(0,l.validateOptional)((0,l.assertOneOf)("type","value"))},c)}),p("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0,l.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0,l.validateOptional)((0,l.assertOneOf)("value"))}}),p("ExportNamedDeclaration",{builder:["declaration","specifiers","source","attributes"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertNodeType)("Declaration"),Object.assign(function(e,t,r){if(r&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(r&&e.source)throw new TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):(0,l.assertNodeType)("Declaration")}},c,{specifiers:{default:[],validate:(0,l.arrayOf)(function(){const e=(0,l.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=(0,l.assertNodeType)("ExportSpecifier");return process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(r,n,s){(r.source?e:t)(r,n,s)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):e}())},source:{validate:(0,l.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,l.validateOptional)((0,l.assertOneOf)("type","value"))})}),p("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")},exported:{validate:(0,l.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,l.assertOneOf)("type","value"),optional:!0}}}),p("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,l.assertNodeType)("VariableDeclaration","LVal");const e=(0,l.assertNodeType)("VariableDeclaration"),t=(0,l.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(r,s,i){(0,n.default)("VariableDeclaration",i)?e(r,s,i):t(r,s,i)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")},await:{default:!1}}}),p("ImportDeclaration",{builder:["specifiers","source","attributes"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},c,{module:{optional:!0,validate:(0,l.assertValueType)("boolean")},phase:{default:null,validate:(0,l.assertOneOf)("source","defer")},specifiers:(0,l.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,l.assertNodeType)("StringLiteral")},importKind:{validate:(0,l.assertOneOf)("type","typeof","value"),optional:!0}})}),p("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")}}}),p("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")}}}),p("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")},imported:{validate:(0,l.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,l.assertOneOf)("type","typeof","value"),optional:!0}}}),p("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,l.assertOneOf)("source","defer")},source:{validate:(0,l.assertNodeType)("Expression")},options:{validate:(0,l.assertNodeType)("Expression"),optional:!0}}}),p("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertNodeType)("Identifier"),Object.assign(function(e,t,r){let s;switch(r.name){case"function":s="sent";break;case"new":s="target";break;case"import":s="meta"}if(!(0,n.default)("Identifier",e.property,{name:s}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):(0,l.assertNodeType)("Identifier")},property:{validate:(0,l.assertNodeType)("Identifier")}}});const classMethodOrPropertyCommon=()=>({abstract:{validate:(0,l.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,l.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,l.assertValueType)("boolean"),optional:!0},key:{validate:(0,l.chain)(function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,l.assertNodeType)("Expression");return function(r,n,s){(r.computed?t:e)(r,n,s)}}(),(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});t.classMethodOrPropertyCommon=classMethodOrPropertyCommon;const classMethodOrDeclareMethodCommon=()=>Object.assign({},functionCommon(),classMethodOrPropertyCommon(),{params:(0,l.validateArrayOfType)("FunctionParameter","TSParameterProperty"),kind:{validate:(0,l.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,l.chain)((0,l.assertValueType)("string"),(0,l.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0}});t.classMethodOrDeclareMethodCommon=classMethodOrDeclareMethodCommon,p("ClassMethod",Object.assign({aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},classMethodOrPropertyUnionShapeCommon(),{fields:Object.assign({},classMethodOrDeclareMethodCommon(),functionTypeAnnotationCommon(),{body:{validate:(0,l.assertNodeType)("BlockStatement")}})})),p("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},patternLikeCommon(),{properties:(0,l.validateArrayOfType)("RestElement","ObjectProperty")})}),p("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,l.assertNodeType)("Expression")}}}),p("Super",{aliases:["Expression"]}),p("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,l.assertNodeType)("Expression")},quasi:{validate:(0,l.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),p("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,l.chain)((0,l.assertShape)({raw:{validate:(0,l.assertValueType)("string")},cooked:{validate:(0,l.assertValueType)("string"),optional:!0}}),function(e){const t=e.value.raw;let r=!1;const error=()=>{throw new Error("Internal @babel/types error.")},{str:n,firstInvalidLoc:s}=(0,o.readStringContents)("template",t,0,0,0,{unterminated(){r=!0},strictNumericEscape:error,invalidEscapeSequence:error,numericSeparatorInEscapeSequence:error,unexpectedNumericSeparator:error,invalidDigit:error,invalidCodePoint:error});if(!r)throw new Error("Invalid raw");e.value.cooked=s?null:n})},tail:{default:!1}}}),p("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0,l.validateArrayOfType)("TemplateElement"),expressions:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Expression","TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.\nExpected ${r.length+1} quasis but got ${e.quasis.length}`)})}}}),p("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertValueType)("boolean"),Object.assign(function(e,t,r){if(r&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):(0,l.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,l.assertNodeType)("Expression")}}}),p("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,l.assertNodeType)("Expression")}}}),p("Import",{aliases:["Expression"]}),p("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),p("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,l.assertNodeType)("Identifier")}}}),p("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,l.assertNodeType)("Expression")},property:{validate:function(){const e=(0,l.assertNodeType)("Identifier"),t=(0,l.assertNodeType)("Expression");return Object.assign(function(r,n,s){(r.computed?t:e)(r,n,s)},{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertValueType)("boolean"),(0,l.assertOptionalChainStart)()):(0,l.assertValueType)("boolean")}}}),p("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,l.assertNodeType)("Expression")},arguments:(0,l.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertValueType)("boolean"),(0,l.assertOptionalChainStart)()):(0,l.assertValueType)("boolean")},typeArguments:{validate:(0,l.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,l.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),p("ClassProperty",Object.assign({visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"]},classMethodOrPropertyUnionShapeCommon(),{fields:Object.assign({},classMethodOrPropertyCommon(),{value:{validate:(0,l.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,l.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,l.assertValueType)("boolean"),optional:!0},declare:{validate:(0,l.assertValueType)("boolean"),optional:!0},variance:{validate:(0,l.assertNodeType)("Variance"),optional:!0}})})),p("ClassAccessorProperty",Object.assign({visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"]},classMethodOrPropertyUnionShapeCommon(!0),{fields:Object.assign({},classMethodOrPropertyCommon(),{key:{validate:(0,l.chain)(function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=(0,l.assertNodeType)("Expression");return function(r,n,s){(r.computed?t:e)(r,n,s)}}(),(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,l.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,l.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,l.assertValueType)("boolean"),optional:!0},declare:{validate:(0,l.assertValueType)("boolean"),optional:!0},variance:{validate:(0,l.assertNodeType)("Variance"),optional:!0}})})),p("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,l.assertNodeType)("PrivateName")},value:{validate:(0,l.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,l.assertValueType)("boolean"),default:!1},readonly:{validate:(0,l.assertValueType)("boolean"),optional:!0},optional:{validate:(0,l.assertValueType)("boolean"),optional:!0},definite:{validate:(0,l.assertValueType)("boolean"),optional:!0},variance:{validate:(0,l.assertNodeType)("Variance"),optional:!0}}}),p("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},classMethodOrDeclareMethodCommon(),functionTypeAnnotationCommon(),{kind:{validate:(0,l.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,l.assertNodeType)("PrivateName")},body:{validate:(0,l.assertNodeType)("BlockStatement")}})}),p("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,l.assertNodeType)("Identifier")}}}),p("StaticBlock",{visitor:["body"],fields:{body:(0,l.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]}),p("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,l.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,l.assertNodeType)("StringLiteral")}}})},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/deprecated-aliases.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEPRECATED_ALIASES=void 0;t.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/experimental.js"(e,t,r){"use strict";var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/utils.js");(0,n.default)("ArgumentPlaceholder",{}),(0,n.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,n.assertNodeType)("Expression")},callee:{validate:(0,n.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}}),(0,n.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,n.assertNodeType)("Expression")}}}),(0,n.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,n.assertNodeType)("BlockStatement")},async:{validate:(0,n.assertValueType)("boolean"),default:!1}}}),(0,n.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,n.assertNodeType)("Identifier")}}}),(0,n.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,n.validateArrayOfType)("ObjectProperty","SpreadElement")}}),(0,n.default)("TupleExpression",{fields:{elements:{validate:(0,n.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]}),(0,n.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,n.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,n.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,n.assertNodeType)("Program")}},aliases:["Expression"]}),(0,n.default)("TopicReference",{aliases:["Expression"]}),(0,n.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,n.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,n.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,n.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,n.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]}),(0,n.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]})},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/flow.js"(e,t,r){"use strict";var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/core.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/utils.js");const i=(0,s.defineAliasedType)("Flow"),defineInterfaceishType=e=>{const t="DeclareClass"===e;i(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...t?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,s.validateType)("Identifier"),typeParameters:(0,s.validateOptionalType)("TypeParameterDeclaration"),extends:(0,s.validateOptional)((0,s.arrayOfType)("InterfaceExtends"))},t?{mixins:(0,s.validateOptional)((0,s.arrayOfType)("InterfaceExtends")),implements:(0,s.validateOptional)((0,s.arrayOfType)("ClassImplements"))}:{},{body:(0,s.validateType)("ObjectTypeAnnotation")})})};i("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,s.validateType)("FlowType")}}),i("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,s.validate)((0,s.assertValueType)("boolean"))}}),i("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,s.validateType)("Identifier"),typeParameters:(0,s.validateOptionalType)("TypeParameterInstantiation")}}),defineInterfaceishType("DeclareClass"),i("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,s.validateType)("Identifier"),predicate:(0,s.validateOptionalType)("DeclaredPredicate")}}),defineInterfaceishType("DeclareInterface"),i("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,s.validateType)("Identifier","StringLiteral"),body:(0,s.validateType)("BlockStatement"),kind:(0,s.validateOptional)((0,s.assertOneOf)("CommonJS","ES"))}}),i("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,s.validateType)("TypeAnnotation")}}),i("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,s.validateType)("Identifier"),typeParameters:(0,s.validateOptionalType)("TypeParameterDeclaration"),right:(0,s.validateType)("FlowType")}}),i("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,s.validateType)("Identifier"),typeParameters:(0,s.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,s.validateOptionalType)("FlowType"),impltype:(0,s.validateOptionalType)("FlowType")}}),i("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,s.validateType)("Identifier")}}),i("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,s.validateOptionalType)("Flow"),specifiers:(0,s.validateOptional)((0,s.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,s.validateOptionalType)("StringLiteral"),default:(0,s.validateOptional)((0,s.assertValueType)("boolean"))},n.importAttributes)}),i("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,s.validateType)("StringLiteral"),exportKind:(0,s.validateOptional)((0,s.assertOneOf)("type","value"))},n.importAttributes)}),i("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,s.validateType)("Flow")}}),i("ExistsTypeAnnotation",{aliases:["FlowType"]}),i("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,s.validateOptionalType)("TypeParameterDeclaration"),params:(0,s.validateArrayOfType)("FunctionTypeParam"),rest:(0,s.validateOptionalType)("FunctionTypeParam"),this:(0,s.validateOptionalType)("FunctionTypeParam"),returnType:(0,s.validateType)("FlowType")}}),i("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,s.validateOptionalType)("Identifier"),typeAnnotation:(0,s.validateType)("FlowType"),optional:(0,s.validateOptional)((0,s.assertValueType)("boolean"))}}),i("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,s.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,s.validateOptionalType)("TypeParameterInstantiation")}}),i("InferredPredicate",{aliases:["FlowPredicate"]}),i("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,s.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,s.validateOptionalType)("TypeParameterInstantiation")}}),defineInterfaceishType("InterfaceDeclaration"),i("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,s.validateOptional)((0,s.arrayOfType)("InterfaceExtends")),body:(0,s.validateType)("ObjectTypeAnnotation")}}),i("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,s.validate)((0,s.arrayOfType)("FlowType"))}}),i("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,s.validateType)("FlowType")}}),i("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,s.validate)((0,s.assertValueType)("number"))}}),i("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,s.validate)((0,s.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,s.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,s.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,s.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,s.assertValueType)("boolean"),default:!1},inexact:(0,s.validateOptional)((0,s.assertValueType)("boolean"))}}),i("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,s.validateType)("Identifier"),value:(0,s.validateType)("FlowType"),optional:(0,s.validate)((0,s.assertValueType)("boolean")),static:(0,s.validate)((0,s.assertValueType)("boolean")),method:(0,s.validate)((0,s.assertValueType)("boolean"))}}),i("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,s.validateType)("FlowType"),static:(0,s.validate)((0,s.assertValueType)("boolean"))}}),i("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,s.validateOptionalType)("Identifier"),key:(0,s.validateType)("FlowType"),value:(0,s.validateType)("FlowType"),static:(0,s.validate)((0,s.assertValueType)("boolean")),variance:(0,s.validateOptionalType)("Variance")}}),i("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,s.validateType)("Identifier","StringLiteral"),value:(0,s.validateType)("FlowType"),kind:(0,s.validate)((0,s.assertOneOf)("init","get","set")),static:(0,s.validate)((0,s.assertValueType)("boolean")),proto:(0,s.validate)((0,s.assertValueType)("boolean")),optional:(0,s.validate)((0,s.assertValueType)("boolean")),variance:(0,s.validateOptionalType)("Variance"),method:(0,s.validate)((0,s.assertValueType)("boolean"))}}),i("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,s.validateType)("FlowType")}}),i("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,s.validateType)("Identifier"),typeParameters:(0,s.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,s.validateOptionalType)("FlowType"),impltype:(0,s.validateType)("FlowType")}}),i("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,s.validateType)("Identifier"),qualification:(0,s.validateType)("Identifier","QualifiedTypeIdentifier")}}),i("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,s.validate)((0,s.assertValueType)("string"))}}),i("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,s.validate)((0,s.arrayOfType)("FlowType"))}}),i("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,s.validateType)("FlowType")}}),i("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,s.validateType)("Identifier"),typeParameters:(0,s.validateOptionalType)("TypeParameterDeclaration"),right:(0,s.validateType)("FlowType")}}),i("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,s.validateType)("FlowType")}}),i("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,s.validateType)("Expression"),typeAnnotation:(0,s.validateType)("TypeAnnotation")}}),i("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,s.validate)((0,s.assertValueType)("string")),bound:(0,s.validateOptionalType)("TypeAnnotation"),default:(0,s.validateOptionalType)("FlowType"),variance:(0,s.validateOptionalType)("Variance")}}),i("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,s.validate)((0,s.arrayOfType)("TypeParameter"))}}),i("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,s.validate)((0,s.arrayOfType)("FlowType"))}}),i("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,s.validate)((0,s.arrayOfType)("FlowType"))}}),i("Variance",{builder:["kind"],fields:{kind:(0,s.validate)((0,s.assertOneOf)("minus","plus"))}}),i("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,s.validateType)("Identifier"),body:(0,s.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}}),i("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,s.validate)((0,s.assertValueType)("boolean")),members:(0,s.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,s.validate)((0,s.assertValueType)("boolean"))}}),i("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,s.validate)((0,s.assertValueType)("boolean")),members:(0,s.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,s.validate)((0,s.assertValueType)("boolean"))}}),i("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,s.validate)((0,s.assertValueType)("boolean")),members:(0,s.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,s.validate)((0,s.assertValueType)("boolean"))}}),i("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,s.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,s.validate)((0,s.assertValueType)("boolean"))}}),i("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,s.validateType)("Identifier"),init:(0,s.validateType)("BooleanLiteral")}}),i("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,s.validateType)("Identifier"),init:(0,s.validateType)("NumericLiteral")}}),i("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,s.validateType)("Identifier"),init:(0,s.validateType)("StringLiteral")}}),i("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,s.validateType)("Identifier")}}),i("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,s.validateType)("FlowType"),indexType:(0,s.validateType)("FlowType")}}),i("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,s.validateType)("FlowType"),indexType:(0,s.validateType)("FlowType"),optional:(0,s.validate)((0,s.assertValueType)("boolean"))}})},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ALIAS_KEYS",{enumerable:!0,get:function(){return n.ALIAS_KEYS}}),Object.defineProperty(t,"BUILDER_KEYS",{enumerable:!0,get:function(){return n.BUILDER_KEYS}}),Object.defineProperty(t,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return i.DEPRECATED_ALIASES}}),Object.defineProperty(t,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return n.DEPRECATED_KEYS}}),Object.defineProperty(t,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return n.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(t,"NODE_FIELDS",{enumerable:!0,get:function(){return n.NODE_FIELDS}}),Object.defineProperty(t,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return n.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(t,"NODE_UNION_SHAPES__PRIVATE",{enumerable:!0,get:function(){return n.NODE_UNION_SHAPES__PRIVATE}}),Object.defineProperty(t,"PLACEHOLDERS",{enumerable:!0,get:function(){return s.PLACEHOLDERS}}),Object.defineProperty(t,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return s.PLACEHOLDERS_ALIAS}}),Object.defineProperty(t,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return s.PLACEHOLDERS_FLIPPED_ALIAS}}),t.TYPES=void 0,Object.defineProperty(t,"VISITOR_KEYS",{enumerable:!0,get:function(){return n.VISITOR_KEYS}}),r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/core.js"),r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/flow.js"),r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/jsx.js"),r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/misc.js"),r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/experimental.js"),r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/typescript.js");var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/utils.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/placeholders.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/deprecated-aliases.js");Object.keys(i.DEPRECATED_ALIASES).forEach(e=>{n.FLIPPED_ALIAS_KEYS[e]=n.FLIPPED_ALIAS_KEYS[i.DEPRECATED_ALIASES[e]]});for(const{types:e,set:t}of n.allExpandedTypes)for(const r of e){const e=n.FLIPPED_ALIAS_KEYS[r];e?e.forEach(t.add,t):t.add(r)}t.TYPES=[].concat(Object.keys(n.VISITOR_KEYS),Object.keys(n.FLIPPED_ALIAS_KEYS),Object.keys(n.DEPRECATED_KEYS))},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/jsx.js"(e,t,r){"use strict";var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/utils.js");const s=(0,n.defineAliasedType)("JSX");s("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,n.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,n.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),s("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,n.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),s("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,n.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,n.assertNodeType)("JSXClosingElement")},children:(0,n.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,n.assertValueType)("boolean"),optional:!0}})}),s("JSXEmptyExpression",{}),s("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,n.assertNodeType)("Expression","JSXEmptyExpression")}}}),s("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,n.assertNodeType)("Expression")}}}),s("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,n.assertValueType)("string")}}}),s("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,n.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,n.assertNodeType)("JSXIdentifier")}}}),s("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,n.assertNodeType)("JSXIdentifier")},name:{validate:(0,n.assertNodeType)("JSXIdentifier")}}}),s("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,n.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,n.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,n.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,n.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),s("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,n.assertNodeType)("Expression")}}}),s("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,n.assertValueType)("string")}}}),s("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,n.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,n.assertNodeType)("JSXClosingFragment")},children:(0,n.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}}),s("JSXOpeningFragment",{aliases:["Immutable"]}),s("JSXClosingFragment",{aliases:["Immutable"]})},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/misc.js"(e,t,r){"use strict";var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/utils.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/placeholders.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/core.js");const o=(0,n.defineAliasedType)("Miscellaneous");o("Noop",{visitor:[]}),o("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,n.assertNodeType)("Identifier")},expectedNode:{validate:(0,n.assertOneOf)(...s.PLACEHOLDERS)}},(0,i.patternLikeCommon)())}),o("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,n.assertValueType)("string")}}})},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/placeholders.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PLACEHOLDERS_FLIPPED_ALIAS=t.PLACEHOLDERS_ALIAS=t.PLACEHOLDERS=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/utils.js");const s=t.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],i=t.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(const e of s){const t=n.ALIAS_KEYS[e];null!=t&&t.length&&(i[e]=t)}const o=t.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(i).forEach(e=>{i[e].forEach(t=>{hasOwnProperty.call(o,t)||(o[t]=[]),o[t].push(e)})})},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/typescript.js"(e,t,r){"use strict";var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/utils.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/core.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/is.js");const o=(0,n.defineAliasedType)("TypeScript"),a=(0,n.assertValueType)("boolean"),tSFunctionTypeAnnotationCommon=()=>({returnType:{validate:(0,n.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,n.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});o("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,n.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,n.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,n.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,n.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,n.arrayOfType)("Decorator"),optional:!0}}}),o("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,s.functionDeclarationCommon)(),tSFunctionTypeAnnotationCommon())}),o("TSDeclareMethod",Object.assign({visitor:["decorators","key","typeParameters","params","returnType"]},(0,s.classMethodOrPropertyUnionShapeCommon)(),{fields:Object.assign({},(0,s.classMethodOrDeclareMethodCommon)(),tSFunctionTypeAnnotationCommon())})),o("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,n.validateType)("TSEntityName"),right:(0,n.validateType)("Identifier")}});const signatureDeclarationCommon=()=>({typeParameters:(0,n.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,n.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0,n.validateOptionalType)("TSTypeAnnotation")}),l={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:signatureDeclarationCommon()};o("TSCallSignatureDeclaration",l),o("TSConstructSignatureDeclaration",l);const namedTypeElementCommon=()=>({key:(0,n.validateType)("Expression"),computed:{default:!1},optional:(0,n.validateOptional)(a)});o("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},namedTypeElementCommon(),{readonly:(0,n.validateOptional)(a),typeAnnotation:(0,n.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,n.assertOneOf)("get","set")}})}),o("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},signatureDeclarationCommon(),namedTypeElementCommon(),{kind:{validate:(0,n.assertOneOf)("method","get","set")}})}),o("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,n.validateOptional)(a),static:(0,n.validateOptional)(a),parameters:(0,n.validateArrayOfType)("Identifier"),typeAnnotation:(0,n.validateOptionalType)("TSTypeAnnotation")}});const p=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(const e of p)o(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});o("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});const c={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};o("TSFunctionType",Object.assign({},c,{fields:signatureDeclarationCommon()})),o("TSConstructorType",Object.assign({},c,{fields:Object.assign({},signatureDeclarationCommon(),{abstract:(0,n.validateOptional)(a)})})),o("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,n.validateType)("TSEntityName"),typeParameters:(0,n.validateOptionalType)("TSTypeParameterInstantiation")}}),o("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,n.validateType)("Identifier","TSThisType"),typeAnnotation:(0,n.validateOptionalType)("TSTypeAnnotation"),asserts:(0,n.validateOptional)(a)}}),o("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,n.validateType)("TSEntityName","TSImportType"),typeParameters:(0,n.validateOptionalType)("TSTypeParameterInstantiation")}}),o("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,n.validateArrayOfType)("TSTypeElement")}}),o("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,n.validateType)("TSType")}}),o("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,n.validateArrayOfType)("TSType","TSNamedTupleMember")}}),o("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,n.validateType)("TSType")}}),o("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,n.validateType)("TSType")}}),o("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,n.validateType)("Identifier"),optional:{validate:a,default:!1},elementType:(0,n.validateType)("TSType")}});const u={aliases:["TSType"],visitor:["types"],fields:{types:(0,n.validateArrayOfType)("TSType")}};o("TSUnionType",u),o("TSIntersectionType",u),o("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,n.validateType)("TSType"),extendsType:(0,n.validateType)("TSType"),trueType:(0,n.validateType)("TSType"),falseType:(0,n.validateType)("TSType")}}),o("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,n.validateType)("TSTypeParameter")}}),o("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,n.validateType)("TSType")}}),o("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,n.assertValueType)("string"),default:"keyof"},typeAnnotation:(0,n.validateType)("TSType")}}),o("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,n.validateType)("TSType"),indexType:(0,n.validateType)("TSType")}}),o("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,n.validateType)("TSTypeParameter")},{readonly:(0,n.validateOptional)((0,n.assertOneOf)(!0,!1,"+","-")),optional:(0,n.validateOptional)((0,n.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,n.validateOptionalType)("TSType"),nameType:(0,n.validateOptionalType)("TSType")})}),o("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,n.validateArrayOfType)("TemplateElement"),types:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of types.\nExpected ${r.length+1} quasis but got ${e.quasis.length}`)})}}}),o("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){const e=(0,n.assertNodeType)("NumericLiteral","BigIntLiteral"),t=(0,n.assertOneOf)("-"),r=(0,n.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral"),validator=function(n,s,o){(0,i.default)("UnaryExpression",o)?(t(o,"operator",o.operator),e(o,"argument",o.argument)):r(n,s,o)};return validator.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],validator}()}}}),o("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,n.validateType)("TSEntityName"),typeParameters:(0,n.validateOptionalType)("TSTypeParameterInstantiation")}}),o("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,n.validateOptional)(a),id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,n.validateOptional)((0,n.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,n.validateType)("TSInterfaceBody")}}),o("TSInterfaceBody",{visitor:["body"],fields:{body:(0,n.validateArrayOfType)("TSTypeElement")}}),o("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,n.validateOptional)(a),id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,n.validateType)("TSType")}}),o("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,n.validateType)("Expression"),typeParameters:(0,n.validateOptionalType)("TSTypeParameterInstantiation")}});const d={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,n.validateType)("Expression"),typeAnnotation:(0,n.validateType)("TSType")}};o("TSAsExpression",d),o("TSSatisfiesExpression",d),o("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,n.validateType)("TSType"),expression:(0,n.validateType)("Expression")}}),o("TSEnumBody",{visitor:["members"],fields:{members:(0,n.validateArrayOfType)("TSEnumMember")}}),o("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,n.validateOptional)(a),const:(0,n.validateOptional)(a),id:(0,n.validateType)("Identifier"),members:(0,n.validateArrayOfType)("TSEnumMember"),initializer:(0,n.validateOptionalType)("Expression"),body:(0,n.validateOptionalType)("TSEnumBody")}}),o("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,n.validateType)("Identifier","StringLiteral"),initializer:(0,n.validateOptionalType)("Expression")}}),o("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,n.assertOneOf)("global","module","namespace")},declare:(0,n.validateOptional)(a)},{global:(0,n.validateOptional)(a)},{id:(0,n.validateType)("Identifier","StringLiteral"),body:(0,n.validateType)("TSModuleBlock","TSModuleDeclaration")})}),o("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,n.validateArrayOfType)("Statement")}}),o("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:Object.assign({},{argument:(0,n.validateType)("StringLiteral")},{qualifier:(0,n.validateOptionalType)("TSEntityName")},{typeParameters:(0,n.validateOptionalType)("TSTypeParameterInstantiation")},{options:{validate:(0,n.assertNodeType)("ObjectExpression"),optional:!0}})}),o("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,n.validate)(a)},{id:(0,n.validateType)("Identifier"),moduleReference:(0,n.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,n.assertOneOf)("type","value"),optional:!0}})}),o("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,n.validateType)("StringLiteral")}}),o("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,n.validateType)("Expression")}}),o("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,n.validateType)("Expression")}}),o("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,n.validateType)("Identifier")}}),o("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,n.assertNodeType)("TSType")}}}),o("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,n.validateArrayOfType)("TSType")}}),o("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,n.validateArrayOfType)("TSTypeParameter")}}),o("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,n.assertValueType)("string")},in:{validate:(0,n.assertValueType)("boolean"),optional:!0},out:{validate:(0,n.assertValueType)("boolean"),optional:!0},const:{validate:(0,n.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,n.assertNodeType)("TSType"),optional:!0},default:{validate:(0,n.assertNodeType)("TSType"),optional:!0}}})},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/utils.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allExpandedTypes=t.VISITOR_KEYS=t.NODE_UNION_SHAPES__PRIVATE=t.NODE_PARENT_VALIDATIONS=t.NODE_FIELDS=t.FLIPPED_ALIAS_KEYS=t.DEPRECATED_KEYS=t.BUILDER_KEYS=t.ALIAS_KEYS=void 0,t.arrayOf=arrayOf,t.arrayOfType=arrayOfType,t.assertEach=assertEach,t.assertNodeOrValueType=function(...e){function validate(t,r,i){const o=getType(i);for(const a of e)if(o===a||(0,n.default)(a,i))return void(0,s.validateChild)(t,r,i);throw new TypeError(`Property ${r} of ${t.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(null==i?void 0:i.type)}`)}return validate.oneOfNodeOrValueTypes=e,validate},t.assertNodeType=assertNodeType,t.assertOneOf=function(...e){function validate(t,r,n){if(!e.includes(n))throw new TypeError(`Property ${r} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(n)}`)}return validate.oneOf=e,validate},t.assertOptionalChainStart=function(){return function(e){var t;let r=e;for(;e;){const{type:e}=r;if("OptionalCallExpression"!==e){if("OptionalMemberExpression"!==e)break;if(r.optional)return;r=r.object}else{if(r.optional)return;r=r.callee}}throw new TypeError(`Non-optional ${e.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${null==(t=r)?void 0:t.type}`)}},t.assertShape=function(e){const t=Object.keys(e);function validate(r,n,i){const o=[];for(const n of t)try{(0,s.validateField)(r,n,i[n],e[n])}catch(e){if(e instanceof TypeError){o.push(e.message);continue}throw e}if(o.length)throw new TypeError(`Property ${n} of ${r.type} expected to have the following:\n${o.join("\n")}`)}return validate.shapeOf=e,validate},t.assertValueType=assertValueType,t.chain=chain,t.default=defineType,t.defineAliasedType=function(...e){return(t,r={})=>{let n=r.aliases;var s;n||(r.inherits&&(n=null==(s=y[r.inherits].aliases)?void 0:s.slice()),null!=n||(n=[]),r.aliases=n);const i=e.filter(e=>!n.includes(e));n.unshift(...i),defineType(t,r)}},t.validate=validate,t.validateArrayOfType=function(...e){return validate(arrayOfType(...e))},t.validateOptional=function(e){return{validate:e,optional:!0}},t.validateOptionalType=function(...e){return{validate:assertNodeType(...e),optional:!0}},t.validateType=function(...e){return validate(assertNodeType(...e))};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/is.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/validate.js");const i=t.VISITOR_KEYS={},o=t.ALIAS_KEYS={},a=t.FLIPPED_ALIAS_KEYS={},l=t.NODE_FIELDS={},p=t.BUILDER_KEYS={},c=t.DEPRECATED_KEYS={},u=t.NODE_PARENT_VALIDATIONS={},d=t.NODE_UNION_SHAPES__PRIVATE={};function getType(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function validate(e){return{validate:e}}function arrayOf(e){return chain(assertValueType("array"),assertEach(e))}function arrayOfType(...e){return arrayOf(assertNodeType(...e))}function assertEach(e){const t=process.env.BABEL_TYPES_8_BREAKING?s.validateChild:()=>{};function validator(r,n,s){if(!Array.isArray(s))return;let i=0;const o={toString:()=>`${n}[${i}]`};for(;i<s.length;i++){const n=s[i];e(r,o,n),t(r,o,n)}}return validator.each=e,validator}const h=t.allExpandedTypes=[];function assertNodeType(...e){const t=new Set;function validate(r,i,o){const a=null==o?void 0:o.type;if(null!=a){if(t.has(a))return void(0,s.validateChild)(r,i,o);if("Placeholder"===a)for(const t of e)if((0,n.default)(t,o))return void(0,s.validateChild)(r,i,o)}throw new TypeError(`Property ${i} of ${r.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(a)}`)}return h.push({types:e,set:t}),validate.oneOfNodeTypes=e,validate}function assertValueType(e){function validate(t,r,n){if(getType(n)!==e)throw new TypeError(`Property ${r} expected type of ${e} but got ${getType(n)}`)}return validate.type=e,validate}function chain(...e){function validate(...t){for(const r of e)r(...t)}if(validate.chainOf=e,e.length>=2&&"type"in e[0]&&"array"===e[0].type&&!("each"in e[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return validate}const m=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate","unionShape"]),f=new Set(["default","optional","deprecated","validate"]),y={};function defineType(e,t={}){const r=t.inherits&&y[t.inherits]||{};let n=t.fields;if(!n&&(n={},r.fields)){const e=Object.getOwnPropertyNames(r.fields);for(const t of e){const e=r.fields[t],s=e.default;if(Array.isArray(s)?s.length>0:s&&"object"==typeof s)throw new Error("field defaults can only be primitives or empty arrays currently");n[t]={default:Array.isArray(s)?[]:s,optional:e.optional,deprecated:e.deprecated,validate:e.validate}}}const s=t.visitor||r.visitor||[],h=t.aliases||r.aliases||[],b=t.builder||r.builder||t.visitor||[];for(const r of Object.keys(t))if(!m.has(r))throw new Error(`Unknown type option "${r}" on ${e}`);t.deprecatedAlias&&(c[t.deprecatedAlias]=e);for(const e of s.concat(b))n[e]=n[e]||{};for(const t of Object.keys(n)){const r=n[t];void 0===r.default||b.includes(t)||(r.optional=!0),void 0===r.default?r.default=null:r.validate||null==r.default||(r.validate=assertValueType(getType(r.default)));for(const n of Object.keys(r))if(!f.has(n))throw new Error(`Unknown field key "${n}" on ${e}.${t}`)}i[e]=t.visitor=s,p[e]=t.builder=b,l[e]=t.fields=n,o[e]=t.aliases=h,h.forEach(t=>{a[t]=a[t]||[],a[t].push(e)}),t.validate&&(u[e]=t.validate),t.unionShape&&(d[e]=t.unionShape),y[e]=t}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(t,"__internal__deprecationWarning",{enumerable:!0,get:function(){return ye.default}}),Object.defineProperty(t,"addComment",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"addComments",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"appendToMemberExpression",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(t,"assertNode",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"buildMatchMemberExpression",{enumerable:!0,get:function(){return me.default}}),Object.defineProperty(t,"clone",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"cloneDeep",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"cloneNode",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"cloneWithoutLoc",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"createFlowUnionType",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"createTSUnionType",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"ensureBlock",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(t,"getBindingIdentifiers",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(t,"getFunctionName",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"inheritInnerComments",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"inheritLeadingComments",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"inheritTrailingComments",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"inherits",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"inheritsComments",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"is",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(t,"isBinding",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(t,"isBlockScoped",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(t,"isImmutable",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(t,"isLet",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(t,"isNodesEquivalent",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(t,"isPlaceholderType",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(t,"isReferenced",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(t,"isScope",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(t,"isSpecifierDefault",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(t,"isValidES3Identifier",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(t,"isValidIdentifier",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(t,"isVar",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(t,"matchesPattern",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(t,"prependToMemberExpression",{enumerable:!0,get:function(){return U.default}}),t.react=void 0,Object.defineProperty(t,"removeComments",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"removeProperties",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(t,"removePropertiesDeep",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(t,"removeTypeDuplicates",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(t,"shallowEqual",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(t,"toBindingIdentifierName",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"toBlock",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"toComputedKey",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"toExpression",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"toIdentifier",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"toKeyAlias",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"toStatement",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(t,"traverse",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(t,"traverseFast",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return he.default}}),Object.defineProperty(t,"valueToNode",{enumerable:!0,get:function(){return L.default}});var s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/react/isReactComponent.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/react/isCompatTag.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/react/buildChildren.js"),a=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/asserts/assertNode.js"),l=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/asserts/generated/index.js");Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))});var p=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js"),c=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js"),u=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js"),d=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/productions.js");Object.keys(d).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))});var h=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/generated/index.js");Object.keys(h).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))});var m=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/clone/cloneNode.js"),f=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/clone/clone.js"),y=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/clone/cloneDeep.js"),b=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js"),g=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js"),x=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/comments/addComment.js"),v=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/comments/addComments.js"),E=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/comments/inheritInnerComments.js"),T=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/comments/inheritLeadingComments.js"),S=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/comments/inheritsComments.js"),P=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/comments/inheritTrailingComments.js"),_=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/comments/removeComments.js"),A=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/constants/generated/index.js");Object.keys(A).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===A[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return A[e]}}))});var C=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/constants/index.js");Object.keys(C).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===C[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return C[e]}}))});var w=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/converters/ensureBlock.js"),I=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js"),D=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/converters/toBlock.js"),k=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/converters/toComputedKey.js"),N=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/converters/toExpression.js"),O=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/converters/toIdentifier.js"),j=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/converters/toKeyAlias.js"),F=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/converters/toStatement.js"),L=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/converters/valueToNode.js"),M=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/index.js");Object.keys(M).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===M[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return M[e]}}))});var B=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js"),R=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/modifications/inherits.js"),U=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js"),V=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/modifications/removeProperties.js"),$=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js"),K=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js"),W=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js"),q=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js"),H=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js"),z=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/retrievers/getFunctionName.js"),G=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/traverse/traverse.js");Object.keys(G).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===G[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return G[e]}}))});var X=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/traverse/traverseFast.js"),J=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/utils/shallowEqual.js"),Y=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/is.js"),Q=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isBinding.js"),Z=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isBlockScoped.js"),ee=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isImmutable.js"),te=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isLet.js"),re=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isNode.js"),ne=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isNodesEquivalent.js"),se=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isPlaceholderType.js"),ie=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isReferenced.js"),oe=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isScope.js"),ae=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isSpecifierDefault.js"),le=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isType.js"),pe=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isValidES3Identifier.js"),ce=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isValidIdentifier.js"),ue=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isVar.js"),de=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/matchesPattern.js"),he=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/validate.js"),me=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js"),fe=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/generated/index.js");Object.keys(fe).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===fe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return fe[e]}}))});var ye=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/utils/deprecationWarning.js"),be=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/converters/toSequenceExpression.js");t.react={isReactComponent:s.default,isCompatTag:i.default,buildChildren:o.default};t.toSequenceExpression=be.default,process.env.BABEL_TYPES_8_BREAKING&&console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r=!1){return e.object=(0,n.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!r,e};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/generated/index.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function removeTypeDuplicates(e){const t=Array.from(e),r=new Map,s=new Map,i=new Set,o=[];for(let e=0;e<t.length;e++){const a=t[e];if(a&&!o.includes(a)){if((0,n.isAnyTypeAnnotation)(a))return[a];if((0,n.isFlowBaseAnnotation)(a))s.set(a.type,a);else if((0,n.isUnionTypeAnnotation)(a))i.has(a.types)||(t.push(...a.types),i.add(a.types));else{if((0,n.isGenericTypeAnnotation)(a)){const e=getQualifiedName(a.id);if(r.has(e)){let t=r.get(e);t.typeParameters?a.typeParameters&&(t.typeParameters.params.push(...a.typeParameters.params),t.typeParameters.params=removeTypeDuplicates(t.typeParameters.params)):t=a.typeParameters}else r.set(e,a);continue}o.push(a)}}}for(const[,e]of s)o.push(e);for(const[,e]of r)o.push(e);return o};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/generated/index.js");function getQualifiedName(e){return(0,n.isIdentifier)(e)?e.name:`${e.id.name}.${getQualifiedName(e.qualification)}`}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/modifications/inherits.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e||!t)return e;for(const r of n.INHERIT_KEYS.optional)null==e[r]&&(e[r]=t[r]);for(const r of Object.keys(t))r.startsWith("_")&&"__clone"!==r&&(e[r]=t[r]);for(const r of n.INHERIT_KEYS.force)e[r]=t[r];return(0,s.default)(e,t),e};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/constants/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/comments/inheritsComments.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,s.isSuper)(e.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return e.object=(0,n.memberExpression)(t,e.object),e};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/generated/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/modifications/removeProperties.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){const r=t.preserveComments?s:i;for(const t of r)null!=e[t]&&(e[t]=void 0);for(const t of Object.keys(e))t.startsWith("_")&&null!=e[t]&&(e[t]=void 0);const n=Object.getOwnPropertySymbols(e);for(const t of n)e[t]=null};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/constants/index.js");const s=["tokens","start","end","loc","raw","rawValue"],i=[...n.COMMENT_KEYS,"comments",...s]},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e,s.default,t),e};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/traverse/traverseFast.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/modifications/removeProperties.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function removeTypeDuplicates(e){const t=Array.from(e),r=new Map,s=new Map,i=new Set,o=[];for(let e=0;e<t.length;e++){const a=t[e];if(!a)continue;if(o.includes(a))continue;if((0,n.isTSAnyKeyword)(a))return[a];if((0,n.isTSBaseType)(a)){s.set(a.type,a);continue}if((0,n.isTSUnionType)(a)){i.has(a.types)||(t.push(...a.types),i.add(a.types));continue}const l="typeParameters";if((0,n.isTSTypeReference)(a)&&a[l]){const e=a[l],t=getQualifiedName(a.typeName);if(r.has(t)){let n=r.get(t);const s=n[l];s?(s.params.push(...e.params),s.params=removeTypeDuplicates(s.params)):n=e}else r.set(t,a);continue}o.push(a)}for(const[,e]of s)o.push(e);for(const[,e]of r)o.push(e);return o};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/generated/index.js");function getQualifiedName(e){return(0,n.isIdentifier)(e)?e.name:(0,n.isThisExpression)(e)?"this":`${e.right.name}.${getQualifiedName(e.left)}`}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=[].concat(e),r=Object.create(null);for(;t.length;){const e=t.pop();if(e)switch(e.type){case"ArrayPattern":t.push(...e.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":t.push(e.left);break;case"ObjectPattern":t.push(...e.properties);break;case"ObjectProperty":t.push(e.value);break;case"RestElement":case"UpdateExpression":t.push(e.argument);break;case"UnaryExpression":"delete"===e.operator&&t.push(e.argument);break;case"Identifier":r[e.name]=e}}return r}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=getBindingIdentifiers;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/generated/index.js");function getBindingIdentifiers(e,t,r,s){const i=[].concat(e),o=Object.create(null);for(;i.length;){const e=i.shift();if(!e)continue;if(s&&((0,n.isAssignmentExpression)(e)||(0,n.isUnaryExpression)(e)||(0,n.isUpdateExpression)(e)))continue;if((0,n.isIdentifier)(e)){if(t){(o[e.name]=o[e.name]||[]).push(e)}else o[e.name]=e;continue}if((0,n.isExportDeclaration)(e)&&!(0,n.isExportAllDeclaration)(e)){(0,n.isDeclaration)(e.declaration)&&i.push(e.declaration);continue}if(r){if((0,n.isFunctionDeclaration)(e)){i.push(e.id);continue}if((0,n.isFunctionExpression)(e))continue}const a=getBindingIdentifiers.keys[e.type];if(a)for(let t=0;t<a.length;t++){const r=e[a[t]];r&&(Array.isArray(r)?i.push(...r):i.push(r))}}return o}getBindingIdentifiers.keys={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],TSImportEqualsDeclaration:["id"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/retrievers/getFunctionName.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("id"in e&&e.id)return{name:e.id.name,originalNode:e.id};let r,s="";(0,n.isObjectProperty)(t,{value:e})?r=getObjectMemberKey(t):(0,n.isObjectMethod)(e)||(0,n.isClassMethod)(e)?(r=getObjectMemberKey(e),"get"===e.kind?s="get ":"set"===e.kind&&(s="set ")):(0,n.isVariableDeclarator)(t,{init:e})?r=t.id:(0,n.isAssignmentExpression)(t,{operator:"=",right:e})&&(r=t.left);if(!r)return null;const i=(0,n.isLiteral)(r)?function(e){if((0,n.isNullLiteral)(e))return"null";if((0,n.isRegExpLiteral)(e))return`/${e.pattern}/${e.flags}`;if((0,n.isTemplateLiteral)(e))return e.quasis.map(e=>e.value.raw).join("");if(void 0!==e.value)return String(e.value);return null}(r):(0,n.isIdentifier)(r)?r.name:(0,n.isPrivateName)(r)?r.id.name:null;return null==i?null:{name:s+i,originalNode:r}};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/generated/index.js");function getObjectMemberKey(e){if(!e.computed||(0,n.isLiteral)(e.key))return e.key}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js");t.default=function(e,t){return(0,n.default)(e,t,!0)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/traverse/traverse.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){"function"==typeof t&&(t={enter:t});const{enter:n,exit:s}=t;traverseSimpleImpl(e,n,s,r,[])};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/index.js");function traverseSimpleImpl(e,t,r,s,i){const o=n.VISITOR_KEYS[e.type];if(o){t&&t(e,i,s);for(const n of o){const o=e[n];if(Array.isArray(o))for(let a=0;a<o.length;a++){const l=o[a];l&&(i.push({node:e,key:n,index:a}),traverseSimpleImpl(l,t,r,s,i),i.pop())}else o&&(i.push({node:e,key:n}),traverseSimpleImpl(o,t,r,s,i),i.pop())}r&&r(e,i,s)}}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/traverse/traverseFast.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=traverseFast;var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/index.js");const s=Symbol(),i=Symbol();function traverseFast(e,t,r){if(!e)return!1;const o=n.VISITOR_KEYS[e.type];if(!o)return!1;const a=t(e,r=r||{});if(void 0!==a)switch(a){case s:return!1;case i:return!0}for(const n of o){const s=e[n];if(s)if(Array.isArray(s)){for(const e of s)if(traverseFast(e,t,r))return!0}else if(traverseFast(s,t,r))return!0}return!1}traverseFast.skip=s,traverseFast.stop=i},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/utils/deprecationWarning.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n="",s=e){if(r.has(s))return;r.add(s);const{internal:i,trace:o}=function(e,t){const{stackTraceLimit:r,prepareStackTrace:n}=Error;let s;if(Error.stackTraceLimit=1+e+t,Error.prepareStackTrace=function(e,t){s=t},(new Error).stack,Error.stackTraceLimit=r,Error.prepareStackTrace=n,!s)return{internal:!1,trace:""};const i=s.slice(1+e,1+e+t);return{internal:/[\\/]@babel[\\/]/.test(i[1].getFileName()),trace:i.map(e=>` at ${e}`).join("\n")}}(1,2);if(i)return;console.warn(`${n}\`${e}\` has been deprecated, please migrate to \`${t}\`\n${o}`)};const r=new Set},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/utils/inherit.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){t&&r&&(t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean))))}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const r=e.value.split(/\r\n|\n|\r/);let i=0;for(let e=0;e<r.length;e++)/[^ \t]/.exec(r[e])&&(i=e);let o="";for(let e=0;e<r.length;e++){const t=r[e],n=0===e,s=e===r.length-1,a=e===i;let l=t.replace(/\t/g," ");n||(l=l.replace(/^ +/,"")),s||(l=l.replace(/ +$/,"")),l&&(a||(l+=" "),o+=l)}o&&t.push((0,s.inherits)((0,n.stringLiteral)(o),e))};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/builders/generated/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/utils/shallowEqual.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const r=Object.keys(t);for(const n of r)if(e[n]!==t[n])return!1;return!0}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const r=e.split(".");return e=>(0,n.default)(e,r,t)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/matchesPattern.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/generated/index.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAccessor=function(e,t){if(!e)return!1;if("ClassAccessorProperty"!==e.type)return!1;return null==t||(0,n.default)(e,t)},t.isAnyTypeAnnotation=function(e,t){return!!e&&("AnyTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t)))},t.isArgumentPlaceholder=function(e,t){return!!e&&("ArgumentPlaceholder"===e.type&&(null==t||(0,n.default)(e,t)))},t.isArrayExpression=function(e,t){return!!e&&("ArrayExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isArrayPattern=function(e,t){return!!e&&("ArrayPattern"===e.type&&(null==t||(0,n.default)(e,t)))},t.isArrayTypeAnnotation=function(e,t){return!!e&&("ArrayTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t)))},t.isArrowFunctionExpression=function(e,t){return!!e&&("ArrowFunctionExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isAssignmentExpression=function(e,t){return!!e&&("AssignmentExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isAssignmentPattern=function(e,t){return!!e&&("AssignmentPattern"===e.type&&(null==t||(0,n.default)(e,t)))},t.isAwaitExpression=function(e,t){return!!e&&("AwaitExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isBigIntLiteral=function(e,t){return!!e&&("BigIntLiteral"===e.type&&(null==t||(0,n.default)(e,t)))},t.isBinary=function(e,t){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isBinaryExpression=function(e,t){return!!e&&("BinaryExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isBindExpression=function(e,t){return!!e&&("BindExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isBlock=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,n.default)(e,t)},t.isBlockParent=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,n.default)(e,t)},t.isBlockStatement=function(e,t){return!!e&&("BlockStatement"===e.type&&(null==t||(0,n.default)(e,t)))},t.isBooleanLiteral=function(e,t){return!!e&&("BooleanLiteral"===e.type&&(null==t||(0,n.default)(e,t)))},t.isBooleanLiteralTypeAnnotation=function(e,t){return!!e&&("BooleanLiteralTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t)))},t.isBooleanTypeAnnotation=function(e,t){return!!e&&("BooleanTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t)))},t.isBreakStatement=function(e,t){return!!e&&("BreakStatement"===e.type&&(null==t||(0,n.default)(e,t)))},t.isCallExpression=function(e,t){return!!e&&("CallExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isCatchClause=function(e,t){return!!e&&("CatchClause"===e.type&&(null==t||(0,n.default)(e,t)))},t.isClass=function(e,t){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isClassAccessorProperty=function(e,t){return!!e&&("ClassAccessorProperty"===e.type&&(null==t||(0,n.default)(e,t)))},t.isClassBody=function(e,t){return!!e&&("ClassBody"===e.type&&(null==t||(0,n.default)(e,t)))},t.isClassDeclaration=function(e,t){return!!e&&("ClassDeclaration"===e.type&&(null==t||(0,n.default)(e,t)))},t.isClassExpression=function(e,t){return!!e&&("ClassExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isClassImplements=function(e,t){return!!e&&("ClassImplements"===e.type&&(null==t||(0,n.default)(e,t)))},t.isClassMethod=function(e,t){return!!e&&("ClassMethod"===e.type&&(null==t||(0,n.default)(e,t)))},t.isClassPrivateMethod=function(e,t){return!!e&&("ClassPrivateMethod"===e.type&&(null==t||(0,n.default)(e,t)))},t.isClassPrivateProperty=function(e,t){return!!e&&("ClassPrivateProperty"===e.type&&(null==t||(0,n.default)(e,t)))},t.isClassProperty=function(e,t){return!!e&&("ClassProperty"===e.type&&(null==t||(0,n.default)(e,t)))},t.isCompletionStatement=function(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isConditional=function(e,t){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isConditionalExpression=function(e,t){return!!e&&("ConditionalExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isContinueStatement=function(e,t){return!!e&&("ContinueStatement"===e.type&&(null==t||(0,n.default)(e,t)))},t.isDebuggerStatement=function(e,t){return!!e&&("DebuggerStatement"===e.type&&(null==t||(0,n.default)(e,t)))},t.isDecimalLiteral=function(e,t){return!!e&&("DecimalLiteral"===e.type&&(null==t||(0,n.default)(e,t)))},t.isDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":break;case"Placeholder":if("Declaration"===e.expectedNode)break;default:return!1}return null==t||(0,n.default)(e,t)},t.isDeclareClass=function(e,t){return!!e&&("DeclareClass"===e.type&&(null==t||(0,n.default)(e,t)))},t.isDeclareExportAllDeclaration=function(e,t){return!!e&&("DeclareExportAllDeclaration"===e.type&&(null==t||(0,n.default)(e,t)))},t.isDeclareExportDeclaration=function(e,t){return!!e&&("DeclareExportDeclaration"===e.type&&(null==t||(0,n.default)(e,t)))},t.isDeclareFunction=function(e,t){return!!e&&("DeclareFunction"===e.type&&(null==t||(0,n.default)(e,t)))},t.isDeclareInterface=function(e,t){return!!e&&("DeclareInterface"===e.type&&(null==t||(0,n.default)(e,t)))},t.isDeclareModule=function(e,t){return!!e&&("DeclareModule"===e.type&&(null==t||(0,n.default)(e,t)))},t.isDeclareModuleExports=function(e,t){return!!e&&("DeclareModuleExports"===e.type&&(null==t||(0,n.default)(e,t)))},t.isDeclareOpaqueType=function(e,t){return!!e&&("DeclareOpaqueType"===e.type&&(null==t||(0,n.default)(e,t)))},t.isDeclareTypeAlias=function(e,t){return!!e&&("DeclareTypeAlias"===e.type&&(null==t||(0,n.default)(e,t)))},t.isDeclareVariable=function(e,t){return!!e&&("DeclareVariable"===e.type&&(null==t||(0,n.default)(e,t)))},t.isDeclaredPredicate=function(e,t){return!!e&&("DeclaredPredicate"===e.type&&(null==t||(0,n.default)(e,t)))},t.isDecorator=function(e,t){return!!e&&("Decorator"===e.type&&(null==t||(0,n.default)(e,t)))},t.isDirective=function(e,t){return!!e&&("Directive"===e.type&&(null==t||(0,n.default)(e,t)))},t.isDirectiveLiteral=function(e,t){return!!e&&("DirectiveLiteral"===e.type&&(null==t||(0,n.default)(e,t)))},t.isDoExpression=function(e,t){return!!e&&("DoExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isDoWhileStatement=function(e,t){return!!e&&("DoWhileStatement"===e.type&&(null==t||(0,n.default)(e,t)))},t.isEmptyStatement=function(e,t){return!!e&&("EmptyStatement"===e.type&&(null==t||(0,n.default)(e,t)))},t.isEmptyTypeAnnotation=function(e,t){return!!e&&("EmptyTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t)))},t.isEnumBody=function(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isEnumBooleanBody=function(e,t){return!!e&&("EnumBooleanBody"===e.type&&(null==t||(0,n.default)(e,t)))},t.isEnumBooleanMember=function(e,t){return!!e&&("EnumBooleanMember"===e.type&&(null==t||(0,n.default)(e,t)))},t.isEnumDeclaration=function(e,t){return!!e&&("EnumDeclaration"===e.type&&(null==t||(0,n.default)(e,t)))},t.isEnumDefaultedMember=function(e,t){return!!e&&("EnumDefaultedMember"===e.type&&(null==t||(0,n.default)(e,t)))},t.isEnumMember=function(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isEnumNumberBody=function(e,t){return!!e&&("EnumNumberBody"===e.type&&(null==t||(0,n.default)(e,t)))},t.isEnumNumberMember=function(e,t){return!!e&&("EnumNumberMember"===e.type&&(null==t||(0,n.default)(e,t)))},t.isEnumStringBody=function(e,t){return!!e&&("EnumStringBody"===e.type&&(null==t||(0,n.default)(e,t)))},t.isEnumStringMember=function(e,t){return!!e&&("EnumStringMember"===e.type&&(null==t||(0,n.default)(e,t)))},t.isEnumSymbolBody=function(e,t){return!!e&&("EnumSymbolBody"===e.type&&(null==t||(0,n.default)(e,t)))},t.isExistsTypeAnnotation=function(e,t){return!!e&&("ExistsTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t)))},t.isExportAllDeclaration=function(e,t){return!!e&&("ExportAllDeclaration"===e.type&&(null==t||(0,n.default)(e,t)))},t.isExportDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isExportDefaultDeclaration=function(e,t){return!!e&&("ExportDefaultDeclaration"===e.type&&(null==t||(0,n.default)(e,t)))},t.isExportDefaultSpecifier=function(e,t){return!!e&&("ExportDefaultSpecifier"===e.type&&(null==t||(0,n.default)(e,t)))},t.isExportNamedDeclaration=function(e,t){return!!e&&("ExportNamedDeclaration"===e.type&&(null==t||(0,n.default)(e,t)))},t.isExportNamespaceSpecifier=function(e,t){return!!e&&("ExportNamespaceSpecifier"===e.type&&(null==t||(0,n.default)(e,t)))},t.isExportSpecifier=function(e,t){return!!e&&("ExportSpecifier"===e.type&&(null==t||(0,n.default)(e,t)))},t.isExpression=function(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return null==t||(0,n.default)(e,t)},t.isExpressionStatement=function(e,t){return!!e&&("ExpressionStatement"===e.type&&(null==t||(0,n.default)(e,t)))},t.isExpressionWrapper=function(e,t){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isFile=function(e,t){return!!e&&("File"===e.type&&(null==t||(0,n.default)(e,t)))},t.isFlow=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isFlowBaseAnnotation=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isFlowDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isFlowPredicate=function(e,t){if(!e)return!1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isFlowType=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isFor=function(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isForInStatement=function(e,t){return!!e&&("ForInStatement"===e.type&&(null==t||(0,n.default)(e,t)))},t.isForOfStatement=function(e,t){return!!e&&("ForOfStatement"===e.type&&(null==t||(0,n.default)(e,t)))},t.isForStatement=function(e,t){return!!e&&("ForStatement"===e.type&&(null==t||(0,n.default)(e,t)))},t.isForXStatement=function(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isFunction=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isFunctionDeclaration=function(e,t){return!!e&&("FunctionDeclaration"===e.type&&(null==t||(0,n.default)(e,t)))},t.isFunctionExpression=function(e,t){return!!e&&("FunctionExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isFunctionParameter=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if("Identifier"===e.expectedNode)break;default:return!1}return null==t||(0,n.default)(e,t)},t.isFunctionParent=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isFunctionTypeAnnotation=function(e,t){return!!e&&("FunctionTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t)))},t.isFunctionTypeParam=function(e,t){return!!e&&("FunctionTypeParam"===e.type&&(null==t||(0,n.default)(e,t)))},t.isGenericTypeAnnotation=function(e,t){return!!e&&("GenericTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t)))},t.isIdentifier=function(e,t){return!!e&&("Identifier"===e.type&&(null==t||(0,n.default)(e,t)))},t.isIfStatement=function(e,t){return!!e&&("IfStatement"===e.type&&(null==t||(0,n.default)(e,t)))},t.isImmutable=function(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,n.default)(e,t)},t.isImport=function(e,t){return!!e&&("Import"===e.type&&(null==t||(0,n.default)(e,t)))},t.isImportAttribute=function(e,t){return!!e&&("ImportAttribute"===e.type&&(null==t||(0,n.default)(e,t)))},t.isImportDeclaration=function(e,t){return!!e&&("ImportDeclaration"===e.type&&(null==t||(0,n.default)(e,t)))},t.isImportDefaultSpecifier=function(e,t){return!!e&&("ImportDefaultSpecifier"===e.type&&(null==t||(0,n.default)(e,t)))},t.isImportExpression=function(e,t){return!!e&&("ImportExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isImportNamespaceSpecifier=function(e,t){return!!e&&("ImportNamespaceSpecifier"===e.type&&(null==t||(0,n.default)(e,t)))},t.isImportOrExportDeclaration=isImportOrExportDeclaration,t.isImportSpecifier=function(e,t){return!!e&&("ImportSpecifier"===e.type&&(null==t||(0,n.default)(e,t)))},t.isIndexedAccessType=function(e,t){return!!e&&("IndexedAccessType"===e.type&&(null==t||(0,n.default)(e,t)))},t.isInferredPredicate=function(e,t){return!!e&&("InferredPredicate"===e.type&&(null==t||(0,n.default)(e,t)))},t.isInterfaceDeclaration=function(e,t){return!!e&&("InterfaceDeclaration"===e.type&&(null==t||(0,n.default)(e,t)))},t.isInterfaceExtends=function(e,t){return!!e&&("InterfaceExtends"===e.type&&(null==t||(0,n.default)(e,t)))},t.isInterfaceTypeAnnotation=function(e,t){return!!e&&("InterfaceTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t)))},t.isInterpreterDirective=function(e,t){return!!e&&("InterpreterDirective"===e.type&&(null==t||(0,n.default)(e,t)))},t.isIntersectionTypeAnnotation=function(e,t){return!!e&&("IntersectionTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t)))},t.isJSX=function(e,t){if(!e)return!1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isJSXAttribute=function(e,t){return!!e&&("JSXAttribute"===e.type&&(null==t||(0,n.default)(e,t)))},t.isJSXClosingElement=function(e,t){return!!e&&("JSXClosingElement"===e.type&&(null==t||(0,n.default)(e,t)))},t.isJSXClosingFragment=function(e,t){return!!e&&("JSXClosingFragment"===e.type&&(null==t||(0,n.default)(e,t)))},t.isJSXElement=function(e,t){return!!e&&("JSXElement"===e.type&&(null==t||(0,n.default)(e,t)))},t.isJSXEmptyExpression=function(e,t){return!!e&&("JSXEmptyExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isJSXExpressionContainer=function(e,t){return!!e&&("JSXExpressionContainer"===e.type&&(null==t||(0,n.default)(e,t)))},t.isJSXFragment=function(e,t){return!!e&&("JSXFragment"===e.type&&(null==t||(0,n.default)(e,t)))},t.isJSXIdentifier=function(e,t){return!!e&&("JSXIdentifier"===e.type&&(null==t||(0,n.default)(e,t)))},t.isJSXMemberExpression=function(e,t){return!!e&&("JSXMemberExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isJSXNamespacedName=function(e,t){return!!e&&("JSXNamespacedName"===e.type&&(null==t||(0,n.default)(e,t)))},t.isJSXOpeningElement=function(e,t){return!!e&&("JSXOpeningElement"===e.type&&(null==t||(0,n.default)(e,t)))},t.isJSXOpeningFragment=function(e,t){return!!e&&("JSXOpeningFragment"===e.type&&(null==t||(0,n.default)(e,t)))},t.isJSXSpreadAttribute=function(e,t){return!!e&&("JSXSpreadAttribute"===e.type&&(null==t||(0,n.default)(e,t)))},t.isJSXSpreadChild=function(e,t){return!!e&&("JSXSpreadChild"===e.type&&(null==t||(0,n.default)(e,t)))},t.isJSXText=function(e,t){return!!e&&("JSXText"===e.type&&(null==t||(0,n.default)(e,t)))},t.isLVal=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==t||(0,n.default)(e,t)},t.isLabeledStatement=function(e,t){return!!e&&("LabeledStatement"===e.type&&(null==t||(0,n.default)(e,t)))},t.isLiteral=function(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,n.default)(e,t)},t.isLogicalExpression=function(e,t){return!!e&&("LogicalExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isLoop=function(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isMemberExpression=function(e,t){return!!e&&("MemberExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isMetaProperty=function(e,t){return!!e&&("MetaProperty"===e.type&&(null==t||(0,n.default)(e,t)))},t.isMethod=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isMiscellaneous=function(e,t){if(!e)return!1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isMixedTypeAnnotation=function(e,t){return!!e&&("MixedTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t)))},t.isModuleDeclaration=function(e,t){return(0,s.default)("isModuleDeclaration","isImportOrExportDeclaration"),isImportOrExportDeclaration(e,t)},t.isModuleExpression=function(e,t){return!!e&&("ModuleExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isModuleSpecifier=function(e,t){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isNewExpression=function(e,t){return!!e&&("NewExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isNoop=function(e,t){return!!e&&("Noop"===e.type&&(null==t||(0,n.default)(e,t)))},t.isNullLiteral=function(e,t){return!!e&&("NullLiteral"===e.type&&(null==t||(0,n.default)(e,t)))},t.isNullLiteralTypeAnnotation=function(e,t){return!!e&&("NullLiteralTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t)))},t.isNullableTypeAnnotation=function(e,t){return!!e&&("NullableTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t)))},t.isNumberLiteral=function(e,t){return(0,s.default)("isNumberLiteral","isNumericLiteral"),!!e&&("NumberLiteral"===e.type&&(null==t||(0,n.default)(e,t)))},t.isNumberLiteralTypeAnnotation=function(e,t){return!!e&&("NumberLiteralTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t)))},t.isNumberTypeAnnotation=function(e,t){return!!e&&("NumberTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t)))},t.isNumericLiteral=function(e,t){return!!e&&("NumericLiteral"===e.type&&(null==t||(0,n.default)(e,t)))},t.isObjectExpression=function(e,t){return!!e&&("ObjectExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isObjectMember=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isObjectMethod=function(e,t){return!!e&&("ObjectMethod"===e.type&&(null==t||(0,n.default)(e,t)))},t.isObjectPattern=function(e,t){return!!e&&("ObjectPattern"===e.type&&(null==t||(0,n.default)(e,t)))},t.isObjectProperty=function(e,t){return!!e&&("ObjectProperty"===e.type&&(null==t||(0,n.default)(e,t)))},t.isObjectTypeAnnotation=function(e,t){return!!e&&("ObjectTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t)))},t.isObjectTypeCallProperty=function(e,t){return!!e&&("ObjectTypeCallProperty"===e.type&&(null==t||(0,n.default)(e,t)))},t.isObjectTypeIndexer=function(e,t){return!!e&&("ObjectTypeIndexer"===e.type&&(null==t||(0,n.default)(e,t)))},t.isObjectTypeInternalSlot=function(e,t){return!!e&&("ObjectTypeInternalSlot"===e.type&&(null==t||(0,n.default)(e,t)))},t.isObjectTypeProperty=function(e,t){return!!e&&("ObjectTypeProperty"===e.type&&(null==t||(0,n.default)(e,t)))},t.isObjectTypeSpreadProperty=function(e,t){return!!e&&("ObjectTypeSpreadProperty"===e.type&&(null==t||(0,n.default)(e,t)))},t.isOpaqueType=function(e,t){return!!e&&("OpaqueType"===e.type&&(null==t||(0,n.default)(e,t)))},t.isOptionalCallExpression=function(e,t){return!!e&&("OptionalCallExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isOptionalIndexedAccessType=function(e,t){return!!e&&("OptionalIndexedAccessType"===e.type&&(null==t||(0,n.default)(e,t)))},t.isOptionalMemberExpression=function(e,t){return!!e&&("OptionalMemberExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isParenthesizedExpression=function(e,t){return!!e&&("ParenthesizedExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isPattern=function(e,t){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if("Pattern"===e.expectedNode)break;default:return!1}return null==t||(0,n.default)(e,t)},t.isPatternLike=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==t||(0,n.default)(e,t)},t.isPipelineBareFunction=function(e,t){return!!e&&("PipelineBareFunction"===e.type&&(null==t||(0,n.default)(e,t)))},t.isPipelinePrimaryTopicReference=function(e,t){return!!e&&("PipelinePrimaryTopicReference"===e.type&&(null==t||(0,n.default)(e,t)))},t.isPipelineTopicExpression=function(e,t){return!!e&&("PipelineTopicExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isPlaceholder=function(e,t){return!!e&&("Placeholder"===e.type&&(null==t||(0,n.default)(e,t)))},t.isPrivate=function(e,t){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isPrivateName=function(e,t){return!!e&&("PrivateName"===e.type&&(null==t||(0,n.default)(e,t)))},t.isProgram=function(e,t){return!!e&&("Program"===e.type&&(null==t||(0,n.default)(e,t)))},t.isProperty=function(e,t){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isPureish=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,n.default)(e,t)},t.isQualifiedTypeIdentifier=function(e,t){return!!e&&("QualifiedTypeIdentifier"===e.type&&(null==t||(0,n.default)(e,t)))},t.isRecordExpression=function(e,t){return!!e&&("RecordExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isRegExpLiteral=function(e,t){return!!e&&("RegExpLiteral"===e.type&&(null==t||(0,n.default)(e,t)))},t.isRegexLiteral=function(e,t){return(0,s.default)("isRegexLiteral","isRegExpLiteral"),!!e&&("RegexLiteral"===e.type&&(null==t||(0,n.default)(e,t)))},t.isRestElement=function(e,t){return!!e&&("RestElement"===e.type&&(null==t||(0,n.default)(e,t)))},t.isRestProperty=function(e,t){return(0,s.default)("isRestProperty","isRestElement"),!!e&&("RestProperty"===e.type&&(null==t||(0,n.default)(e,t)))},t.isReturnStatement=function(e,t){return!!e&&("ReturnStatement"===e.type&&(null==t||(0,n.default)(e,t)))},t.isScopable=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,n.default)(e,t)},t.isSequenceExpression=function(e,t){return!!e&&("SequenceExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isSpreadElement=function(e,t){return!!e&&("SpreadElement"===e.type&&(null==t||(0,n.default)(e,t)))},t.isSpreadProperty=function(e,t){return(0,s.default)("isSpreadProperty","isSpreadElement"),!!e&&("SpreadProperty"===e.type&&(null==t||(0,n.default)(e,t)))},t.isStandardized=function(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":case"ImportAttribute":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return null==t||(0,n.default)(e,t)},t.isStatement=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return null==t||(0,n.default)(e,t)},t.isStaticBlock=function(e,t){return!!e&&("StaticBlock"===e.type&&(null==t||(0,n.default)(e,t)))},t.isStringLiteral=function(e,t){return!!e&&("StringLiteral"===e.type&&(null==t||(0,n.default)(e,t)))},t.isStringLiteralTypeAnnotation=function(e,t){return!!e&&("StringLiteralTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t)))},t.isStringTypeAnnotation=function(e,t){return!!e&&("StringTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t)))},t.isSuper=function(e,t){return!!e&&("Super"===e.type&&(null==t||(0,n.default)(e,t)))},t.isSwitchCase=function(e,t){return!!e&&("SwitchCase"===e.type&&(null==t||(0,n.default)(e,t)))},t.isSwitchStatement=function(e,t){return!!e&&("SwitchStatement"===e.type&&(null==t||(0,n.default)(e,t)))},t.isSymbolTypeAnnotation=function(e,t){return!!e&&("SymbolTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSAnyKeyword=function(e,t){return!!e&&("TSAnyKeyword"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSArrayType=function(e,t){return!!e&&("TSArrayType"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSAsExpression=function(e,t){return!!e&&("TSAsExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSBaseType=function(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSTemplateLiteralType":case"TSLiteralType":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isTSBigIntKeyword=function(e,t){return!!e&&("TSBigIntKeyword"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSBooleanKeyword=function(e,t){return!!e&&("TSBooleanKeyword"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSCallSignatureDeclaration=function(e,t){return!!e&&("TSCallSignatureDeclaration"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSConditionalType=function(e,t){return!!e&&("TSConditionalType"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSConstructSignatureDeclaration=function(e,t){return!!e&&("TSConstructSignatureDeclaration"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSConstructorType=function(e,t){return!!e&&("TSConstructorType"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSDeclareFunction=function(e,t){return!!e&&("TSDeclareFunction"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSDeclareMethod=function(e,t){return!!e&&("TSDeclareMethod"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSEntityName=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if("Identifier"===e.expectedNode)break;default:return!1}return null==t||(0,n.default)(e,t)},t.isTSEnumBody=function(e,t){return!!e&&("TSEnumBody"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSEnumDeclaration=function(e,t){return!!e&&("TSEnumDeclaration"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSEnumMember=function(e,t){return!!e&&("TSEnumMember"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSExportAssignment=function(e,t){return!!e&&("TSExportAssignment"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSExpressionWithTypeArguments=function(e,t){return!!e&&("TSExpressionWithTypeArguments"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSExternalModuleReference=function(e,t){return!!e&&("TSExternalModuleReference"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSFunctionType=function(e,t){return!!e&&("TSFunctionType"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSImportEqualsDeclaration=function(e,t){return!!e&&("TSImportEqualsDeclaration"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSImportType=function(e,t){return!!e&&("TSImportType"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSIndexSignature=function(e,t){return!!e&&("TSIndexSignature"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSIndexedAccessType=function(e,t){return!!e&&("TSIndexedAccessType"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSInferType=function(e,t){return!!e&&("TSInferType"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSInstantiationExpression=function(e,t){return!!e&&("TSInstantiationExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSInterfaceBody=function(e,t){return!!e&&("TSInterfaceBody"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSInterfaceDeclaration=function(e,t){return!!e&&("TSInterfaceDeclaration"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSIntersectionType=function(e,t){return!!e&&("TSIntersectionType"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSIntrinsicKeyword=function(e,t){return!!e&&("TSIntrinsicKeyword"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSLiteralType=function(e,t){return!!e&&("TSLiteralType"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSMappedType=function(e,t){return!!e&&("TSMappedType"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSMethodSignature=function(e,t){return!!e&&("TSMethodSignature"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSModuleBlock=function(e,t){return!!e&&("TSModuleBlock"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSModuleDeclaration=function(e,t){return!!e&&("TSModuleDeclaration"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSNamedTupleMember=function(e,t){return!!e&&("TSNamedTupleMember"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSNamespaceExportDeclaration=function(e,t){return!!e&&("TSNamespaceExportDeclaration"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSNeverKeyword=function(e,t){return!!e&&("TSNeverKeyword"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSNonNullExpression=function(e,t){return!!e&&("TSNonNullExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSNullKeyword=function(e,t){return!!e&&("TSNullKeyword"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSNumberKeyword=function(e,t){return!!e&&("TSNumberKeyword"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSObjectKeyword=function(e,t){return!!e&&("TSObjectKeyword"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSOptionalType=function(e,t){return!!e&&("TSOptionalType"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSParameterProperty=function(e,t){return!!e&&("TSParameterProperty"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSParenthesizedType=function(e,t){return!!e&&("TSParenthesizedType"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSPropertySignature=function(e,t){return!!e&&("TSPropertySignature"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSQualifiedName=function(e,t){return!!e&&("TSQualifiedName"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSRestType=function(e,t){return!!e&&("TSRestType"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSSatisfiesExpression=function(e,t){return!!e&&("TSSatisfiesExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSStringKeyword=function(e,t){return!!e&&("TSStringKeyword"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSSymbolKeyword=function(e,t){return!!e&&("TSSymbolKeyword"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSTemplateLiteralType=function(e,t){return!!e&&("TSTemplateLiteralType"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSThisType=function(e,t){return!!e&&("TSThisType"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSTupleType=function(e,t){return!!e&&("TSTupleType"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSType=function(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isTSTypeAliasDeclaration=function(e,t){return!!e&&("TSTypeAliasDeclaration"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSTypeAnnotation=function(e,t){return!!e&&("TSTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSTypeAssertion=function(e,t){return!!e&&("TSTypeAssertion"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSTypeElement=function(e,t){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isTSTypeLiteral=function(e,t){return!!e&&("TSTypeLiteral"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSTypeOperator=function(e,t){return!!e&&("TSTypeOperator"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSTypeParameter=function(e,t){return!!e&&("TSTypeParameter"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSTypeParameterDeclaration=function(e,t){return!!e&&("TSTypeParameterDeclaration"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSTypeParameterInstantiation=function(e,t){return!!e&&("TSTypeParameterInstantiation"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSTypePredicate=function(e,t){return!!e&&("TSTypePredicate"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSTypeQuery=function(e,t){return!!e&&("TSTypeQuery"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSTypeReference=function(e,t){return!!e&&("TSTypeReference"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSUndefinedKeyword=function(e,t){return!!e&&("TSUndefinedKeyword"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSUnionType=function(e,t){return!!e&&("TSUnionType"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSUnknownKeyword=function(e,t){return!!e&&("TSUnknownKeyword"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTSVoidKeyword=function(e,t){return!!e&&("TSVoidKeyword"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTaggedTemplateExpression=function(e,t){return!!e&&("TaggedTemplateExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTemplateElement=function(e,t){return!!e&&("TemplateElement"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTemplateLiteral=function(e,t){return!!e&&("TemplateLiteral"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTerminatorless=function(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isThisExpression=function(e,t){return!!e&&("ThisExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isThisTypeAnnotation=function(e,t){return!!e&&("ThisTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t)))},t.isThrowStatement=function(e,t){return!!e&&("ThrowStatement"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTopicReference=function(e,t){return!!e&&("TopicReference"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTryStatement=function(e,t){return!!e&&("TryStatement"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTupleExpression=function(e,t){return!!e&&("TupleExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTupleTypeAnnotation=function(e,t){return!!e&&("TupleTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTypeAlias=function(e,t){return!!e&&("TypeAlias"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTypeAnnotation=function(e,t){return!!e&&("TypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTypeCastExpression=function(e,t){return!!e&&("TypeCastExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTypeParameter=function(e,t){return!!e&&("TypeParameter"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTypeParameterDeclaration=function(e,t){return!!e&&("TypeParameterDeclaration"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTypeParameterInstantiation=function(e,t){return!!e&&("TypeParameterInstantiation"===e.type&&(null==t||(0,n.default)(e,t)))},t.isTypeScript=function(e,t){if(!e)return!1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumBody":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isTypeofTypeAnnotation=function(e,t){return!!e&&("TypeofTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t)))},t.isUnaryExpression=function(e,t){return!!e&&("UnaryExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isUnaryLike=function(e,t){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isUnionTypeAnnotation=function(e,t){return!!e&&("UnionTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t)))},t.isUpdateExpression=function(e,t){return!!e&&("UpdateExpression"===e.type&&(null==t||(0,n.default)(e,t)))},t.isUserWhitespacable=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isV8IntrinsicIdentifier=function(e,t){return!!e&&("V8IntrinsicIdentifier"===e.type&&(null==t||(0,n.default)(e,t)))},t.isVariableDeclaration=function(e,t){return!!e&&("VariableDeclaration"===e.type&&(null==t||(0,n.default)(e,t)))},t.isVariableDeclarator=function(e,t){return!!e&&("VariableDeclarator"===e.type&&(null==t||(0,n.default)(e,t)))},t.isVariance=function(e,t){return!!e&&("Variance"===e.type&&(null==t||(0,n.default)(e,t)))},t.isVoidPattern=function(e,t){return!!e&&("VoidPattern"===e.type&&(null==t||(0,n.default)(e,t)))},t.isVoidTypeAnnotation=function(e,t){return!!e&&("VoidTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t)))},t.isWhile=function(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return null==t||(0,n.default)(e,t)},t.isWhileStatement=function(e,t){return!!e&&("WhileStatement"===e.type&&(null==t||(0,n.default)(e,t)))},t.isWithStatement=function(e,t){return!!e&&("WithStatement"===e.type&&(null==t||(0,n.default)(e,t)))},t.isYieldExpression=function(e,t){return!!e&&("YieldExpression"===e.type&&(null==t||(0,n.default)(e,t)))};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/utils/shallowEqual.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/utils/deprecationWarning.js");function isImportOrExportDeclaration(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return null==t||(0,n.default)(e,t)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/is.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(!t)return!1;if(!(0,s.default)(t.type,e))return!r&&"Placeholder"===t.type&&e in o.FLIPPED_ALIAS_KEYS&&(0,i.default)(t.expectedNode,e);return void 0===r||(0,n.default)(t,r)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/utils/shallowEqual.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isType.js"),i=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isPlaceholderType.js"),o=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/index.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isBinding.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(r&&"Identifier"===e.type&&"ObjectProperty"===t.type&&"ObjectExpression"===r.type)return!1;const s=n.default.keys[t.type];if(s)for(let r=0;r<s.length;r++){const n=t[s[r]];if(Array.isArray(n)){if(n.includes(e))return!0}else if(n===e)return!0}return!1};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isBlockScoped.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.isFunctionDeclaration)(e)||(0,n.isClassDeclaration)(e)||(0,s.default)(e)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/generated/index.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isLet.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isImmutable.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,n.default)(e.type,"Immutable"))return!0;if((0,s.isIdentifier)(e))return"undefined"===e.name;return!1};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isType.js"),s=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/generated/index.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isLet.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.isVariableDeclaration)(e)&&("var"!==e.kind||e[s])};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/generated/index.js"),s=Symbol.for("var used to be block scoped")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isNode.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!(!e||!n.VISITOR_KEYS[e.type])};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/index.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isNodesEquivalent.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function isNodesEquivalent(e,t){if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return e===t;if(e.type!==t.type)return!1;const r=Object.keys(n.NODE_FIELDS[e.type]||e.type),s=n.VISITOR_KEYS[e.type];for(const n of r){const r=e[n],i=t[n];if(typeof r!=typeof i)return!1;if(null!=r||null!=i){if(null==r||null==i)return!1;if(Array.isArray(r)){if(!Array.isArray(i))return!1;if(r.length!==i.length)return!1;for(let e=0;e<r.length;e++)if(!isNodesEquivalent(r[e],i[e]))return!1}else if("object"!=typeof r||null!=s&&s.includes(n)){if(!isNodesEquivalent(r,i))return!1}else for(const e of Object.keys(r))if(r[e]!==i[e])return!1}}return!0};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/index.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isPlaceholderType.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e===t)return!0;const r=n.PLACEHOLDERS_ALIAS[e];return!(null==r||!r.includes(t))};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/index.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isReferenced.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":case"LabeledStatement":case"CatchClause":case"RestElement":case"BreakStatement":case"ContinueStatement":case"FunctionDeclaration":case"FunctionExpression":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportAttribute":case"JSXAttribute":case"ObjectPattern":case"ArrayPattern":case"MetaProperty":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return t.key===e&&!!t.computed;case"ObjectProperty":return t.key===e?!!t.computed:"ObjectPattern"!==(null==r?void 0:r.type);case"ClassProperty":case"ClassAccessorProperty":case"TSPropertySignature":return t.key!==e||!!t.computed;case"ClassPrivateProperty":case"ObjectTypeProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":case"AssignmentPattern":return t.right===e;case"ExportSpecifier":return(null==r||!r.source)&&t.local===e;case"TSEnumMember":return t.id!==e}return!0}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isScope.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.isBlockStatement)(e)&&((0,n.isFunction)(t)||(0,n.isCatchClause)(t)))return!1;if((0,n.isPattern)(e)&&((0,n.isFunction)(t)||(0,n.isCatchClause)(t)))return!0;return(0,n.isScopable)(e)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/generated/index.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isSpecifierDefault.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.isImportDefaultSpecifier)(e)||(0,n.isIdentifier)(e.imported||e.exported,{name:"default"})};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/generated/index.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isType.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e===t)return!0;if(null==e)return!1;if(n.ALIAS_KEYS[t])return!1;const r=n.FLIPPED_ALIAS_KEYS[t];return!(null==r||!r.includes(e))};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/index.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isValidES3Identifier.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e)&&!s.has(e)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isValidIdentifier.js");const s=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"])},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isValidIdentifier.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=!0){if("string"!=typeof e)return!1;if(t&&((0,n.isKeyword)(e)||(0,n.isStrictReservedWord)(e,!0)))return!1;return(0,n.isIdentifierName)(e)};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-validator-identifier/lib/index.js")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/isVar.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.isVariableDeclaration)(e,{kind:"var"})&&!e[s]};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/generated/index.js"),s=Symbol.for("var used to be block scoped")},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/matchesPattern.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(!isMemberExpressionLike(e))return!1;const s=Array.isArray(t)?t:t.split("."),i=[];let o;for(o=e;isMemberExpressionLike(o);o=null!=(a=o.object)?a:o.meta){var a;i.push(o.property)}if(i.push(o),i.length<s.length)return!1;if(!r&&i.length>s.length)return!1;for(let e=0,t=i.length-1;e<s.length;e++,t--){const r=i[t];let o;if((0,n.isIdentifier)(r))o=r.name;else if((0,n.isStringLiteral)(r))o=r.value;else if((0,n.isThisExpression)(r))o="this";else if((0,n.isSuper)(r))o="super";else{if(!(0,n.isPrivateName)(r))return!1;o="#"+r.id.name}if(s[e]!==o)return!1}return!0};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/generated/index.js");function isMemberExpressionLike(e){return(0,n.isMemberExpression)(e)||(0,n.isMetaProperty)(e)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/react/isCompatTag.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!!e&&/^[a-z]/.test(e)}},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/react/isReactComponent.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=(0,r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js").default)("React.Component");t.default=n},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/validators/validate.js"(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(!e)return;const s=n.NODE_FIELDS[e.type];if(!s)return;const i=s[t];validateField(e,t,r,i),validateChild(e,t,r)},t.validateChild=validateChild,t.validateField=validateField,t.validateInternal=function(e,t,r,s,i){if(null==e||!e.validate)return;if(e.optional&&null==s)return;if(e.validate(t,r,s),i){var o;const e=s.type;if(null==e)return;null==(o=n.NODE_PARENT_VALIDATIONS[e])||o.call(n.NODE_PARENT_VALIDATIONS,t,r,s)}};var n=r("./node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/definitions/index.js");function validateField(e,t,r,n){null!=n&&n.validate&&(n.optional&&null==r||n.validate(e,t,r))}function validateChild(e,t,r){var s;const i=null==r?void 0:r.type;null!=i&&(null==(s=n.NODE_PARENT_VALIDATIONS[i])||s.call(n.NODE_PARENT_VALIDATIONS,e,t,r))}},"./node_modules/.pnpm/[email protected]/node_modules/json5/dist/index.mjs"(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>T});var n={Space_Separator:/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,ID_Start:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},s={isSpaceSeparator:e=>"string"==typeof e&&n.Space_Separator.test(e),isIdStartChar:e=>"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||"$"===e||"_"===e||n.ID_Start.test(e)),isIdContinueChar:e=>"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"$"===e||"_"===e||""===e||""===e||n.ID_Continue.test(e)),isDigit:e=>"string"==typeof e&&/[0-9]/.test(e),isHexDigit:e=>"string"==typeof e&&/[0-9A-Fa-f]/.test(e)};let i,o,a,l,p,c,u,d,h;function internalize(e,t,r){const n=e[t];if(null!=n&&"object"==typeof n)if(Array.isArray(n))for(let e=0;e<n.length;e++){const t=String(e),s=internalize(n,t,r);void 0===s?delete n[t]:Object.defineProperty(n,t,{value:s,writable:!0,enumerable:!0,configurable:!0})}else for(const e in n){const t=internalize(n,e,r);void 0===t?delete n[e]:Object.defineProperty(n,e,{value:t,writable:!0,enumerable:!0,configurable:!0})}return r.call(e,t,n)}let m,f,y,b,g;function lex(){for(m="default",f="",y=!1,b=1;;){g=peek();const e=x[m]();if(e)return e}}function peek(){if(i[l])return String.fromCodePoint(i.codePointAt(l))}function read(){const e=peek();return"\n"===e?(p++,c=0):e?c+=e.length:c++,e&&(l+=e.length),e}const x={default(){switch(g){case"\t":case"\v":case"\f":case" ":case" ":case"\ufeff":case"\n":case"\r":case"\u2028":case"\u2029":return void read();case"/":return read(),void(m="comment");case void 0:return read(),newToken("eof")}if(!s.isSpaceSeparator(g))return x[o]();read()},comment(){switch(g){case"*":return read(),void(m="multiLineComment");case"/":return read(),void(m="singleLineComment")}throw invalidChar(read())},multiLineComment(){switch(g){case"*":return read(),void(m="multiLineCommentAsterisk");case void 0:throw invalidChar(read())}read()},multiLineCommentAsterisk(){switch(g){case"*":return void read();case"/":return read(),void(m="default");case void 0:throw invalidChar(read())}read(),m="multiLineComment"},singleLineComment(){switch(g){case"\n":case"\r":case"\u2028":case"\u2029":return read(),void(m="default");case void 0:return read(),newToken("eof")}read()},value(){switch(g){case"{":case"[":return newToken("punctuator",read());case"n":return read(),literal("ull"),newToken("null",null);case"t":return read(),literal("rue"),newToken("boolean",!0);case"f":return read(),literal("alse"),newToken("boolean",!1);case"-":case"+":return"-"===read()&&(b=-1),void(m="sign");case".":return f=read(),void(m="decimalPointLeading");case"0":return f=read(),void(m="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return f=read(),void(m="decimalInteger");case"I":return read(),literal("nfinity"),newToken("numeric",1/0);case"N":return read(),literal("aN"),newToken("numeric",NaN);case'"':case"'":return y='"'===read(),f="",void(m="string")}throw invalidChar(read())},identifierNameStartEscape(){if("u"!==g)throw invalidChar(read());read();const e=unicodeEscape();switch(e){case"$":case"_":break;default:if(!s.isIdStartChar(e))throw invalidIdentifier()}f+=e,m="identifierName"},identifierName(){switch(g){case"$":case"_":case"":case"":return void(f+=read());case"\\":return read(),void(m="identifierNameEscape")}if(!s.isIdContinueChar(g))return newToken("identifier",f);f+=read()},identifierNameEscape(){if("u"!==g)throw invalidChar(read());read();const e=unicodeEscape();switch(e){case"$":case"_":case"":case"":break;default:if(!s.isIdContinueChar(e))throw invalidIdentifier()}f+=e,m="identifierName"},sign(){switch(g){case".":return f=read(),void(m="decimalPointLeading");case"0":return f=read(),void(m="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return f=read(),void(m="decimalInteger");case"I":return read(),literal("nfinity"),newToken("numeric",b*(1/0));case"N":return read(),literal("aN"),newToken("numeric",NaN)}throw invalidChar(read())},zero(){switch(g){case".":return f+=read(),void(m="decimalPoint");case"e":case"E":return f+=read(),void(m="decimalExponent");case"x":case"X":return f+=read(),void(m="hexadecimal")}return newToken("numeric",0*b)},decimalInteger(){switch(g){case".":return f+=read(),void(m="decimalPoint");case"e":case"E":return f+=read(),void(m="decimalExponent")}if(!s.isDigit(g))return newToken("numeric",b*Number(f));f+=read()},decimalPointLeading(){if(s.isDigit(g))return f+=read(),void(m="decimalFraction");throw invalidChar(read())},decimalPoint(){switch(g){case"e":case"E":return f+=read(),void(m="decimalExponent")}return s.isDigit(g)?(f+=read(),void(m="decimalFraction")):newToken("numeric",b*Number(f))},decimalFraction(){switch(g){case"e":case"E":return f+=read(),void(m="decimalExponent")}if(!s.isDigit(g))return newToken("numeric",b*Number(f));f+=read()},decimalExponent(){switch(g){case"+":case"-":return f+=read(),void(m="decimalExponentSign")}if(s.isDigit(g))return f+=read(),void(m="decimalExponentInteger");throw invalidChar(read())},decimalExponentSign(){if(s.isDigit(g))return f+=read(),void(m="decimalExponentInteger");throw invalidChar(read())},decimalExponentInteger(){if(!s.isDigit(g))return newToken("numeric",b*Number(f));f+=read()},hexadecimal(){if(s.isHexDigit(g))return f+=read(),void(m="hexadecimalInteger");throw invalidChar(read())},hexadecimalInteger(){if(!s.isHexDigit(g))return newToken("numeric",b*Number(f));f+=read()},string(){switch(g){case"\\":return read(),void(f+=function(){switch(peek()){case"b":return read(),"\b";case"f":return read(),"\f";case"n":return read(),"\n";case"r":return read(),"\r";case"t":return read(),"\t";case"v":return read(),"\v";case"0":if(read(),s.isDigit(peek()))throw invalidChar(read());return"\0";case"x":return read(),function(){let e="",t=peek();if(!s.isHexDigit(t))throw invalidChar(read());if(e+=read(),t=peek(),!s.isHexDigit(t))throw invalidChar(read());return e+=read(),String.fromCodePoint(parseInt(e,16))}();case"u":return read(),unicodeEscape();case"\n":case"\u2028":case"\u2029":return read(),"";case"\r":return read(),"\n"===peek()&&read(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case void 0:throw invalidChar(read())}return read()}());case'"':return y?(read(),newToken("string",f)):void(f+=read());case"'":return y?void(f+=read()):(read(),newToken("string",f));case"\n":case"\r":throw invalidChar(read());case"\u2028":case"\u2029":!function(e){console.warn(`JSON5: '${formatChar(e)}' in strings is not valid ECMAScript; consider escaping`)}(g);break;case void 0:throw invalidChar(read())}f+=read()},start(){switch(g){case"{":case"[":return newToken("punctuator",read())}m="value"},beforePropertyName(){switch(g){case"$":case"_":return f=read(),void(m="identifierName");case"\\":return read(),void(m="identifierNameStartEscape");case"}":return newToken("punctuator",read());case'"':case"'":return y='"'===read(),void(m="string")}if(s.isIdStartChar(g))return f+=read(),void(m="identifierName");throw invalidChar(read())},afterPropertyName(){if(":"===g)return newToken("punctuator",read());throw invalidChar(read())},beforePropertyValue(){m="value"},afterPropertyValue(){switch(g){case",":case"}":return newToken("punctuator",read())}throw invalidChar(read())},beforeArrayValue(){if("]"===g)return newToken("punctuator",read());m="value"},afterArrayValue(){switch(g){case",":case"]":return newToken("punctuator",read())}throw invalidChar(read())},end(){throw invalidChar(read())}};function newToken(e,t){return{type:e,value:t,line:p,column:c}}function literal(e){for(const t of e){if(peek()!==t)throw invalidChar(read());read()}}function unicodeEscape(){let e="",t=4;for(;t-- >0;){const t=peek();if(!s.isHexDigit(t))throw invalidChar(read());e+=read()}return String.fromCodePoint(parseInt(e,16))}const v={start(){if("eof"===u.type)throw invalidEOF();push()},beforePropertyName(){switch(u.type){case"identifier":case"string":return d=u.value,void(o="afterPropertyName");case"punctuator":return void pop();case"eof":throw invalidEOF()}},afterPropertyName(){if("eof"===u.type)throw invalidEOF();o="beforePropertyValue"},beforePropertyValue(){if("eof"===u.type)throw invalidEOF();push()},beforeArrayValue(){if("eof"===u.type)throw invalidEOF();"punctuator"!==u.type||"]"!==u.value?push():pop()},afterPropertyValue(){if("eof"===u.type)throw invalidEOF();switch(u.value){case",":return void(o="beforePropertyName");case"}":pop()}},afterArrayValue(){if("eof"===u.type)throw invalidEOF();switch(u.value){case",":return void(o="beforeArrayValue");case"]":pop()}},end(){}};function push(){let e;switch(u.type){case"punctuator":switch(u.value){case"{":e={};break;case"[":e=[]}break;case"null":case"boolean":case"numeric":case"string":e=u.value}if(void 0===h)h=e;else{const t=a[a.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,d,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(null!==e&&"object"==typeof e)a.push(e),o=Array.isArray(e)?"beforeArrayValue":"beforePropertyName";else{const e=a[a.length-1];o=null==e?"end":Array.isArray(e)?"afterArrayValue":"afterPropertyValue"}}function pop(){a.pop();const e=a[a.length-1];o=null==e?"end":Array.isArray(e)?"afterArrayValue":"afterPropertyValue"}function invalidChar(e){return syntaxError(void 0===e?`JSON5: invalid end of input at ${p}:${c}`:`JSON5: invalid character '${formatChar(e)}' at ${p}:${c}`)}function invalidEOF(){return syntaxError(`JSON5: invalid end of input at ${p}:${c}`)}function invalidIdentifier(){return c-=5,syntaxError(`JSON5: invalid identifier character at ${p}:${c}`)}function formatChar(e){const t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){const t=e.charCodeAt(0).toString(16);return"\\x"+("00"+t).substring(t.length)}return e}function syntaxError(e){const t=new SyntaxError(e);return t.lineNumber=p,t.columnNumber=c,t}const E={parse:function(e,t){i=String(e),o="start",a=[],l=0,p=1,c=0,u=void 0,d=void 0,h=void 0;do{u=lex(),v[o]()}while("eof"!==u.type);return"function"==typeof t?internalize({"":h},"",t):h},stringify:function(e,t,r){const n=[];let i,o,a,l="",p="";if(null==t||"object"!=typeof t||Array.isArray(t)||(r=t.space,a=t.quote,t=t.replacer),"function"==typeof t)o=t;else if(Array.isArray(t)){i=[];for(const e of t){let t;"string"==typeof e?t=e:("number"==typeof e||e instanceof String||e instanceof Number)&&(t=String(e)),void 0!==t&&i.indexOf(t)<0&&i.push(t)}}return r instanceof Number?r=Number(r):r instanceof String&&(r=String(r)),"number"==typeof r?r>0&&(r=Math.min(10,Math.floor(r)),p=" ".substr(0,r)):"string"==typeof r&&(p=r.substr(0,10)),serializeProperty("",{"":e});function serializeProperty(e,t){let r=t[e];switch(null!=r&&("function"==typeof r.toJSON5?r=r.toJSON5(e):"function"==typeof r.toJSON&&(r=r.toJSON(e))),o&&(r=o.call(t,e,r)),r instanceof Number?r=Number(r):r instanceof String?r=String(r):r instanceof Boolean&&(r=r.valueOf()),r){case null:return"null";case!0:return"true";case!1:return"false"}return"string"==typeof r?quoteString(r):"number"==typeof r?String(r):"object"==typeof r?Array.isArray(r)?function(e){if(n.indexOf(e)>=0)throw TypeError("Converting circular structure to JSON5");n.push(e);let t=l;l+=p;let r,s=[];for(let t=0;t<e.length;t++){const r=serializeProperty(String(t),e);s.push(void 0!==r?r:"null")}if(0===s.length)r="[]";else if(""===p){r="["+s.join(",")+"]"}else{let e=",\n"+l,n=s.join(e);r="[\n"+l+n+",\n"+t+"]"}return n.pop(),l=t,r}(r):function(e){if(n.indexOf(e)>=0)throw TypeError("Converting circular structure to JSON5");n.push(e);let t=l;l+=p;let r,s=i||Object.keys(e),o=[];for(const t of s){const r=serializeProperty(t,e);if(void 0!==r){let e=serializeKey(t)+":";""!==p&&(e+=" "),e+=r,o.push(e)}}if(0===o.length)r="{}";else{let e;if(""===p)e=o.join(","),r="{"+e+"}";else{let n=",\n"+l;e=o.join(n),r="{\n"+l+e+",\n"+t+"}"}}return n.pop(),l=t,r}(r):void 0}function quoteString(e){const t={"'":.1,'"':.2},r={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let n="";for(let i=0;i<e.length;i++){const o=e[i];switch(o){case"'":case'"':t[o]++,n+=o;continue;case"\0":if(s.isDigit(e[i+1])){n+="\\x00";continue}}if(r[o])n+=r[o];else{if(o<" "){let e=o.charCodeAt(0).toString(16);n+="\\x"+("00"+e).substring(e.length);continue}n+=o}}const i=a||Object.keys(t).reduce((e,r)=>t[e]<t[r]?e:r);return n=n.replace(new RegExp(i,"g"),r[i]),i+n+i}function serializeKey(e){if(0===e.length)return quoteString(e);const t=String.fromCodePoint(e.codePointAt(0));if(!s.isIdStartChar(t))return quoteString(e);for(let r=t.length;r<e.length;r++)if(!s.isIdContinueChar(String.fromCodePoint(e.codePointAt(r))))return quoteString(e);return e}}};const T=E},"./stubs/babel-codeframe.mjs"(e,t,r){"use strict";function codeFrameColumns(){return""}r.r(t),r.d(t,{codeFrameColumns:()=>codeFrameColumns})},"./stubs/helper-compilation-targets.mjs"(e,t,r){"use strict";function getTargets(){return{}}r.r(t),r.d(t,{default:()=>getTargets})},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-globals/data/builtin-lower.json"(e){"use strict";e.exports=JSON.parse('["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"]')},"./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-globals/data/builtin-upper.json"(e){"use strict";e.exports=JSON.parse('["AggregateError","Array","ArrayBuffer","Atomics","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","Error","EvalError","FinalizationRegistry","Float16Array","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","Intl","Iterator","JSON","Map","Math","NaN","Number","Object","Promise","Proxy","RangeError","ReferenceError","Reflect","RegExp","Set","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError","WeakMap","WeakRef","WeakSet"]')},"./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/preset-typescript/package.json"(e){"use strict";e.exports={version:"7.28.5"}}},t={};function __webpack_require__(r){var n=t[r];if(void 0!==n)return n.exports;var s=t[r]={exports:{}};return e[r].call(s.exports,s,s.exports,__webpack_require__),s.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r={};(()=>{"use strict";__webpack_require__.d(r,{default:()=>transform});var e=__webpack_require__("./node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/index.js"),t=__webpack_require__("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-proposal-decorators/lib/index.js"),n=__webpack_require__("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-syntax-class-properties/lib/index.js"),s=__webpack_require__("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-syntax-import-assertions/lib/index.js"),i=__webpack_require__("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-syntax-jsx/lib/index.js"),o=__webpack_require__("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-explicit-resource-management/lib/index.js"),a=__webpack_require__("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-export-namespace-from/lib/index.js"),l=__webpack_require__("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-react-jsx/lib/index.js"),p=__webpack_require__("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/plugin-transform-typescript/lib/index.js"),c=__webpack_require__("./node_modules/.pnpm/[email protected]/node_modules/babel-plugin-parameter-decorator/lib/index.js"),u=__webpack_require__.n(c),d=__webpack_require__("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-plugin-utils/lib/index.js");function createParamDecorator(t,r,n=!1){return e.types.decorator(e.types.functionExpression(null,[e.types.identifier("target"),e.types.identifier("key")],e.types.blockStatement([e.types.returnStatement(e.types.callExpression(r,[e.types.identifier("target"),e.types.identifier(n?"undefined":"key"),e.types.numericLiteral(t)]))])))}function parameterVisitor(e,t){if("ClassMethod"!==t.type)return;if("ClassMethod"!==t.node.type)return;if("Identifier"!==t.node.key.type)return;const r=t,n=r.get("params")||[];for(const t of n){if(null==("Identifier"===t.node.type||"ObjectPattern"===t.node.type?t.node:"TSParameterProperty"===t.node.type&&"Identifier"===t.node.parameter.type?t.node.parameter:null))continue;let n;for(const s of t.node.decorators||[])"constructor"===r.node.kind?(n=createParamDecorator(t.key,s.expression,!0),e.node.decorators||(e.node.decorators=[]),e.node.decorators.push(n)):(n=createParamDecorator(t.key,s.expression,!1),r.node.decorators||(r.node.decorators=[]),r.node.decorators.push(n));n&&(t.node.decorators=null)}}function createVoidZero(){return e.types.unaryExpression("void",e.types.numericLiteral(0))}function getTypedNode(e){return null==e?null:"ClassProperty"===e.type||"Identifier"===e.type||"ObjectPattern"===e.type?e:"AssignmentPattern"===e.type&&"Identifier"===e.left.type?e.left:"TSParameterProperty"===e.type?getTypedNode(e.parameter):null}function serializeType(e,t){const r=getTypedNode(t);if(null==r)return createVoidZero();if(!r.typeAnnotation||"TSTypeAnnotation"!==r.typeAnnotation.type)return createVoidZero();const n=r.typeAnnotation.typeAnnotation;return serializeTypeNode(e.node.id?e.node.id.name:"",n)}function serializeTypeReferenceNode(t,r){const n=serializeReference(r.typeName);return isClassType(t,n)?e.types.identifier("Object"):e.types.conditionalExpression(e.types.binaryExpression("===",e.types.unaryExpression("typeof",n),e.types.stringLiteral("undefined")),e.types.identifier("Object"),e.types.cloneDeep(n))}function isClassType(e,t){switch(t.type){case"Identifier":return t.name===e;case"MemberExpression":return isClassType(e,t.object);default:throw new Error(`The property expression at ${t.start} is not valid as a Type to be used in Reflect.metadata`)}}function serializeReference(t){return"Identifier"===t.type?e.types.identifier(t.name):e.types.memberExpression(serializeReference(t.left),t.right)}function serializeTypeNode(t,r){if(void 0===r)return e.types.identifier("Object");switch(r.type){case"TSVoidKeyword":case"TSUndefinedKeyword":case"TSNullKeyword":case"TSNeverKeyword":return createVoidZero();case"TSParenthesizedType":return serializeTypeNode(t,r.typeAnnotation);case"TSFunctionType":case"TSConstructorType":return e.types.identifier("Function");case"TSArrayType":case"TSTupleType":return e.types.identifier("Array");case"TSTypePredicate":case"TSBooleanKeyword":return e.types.identifier("Boolean");case"TSStringKeyword":return e.types.identifier("String");case"TSObjectKeyword":return e.types.identifier("Object");case"TSLiteralType":switch(r.literal.type){case"StringLiteral":return e.types.identifier("String");case"NumericLiteral":return e.types.identifier("Number");case"BooleanLiteral":return e.types.identifier("Boolean");default:throw new Error("Bad type for decorator"+r.literal)}case"TSNumberKeyword":case"TSBigIntKeyword":return e.types.identifier("Number");case"TSSymbolKeyword":return e.types.identifier("Symbol");case"TSTypeReference":return serializeTypeReferenceNode(t,r);case"TSIntersectionType":case"TSUnionType":return serializeTypeList(t,r.types);case"TSConditionalType":return serializeTypeList(t,[r.trueType,r.falseType]);case"TSTypeQuery":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTypeLiteral":case"TSAnyKeyword":case"TSUnknownKeyword":case"TSThisType":break;default:throw new Error("Bad type for decorator")}return e.types.identifier("Object")}function serializeTypeList(t,r){let n;for(let s of r){for(;"TSParenthesizedType"===s.type;)s=s.typeAnnotation;if("TSNeverKeyword"===s.type)continue;if("TSNullKeyword"===s.type||"TSUndefinedKeyword"===s.type)continue;const r=serializeTypeNode(t,s);if(e.types.isIdentifier(r)&&"Object"===r.name)return r;if(n){if(!e.types.isIdentifier(n)||!e.types.isIdentifier(r)||n.name!==r.name)return e.types.identifier("Object")}else n=r}return n||createVoidZero()}function createMetadataDesignDecorator(t,r){return e.types.decorator(e.types.logicalExpression("||",e.types.optionalCallExpression(e.types.memberExpression(e.types.identifier("Reflect"),e.types.identifier("metadata")),[e.types.stringLiteral(t),r],!0),e.types.arrowFunctionExpression([e.types.identifier("t")],e.types.identifier("t"))))}function metadataVisitor(t,r){const n=r.node,s=t.node;switch(n.type){case"ClassMethod":{const r="constructor"===n.kind?s.decorators:n.decorators;if(!r||0===r.length)return;r.push(createMetadataDesignDecorator("design:type",e.types.identifier("Function"))),r.push(createMetadataDesignDecorator("design:paramtypes",e.types.arrayExpression(n.params.map(e=>serializeType(t,e)))));break}case"ClassProperty":if(!n.decorators||0===n.decorators.length)return;if(!n.typeAnnotation||"TSTypeAnnotation"!==n.typeAnnotation.type)return;n.decorators.push(createMetadataDesignDecorator("design:type",serializeType(t,n)))}}const h=(0,d.declare)(e=>(e.assertVersion(7),{visitor:{Program(e){e.traverse({ClassDeclaration(e){for(const t of e.get("body").get("body"))"ClassMethod"!==t.type&&"ClassProperty"!==t.type||(parameterVisitor(e,t),metadataVisitor(e,t));e.parentPath.scope.crawl()}})}}}));function importMetaEnvPlugin({template:e,types:t}){return{name:"@import-meta-env/babel",visitor:{Identifier(r){if(!t.isIdentifier(r))return;if(!t.isMemberExpression(r.parentPath)&&!t.isOptionalMemberExpression(r.parentPath))return;if(!t.isMemberExpression(r.parentPath.node))return;const n=r.parentPath.node;if(!t.isMetaProperty(n.object))return;const s=n.object;"import"===s.meta.name&&"meta"===s.property.name&&"env"===n.property.name&&r.parentPath.replaceWith(e.expression.ast("process.env"))}}}}function importMetaResolvePlugin(e){return{name:"import-meta-resolve",visitor:{Program(e){const t=[];if(e.traverse({MemberExpression(e){const{node:r}=e;"MetaProperty"===r.object.type&&"import"===r.object.meta.name&&"meta"===r.object.property.name&&"Identifier"===r.property.type&&"resolve"===r.property.name&&t.push(e)}}),0!==t.length)for(const e of t)e.replaceWith({type:"ExpressionStatement",expression:{type:"Identifier",name:"jitiESMResolve"}})}}}}var m=__webpack_require__("./node_modules/.pnpm/@[email protected]/node_modules/@babel/template/lib/index.js");const f=/^[A-Za-z]:\//;function normalizeWindowsPath(e=""){return e?e.replace(/\\/g,"/").replace(f,e=>e.toUpperCase()):e}const y=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,b=/^[A-Za-z]:$/;const pathe_M_eThtNZ_isAbsolute=function(e){return y.test(e)},pathe_M_eThtNZ_dirname=function(e){const t=normalizeWindowsPath(e).replace(/\/$/,"").split("/").slice(0,-1);return 1===t.length&&b.test(t[0])&&(t[0]+="/"),t.join("/")||(pathe_M_eThtNZ_isAbsolute(e)?"/":".")};var g=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],x=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],v="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",E={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},T="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",S={5:T,"5module":T+" export import",6:T+" const class extends export import super"},P=/^in(stanceof)?$/,_=new RegExp("["+v+"]"),A=new RegExp("["+v+"·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function isInAstralSet(e,t){for(var r=65536,n=0;n<t.length;n+=2){if((r+=t[n])>e)return!1;if((r+=t[n+1])>=e)return!0}return!1}function isIdentifierStart(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&_.test(String.fromCharCode(e)):!1!==t&&isInAstralSet(e,x)))}function isIdentifierChar(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&A.test(String.fromCharCode(e)):!1!==t&&(isInAstralSet(e,x)||isInAstralSet(e,g)))))}var acorn_TokenType=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function binop(e,t){return new acorn_TokenType(e,{beforeExpr:!0,binop:t})}var C={beforeExpr:!0},w={startsExpr:!0},I={};function kw(e,t){return void 0===t&&(t={}),t.keyword=e,I[e]=new acorn_TokenType(e,t)}var D={num:new acorn_TokenType("num",w),regexp:new acorn_TokenType("regexp",w),string:new acorn_TokenType("string",w),name:new acorn_TokenType("name",w),privateId:new acorn_TokenType("privateId",w),eof:new acorn_TokenType("eof"),bracketL:new acorn_TokenType("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new acorn_TokenType("]"),braceL:new acorn_TokenType("{",{beforeExpr:!0,startsExpr:!0}),braceR:new acorn_TokenType("}"),parenL:new acorn_TokenType("(",{beforeExpr:!0,startsExpr:!0}),parenR:new acorn_TokenType(")"),comma:new acorn_TokenType(",",C),semi:new acorn_TokenType(";",C),colon:new acorn_TokenType(":",C),dot:new acorn_TokenType("."),question:new acorn_TokenType("?",C),questionDot:new acorn_TokenType("?."),arrow:new acorn_TokenType("=>",C),template:new acorn_TokenType("template"),invalidTemplate:new acorn_TokenType("invalidTemplate"),ellipsis:new acorn_TokenType("...",C),backQuote:new acorn_TokenType("`",w),dollarBraceL:new acorn_TokenType("${",{beforeExpr:!0,startsExpr:!0}),eq:new acorn_TokenType("=",{beforeExpr:!0,isAssign:!0}),assign:new acorn_TokenType("_=",{beforeExpr:!0,isAssign:!0}),incDec:new acorn_TokenType("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new acorn_TokenType("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("</>/<=/>=",7),bitShift:binop("<</>>/>>>",8),plusMin:new acorn_TokenType("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new acorn_TokenType("**",{beforeExpr:!0}),coalesce:binop("??",1),_break:kw("break"),_case:kw("case",C),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",C),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",C),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",w),_if:kw("if"),_return:kw("return",C),_switch:kw("switch"),_throw:kw("throw",C),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",w),_super:kw("super",w),_class:kw("class",w),_extends:kw("extends",C),_export:kw("export"),_import:kw("import",w),_null:kw("null",w),_true:kw("true",w),_false:kw("false",w),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},k=/\r\n?|\n|\u2028|\u2029/,N=new RegExp(k.source,"g");function isNewLine(e){return 10===e||13===e||8232===e||8233===e}function nextLineBreak(e,t,r){void 0===r&&(r=e.length);for(var n=t;n<r;n++){var s=e.charCodeAt(n);if(isNewLine(s))return n<r-1&&13===s&&10===e.charCodeAt(n+1)?n+2:n+1}return-1}var O=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,j=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,F=Object.prototype,L=F.hasOwnProperty,M=F.toString,B=Object.hasOwn||function(e,t){return L.call(e,t)},R=Array.isArray||function(e){return"[object Array]"===M.call(e)},U=Object.create(null);function wordsRegexp(e){return U[e]||(U[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function codePointToString(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}var V=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,acorn_Position=function(e,t){this.line=e,this.column=t};acorn_Position.prototype.offset=function(e){return new acorn_Position(this.line,this.column+e)};var acorn_SourceLocation=function(e,t,r){this.start=t,this.end=r,null!==e.sourceFile&&(this.source=e.sourceFile)};function getLineInfo(e,t){for(var r=1,n=0;;){var s=nextLineBreak(e,n,t);if(s<0)return new acorn_Position(r,t-n);++r,n=s}}var $={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},K=!1;function getOptions(e){var t={};for(var r in $)t[r]=e&&B(e,r)?e[r]:$[r];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!K&&"object"==typeof console&&console.warn&&(K=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),e&&null!=e.allowHashBang||(t.allowHashBang=t.ecmaVersion>=14),R(t.onToken)){var n=t.onToken;t.onToken=function(e){return n.push(e)}}if(R(t.onComment)&&(t.onComment=function(e,t){return function(r,n,s,i,o,a){var l={type:r?"Block":"Line",value:n,start:s,end:i};e.locations&&(l.loc=new acorn_SourceLocation(this,o,a)),e.ranges&&(l.range=[s,i]),t.push(l)}}(t,t.onComment)),"commonjs"===t.sourceType&&t.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t}var W=256,q=259;function functionFlags(e,t){return 2|(e?4:0)|(t?8:0)}var acorn_Parser=function(e,t,r){this.options=e=getOptions(e),this.sourceFile=e.sourceFile,this.keywords=wordsRegexp(S[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var n="";!0!==e.allowReserved&&(n=E[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(n+=" await")),this.reservedWords=wordsRegexp(n);var s=(n?n+" ":"")+E.strict;this.reservedWordsStrict=wordsRegexp(s),this.reservedWordsStrictBind=wordsRegexp(s+" "+E.strictBind),this.input=String(t),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf("\n",r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(k).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=D.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope("commonjs"===this.options.sourceType?2:1),this.regexpState=null,this.privateNameStack=[]},H={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};acorn_Parser.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},H.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},H.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},H.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},H.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(768&t)return!1;if(2&t)return(4&t)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},H.allowReturn.get=function(){return!!this.inFunction||!!(this.options.allowReturnOutsideFunction&&1&this.currentVarScope().flags)},H.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0||this.options.allowSuperOutsideMethod},H.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},H.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},H.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(768&t||2&t&&!(16&t))return!0}return!1},H.allowUsing.get=function(){var e=this.currentScope().flags;return!(1024&e)&&!(!this.inModule&&1&e)},H.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&W)>0},acorn_Parser.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var r=this,n=0;n<e.length;n++)r=e[n](r);return r},acorn_Parser.parse=function(e,t){return new this(t,e).parse()},acorn_Parser.parseExpressionAt=function(e,t,r){var n=new this(r,e,t);return n.nextToken(),n.parseExpression()},acorn_Parser.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(acorn_Parser.prototype,H);var z=acorn_Parser.prototype,G=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;z.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){j.lastIndex=e,e+=j.exec(this.input)[0].length;var t=G.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){j.lastIndex=e+t[0].length;var r=j.exec(this.input),n=r.index+r[0].length,s=this.input.charAt(n);return";"===s||"}"===s||k.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(s)||"!"===s&&"="===this.input.charAt(n+1))}e+=t[0].length,j.lastIndex=e,e+=j.exec(this.input)[0].length,";"===this.input[e]&&e++}},z.eat=function(e){return this.type===e&&(this.next(),!0)},z.isContextual=function(e){return this.type===D.name&&this.value===e&&!this.containsEsc},z.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},z.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},z.canInsertSemicolon=function(){return this.type===D.eof||this.type===D.braceR||k.test(this.input.slice(this.lastTokEnd,this.start))},z.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},z.semicolon=function(){this.eat(D.semi)||this.insertSemicolon()||this.unexpected()},z.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},z.expect=function(e){this.eat(e)||this.unexpected()},z.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var acorn_DestructuringErrors=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};z.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,t?"Assigning to rvalue":"Parenthesized pattern")}},z.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,n=e.doubleProto;if(!t)return r>=0||n>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")},z.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},z.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var X=acorn_Parser.prototype;X.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==D.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var n=0,s=Object.keys(this.undefinedExports);n<s.length;n+=1){var i=s[n];this.raiseRecoverable(this.undefinedExports[i].start,"Export '"+i+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType="commonjs"===this.options.sourceType?"script":this.options.sourceType,this.finishNode(e,"Program")};var J={kind:"loop"},Y={kind:"switch"};X.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;j.lastIndex=this.pos;var t=j.exec(this.input),r=this.pos+t[0].length,n=this.fullCharCodeAt(r);if(91===n||92===n)return!0;if(e)return!1;if(123===n)return!0;if(isIdentifierStart(n)){var s=r;do{r+=n<=65535?1:2}while(isIdentifierChar(n=this.fullCharCodeAt(r)));if(92===n)return!0;var i=this.input.slice(s,r);if(!P.test(i))return!0}return!1},X.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;j.lastIndex=this.pos;var e,t=j.exec(this.input),r=this.pos+t[0].length;return!(k.test(this.input.slice(this.pos,r))||"function"!==this.input.slice(r,r+8)||r+8!==this.input.length&&(isIdentifierChar(e=this.fullCharCodeAt(r+8))||92===e))},X.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;j.lastIndex=this.pos;var r=j.exec(this.input),n=this.pos+r[0].length;if(k.test(this.input.slice(this.pos,n)))return!1;if(e){var s,i=n+5;if("using"!==this.input.slice(n,i)||i===this.input.length||isIdentifierChar(s=this.fullCharCodeAt(i))||92===s)return!1;j.lastIndex=i;var o=j.exec(this.input);if(n=i+o[0].length,o&&k.test(this.input.slice(i,n)))return!1}var a=this.fullCharCodeAt(n);if(!isIdentifierStart(a)&&92!==a)return!1;var l=n;do{n+=a<=65535?1:2}while(isIdentifierChar(a=this.fullCharCodeAt(n)));if(92===a)return!0;var p=this.input.slice(l,n);return!(P.test(p)||t&&"of"===p)},X.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)},X.isUsing=function(e){return this.isUsingKeyword(!1,e)},X.parseStatement=function(e,t,r){var n,s=this.type,i=this.startNode();switch(this.isLet(e)&&(s=D._var,n="let"),s){case D._break:case D._continue:return this.parseBreakContinueStatement(i,s.keyword);case D._debugger:return this.parseDebuggerStatement(i);case D._do:return this.parseDoStatement(i);case D._for:return this.parseForStatement(i);case D._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case D._class:return e&&this.unexpected(),this.parseClass(i,!0);case D._if:return this.parseIfStatement(i);case D._return:return this.parseReturnStatement(i);case D._switch:return this.parseSwitchStatement(i);case D._throw:return this.parseThrowStatement(i);case D._try:return this.parseTryStatement(i);case D._const:case D._var:return n=n||this.value,e&&"var"!==n&&this.unexpected(),this.parseVarStatement(i,n);case D._while:return this.parseWhileStatement(i);case D._with:return this.parseWithStatement(i);case D.braceL:return this.parseBlock(!0,i);case D.semi:return this.parseEmptyStatement(i);case D._export:case D._import:if(this.options.ecmaVersion>10&&s===D._import){j.lastIndex=this.pos;var o=j.exec(this.input),a=this.pos+o[0].length,l=this.input.charCodeAt(a);if(40===l||46===l)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),s===D._import?this.parseImport(i):this.parseExport(i,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var p=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(p)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),"await using"===p&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(i,!1,p),this.semicolon(),this.finishNode(i,"VariableDeclaration");var c=this.value,u=this.parseExpression();return s===D.name&&"Identifier"===u.type&&this.eat(D.colon)?this.parseLabeledStatement(i,c,u,e):this.parseExpressionStatement(i,u)}},X.parseBreakContinueStatement=function(e,t){var r="break"===t;this.next(),this.eat(D.semi)||this.insertSemicolon()?e.label=null:this.type!==D.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var n=0;n<this.labels.length;++n){var s=this.labels[n];if(null==e.label||s.name===e.label.name){if(null!=s.kind&&(r||"loop"===s.kind))break;if(e.label&&r)break}}return n===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")},X.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},X.parseDoStatement=function(e){return this.next(),this.labels.push(J),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(D._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(D.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},X.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(J),this.enterScope(0),this.expect(D.parenL),this.type===D.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===D._var||this.type===D._const||r){var n=this.startNode(),s=r?"let":this.value;return this.next(),this.parseVar(n,!0,s),this.finishNode(n,"VariableDeclaration"),this.parseForAfterInit(e,n,t)}var i=this.isContextual("let"),o=!1,a=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(a){var l=this.startNode();return this.next(),"await using"===a&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(l,!0,a),this.finishNode(l,"VariableDeclaration"),this.parseForAfterInit(e,l,t)}var p=this.containsEsc,c=new acorn_DestructuringErrors,u=this.start,d=t>-1?this.parseExprSubscripts(c,"await"):this.parseExpression(!0,c);return this.type===D._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===D._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(d.start!==u||p||"Identifier"!==d.type||"async"!==d.name?this.options.ecmaVersion>=9&&(e.await=!1):this.unexpected()),i&&o&&this.raise(d.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(d,!1,c),this.checkLValPattern(d),this.parseForIn(e,d)):(this.checkExpressionErrors(c,!0),t>-1&&this.unexpected(t),this.parseFor(e,d))},X.parseForAfterInit=function(e,t,r){return(this.type===D._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===t.declarations.length?(this.options.ecmaVersion>=9&&(this.type===D._in?r>-1&&this.unexpected(r):e.await=r>-1),this.parseForIn(e,t)):(r>-1&&this.unexpected(r),this.parseFor(e,t))},X.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,Z|(r?0:ee),!1,t)},X.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(D._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},X.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(D.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},X.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(D.braceL),this.labels.push(Y),this.enterScope(1024);for(var r=!1;this.type!==D.braceR;)if(this.type===D._case||this.type===D._default){var n=this.type===D._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(D.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},X.parseThrowStatement=function(e){return this.next(),k.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Q=[];X.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?32:0),this.checkLValPattern(e,t?4:2),this.expect(D.parenR),e},X.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===D._catch){var t=this.startNode();this.next(),this.eat(D.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(D._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},X.parseVarStatement=function(e,t,r){return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")},X.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(J),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},X.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},X.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},X.parseLabeledStatement=function(e,t,r,n){for(var s=0,i=this.labels;s<i.length;s+=1){i[s].name===t&&this.raise(r.start,"Label '"+t+"' is already declared")}for(var o=this.type.isLoop?"loop":this.type===D._switch?"switch":null,a=this.labels.length-1;a>=0;a--){var l=this.labels[a];if(l.statementStart!==e.start)break;l.statementStart=this.start,l.kind=o}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(n?-1===n.indexOf("label")?n+"label":n:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")},X.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},X.parseBlock=function(e,t,r){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(D.braceL),e&&this.enterScope(0);this.type!==D.braceR;){var n=this.parseStatement(null);t.body.push(n)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},X.parseFor=function(e,t){return e.init=t,this.expect(D.semi),e.test=this.type===D.semi?null:this.parseExpression(),this.expect(D.semi),e.update=this.type===D.parenR?null:this.parseExpression(),this.expect(D.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},X.parseForIn=function(e,t){var r=this.type===D._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!r||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(D.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")},X.parseVar=function(e,t,r,n){for(e.declarations=[],e.kind=r;;){var s=this.startNode();if(this.parseVarId(s,r),this.eat(D.eq)?s.init=this.parseMaybeAssign(t):n||"const"!==r||this.type===D._in||this.options.ecmaVersion>=6&&this.isContextual("of")?n||"using"!==r&&"await using"!==r||!(this.options.ecmaVersion>=17)||this.type===D._in||this.isContextual("of")?n||"Identifier"===s.id.type||t&&(this.type===D._in||this.isContextual("of"))?s.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.raise(this.lastTokEnd,"Missing initializer in "+r+" declaration"):this.unexpected(),e.declarations.push(this.finishNode(s,"VariableDeclarator")),!this.eat(D.comma))break}return e},X.parseVarId=function(e,t){e.id="using"===t||"await using"===t?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var Z=1,ee=2;function isPrivateNameConflicted(e,t){var r=t.key.name,n=e[r],s="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(s=(t.static?"s":"i")+t.kind),"iget"===n&&"iset"===s||"iset"===n&&"iget"===s||"sget"===n&&"sset"===s||"sset"===n&&"sget"===s?(e[r]="true",!1):!!n||(e[r]=s,!1)}function checkKeyName(e,t){var r=e.computed,n=e.key;return!r&&("Identifier"===n.type&&n.name===t||"Literal"===n.type&&n.value===t)}X.parseFunction=function(e,t,r,n,s){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===D.star&&t&ee&&this.unexpected(),e.generator=this.eat(D.star)),this.options.ecmaVersion>=8&&(e.async=!!n),t&Z&&(e.id=4&t&&this.type!==D.name?null:this.parseIdent(),!e.id||t&ee||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var i=this.yieldPos,o=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(e.async,e.generator)),t&Z||(e.id=this.type===D.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1,s),this.yieldPos=i,this.awaitPos=o,this.awaitIdentPos=a,this.finishNode(e,t&Z?"FunctionDeclaration":"FunctionExpression")},X.parseFunctionParams=function(e){this.expect(D.parenL),e.params=this.parseBindingList(D.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},X.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var n=this.enterClassBody(),s=this.startNode(),i=!1;for(s.body=[],this.expect(D.braceL);this.type!==D.braceR;){var o=this.parseClassElement(null!==e.superClass);o&&(s.body.push(o),"MethodDefinition"===o.type&&"constructor"===o.kind?(i&&this.raiseRecoverable(o.start,"Duplicate constructor in the same class"),i=!0):o.key&&"PrivateIdentifier"===o.key.type&&isPrivateNameConflicted(n,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=r,this.next(),e.body=this.finishNode(s,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},X.parseClassElement=function(e){if(this.eat(D.semi))return null;var t=this.options.ecmaVersion,r=this.startNode(),n="",s=!1,i=!1,o="method",a=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(D.braceL))return this.parseClassStaticBlock(r),r;this.isClassElementNameStart()||this.type===D.star?a=!0:n="static"}if(r.static=a,!n&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==D.star||this.canInsertSemicolon()?n="async":i=!0),!n&&(t>=9||!i)&&this.eat(D.star)&&(s=!0),!n&&!i&&!s){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=l:n=l)}if(n?(r.computed=!1,r.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),r.key.name=n,this.finishNode(r.key,"Identifier")):this.parseClassElementName(r),t<13||this.type===D.parenL||"method"!==o||s||i){var p=!r.static&&checkKeyName(r,"constructor"),c=p&&e;p&&"method"!==o&&this.raise(r.key.start,"Constructor can't have get/set modifier"),r.kind=p?"constructor":o,this.parseClassMethod(r,s,i,c)}else this.parseClassField(r);return r},X.isClassElementNameStart=function(){return this.type===D.name||this.type===D.privateId||this.type===D.num||this.type===D.string||this.type===D.bracketL||this.type.keyword},X.parseClassElementName=function(e){this.type===D.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},X.parseClassMethod=function(e,t,r,n){var s=e.key;"constructor"===e.kind?(t&&this.raise(s.start,"Constructor can't be a generator"),r&&this.raise(s.start,"Constructor can't be an async method")):e.static&&checkKeyName(e,"prototype")&&this.raise(s.start,"Classes may not have a static property named prototype");var i=e.value=this.parseMethod(t,r,n);return"get"===e.kind&&0!==i.params.length&&this.raiseRecoverable(i.start,"getter should have no params"),"set"===e.kind&&1!==i.params.length&&this.raiseRecoverable(i.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===i.params[0].type&&this.raiseRecoverable(i.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},X.parseClassField=function(e){return checkKeyName(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&checkKeyName(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(D.eq)?(this.enterScope(576),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")},X.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==D.braceR;){var r=this.parseStatement(null);e.body.push(r)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},X.parseClassId=function(e,t){this.type===D.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},X.parseClassSuper=function(e){e.superClass=this.eat(D._extends)?this.parseExprSubscripts(null,!1):null},X.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},X.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,r=e.used;if(this.options.checkPrivateFields)for(var n=this.privateNameStack.length,s=0===n?null:this.privateNameStack[n-1],i=0;i<r.length;++i){var o=r[i];B(t,o.name)||(s?s.used.push(o):this.raiseRecoverable(o.start,"Private field '#"+o.name+"' must be declared in an enclosing class"))}},X.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==D.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},X.parseExport=function(e,t){if(this.next(),this.eat(D.star))return this.parseExportAllDeclaration(e,t);if(this.eat(D._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==D.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var r=0,n=e.specifiers;r<n.length;r+=1){var s=n[r];this.checkUnreserved(s.local),this.checkLocalExport(s.local),"Literal"===s.local.type&&this.raise(s.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},X.parseExportDeclaration=function(e){return this.parseStatement(null)},X.parseExportDefaultDeclaration=function(){var e;if(this.type===D._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,4|Z,!1,e)}if(this.type===D._class){var r=this.startNode();return this.parseClass(r,"nullableID")}var n=this.parseMaybeAssign();return this.semicolon(),n},X.checkExport=function(e,t,r){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),B(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)},X.checkPatternExport=function(e,t){var r=t.type;if("Identifier"===r)this.checkExport(e,t,t.start);else if("ObjectPattern"===r)for(var n=0,s=t.properties;n<s.length;n+=1){var i=s[n];this.checkPatternExport(e,i)}else if("ArrayPattern"===r)for(var o=0,a=t.elements;o<a.length;o+=1){var l=a[o];l&&this.checkPatternExport(e,l)}else"Property"===r?this.checkPatternExport(e,t.value):"AssignmentPattern"===r?this.checkPatternExport(e,t.left):"RestElement"===r&&this.checkPatternExport(e,t.argument)},X.checkVariableExport=function(e,t){if(e)for(var r=0,n=t;r<n.length;r+=1){var s=n[r];this.checkPatternExport(e,s.id)}},X.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},X.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")},X.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect(D.braceL);!this.eat(D.braceR);){if(r)r=!1;else if(this.expect(D.comma),this.afterTrailingComma(D.braceR))break;t.push(this.parseExportSpecifier(e))}return t},X.parseImport=function(e){return this.next(),this.type===D.string?(e.specifiers=Q,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===D.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},X.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportSpecifier")},X.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportDefaultSpecifier")},X.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportNamespaceSpecifier")},X.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===D.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(D.comma)))return e;if(this.type===D.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(D.braceL);!this.eat(D.braceR);){if(t)t=!1;else if(this.expect(D.comma),this.afterTrailingComma(D.braceR))break;e.push(this.parseImportSpecifier())}return e},X.parseWithClause=function(){var e=[];if(!this.eat(D._with))return e;this.expect(D.braceL);for(var t={},r=!0;!this.eat(D.braceR);){if(r)r=!1;else if(this.expect(D.comma),this.afterTrailingComma(D.braceR))break;var n=this.parseImportAttribute(),s="Identifier"===n.key.type?n.key.name:n.key.value;B(t,s)&&this.raiseRecoverable(n.key.start,"Duplicate attribute key '"+s+"'"),t[s]=!0,e.push(n)}return e},X.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===D.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(D.colon),this.type!==D.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")},X.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===D.string){var e=this.parseLiteral(this.value);return V.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},X.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},X.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var te=acorn_Parser.prototype;te.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var n=0,s=e.properties;n<s.length;n+=1){var i=s[n];this.toAssignable(i,t),"RestElement"!==i.type||"ArrayPattern"!==i.argument.type&&"ObjectPattern"!==i.argument.type||this.raise(i.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,r);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return e},te.toAssignableList=function(e,t){for(var r=e.length,n=0;n<r;n++){var s=e[n];s&&this.toAssignable(s,t)}if(r){var i=e[r-1];6===this.options.ecmaVersion&&t&&i&&"RestElement"===i.type&&"Identifier"!==i.argument.type&&this.unexpected(i.argument.start)}return e},te.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},te.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==D.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},te.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case D.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(D.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case D.braceL:return this.parseObj(!0)}return this.parseIdent()},te.parseBindingList=function(e,t,r,n){for(var s=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(D.comma),t&&this.type===D.comma)s.push(null);else{if(r&&this.afterTrailingComma(e))break;if(this.type===D.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),s.push(o),this.type===D.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}s.push(this.parseAssignableListItem(n))}return s},te.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},te.parseBindingListItem=function(e){return e},te.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(D.eq))return r;var n=this.startNodeAt(e,t);return n.left=r,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")},te.checkLValSimple=function(e,t,r){void 0===t&&(t=0);var n=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(n?"Binding ":"Assigning to ")+e.name+" in strict mode"),n&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),r&&(B(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":n&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return n&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,r);default:this.raise(e.start,(n?"Binding":"Assigning to")+" rvalue")}},te.checkLValPattern=function(e,t,r){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var n=0,s=e.properties;n<s.length;n+=1){var i=s[n];this.checkLValInnerPattern(i,t,r)}break;case"ArrayPattern":for(var o=0,a=e.elements;o<a.length;o+=1){var l=a[o];l&&this.checkLValInnerPattern(l,t,r)}break;default:this.checkLValSimple(e,t,r)}},te.checkLValInnerPattern=function(e,t,r){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,r);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,r);break;case"RestElement":this.checkLValPattern(e.argument,t,r);break;default:this.checkLValPattern(e,t,r)}};var acorn_TokContext=function(e,t,r,n,s){this.token=e,this.isExpr=!!t,this.preserveSpace=!!r,this.override=n,this.generator=!!s},re={b_stat:new acorn_TokContext("{",!1),b_expr:new acorn_TokContext("{",!0),b_tmpl:new acorn_TokContext("${",!1),p_stat:new acorn_TokContext("(",!1),p_expr:new acorn_TokContext("(",!0),q_tmpl:new acorn_TokContext("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new acorn_TokContext("function",!1),f_expr:new acorn_TokContext("function",!0),f_expr_gen:new acorn_TokContext("function",!0,!1,null,!0),f_gen:new acorn_TokContext("function",!1,!1,null,!0)},ne=acorn_Parser.prototype;ne.initialContext=function(){return[re.b_stat]},ne.curContext=function(){return this.context[this.context.length-1]},ne.braceIsBlock=function(e){var t=this.curContext();return t===re.f_expr||t===re.f_stat||(e!==D.colon||t!==re.b_stat&&t!==re.b_expr?e===D._return||e===D.name&&this.exprAllowed?k.test(this.input.slice(this.lastTokEnd,this.start)):e===D._else||e===D.semi||e===D.eof||e===D.parenR||e===D.arrow||(e===D.braceL?t===re.b_stat:e!==D._var&&e!==D._const&&e!==D.name&&!this.exprAllowed):!t.isExpr)},ne.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},ne.updateContext=function(e){var t,r=this.type;r.keyword&&e===D.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr},ne.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},D.parenR.updateContext=D.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===re.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},D.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?re.b_stat:re.b_expr),this.exprAllowed=!0},D.dollarBraceL.updateContext=function(){this.context.push(re.b_tmpl),this.exprAllowed=!0},D.parenL.updateContext=function(e){var t=e===D._if||e===D._for||e===D._with||e===D._while;this.context.push(t?re.p_stat:re.p_expr),this.exprAllowed=!0},D.incDec.updateContext=function(){},D._function.updateContext=D._class.updateContext=function(e){!e.beforeExpr||e===D._else||e===D.semi&&this.curContext()!==re.p_stat||e===D._return&&k.test(this.input.slice(this.lastTokEnd,this.start))||(e===D.colon||e===D.braceL)&&this.curContext()===re.b_stat?this.context.push(re.f_stat):this.context.push(re.f_expr),this.exprAllowed=!1},D.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},D.backQuote.updateContext=function(){this.curContext()===re.q_tmpl?this.context.pop():this.context.push(re.q_tmpl),this.exprAllowed=!1},D.star.updateContext=function(e){if(e===D._function){var t=this.context.length-1;this.context[t]===re.f_expr?this.context[t]=re.f_expr_gen:this.context[t]=re.f_gen}this.exprAllowed=!0},D.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==D.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var se=acorn_Parser.prototype;function isLocalVariableAccess(e){return"Identifier"===e.type||"ParenthesizedExpression"===e.type&&isLocalVariableAccess(e.expression)}function isPrivateFieldAccess(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&isPrivateFieldAccess(e.expression)||"ParenthesizedExpression"===e.type&&isPrivateFieldAccess(e.expression)}se.checkPropClash=function(e,t,r){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var n,s=e.key;switch(s.type){case"Identifier":n=s.name;break;case"Literal":n=String(s.value);break;default:return}var i=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===n&&"init"===i&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=s.start):this.raiseRecoverable(s.start,"Redefinition of __proto__ property")),t.proto=!0);else{var o=t[n="$"+n];if(o)("init"===i?this.strict&&o.init||o.get||o.set:o.init||o[i])&&this.raiseRecoverable(s.start,"Redefinition of property");else o=t[n]={init:!1,get:!1,set:!1};o[i]=!0}}},se.parseExpression=function(e,t){var r=this.start,n=this.startLoc,s=this.parseMaybeAssign(e,t);if(this.type===D.comma){var i=this.startNodeAt(r,n);for(i.expressions=[s];this.eat(D.comma);)i.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(i,"SequenceExpression")}return s},se.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var n=!1,s=-1,i=-1,o=-1;t?(s=t.parenthesizedAssign,i=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new acorn_DestructuringErrors,n=!0);var a=this.start,l=this.startLoc;this.type!==D.parenL&&this.type!==D.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var p=this.parseMaybeConditional(e,t);if(r&&(p=r.call(this,p,a,l)),this.type.isAssign){var c=this.startNodeAt(a,l);return c.operator=this.value,this.type===D.eq&&(p=this.toAssignable(p,!1,t)),n||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=p.start&&(t.shorthandAssign=-1),this.type===D.eq?this.checkLValPattern(p):this.checkLValSimple(p),c.left=p,this.next(),c.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(c,"AssignmentExpression")}return n&&this.checkExpressionErrors(t,!0),s>-1&&(t.parenthesizedAssign=s),i>-1&&(t.trailingComma=i),p},se.parseMaybeConditional=function(e,t){var r=this.start,n=this.startLoc,s=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return s;if(this.eat(D.question)){var i=this.startNodeAt(r,n);return i.test=s,i.consequent=this.parseMaybeAssign(),this.expect(D.colon),i.alternate=this.parseMaybeAssign(e),this.finishNode(i,"ConditionalExpression")}return s},se.parseExprOps=function(e,t){var r=this.start,n=this.startLoc,s=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||s.start===r&&"ArrowFunctionExpression"===s.type?s:this.parseExprOp(s,r,n,-1,e)},se.parseExprOp=function(e,t,r,n,s){var i=this.type.binop;if(null!=i&&(!s||this.type!==D._in)&&i>n){var o=this.type===D.logicalOR||this.type===D.logicalAND,a=this.type===D.coalesce;a&&(i=D.logicalAND.binop);var l=this.value;this.next();var p=this.start,c=this.startLoc,u=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,s),p,c,i,s),d=this.buildBinary(t,r,e,u,l,o||a);return(o&&this.type===D.coalesce||a&&(this.type===D.logicalOR||this.type===D.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(d,t,r,n,s)}return e},se.buildBinary=function(e,t,r,n,s,i){"PrivateIdentifier"===n.type&&this.raise(n.start,"Private identifier can only be left side of binary expression");var o=this.startNodeAt(e,t);return o.left=r,o.operator=s,o.right=n,this.finishNode(o,i?"LogicalExpression":"BinaryExpression")},se.parseMaybeUnary=function(e,t,r,n){var s,i=this.start,o=this.startLoc;if(this.isContextual("await")&&this.canAwait)s=this.parseAwait(n),t=!0;else if(this.type.prefix){var a=this.startNode(),l=this.type===D.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0,l,n),this.checkExpressionErrors(e,!0),l?this.checkLValSimple(a.argument):this.strict&&"delete"===a.operator&&isLocalVariableAccess(a.argument)?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):"delete"===a.operator&&isPrivateFieldAccess(a.argument)?this.raiseRecoverable(a.start,"Private fields can not be deleted"):t=!0,s=this.finishNode(a,l?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==D.privateId){if(s=this.parseExprSubscripts(e,n),this.checkExpressionErrors(e))return s;for(;this.type.postfix&&!this.canInsertSemicolon();){var p=this.startNodeAt(i,o);p.operator=this.value,p.prefix=!1,p.argument=s,this.checkLValSimple(s),this.next(),s=this.finishNode(p,"UpdateExpression")}}else(n||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),s=this.parsePrivateIdent(),this.type!==D._in&&this.unexpected();return r||!this.eat(D.starstar)?s:t?void this.unexpected(this.lastTokStart):this.buildBinary(i,o,s,this.parseMaybeUnary(null,!1,!1,n),"**",!1)},se.parseExprSubscripts=function(e,t){var r=this.start,n=this.startLoc,s=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===s.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return s;var i=this.parseSubscripts(s,r,n,!1,t);return e&&"MemberExpression"===i.type&&(e.parenthesizedAssign>=i.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=i.start&&(e.parenthesizedBind=-1),e.trailingComma>=i.start&&(e.trailingComma=-1)),i},se.parseSubscripts=function(e,t,r,n,s){for(var i=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,o=!1;;){var a=this.parseSubscript(e,t,r,n,i,o,s);if(a.optional&&(o=!0),a===e||"ArrowFunctionExpression"===a.type){if(o){var l=this.startNodeAt(t,r);l.expression=a,a=this.finishNode(l,"ChainExpression")}return a}e=a}},se.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(D.arrow)},se.parseSubscriptAsyncArrow=function(e,t,r,n){return this.parseArrowExpression(this.startNodeAt(e,t),r,!0,n)},se.parseSubscript=function(e,t,r,n,s,i,o){var a=this.options.ecmaVersion>=11,l=a&&this.eat(D.questionDot);n&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var p=this.eat(D.bracketL);if(p||l&&this.type!==D.parenL&&this.type!==D.backQuote||this.eat(D.dot)){var c=this.startNodeAt(t,r);c.object=e,p?(c.property=this.parseExpression(),this.expect(D.bracketR)):this.type===D.privateId&&"Super"!==e.type?c.property=this.parsePrivateIdent():c.property=this.parseIdent("never"!==this.options.allowReserved),c.computed=!!p,a&&(c.optional=l),e=this.finishNode(c,"MemberExpression")}else if(!n&&this.eat(D.parenL)){var u=new acorn_DestructuringErrors,d=this.yieldPos,h=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var f=this.parseExprList(D.parenR,this.options.ecmaVersion>=8,!1,u);if(s&&!l&&this.shouldParseAsyncArrow())return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=d,this.awaitPos=h,this.awaitIdentPos=m,this.parseSubscriptAsyncArrow(t,r,f,o);this.checkExpressionErrors(u,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=h||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var y=this.startNodeAt(t,r);y.callee=e,y.arguments=f,a&&(y.optional=l),e=this.finishNode(y,"CallExpression")}else if(this.type===D.backQuote){(l||i)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var b=this.startNodeAt(t,r);b.tag=e,b.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(b,"TaggedTemplateExpression")}return e},se.parseExprAtom=function(e,t,r){this.type===D.slash&&this.readRegexp();var n,s=this.potentialArrowAt===this.start;switch(this.type){case D._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),n=this.startNode(),this.next(),this.type!==D.parenL||this.allowDirectSuper||this.raise(n.start,"super() call outside constructor of a subclass"),this.type!==D.dot&&this.type!==D.bracketL&&this.type!==D.parenL&&this.unexpected(),this.finishNode(n,"Super");case D._this:return n=this.startNode(),this.next(),this.finishNode(n,"ThisExpression");case D.name:var i=this.start,o=this.startLoc,a=this.containsEsc,l=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!a&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(D._function))return this.overrideContext(re.f_expr),this.parseFunction(this.startNodeAt(i,o),0,!1,!0,t);if(s&&!this.canInsertSemicolon()){if(this.eat(D.arrow))return this.parseArrowExpression(this.startNodeAt(i,o),[l],!1,t);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===D.name&&!a&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(D.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,o),[l],!0,t)}return l;case D.regexp:var p=this.value;return(n=this.parseLiteral(p.value)).regex={pattern:p.pattern,flags:p.flags},n;case D.num:case D.string:return this.parseLiteral(this.value);case D._null:case D._true:case D._false:return(n=this.startNode()).value=this.type===D._null?null:this.type===D._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,"Literal");case D.parenL:var c=this.start,u=this.parseParenAndDistinguishExpression(s,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(u)&&(e.parenthesizedAssign=c),e.parenthesizedBind<0&&(e.parenthesizedBind=c)),u;case D.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(D.bracketR,!0,!0,e),this.finishNode(n,"ArrayExpression");case D.braceL:return this.overrideContext(re.b_expr),this.parseObj(!1,e);case D._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case D._class:return this.parseClass(this.startNode(),!1);case D._new:return this.parseNew();case D.backQuote:return this.parseTemplate();case D._import:return this.options.ecmaVersion>=11?this.parseExprImport(r):this.unexpected();default:return this.parseExprAtomDefault()}},se.parseExprAtomDefault=function(){this.unexpected()},se.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===D.parenL&&!e)return this.parseDynamicImport(t);if(this.type===D.dot){var r=this.startNodeAt(t.start,t.loc&&t.loc.start);return r.name="import",t.meta=this.finishNode(r,"Identifier"),this.parseImportMeta(t)}this.unexpected()},se.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(D.parenR)?e.options=null:(this.expect(D.comma),this.afterTrailingComma(D.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(D.parenR)||(this.expect(D.comma),this.afterTrailingComma(D.parenR)||this.unexpected())));else if(!this.eat(D.parenR)){var t=this.start;this.eat(D.comma)&&this.eat(D.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},se.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},se.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=null!=t.value?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},se.parseParenExpression=function(){this.expect(D.parenL);var e=this.parseExpression();return this.expect(D.parenR),e},se.shouldParseArrow=function(e){return!this.canInsertSemicolon()},se.parseParenAndDistinguishExpression=function(e,t){var r,n=this.start,s=this.startLoc,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o,a=this.start,l=this.startLoc,p=[],c=!0,u=!1,d=new acorn_DestructuringErrors,h=this.yieldPos,m=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==D.parenR;){if(c?c=!1:this.expect(D.comma),i&&this.afterTrailingComma(D.parenR,!0)){u=!0;break}if(this.type===D.ellipsis){o=this.start,p.push(this.parseParenItem(this.parseRestBinding())),this.type===D.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}p.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var f=this.lastTokEnd,y=this.lastTokEndLoc;if(this.expect(D.parenR),e&&this.shouldParseArrow(p)&&this.eat(D.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=h,this.awaitPos=m,this.parseParenArrowList(n,s,p,t);p.length&&!u||this.unexpected(this.lastTokStart),o&&this.unexpected(o),this.checkExpressionErrors(d,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=m||this.awaitPos,p.length>1?((r=this.startNodeAt(a,l)).expressions=p,this.finishNodeAt(r,"SequenceExpression",f,y)):r=p[0]}else r=this.parseParenExpression();if(this.options.preserveParens){var b=this.startNodeAt(n,s);return b.expression=r,this.finishNode(b,"ParenthesizedExpression")}return r},se.parseParenItem=function(e){return e},se.parseParenArrowList=function(e,t,r,n){return this.parseArrowExpression(this.startNodeAt(e,t),r,!1,n)};var ie=[];se.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===D.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var r=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var n=this.start,s=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),n,s,!0,!1),this.eat(D.parenL)?e.arguments=this.parseExprList(D.parenR,this.options.ecmaVersion>=8,!1):e.arguments=ie,this.finishNode(e,"NewExpression")},se.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===D.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),r.tail=this.type===D.backQuote,this.finishNode(r,"TemplateElement")},se.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var n=this.parseTemplateElement({isTagged:t});for(r.quasis=[n];!n.tail;)this.type===D.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(D.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(D.braceR),r.quasis.push(n=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")},se.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===D.name||this.type===D.num||this.type===D.string||this.type===D.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===D.star)&&!k.test(this.input.slice(this.lastTokEnd,this.start))},se.parseObj=function(e,t){var r=this.startNode(),n=!0,s={};for(r.properties=[],this.next();!this.eat(D.braceR);){if(n)n=!1;else if(this.expect(D.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(D.braceR))break;var i=this.parseProperty(e,t);e||this.checkPropClash(i,s,t),r.properties.push(i)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")},se.parseProperty=function(e,t){var r,n,s,i,o=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(D.ellipsis))return e?(o.argument=this.parseIdent(!1),this.type===D.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(o,"RestElement")):(o.argument=this.parseMaybeAssign(!1,t),this.type===D.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(o,"SpreadElement"));this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(e||t)&&(s=this.start,i=this.startLoc),e||(r=this.eat(D.star)));var a=this.containsEsc;return this.parsePropertyName(o),!e&&!a&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(o)?(n=!0,r=this.options.ecmaVersion>=9&&this.eat(D.star),this.parsePropertyName(o)):n=!1,this.parsePropertyValue(o,e,r,n,s,i,t,a),this.finishNode(o,"Property")},se.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var r="get"===e.kind?0:1;if(e.value.params.length!==r){var n=e.value.start;"get"===e.kind?this.raiseRecoverable(n,"getter should have no params"):this.raiseRecoverable(n,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},se.parsePropertyValue=function(e,t,r,n,s,i,o,a){(r||n)&&this.type===D.colon&&this.unexpected(),this.eat(D.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init"):this.options.ecmaVersion>=6&&this.type===D.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(r,n),e.kind="init"):t||a||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===D.comma||this.type===D.braceR||this.type===D.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((r||n)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=s),t?e.value=this.parseMaybeDefault(s,i,this.copyNode(e.key)):this.type===D.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(s,i,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected():((r||n)&&this.unexpected(),this.parseGetterSetter(e))},se.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(D.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(D.bracketR),e.key;e.computed=!1}return e.key=this.type===D.num||this.type===D.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},se.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},se.parseMethod=function(e,t,r){var n=this.startNode(),s=this.yieldPos,i=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|functionFlags(t,n.generator)|(r?128:0)),this.expect(D.parenL),n.params=this.parseBindingList(D.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0,!1),this.yieldPos=s,this.awaitPos=i,this.awaitIdentPos=o,this.finishNode(n,"FunctionExpression")},se.parseArrowExpression=function(e,t,r,n){var s=this.yieldPos,i=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(16|functionFlags(r,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,n),this.yieldPos=s,this.awaitPos=i,this.awaitIdentPos=o,this.finishNode(e,"ArrowFunctionExpression")},se.parseFunctionBody=function(e,t,r,n){var s=t&&this.type!==D.braceL,i=this.strict,o=!1;if(s)e.body=this.parseMaybeAssign(n),e.expression=!0,this.checkParams(e,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);i&&!a||(o=this.strictDirective(this.end))&&a&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!i&&!o&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,o&&!i),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()},se.isSimpleParamList=function(e){for(var t=0,r=e;t<r.length;t+=1){if("Identifier"!==r[t].type)return!1}return!0},se.checkParams=function(e,t){for(var r=Object.create(null),n=0,s=e.params;n<s.length;n+=1){var i=s[n];this.checkLValInnerPattern(i,1,t?null:r)}},se.parseExprList=function(e,t,r,n){for(var s=[],i=!0;!this.eat(e);){if(i)i=!1;else if(this.expect(D.comma),t&&this.afterTrailingComma(e))break;var o=void 0;r&&this.type===D.comma?o=null:this.type===D.ellipsis?(o=this.parseSpread(n),n&&this.type===D.comma&&n.trailingComma<0&&(n.trailingComma=this.start)):o=this.parseMaybeAssign(!1,n),s.push(o)}return s},se.checkUnreserved=function(e){var t=e.start,r=e.end,n=e.name;(this.inGenerator&&"yield"===n&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===n&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().flags&q||"arguments"!==n||this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==n&&"await"!==n||this.raise(t,"Cannot use "+n+" in class static initialization block"),this.keywords.test(n)&&this.raise(t,"Unexpected keyword '"+n+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,r).indexOf("\\"))||(this.strict?this.reservedWordsStrict:this.reservedWords).test(n)&&(this.inAsync||"await"!==n||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+n+"' is reserved"))},se.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),"await"!==t.name||this.awaitIdentPos||(this.awaitIdentPos=t.start)),t},se.parseIdentNode=function(){var e=this.startNode();return this.type===D.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,"class"!==e.name&&"function"!==e.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop(),this.type=D.name):this.unexpected(),e},se.parsePrivateIdent=function(){var e=this.startNode();return this.type===D.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},se.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===D.semi||this.canInsertSemicolon()||this.type!==D.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(D.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},se.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var oe=acorn_Parser.prototype;oe.raise=function(e,t){var r=getLineInfo(this.input,e);t+=" ("+r.line+":"+r.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var n=new SyntaxError(t);throw n.pos=e,n.loc=r,n.raisedAt=this.pos,n},oe.raiseRecoverable=oe.raise,oe.curPosition=function(){if(this.options.locations)return new acorn_Position(this.curLine,this.pos-this.lineStart)};var ae=acorn_Parser.prototype,acorn_Scope=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};ae.enterScope=function(e){this.scopeStack.push(new acorn_Scope(e))},ae.exitScope=function(){this.scopeStack.pop()},ae.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},ae.declareName=function(e,t,r){var n=!1;if(2===t){var s=this.currentScope();n=s.lexical.indexOf(e)>-1||s.functions.indexOf(e)>-1||s.var.indexOf(e)>-1,s.lexical.push(e),this.inModule&&1&s.flags&&delete this.undefinedExports[e]}else if(4===t){this.currentScope().lexical.push(e)}else if(3===t){var i=this.currentScope();n=this.treatFunctionsAsVar?i.lexical.indexOf(e)>-1:i.lexical.indexOf(e)>-1||i.var.indexOf(e)>-1,i.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var a=this.scopeStack[o];if(a.lexical.indexOf(e)>-1&&!(32&a.flags&&a.lexical[0]===e)||!this.treatFunctionsAsVarInScope(a)&&a.functions.indexOf(e)>-1){n=!0;break}if(a.var.push(e),this.inModule&&1&a.flags&&delete this.undefinedExports[e],a.flags&q)break}n&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")},ae.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},ae.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ae.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(771&t.flags)return t}},ae.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(771&t.flags&&!(16&t.flags))return t}};var acorn_Node=function(e,t,r){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new acorn_SourceLocation(e,r)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},le=acorn_Parser.prototype;function finishNodeAt(e,t,r,n){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=n),this.options.ranges&&(e.range[1]=r),e}le.startNode=function(){return new acorn_Node(this,this.start,this.startLoc)},le.startNodeAt=function(e,t){return new acorn_Node(this,e,t)},le.finishNode=function(e,t){return finishNodeAt.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},le.finishNodeAt=function(e,t,r,n){return finishNodeAt.call(this,e,t,r,n)},le.copyNode=function(e){var t=new acorn_Node(this,e.start,this.startLoc);for(var r in e)t[r]=e[r];return t};var pe="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ce=pe+" Extended_Pictographic",ue=ce+" EBase EComp EMod EPres ExtPict",de={9:pe,10:ce,11:ce,12:ue,13:ue,14:ue},he={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},me="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",fe="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",ye=fe+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",be=ye+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ge=be+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",xe=ge+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",ve={9:fe,10:ye,11:be,12:ge,13:xe,14:xe+" Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz"},Ee={};function buildUnicodeData(e){var t=Ee[e]={binary:wordsRegexp(de[e]+" "+me),binaryOfStrings:wordsRegexp(he[e]),nonBinary:{General_Category:wordsRegexp(me),Script:wordsRegexp(ve[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var Te=0,Se=[9,10,11,12,13,14];Te<Se.length;Te+=1){buildUnicodeData(Se[Te])}var Pe=acorn_Parser.prototype,acorn_BranchID=function(e,t){this.parent=e,this.base=t||this};acorn_BranchID.prototype.separatedFrom=function(e){for(var t=this;t;t=t.parent)for(var r=e;r;r=r.parent)if(t.base===r.base&&t!==r)return!0;return!1},acorn_BranchID.prototype.sibling=function(){return new acorn_BranchID(this.parent,this.base)};var acorn_RegExpValidationState=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Ee[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function isRegularExpressionModifier(e){return 105===e||109===e||115===e}function isSyntaxCharacter(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function isControlLetter(e){return e>=65&&e<=90||e>=97&&e<=122}acorn_RegExpValidationState.prototype.reset=function(e,t,r){var n=-1!==r.indexOf("v"),s=-1!==r.indexOf("u");this.start=0|e,this.source=t+"",this.flags=r,n&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=s&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=s&&this.parser.options.ecmaVersion>=9)},acorn_RegExpValidationState.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},acorn_RegExpValidationState.prototype.at=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(e>=n)return-1;var s=r.charCodeAt(e);if(!t&&!this.switchU||s<=55295||s>=57344||e+1>=n)return s;var i=r.charCodeAt(e+1);return i>=56320&&i<=57343?(s<<10)+i-56613888:s},acorn_RegExpValidationState.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(e>=n)return n;var s,i=r.charCodeAt(e);return!t&&!this.switchU||i<=55295||i>=57344||e+1>=n||(s=r.charCodeAt(e+1))<56320||s>57343?e+1:e+2},acorn_RegExpValidationState.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},acorn_RegExpValidationState.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},acorn_RegExpValidationState.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},acorn_RegExpValidationState.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},acorn_RegExpValidationState.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var r=this.pos,n=0,s=e;n<s.length;n+=1){var i=s[n],o=this.at(r,t);if(-1===o||o!==i)return!1;r=this.nextIndex(r,t)}return this.pos=r,!0},Pe.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,n=!1,s=!1,i=0;i<r.length;i++){var o=r.charAt(i);-1===t.indexOf(o)&&this.raise(e.start,"Invalid regular expression flag"),r.indexOf(o,i+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===o&&(n=!0),"v"===o&&(s=!0)}this.options.ecmaVersion>=15&&n&&s&&this.raise(e.start,"Invalid regular expression flag")},Pe.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&function(e){for(var t in e)return!0;return!1}(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},Pe.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t<r.length;t+=1){var n=r[t];e.groupNames[n]||e.raise("Invalid named capture referenced")}},Pe.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new acorn_BranchID(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},Pe.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},Pe.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},Pe.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var r=!1;if(this.options.ecmaVersion>=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1},Pe.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},Pe.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Pe.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var n=0,s=-1;if(this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue),e.eat(125)))return-1!==s&&s<n&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=r}return!1},Pe.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},Pe.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},Pe.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var r=this.regexp_eatModifiers(e),n=e.eat(45);if(r||n){for(var s=0;s<r.length;s++){var i=r.charAt(s);r.indexOf(i,s+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(n){var o=this.regexp_eatModifiers(e);r||o||58!==e.current()||e.raise("Invalid regular expression modifiers");for(var a=0;a<o.length;a++){var l=o.charAt(a);(o.indexOf(l,a+1)>-1||r.indexOf(l)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1},Pe.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},Pe.regexp_eatModifiers=function(e){for(var t="",r=0;-1!==(r=e.current())&&isRegularExpressionModifier(r);)t+=codePointToString(r),e.advance();return t},Pe.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},Pe.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},Pe.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!isSyntaxCharacter(t)&&(e.lastIntValue=t,e.advance(),!0)},Pe.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;-1!==(r=e.current())&&!isSyntaxCharacter(r);)e.advance();return e.pos!==t},Pe.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t)&&(e.advance(),!0)},Pe.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,r=e.groupNames[e.lastStringValue];if(r)if(t)for(var n=0,s=r;n<s.length;n+=1){s[n].separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(r||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}},Pe.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},Pe.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=codePointToString(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=codePointToString(e.lastIntValue);return!0}return!1},Pe.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),function(e){return isIdentifierStart(e,!0)||36===e||95===e}(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},Pe.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),function(e){return isIdentifierChar(e,!0)||36===e||95===e||8204===e||8205===e}(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},Pe.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},Pe.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1},Pe.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},Pe.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},Pe.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Pe.regexp_eatZero=function(e){return 48===e.current()&&!isDecimalDigit(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Pe.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},Pe.regexp_eatControlLetter=function(e){var t=e.current();return!!isControlLetter(t)&&(e.lastIntValue=t%32,e.advance(),!0)},Pe.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var r,n=e.pos,s=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(s&&i>=55296&&i<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=1024*(i-55296)+(a-56320)+65536,!0}e.pos=o,e.lastIntValue=i}return!0}if(s&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&((r=e.lastIntValue)>=0&&r<=1114111))return!0;s&&e.raise("Invalid unicode escape"),e.pos=n}return!1},Pe.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t)&&(e.lastIntValue=t,e.advance(),!0)},Pe.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1};function isUnicodePropertyNameCharacter(e){return isControlLetter(e)||95===e}function isUnicodePropertyValueCharacter(e){return isUnicodePropertyNameCharacter(e)||isDecimalDigit(e)}function isDecimalDigit(e){return e>=48&&e<=57}function isHexDigit(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function hexToInt(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function isOctalDigit(e){return e>=48&&e<=55}Pe.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),1;var r=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((r=80===t)||112===t)){var n;if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(n=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return r&&2===n&&e.raise("Invalid property name"),n;e.raise("Invalid property name")}return 0},Pe.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,n),1}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,s)}return 0},Pe.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){B(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")},Pe.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?1:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?2:void e.raise("Invalid property name")},Pe.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";isUnicodePropertyNameCharacter(t=e.current());)e.lastStringValue+=codePointToString(t),e.advance();return""!==e.lastStringValue},Pe.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";isUnicodePropertyValueCharacter(t=e.current());)e.lastStringValue+=codePointToString(t),e.advance();return""!==e.lastStringValue},Pe.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Pe.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),r=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&2===r&&e.raise("Negated character class may contain strings"),!0}return!1},Pe.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},Pe.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;!e.switchU||-1!==t&&-1!==r||e.raise("Invalid character class"),-1!==t&&-1!==r&&t>r&&e.raise("Range out of order in character class")}}},Pe.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(99===r||isOctalDigit(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var n=e.current();return 93!==n&&(e.lastIntValue=n,e.advance(),!0)},Pe.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},Pe.regexp_classSetExpression=function(e){var t,r=1;if(this.regexp_eatClassSetRange(e));else if(t=this.regexp_eatClassSetOperand(e)){2===t&&(r=2);for(var n=e.pos;e.eatChars([38,38]);)38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))?2!==t&&(r=1):e.raise("Invalid character in character class");if(n!==e.pos)return r;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(n!==e.pos)return r}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return r;2===t&&(r=2)}},Pe.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;return-1!==r&&-1!==n&&r>n&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},Pe.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},Pe.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var r=e.eat(94),n=this.regexp_classContents(e);if(e.eat(93))return r&&2===n&&e.raise("Negated character class may contain strings"),n;e.pos=t}if(e.eat(92)){var s=this.regexp_eatCharacterClassEscape(e);if(s)return s;e.pos=t}return null},Pe.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var r=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return r}else e.raise("Invalid escape");e.pos=t}return null},Pe.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},Pe.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},Pe.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return!(!this.regexp_eatCharacterEscape(e)&&!this.regexp_eatClassSetReservedPunctuator(e))||(e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1));var r=e.current();return!(r<0||r===e.lookahead()&&function(e){return 33===e||e>=35&&e<=38||e>=42&&e<=44||46===e||e>=58&&e<=64||94===e||96===e||126===e}(r))&&(!function(e){return 40===e||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125}(r)&&(e.advance(),e.lastIntValue=r,!0))},Pe.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return!!function(e){return 33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e}(t)&&(e.lastIntValue=t,e.advance(),!0)},Pe.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!isDecimalDigit(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},Pe.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},Pe.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;isDecimalDigit(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t},Pe.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;isHexDigit(r=e.current());)e.lastIntValue=16*e.lastIntValue+hexToInt(r),e.advance();return e.pos!==t},Pe.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*r+e.lastIntValue:e.lastIntValue=8*t+r}else e.lastIntValue=t;return!0}return!1},Pe.regexp_eatOctalDigit=function(e){var t=e.current();return isOctalDigit(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},Pe.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var n=0;n<t;++n){var s=e.current();if(!isHexDigit(s))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+hexToInt(s),e.advance()}return!0};var acorn_Token=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new acorn_SourceLocation(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},_e=acorn_Parser.prototype;function stringToBigInt(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}_e.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new acorn_Token(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},_e.getToken=function(){return this.next(),new acorn_Token(this)},"undefined"!=typeof Symbol&&(_e[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===D.eof,value:t}}}}),_e.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(D.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},_e.readToken=function(e){return isIdentifierStart(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},_e.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var r=this.input.charCodeAt(e+1);return r<=56319||r>=57344?t:(t<<10)+r-56613888},_e.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},_e.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(-1===r&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(var n=void 0,s=t;(n=nextLineBreak(this.input,s,this.pos))>-1;)++this.curLine,s=this.lineStart=n;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,r),t,this.pos,e,this.curPosition())},_e.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!isNewLine(n);)n=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())},_e.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&O.test(String.fromCharCode(e))))break e;++this.pos}}},_e.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)},_e.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(D.ellipsis)):(++this.pos,this.finishToken(D.dot))},_e.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(D.assign,2):this.finishOp(D.slash,1)},_e.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,n=42===e?D.star:D.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++r,n=D.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(D.assign,r+1):this.finishOp(n,r)},_e.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(D.assign,3);return this.finishOp(124===e?D.logicalOR:D.logicalAND,2)}return 61===t?this.finishOp(D.assign,2):this.finishOp(124===e?D.bitwiseOR:D.bitwiseAND,1)},_e.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(D.assign,2):this.finishOp(D.bitwiseXOR,1)},_e.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!k.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(D.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(D.assign,2):this.finishOp(D.plusMin,1)},_e.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+r)?this.finishOp(D.assign,r+1):this.finishOp(D.bitShift,r)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(r=2),this.finishOp(D.relational,r)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},_e.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(D.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(D.arrow)):this.finishOp(61===e?D.eq:D.prefix,1)},_e.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(D.questionDot,2)}if(63===t){if(e>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(D.assign,3);return this.finishOp(D.coalesce,2)}}return this.finishOp(D.question,1)},_e.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,isIdentifierStart(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(D.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+codePointToString(e)+"'")},_e.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(D.parenL);case 41:return++this.pos,this.finishToken(D.parenR);case 59:return++this.pos,this.finishToken(D.semi);case 44:return++this.pos,this.finishToken(D.comma);case 91:return++this.pos,this.finishToken(D.bracketL);case 93:return++this.pos,this.finishToken(D.bracketR);case 123:return++this.pos,this.finishToken(D.braceL);case 125:return++this.pos,this.finishToken(D.braceR);case 58:return++this.pos,this.finishToken(D.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(D.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(D.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+codePointToString(e)+"'")},_e.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)},_e.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(k.test(n)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if("["===n)t=!0;else if("]"===n&&t)t=!1;else if("/"===n&&!t)break;e="\\"===n}++this.pos}var s=this.input.slice(r,this.pos);++this.pos;var i=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(i);var a=this.regexpState||(this.regexpState=new acorn_RegExpValidationState(this));a.reset(r,s,o),this.validateRegExpFlags(a),this.validateRegExpPattern(a);var l=null;try{l=new RegExp(s,o)}catch(e){}return this.finishToken(D.regexp,{pattern:s,flags:o,value:l})},_e.readInt=function(e,t,r){for(var n=this.options.ecmaVersion>=12&&void 0===t,s=r&&48===this.input.charCodeAt(this.pos),i=this.pos,o=0,a=0,l=0,p=null==t?1/0:t;l<p;++l,++this.pos){var c=this.input.charCodeAt(this.pos),u=void 0;if(n&&95===c)s&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===a&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===l&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),a=c;else{if((u=c>=97?c-97+10:c>=65?c-65+10:c>=48&&c<=57?c-48:1/0)>=e)break;a=c,o=o*e+u}}return n&&95===a&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===i||null!=t&&this.pos-i!==t?null:o},_e.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return null==r&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(r=stringToBigInt(this.input.slice(t,this.pos)),++this.pos):isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(D.num,r)},_e.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var r=this.pos-t>=2&&48===this.input.charCodeAt(t);r&&this.strict&&this.raise(t,"Invalid number");var n=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&110===n){var s=stringToBigInt(this.input.slice(t,this.pos));return++this.pos,isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(D.num,s)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),46!==n||r||(++this.pos,this.readInt(10),n=this.input.charCodeAt(this.pos)),69!==n&&101!==n||r||(43!==(n=this.input.charCodeAt(++this.pos))&&45!==n||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var i,o=(i=this.input.slice(t,this.pos),r?parseInt(i,8):parseFloat(i.replace(/_/g,"")));return this.finishToken(D.num,o)},_e.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},_e.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;92===n?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):8232===n||8233===n?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(isNewLine(n)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(D.string,t)};var Ae={};_e.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==Ae)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},_e.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Ae;this.raise(e,t)},_e.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==D.template&&this.type!==D.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(D.template,e)):36===r?(this.pos+=2,this.finishToken(D.dollarBraceL)):(++this.pos,this.finishToken(D.backQuote));if(92===r)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(isNewLine(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(r)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},_e.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(D.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":"\n"===this.input[this.pos+1]&&++this.pos;case"\n":case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},_e.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return codePointToString(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var r=this.pos-1;this.invalidStringToken(r,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(n,8);return s>255&&(n=n.slice(0,-1),s=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),"0"===n&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(s)}return isNewLine(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}},_e.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return null===r&&this.invalidStringToken(t,"Bad character escape sequence"),r},_e.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,n=this.options.ecmaVersion>=6;this.pos<this.input.length;){var s=this.fullCharCodeAtPos();if(isIdentifierChar(s,n))this.pos+=s<=65535?1:2;else{if(92!==s)break;this.containsEsc=!0,e+=this.input.slice(r,this.pos);var i=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(t?isIdentifierStart:isIdentifierChar)(o,n)||this.invalidStringToken(i,"Invalid Unicode escape"),e+=codePointToString(o),r=this.pos}t=!1}return e+this.input.slice(r,this.pos)},_e.readWord=function(){var e=this.readWord1(),t=D.name;return this.keywords.test(e)&&(t=I[e]),this.finishToken(t,e)};acorn_Parser.acorn={Parser:acorn_Parser,version:"8.16.0",defaultOptions:$,Position:acorn_Position,SourceLocation:acorn_SourceLocation,getLineInfo,Node:acorn_Node,TokenType:acorn_TokenType,tokTypes:D,keywordTypes:I,TokContext:acorn_TokContext,tokContexts:re,isIdentifierChar,isIdentifierStart,Token:acorn_Token,isNewLine,lineBreak:k,lineBreakG:N,nonASCIIwhitespace:O};const Ce=require("node:module"),we=(require("node:fs"),require("node:url")),Ie=require("node:assert"),De=(require("node:process"),require("node:path"),require("node:v8")),ke=require("node:util");new Set(Ce.builtinModules);function normalizeSlash(e){return e.replace(/\\/g,"/")}const Ne={}.hasOwnProperty,Oe=/^([A-Z][a-z\d]*)+$/,je=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),Fe={};function formatList(e,t="and"){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}const Le=new Map;let Me;function createError(e,t,r){return Le.set(e,t),function(e,t){return NodeError;function NodeError(...r){const n=Error.stackTraceLimit;isErrorStackTraceLimitWritable()&&(Error.stackTraceLimit=0);const s=new e;isErrorStackTraceLimitWritable()&&(Error.stackTraceLimit=n);const i=function(e,t,r){const n=Le.get(e);if(Ie.ok(void 0!==n,"expected `message` to be found"),"function"==typeof n)return Ie.ok(n.length<=t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${n.length}).`),Reflect.apply(n,r,t);const s=/%[dfijoOs]/g;let i=0;for(;null!==s.exec(n);)i++;return Ie.ok(i===t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${i}).`),0===t.length?n:(t.unshift(n),Reflect.apply(ke.format,null,t))}(t,r,s);return Object.defineProperties(s,{message:{value:i,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),Be(s),s.code=t,s}}(r,e)}function isErrorStackTraceLimitWritable(){try{if(De.startupSnapshot.isBuildingSnapshot())return!1}catch{}const e=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return void 0===e?Object.isExtensible(Error):Ne.call(e,"writable")&&void 0!==e.writable?e.writable:void 0!==e.set}Fe.ERR_INVALID_ARG_TYPE=createError("ERR_INVALID_ARG_TYPE",(e,t,r)=>{Ie.ok("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let n="The ";if(e.endsWith(" argument"))n+=`${e} `;else{const t=e.includes(".")?"property":"argument";n+=`"${e}" ${t} `}n+="must be ";const s=[],i=[],o=[];for(const e of t)Ie.ok("string"==typeof e,"All expected entries have to be of type string"),je.has(e)?s.push(e.toLowerCase()):null===Oe.exec(e)?(Ie.ok("object"!==e,'The value "object" should be written as "Object"'),o.push(e)):i.push(e);if(i.length>0){const e=s.indexOf("object");-1!==e&&(s.slice(e,1),i.push("Object"))}return s.length>0&&(n+=`${s.length>1?"one of type":"of type"} ${formatList(s,"or")}`,(i.length>0||o.length>0)&&(n+=" or ")),i.length>0&&(n+=`an instance of ${formatList(i,"or")}`,o.length>0&&(n+=" or ")),o.length>0&&(o.length>1?n+=`one of ${formatList(o,"or")}`:(o[0].toLowerCase()!==o[0]&&(n+="an "),n+=`${o[0]}`)),n+=`. Received ${function(e){if(null==e)return String(e);if("function"==typeof e&&e.name)return`function ${e.name}`;if("object"==typeof e)return e.constructor&&e.constructor.name?`an instance of ${e.constructor.name}`:`${(0,ke.inspect)(e,{depth:-1})}`;let t=(0,ke.inspect)(e,{colors:!1});t.length>28&&(t=`${t.slice(0,25)}...`);return`type ${typeof e} (${t})`}(r)}`,n},TypeError),Fe.ERR_INVALID_MODULE_SPECIFIER=createError("ERR_INVALID_MODULE_SPECIFIER",(e,t,r=void 0)=>`Invalid module "${e}" ${t}${r?` imported from ${r}`:""}`,TypeError),Fe.ERR_INVALID_PACKAGE_CONFIG=createError("ERR_INVALID_PACKAGE_CONFIG",(e,t,r)=>`Invalid package config ${e}${t?` while importing ${t}`:""}${r?`. ${r}`:""}`,Error),Fe.ERR_INVALID_PACKAGE_TARGET=createError("ERR_INVALID_PACKAGE_TARGET",(e,t,r,n=!1,s=void 0)=>{const i="string"==typeof r&&!n&&r.length>0&&!r.startsWith("./");return"."===t?(Ie.ok(!1===n),`Invalid "exports" main target ${JSON.stringify(r)} defined in the package config ${e}package.json${s?` imported from ${s}`:""}${i?'; targets must start with "./"':""}`):`Invalid "${n?"imports":"exports"}" target ${JSON.stringify(r)} defined for '${t}' in the package config ${e}package.json${s?` imported from ${s}`:""}${i?'; targets must start with "./"':""}`},Error),Fe.ERR_MODULE_NOT_FOUND=createError("ERR_MODULE_NOT_FOUND",(e,t,r=!1)=>`Cannot find ${r?"module":"package"} '${e}' imported from ${t}`,Error),Fe.ERR_NETWORK_IMPORT_DISALLOWED=createError("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error),Fe.ERR_PACKAGE_IMPORT_NOT_DEFINED=createError("ERR_PACKAGE_IMPORT_NOT_DEFINED",(e,t,r)=>`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:""} imported from ${r}`,TypeError),Fe.ERR_PACKAGE_PATH_NOT_EXPORTED=createError("ERR_PACKAGE_PATH_NOT_EXPORTED",(e,t,r=void 0)=>"."===t?`No "exports" main defined in ${e}package.json${r?` imported from ${r}`:""}`:`Package subpath '${t}' is not defined by "exports" in ${e}package.json${r?` imported from ${r}`:""}`,Error),Fe.ERR_UNSUPPORTED_DIR_IMPORT=createError("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error),Fe.ERR_UNSUPPORTED_RESOLVE_REQUEST=createError("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError),Fe.ERR_UNKNOWN_FILE_EXTENSION=createError("ERR_UNKNOWN_FILE_EXTENSION",(e,t)=>`Unknown file extension "${e}" for ${t}`,TypeError),Fe.ERR_INVALID_ARG_VALUE=createError("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let n=(0,ke.inspect)(t);n.length>128&&(n=`${n.slice(0,128)}...`);return`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${n}`},TypeError);const Be=function(e){const t="__node_internal_"+e.name;return Object.defineProperty(e,"name",{value:t}),e}(function(e){const t=isErrorStackTraceLimitWritable();return t&&(Me=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(e),t&&(Error.stackTraceLimit=Me),e});const{ERR_INVALID_PACKAGE_CONFIG:Re}=Fe;new Map;const{ERR_UNKNOWN_FILE_EXTENSION:Ue}=Fe;const Ve=Object.freeze(["node","import"]);new Set(Ve);RegExp.prototype[Symbol.replace];const{ERR_INVALID_MODULE_SPECIFIER:$e,ERR_INVALID_PACKAGE_CONFIG:Ke,ERR_INVALID_PACKAGE_TARGET:We,ERR_MODULE_NOT_FOUND:qe,ERR_PACKAGE_IMPORT_NOT_DEFINED:He,ERR_PACKAGE_PATH_NOT_EXPORTED:ze,ERR_UNSUPPORTED_DIR_IMPORT:Ge,ERR_UNSUPPORTED_RESOLVE_REQUEST:Xe}=Fe;new Set;function fileURLToPath(e){return"string"!=typeof e||e.startsWith("file://")?normalizeSlash((0,we.fileURLToPath)(e)):normalizeSlash(e)}function pathToFileURL(e){return(0,we.pathToFileURL)(fileURLToPath(e)).toString()}function importMetaPathsPlugin(e,t){return{name:"import-meta-paths",visitor:{Program(e){const r=[],n=[],s=[];e.traverse({MemberExpression(e){const{node:t}=e;if("MetaProperty"===t.object.type&&"import"===t.object.meta.name&&"meta"===t.object.property.name&&"Identifier"===t.property.type)switch(t.property.name){case"url":r.push(e);break;case"dirname":n.push(e);break;case"filename":s.push(e)}}});for(const e of r)e.replaceWith(m.smart.ast`${t.filename?JSON.stringify(pathToFileURL(t.filename)):"require('url').pathToFileURL(__filename).toString()"}`);for(const e of n)e.replaceWith(m.smart.ast`${t.filename?JSON.stringify(pathe_M_eThtNZ_dirname(fileURLToPath(pathToFileURL(t.filename)))):"__dirname"}`);for(const e of s)e.replaceWith(m.smart.ast`${t.filename?JSON.stringify(fileURLToPath(pathToFileURL(t.filename))):"__filename"}`)}}}}var Je=__webpack_require__("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-module-imports/lib/index.js"),Ye=__webpack_require__("./node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@babel/helper-module-transforms/lib/index.js"),Qe=__webpack_require__("./node_modules/.pnpm/@[email protected]/node_modules/@babel/helper-simple-access/lib/index.js");function transformDynamicImport(t,r,n){t.replaceWith((0,Ye.buildDynamicImport)(t.node,!0,!1,t=>((t,r,n)=>{const s=e.template.expression.ast`jitiImport(${t})`;return n?s:e.types.callExpression(e.types.memberExpression(s,e.types.identifier("then")),[e.types.arrowFunctionExpression([e.types.identifier("m")],e.types.callExpression(r.addHelper("interopRequireWildcard"),[e.types.identifier("m")]))])})(t,n,r)))}const Ze="@babel/plugin-transform-modules-commonjs/customWrapperPlugin";function findMap(e,t){if(e)for(const r of e){const e=t(r);if(null!=e)return e}}const et=(0,d.declare)((t,r)=>{const{strictNamespace:n=!1,mjsStrictNamespace:s=n,allowTopLevelThis:i,strict:o,strictMode:a,noInterop:l,importInterop:p,lazy:c=!1,allowCommonJSExports:u=!0,loose:d=!1,async:h=!1}=r,m=t.assumption("constantReexports")??d,f=t.assumption("enumerableModuleMeta")??d,y=t.assumption("noIncompleteNsImportDetection")??!1;if(!("boolean"==typeof c||"function"==typeof c||Array.isArray(c)&&c.every(e=>"string"==typeof e)))throw new Error(".lazy must be a boolean, array of strings, or a function");if("boolean"!=typeof n)throw new TypeError(".strictNamespace must be a boolean, or undefined");if("boolean"!=typeof s)throw new TypeError(".mjsStrictNamespace must be a boolean, or undefined");const getAssertion=t=>e.template.expression.ast`- (function(){- throw new Error(- "The CommonJS '" + "${t}" + "' variable is not available in ES6 modules." +- "Consider setting setting sourceType:script or sourceType:unambiguous in your " +- "Babel config for this file.");- })()- `,b={ReferencedIdentifier(e){const t=e.node.name;if("module"!==t&&"exports"!==t)return;const r=e.scope.getBinding(t);this.scope.getBinding(t)!==r||e.parentPath.isObjectProperty({value:e.node})&&e.parentPath.parentPath.isObjectPattern()||e.parentPath.isAssignmentExpression({left:e.node})||e.isAssignmentExpression({left:e.node})||e.replaceWith(getAssertion(t))},UpdateExpression(t){const r=t.get("argument");if(!r.isIdentifier())return;const n=r.node.name;if("module"!==n&&"exports"!==n)return;const s=t.scope.getBinding(n);this.scope.getBinding(n)===s&&t.replaceWith(e.types.assignmentExpression(t.node.operator[0]+"=",r.node,getAssertion(n)))},AssignmentExpression(t){const r=t.get("left");if(r.isIdentifier()){const n=r.node.name;if("module"!==n&&"exports"!==n)return;const s=t.scope.getBinding(n);if(this.scope.getBinding(n)!==s)return;const i=t.get("right");i.replaceWith(e.types.sequenceExpression([i.node,getAssertion(n)]))}else if(r.isPattern()){const n=r.getOuterBindingIdentifiers(),s=Object.keys(n).find(e=>("module"===e||"exports"===e)&&this.scope.getBinding(e)===t.scope.getBinding(e));if(s){const r=t.get("right");r.replaceWith(e.types.sequenceExpression([r.node,getAssertion(s)]))}}}};return{name:"transform-modules-commonjs",pre(){this.file.set("@babel/plugin-transform-modules-*","commonjs"),c&&function(e,t){let r=e.get(Ze);r||e.set(Ze,r=[]),r.push(t)}(this.file,(t=>({name:"babel-plugin-transform-modules-commonjs/lazy",version:"7.24.7",getWrapperPayload:(e,r)=>(0,Ye.isSideEffectImport)(r)||r.reexportAll?null:!0===t?e.includes(".")?null:"lazy/function":Array.isArray(t)?t.includes(e)?"lazy/function":null:"function"==typeof t?t(e)?"lazy/function":null:void 0,buildRequireWrapper(t,r,n,s){if("lazy/function"===n)return!!s&&e.template.statement.ast`- function ${t}() {- const data = ${r};- ${t} = function(){ return data; };- return data;- }- `},wrapReference(t,r){if("lazy/function"===r)return e.types.callExpression(t,[])}}))(c))},visitor:{["CallExpression"+(t.types.importExpression?"|ImportExpression":"")](t){if(t.isCallExpression()&&!e.types.isImport(t.node.callee))return;let{scope:r}=t;do{r.rename("require")}while(r=r.parent);transformDynamicImport(t,l,this.file)},Program:{exit(t,d){if(!(0,Je.isModule)(t))return;t.scope.rename("exports"),t.scope.rename("module"),t.scope.rename("require"),t.scope.rename("__filename"),t.scope.rename("__dirname"),u||(process.env.BABEL_8_BREAKING?(0,Qe.A)(t,new Set(["module","exports"])):(0,Qe.A)(t,new Set(["module","exports"]),!1),t.traverse(b,{scope:t.scope}));let g=(0,Ye.getModuleName)(this.file.opts,r);g&&(g=e.types.stringLiteral(g));const x=function(e){const t=e.get(Ze);return{getWrapperPayload:(...e)=>findMap(t,t=>t.getWrapperPayload?.(...e)),wrapReference:(...e)=>findMap(t,t=>t.wrapReference?.(...e)),buildRequireWrapper:(...e)=>findMap(t,t=>t.buildRequireWrapper?.(...e))}}(this.file),{meta:v,headers:E}=(0,Ye.rewriteModuleStatementsAndPrepareHeader)(t,{exportName:"exports",constantReexports:m,enumerableModuleMeta:f,strict:o,strictMode:a,allowTopLevelThis:i,noInterop:l,importInterop:p,wrapReference:x.wrapReference,getWrapperPayload:x.getWrapperPayload,esNamespaceOnly:"string"==typeof d.filename&&/\.mjs$/.test(d.filename)?s:n,noIncompleteNsImportDetection:y,filename:this.file.opts.filename});for(const[r,n]of v.source){const s=h?e.types.awaitExpression(e.types.callExpression(e.types.identifier("jitiImport"),[e.types.stringLiteral(r)])):e.types.callExpression(e.types.identifier("require"),[e.types.stringLiteral(r)]);let i;if((0,Ye.isSideEffectImport)(n)){if(c&&"function"===n.wrap)throw new Error("Assertion failure");i=e.types.expressionStatement(s)}else{const r=(0,Ye.wrapInterop)(t,s,n.interop)||s;if(n.wrap){const e=x.buildRequireWrapper(n.name,r,n.wrap,n.referenced);if(!1===e)continue;i=e}i??=e.template.statement.ast`- var ${n.name} = ${r};- `}i.loc=n.loc,E.push(i,...(0,Ye.buildNamespaceInitStatements)(v,n,m,x.wrapReference))}(0,Ye.ensureStatementsHoisted)(E),t.unshiftContainer("body",E),t.get("body").forEach(e=>{E.includes(e.node)&&e.isVariableDeclaration()&&e.scope.registerDeclaration(e)})}}}}});function transform(r){const c={babelrc:!1,configFile:!1,compact:!1,retainLines:"boolean"!=typeof r.retainLines||r.retainLines,filename:"",cwd:"/",...r.babel,plugins:[[et,{allowTopLevelThis:!0,noInterop:!r.interopDefault,async:r.async}],[importMetaPathsPlugin,{filename:r.filename}],[importMetaEnvPlugin],[importMetaResolvePlugin],[n.A],[a.A],[o.A]]};r.jsx&&c.plugins.push([i.default],[l.A,Object.assign({},r.jsx)]),r.ts&&(c.plugins.push([p.default,{allowDeclareFields:!0,isTSX:r.jsx&&/\.[cm]?tsx$/.test(r.filename||"")}]),c.plugins.unshift([h],[t.A,{legacy:!0}]),c.plugins.push(u(),s.A)),r.babel&&Array.isArray(r.babel.plugins)&&c.plugins?.push(...r.babel.plugins);try{return{code:(0,e.transformSync)(r.source,c)?.code||""}}catch(e){return{error:e,code:"exports.__JITI_ERROR__ = "+JSON.stringify({filename:r.filename,line:e.loc?.line||0,column:e.loc?.column||0,code:e.code?.replace("BABEL_","").replace("PARSE_ERROR","ParseError"),message:e.message?.replace("/: ","").replace(/\(.+\)\s*$/,"")})}}}})(),module.exports=r.default})();\ No newline at end of filediff --git a/crates/pa-core/src/extensions/vendor/jiti/dist/jiti.cjs b/crates/pa-core/src/extensions/vendor/jiti/dist/jiti.cjsdeleted file mode 100644index 86b6fce796..0000000000--- a/crates/pa-core/src/extensions/vendor/jiti/dist/jiti.cjs+++ /dev/null@@ -1 +0,0 @@-(()=>{var e={"./node_modules/.pnpm/[email protected]/node_modules/mlly/dist lazy recursive"(e){function webpackEmptyAsyncContext(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}webpackEmptyAsyncContext.keys=()=>[],webpackEmptyAsyncContext.resolve=webpackEmptyAsyncContext,webpackEmptyAsyncContext.id="./node_modules/.pnpm/[email protected]/node_modules/mlly/dist lazy recursive",e.exports=webpackEmptyAsyncContext},fs(e){"use strict";e.exports=require("fs")},"node:fs"(e){"use strict";e.exports=require("node:fs")},"node:module"(e){"use strict";e.exports=require("node:module")},"node:path"(e){"use strict";e.exports=require("node:path")},os(e){"use strict";e.exports=require("os")},path(e){"use strict";e.exports=require("path")},"./node_modules/.pnpm/[email protected]/node_modules/get-tsconfig/dist/index.cjs"(e,t,i){"use strict";var n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0}),a=i("node:path"),c=i("node:fs"),l=i("node:module"),y=i("./node_modules/.pnpm/[email protected]/node_modules/resolve-pkg-maps/dist/index.cjs"),E=i("fs"),w=i("os"),C=i("path");function h(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}r(h,"slash");const S=r(e=>{const t=c[e];return(i,...n)=>{const a=`${e}:${n.join(":")}`;let l=null==i?void 0:i.get(a);return void 0===l&&(l=Reflect.apply(t,c,n),null==i||i.set(a,l)),l}},"cacheFs"),I=S("existsSync"),N=S("readFileSync"),O=S("statSync"),j=r((e,t,i)=>{for(;;){const n=a.posix.join(e,t);if(I(i,n))return n;const c=a.dirname(e);if(c===e)return;e=c}},"findUp"),F=/^\.{1,2}(\/.*)?$/,B=r(e=>{const t=h(e);return F.test(t)?t:`./${t}`},"normalizeRelativePath");function Ne(e,t=!1){const i=e.length;let n=0,a="",c=0,l=16,y=0,E=0,w=0,C=0,S=0;function _(t,i){let a=0,c=0;for(;a<t;){let t=e.charCodeAt(n);if(t>=48&&t<=57)c=16*c+t-48;else if(t>=65&&t<=70)c=16*c+t-65+10;else{if(!(t>=97&&t<=102))break;c=16*c+t-97+10}n++,a++}return a<t&&(c=-1),c}function b(e){n=e,a="",c=0,l=16,S=0}function p(){let t=n;if(48===e.charCodeAt(n))n++;else for(n++;n<e.length&&R(e.charCodeAt(n));)n++;if(n<e.length&&46===e.charCodeAt(n)){if(n++,!(n<e.length&&R(e.charCodeAt(n))))return S=3,e.substring(t,n);for(n++;n<e.length&&R(e.charCodeAt(n));)n++}let i=n;if(n<e.length&&(69===e.charCodeAt(n)||101===e.charCodeAt(n)))if(n++,(n<e.length&&43===e.charCodeAt(n)||45===e.charCodeAt(n))&&n++,n<e.length&&R(e.charCodeAt(n))){for(n++;n<e.length&&R(e.charCodeAt(n));)n++;i=n}else S=3;return e.substring(t,i)}function L(){let t="",a=n;for(;;){if(n>=i){t+=e.substring(a,n),S=2;break}const c=e.charCodeAt(n);if(34===c){t+=e.substring(a,n),n++;break}if(92!==c){if(c>=0&&c<=31){if(M(c)){t+=e.substring(a,n),S=2;break}S=6}n++}else{if(t+=e.substring(a,n),n++,n>=i){S=2;break}switch(e.charCodeAt(n++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=_(4);e>=0?t+=String.fromCharCode(e):S=4;break;default:S=5}a=n}}return t}function A(){if(a="",S=0,c=n,E=y,C=w,n>=i)return c=i,l=17;let t=e.charCodeAt(n);if(ee(t)){do{n++,a+=String.fromCharCode(t),t=e.charCodeAt(n)}while(ee(t));return l=15}if(M(t))return n++,a+=String.fromCharCode(t),13===t&&10===e.charCodeAt(n)&&(n++,a+="\n"),y++,w=n,l=14;switch(t){case 123:return n++,l=1;case 125:return n++,l=2;case 91:return n++,l=3;case 93:return n++,l=4;case 58:return n++,l=6;case 44:return n++,l=5;case 34:return n++,a=L(),l=10;case 47:const E=n-1;if(47===e.charCodeAt(n+1)){for(n+=2;n<i&&!M(e.charCodeAt(n));)n++;return a=e.substring(E,n),l=12}if(42===e.charCodeAt(n+1)){n+=2;const t=i-1;let c=!1;for(;n<t;){const t=e.charCodeAt(n);if(42===t&&47===e.charCodeAt(n+1)){n+=2,c=!0;break}n++,M(t)&&(13===t&&10===e.charCodeAt(n)&&n++,y++,w=n)}return c||(n++,S=1),a=e.substring(E,n),l=13}return a+=String.fromCharCode(t),n++,l=16;case 45:if(a+=String.fromCharCode(t),n++,n===i||!R(e.charCodeAt(n)))return l=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return a+=p(),l=11;default:for(;n<i&&D(t);)n++,t=e.charCodeAt(n);if(c!==n){switch(a=e.substring(c,n),a){case"true":return l=8;case"false":return l=9;case"null":return l=7}return l=16}return a+=String.fromCharCode(t),n++,l=16}}function D(e){if(ee(e)||M(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function x(){let e;do{e=A()}while(e>=12&&e<=15);return e}return r(_,"scanHexDigits"),r(b,"setPosition"),r(p,"scanNumber"),r(L,"scanString"),r(A,"scanNext"),r(D,"isUnknownContentCharacter"),r(x,"scanNextNonTrivia"),{setPosition:b,getPosition:r(()=>n,"getPosition"),scan:t?x:A,getToken:r(()=>l,"getToken"),getTokenValue:r(()=>a,"getTokenValue"),getTokenOffset:r(()=>c,"getTokenOffset"),getTokenLength:r(()=>n-c,"getTokenLength"),getTokenStartLine:r(()=>E,"getTokenStartLine"),getTokenStartCharacter:r(()=>c-C,"getTokenStartCharacter"),getTokenError:r(()=>S,"getTokenError")}}function ee(e){return 32===e||9===e}function M(e){return 10===e||13===e}function R(e){return e>=48&&e<=57}var $,q;r(Ne,"createScanner"),r(ee,"isWhiteSpace"),r(M,"isLineBreak"),r(R,"isDigit"),(q=$||($={}))[q.lineFeed=10]="lineFeed",q[q.carriageReturn=13]="carriageReturn",q[q.space=32]="space",q[q._0=48]="_0",q[q._1=49]="_1",q[q._2=50]="_2",q[q._3=51]="_3",q[q._4=52]="_4",q[q._5=53]="_5",q[q._6=54]="_6",q[q._7=55]="_7",q[q._8=56]="_8",q[q._9=57]="_9",q[q.a=97]="a",q[q.b=98]="b",q[q.c=99]="c",q[q.d=100]="d",q[q.e=101]="e",q[q.f=102]="f",q[q.g=103]="g",q[q.h=104]="h",q[q.i=105]="i",q[q.j=106]="j",q[q.k=107]="k",q[q.l=108]="l",q[q.m=109]="m",q[q.n=110]="n",q[q.o=111]="o",q[q.p=112]="p",q[q.q=113]="q",q[q.r=114]="r",q[q.s=115]="s",q[q.t=116]="t",q[q.u=117]="u",q[q.v=118]="v",q[q.w=119]="w",q[q.x=120]="x",q[q.y=121]="y",q[q.z=122]="z",q[q.A=65]="A",q[q.B=66]="B",q[q.C=67]="C",q[q.D=68]="D",q[q.E=69]="E",q[q.F=70]="F",q[q.G=71]="G",q[q.H=72]="H",q[q.I=73]="I",q[q.J=74]="J",q[q.K=75]="K",q[q.L=76]="L",q[q.M=77]="M",q[q.N=78]="N",q[q.O=79]="O",q[q.P=80]="P",q[q.Q=81]="Q",q[q.R=82]="R",q[q.S=83]="S",q[q.T=84]="T",q[q.U=85]="U",q[q.V=86]="V",q[q.W=87]="W",q[q.X=88]="X",q[q.Y=89]="Y",q[q.Z=90]="Z",q[q.asterisk=42]="asterisk",q[q.backslash=92]="backslash",q[q.closeBrace=125]="closeBrace",q[q.closeBracket=93]="closeBracket",q[q.colon=58]="colon",q[q.comma=44]="comma",q[q.dot=46]="dot",q[q.doubleQuote=34]="doubleQuote",q[q.minus=45]="minus",q[q.openBrace=123]="openBrace",q[q.openBracket=91]="openBracket",q[q.plus=43]="plus",q[q.slash=47]="slash",q[q.formFeed=12]="formFeed",q[q.tab=9]="tab",new Array(20).fill(0).map((e,t)=>" ".repeat(t));const W=200;var K,H,Y;function Pe(e,t=[],i=K.DEFAULT){let n=null,a=[];const c=[];function o(e){Array.isArray(a)?a.push(e):null!==n&&(a[n]=e)}return r(o,"onValue"),We(e,{onObjectBegin:r(()=>{const e={};o(e),c.push(a),a=e,n=null},"onObjectBegin"),onObjectProperty:r(e=>{n=e},"onObjectProperty"),onObjectEnd:r(()=>{a=c.pop()},"onObjectEnd"),onArrayBegin:r(()=>{const e=[];o(e),c.push(a),a=e,n=null},"onArrayBegin"),onArrayEnd:r(()=>{a=c.pop()},"onArrayEnd"),onLiteralValue:o,onError:r((e,i,n)=>{t.push({error:e,offset:i,length:n})},"onError")},i),a[0]}function We(e,t,i=K.DEFAULT){const n=Ne(e,!1),a=[];let c=0;function o(e){return e?()=>0===c&&e(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}function f(e){return e?t=>0===c&&e(t,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}function u(e){return e?t=>0===c&&e(t,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>a.slice()):()=>!0}function g(e){return e?()=>{c>0?c++:!1===e(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>a.slice())&&(c=1)}:()=>!0}function m(e){return e?()=>{c>0&&c--,0===c&&e(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter())}:()=>!0}r(o,"toNoArgVisit"),r(f,"toOneArgVisit"),r(u,"toOneArgVisitWithPath"),r(g,"toBeginVisit"),r(m,"toEndVisit");const l=g(t.onObjectBegin),y=u(t.onObjectProperty),E=m(t.onObjectEnd),w=g(t.onArrayBegin),C=m(t.onArrayEnd),S=u(t.onLiteralValue),I=f(t.onSeparator),N=o(t.onComment),O=f(t.onError),j=i&&i.disallowComments,F=i&&i.allowTrailingComma;function T(){for(;;){const e=n.scan();switch(n.getTokenError()){case 4:k(14);break;case 5:k(15);break;case 3:k(13);break;case 1:j||k(11);break;case 2:k(12);break;case 6:k(16)}switch(e){case 12:case 13:j?k(10):N();break;case 16:k(1);break;case 15:case 14:break;default:return e}}}function k(e,t=[],i=[]){if(O(e),t.length+i.length>0){let e=n.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){T();break}if(-1!==i.indexOf(e))break;e=T()}}}function P(e){const t=n.getTokenValue();return e?S(t):(y(t),a.push(t)),T(),!0}function J(){switch(n.getToken()){case 11:const e=n.getTokenValue();let t=Number(e);isNaN(t)&&(k(2),t=0),S(t);break;case 7:S(null);break;case 8:S(!0);break;case 9:S(!1);break;default:return!1}return T(),!0}function V(){return 10!==n.getToken()?(k(3,[],[2,5]),!1):(P(!1),6===n.getToken()?(I(":"),T(),U()||k(4,[],[2,5])):k(5,[],[2,5]),a.pop(),!0)}function z(){l(),T();let e=!1;for(;2!==n.getToken()&&17!==n.getToken();){if(5===n.getToken()){if(e||k(4,[],[]),I(","),T(),2===n.getToken()&&F)break}else e&&k(6,[],[]);V()||k(4,[],[2,5]),e=!0}return E(),2!==n.getToken()?k(7,[2],[]):T(),!0}function G(){w(),T();let e=!0,t=!1;for(;4!==n.getToken()&&17!==n.getToken();){if(5===n.getToken()){if(t||k(4,[],[]),I(","),T(),4===n.getToken()&&F)break}else t&&k(6,[],[]);e?(a.push(0),e=!1):a[a.length-1]++,U()||k(4,[],[4,5]),t=!0}return C(),e||a.pop(),4!==n.getToken()?k(8,[4],[]):T(),!0}function U(){switch(n.getToken()){case 3:return G();case 1:return z();case 10:return P(!0);default:return J()}}return r(T,"scanNext"),r(k,"handleError"),r(P,"parseString"),r(J,"parseLiteral"),r(V,"parseProperty"),r(z,"parseObject"),r(G,"parseArray"),r(U,"parseValue"),T(),17===n.getToken()?!!i.allowEmptyContent||(k(4,[],[]),!1):U()?(17!==n.getToken()&&k(9,[],[]),!0):(k(4,[],[]),!1)}new Array(W).fill(0).map((e,t)=>"\n"+" ".repeat(t)),new Array(W).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(W).fill(0).map((e,t)=>"\r\n"+" ".repeat(t)),new Array(W).fill(0).map((e,t)=>"\n"+"\t".repeat(t)),new Array(W).fill(0).map((e,t)=>"\r"+"\t".repeat(t)),new Array(W).fill(0).map((e,t)=>"\r\n"+"\t".repeat(t)),function(e){e.DEFAULT={allowTrailingComma:!1}}(K||(K={})),r(Pe,"parse$1"),r(We,"visit"),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(H||(H={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(Y||(Y={}));const Q=Pe;var Z;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(Z||(Z={}));const X=r((e,t)=>Q(N(t,e,"utf8")),"readJsonc"),te=Symbol("implicitBaseUrl"),ie="${configDir}",se=r(()=>{const{findPnpApi:e}=l;return e&&e(process.cwd())},"getPnpApi"),re=r((e,t,i,n)=>{const c=`resolveFromPackageJsonPath:${e}:${t}:${i}`;if(null!=n&&n.has(c))return n.get(c);const l=X(e,n);if(!l)return;let E=t||"tsconfig.json";if(!i&&l.exports)try{const[e]=y.resolveExports(l.exports,t,["require","types"]);E=e}catch{return!1}else!t&&l.tsconfig&&(E=l.tsconfig);return E=a.join(e,"..",E),null==n||n.set(c,E),E},"resolveFromPackageJsonPath"),ne="package.json",ae="tsconfig.json",oe=r((e,t,i)=>{let n=e;if(".."===e&&(n=a.join(n,ae)),"."===e[0]&&(n=a.resolve(t,n)),a.isAbsolute(n)){if(I(i,n)){if(O(i,n).isFile())return n}else if(!n.endsWith(".json")){const e=`${n}.json`;if(I(i,e))return e}return}const[c,...l]=e.split("/"),y="@"===c[0]?`${c}/${l.shift()}`:c,E=l.join("/"),w=se();if(w){const{resolveRequest:n}=w;try{if(y===e){const e=n(a.join(y,ne),t);if(e){const t=re(e,E,!1,i);if(t&&I(i,t))return t}}else{let i;try{i=n(e,t,{extensions:[".json"]})}catch{i=n(a.join(e,ae),t)}if(i)return i}}catch{}}const C=j(a.resolve(t),a.join("node_modules",y),i);if(!C||!O(i,C).isDirectory())return;const S=a.join(C,ne);if(I(i,S)){const e=re(S,E,!1,i);if(!1===e)return;if(e&&I(i,e)&&O(i,e).isFile())return e}const N=a.join(C,E),F=N.endsWith(".json");if(!F){const e=`${N}.json`;if(I(i,e))return e}if(I(i,N))if(O(i,N).isDirectory()){const e=a.join(N,ne);if(I(i,e)){const t=re(e,"",!0,i);if(t&&I(i,t))return t}const t=a.join(N,ae);if(I(i,t))return t}else if(F)return N},"resolveExtendsPath"),ce=r((e,t)=>B(a.relative(e,t)),"pathRelative"),he=["files","include","exclude"],le=r((e,t,i)=>{const n=a.join(t,i);return h(a.relative(e,n))||"./"},"resolveAndRelativize"),pe=r((e,t,i)=>{const n=a.relative(e,t);if(!n)return i;return h(`${n}/${i.startsWith("./")?i.slice(2):i}`)},"prefixPattern"),ue=r((e,t,i,n)=>{const c=oe(e,t,n);if(!c)throw new Error(`File '${e}' not found.`);if(i.has(c))throw new Error(`Circularity detected while resolving configuration: ${c}`);i.add(c);const l=a.dirname(c),y=fe(c,n,i);delete y.references;const{compilerOptions:E}=y;if(E){const{baseUrl:e}=E;e&&!e.startsWith(ie)&&(E.baseUrl=le(t,l,e));const{outDir:i}=E;i&&!i.startsWith(ie)&&(E.outDir=le(t,l,i));const{declarationDir:n}=E;n&&!n.startsWith(ie)&&(E.declarationDir=le(t,l,n));const{rootDir:a}=E;a&&!a.startsWith(ie)&&(E.rootDir=le(t,l,a));const{rootDirs:c}=E;c&&(E.rootDirs=c.map(e=>e.startsWith(ie)?e:le(t,l,e)));const{typeRoots:y}=E;y&&(E.typeRoots=y.map(e=>e.startsWith(ie)?e:le(t,l,e)))}for(const e of he){const i=y[e];i&&(y[e]=i.map(e=>e.startsWith(ie)?e:pe(t,l,e)))}return y},"resolveExtends"),de=["outDir","declarationDir"],fe=r((e,t,i=new Set)=>{let n;try{n=X(e,t)||{}}catch{throw new Error(`Cannot resolve tsconfig at path: ${e}`)}if("object"!=typeof n)throw new SyntaxError(`Failed to parse tsconfig at: ${e}`);const c=a.dirname(e);if(n.compilerOptions){const{compilerOptions:e}=n;e.paths&&!e.baseUrl&&(e[te]=c)}if(n.extends){const e=Array.isArray(n.extends)?n.extends:[n.extends];delete n.extends;for(const a of e.reverse()){const e=ue(a,c,new Set(i),t),l={...e,...n,compilerOptions:{...e.compilerOptions,...n.compilerOptions}};e.watchOptions&&(l.watchOptions={...e.watchOptions,...n.watchOptions}),n=l}}if(n.compilerOptions){const{compilerOptions:e}=n,t=["baseUrl","rootDir"];for(const i of t){const t=e[i];if(t&&!t.startsWith(ie)){const n=a.resolve(c,t),l=ce(c,n);e[i]=l}}for(const t of de){let i=e[t];i&&(Array.isArray(n.exclude)||(n.exclude=de.map(t=>e[t]).filter(Boolean)),i.startsWith(ie)||(i=B(i)),e[t]=i)}}else n.compilerOptions={};if(n.include&&(n.include=n.include.map(h)),n.files&&(n.files=n.files.map(e=>e.startsWith(ie)?e:B(e))),n.watchOptions){const{watchOptions:e}=n;e.excludeDirectories&&(e.excludeDirectories=e.excludeDirectories.map(e=>h(a.resolve(c,e)))),e.excludeFiles&&(e.excludeFiles=e.excludeFiles.map(e=>h(a.resolve(c,e)))),e.watchFile&&(e.watchFile=e.watchFile.toLowerCase()),e.watchDirectory&&(e.watchDirectory=e.watchDirectory.toLowerCase()),e.fallbackPolling&&(e.fallbackPolling=e.fallbackPolling.toLowerCase())}return n},"_parseTsconfig"),me=r((e,t)=>{if(e.startsWith(ie))return h(a.join(t,e.slice(12)))},"interpolateConfigDir"),ge=["outDir","declarationDir","outFile","rootDir","baseUrl","tsBuildInfoFile"],xe=r(e=>{if(e.strict){const t=["noImplicitAny","noImplicitThis","strictNullChecks","strictFunctionTypes","strictBindCallApply","strictPropertyInitialization","strictBuiltinIteratorReturn","alwaysStrict","useUnknownInCatchVariables"];for(const i of t)void 0===e[i]&&(e[i]=!0)}if(e.composite&&(null!=e.declaration||(e.declaration=!0),null!=e.incremental||(e.incremental=!0)),e.target){let t=e.target.toLowerCase();"es2015"===t&&(t="es6"),e.target=t,"esnext"===t&&(null!=e.module||(e.module="es6"),null!=e.useDefineForClassFields||(e.useDefineForClassFields=!0)),("es6"===t||"es2016"===t||"es2017"===t||"es2018"===t||"es2019"===t||"es2020"===t||"es2021"===t||"es2022"===t||"es2023"===t||"es2024"===t)&&(null!=e.module||(e.module="es6")),("es2022"===t||"es2023"===t||"es2024"===t)&&(null!=e.useDefineForClassFields||(e.useDefineForClassFields=!0))}if(e.module){let t=e.module.toLowerCase();if("es2015"===t&&(t="es6"),e.module=t,("es6"===t||"es2020"===t||"es2022"===t||"esnext"===t||"none"===t||"system"===t||"umd"===t||"amd"===t)&&(null!=e.moduleResolution||(e.moduleResolution="classic")),"system"===t&&(null!=e.allowSyntheticDefaultImports||(e.allowSyntheticDefaultImports=!0)),("node16"===t||"node18"===t||"node20"===t||"nodenext"===t||"preserve"===t)&&(null!=e.esModuleInterop||(e.esModuleInterop=!0),null!=e.allowSyntheticDefaultImports||(e.allowSyntheticDefaultImports=!0)),("node16"===t||"node18"===t||"node20"===t||"nodenext"===t)&&(null!=e.moduleDetection||(e.moduleDetection="force")),"node16"===t&&(null!=e.target||(e.target="es2022"),null!=e.moduleResolution||(e.moduleResolution="node16")),"node18"===t&&(null!=e.target||(e.target="es2022"),null!=e.moduleResolution||(e.moduleResolution="node16")),"node20"===t&&(null!=e.target||(e.target="es2023"),null!=e.moduleResolution||(e.moduleResolution="node16"),null!=e.resolveJsonModule||(e.resolveJsonModule=!0)),"nodenext"===t&&(null!=e.target||(e.target="esnext"),null!=e.moduleResolution||(e.moduleResolution="nodenext"),null!=e.resolveJsonModule||(e.resolveJsonModule=!0)),"node16"===t||"node18"===t||"node20"===t||"nodenext"===t){const t=e.target;("es3"===t||"es2022"===t||"es2023"===t||"es2024"===t||"esnext"===t)&&(null!=e.useDefineForClassFields||(e.useDefineForClassFields=!0))}"preserve"===t&&(null!=e.moduleResolution||(e.moduleResolution="bundler"))}if(e.moduleResolution){let t=e.moduleResolution.toLowerCase();"node"===t&&(t="node10"),e.moduleResolution=t,("node16"===t||"nodenext"===t||"bundler"===t)&&(null!=e.resolvePackageJsonExports||(e.resolvePackageJsonExports=!0),null!=e.resolvePackageJsonImports||(e.resolvePackageJsonImports=!0)),"bundler"===t&&(null!=e.allowSyntheticDefaultImports||(e.allowSyntheticDefaultImports=!0),null!=e.resolveJsonModule||(e.resolveJsonModule=!0))}e.jsx&&(e.jsx=e.jsx.toLowerCase()),e.moduleDetection&&(e.moduleDetection=e.moduleDetection.toLowerCase()),e.importsNotUsedAsValues&&(e.importsNotUsedAsValues=e.importsNotUsedAsValues.toLowerCase()),e.newLine&&(e.newLine=e.newLine.toLowerCase()),e.esModuleInterop&&(null!=e.allowSyntheticDefaultImports||(e.allowSyntheticDefaultImports=!0)),e.verbatimModuleSyntax&&(null!=e.isolatedModules||(e.isolatedModules=!0),null!=e.preserveConstEnums||(e.preserveConstEnums=!0)),e.isolatedModules&&(null!=e.preserveConstEnums||(e.preserveConstEnums=!0)),e.rewriteRelativeImportExtensions&&(null!=e.allowImportingTsExtensions||(e.allowImportingTsExtensions=!0)),e.lib&&(e.lib=e.lib.map(e=>e.toLowerCase())),e.checkJs&&(null!=e.allowJs||(e.allowJs=!0))},"normalizeCompilerOptions"),ve=r((e,t=new Map)=>{const i=a.resolve(e),n=fe(i,t),c=a.dirname(i),{compilerOptions:l}=n;if(l){for(const e of ge){const t=l[e];if(t){const i=me(t,c);l[e]=i?ce(c,i):t}}for(const e of["rootDirs","typeRoots"]){const t=l[e];t&&(l[e]=t.map(e=>{const t=me(e,c);return t?ce(c,t):B(e)}))}const{paths:e}=l;if(e)for(const t of Object.keys(e))e[t]=e[t].map(e=>{var t;return null!=(t=me(e,c))?t:e});xe(l)}for(const e of he){const t=n[e];t&&(n[e]=t.map(e=>{var t;return null!=(t=me(e,c))?t:e}))}return n},"parseTsconfig");var ye=Object.defineProperty,_e=r((e,t)=>ye(e,"name",{value:t,configurable:!0}),"s");const Ee=_e(e=>{let t="";for(let i=0;i<e.length;i+=1){const n=e[i],a=n.toUpperCase();t+=n===a?n.toLowerCase():a}return t},"invertCase"),be=new Map,ke=_e((e,t)=>{const i=C.join(e,`.is-fs-case-sensitive-test-${process.pid}`);try{return t.writeFileSync(i,""),!t.existsSync(Ee(i))}finally{try{t.unlinkSync(i)}catch{}}},"checkDirectoryCaseWithWrite"),we=_e((e,t,i)=>{try{return ke(e,i)}catch(e){if(void 0===t)return ke(w.tmpdir(),i);throw e}},"checkDirectoryCaseWithFallback"),Ce=_e((e,t=E,i=!0)=>{const n=null!=e?e:process.cwd();if(i&&be.has(n))return be.get(n);let a;const c=Ee(n);return a=c!==n&&t.existsSync(n)?!t.existsSync(c):we(n,e,t),i&&be.set(n,a),a},"isFsCaseSensitive"),{join:Se}=a.posix,Ie={ts:[".ts",".tsx",".d.ts"],cts:[".cts",".d.cts"],mts:[".mts",".d.mts"]},Te=r(e=>{const t=[...Ie.ts],i=[...Ie.cts],n=[...Ie.mts];return null!=e&&e.allowJs&&(t.push(".js",".jsx"),i.push(".cjs"),n.push(".mjs")),[...t,...i,...n]},"getSupportedExtensions"),Re=r(e=>{const t=[];if(!e)return t;const{outDir:i,declarationDir:n}=e;return i&&t.push(i),n&&t.push(n),t},"getDefaultExcludeSpec"),Ae=r(e=>e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),"escapeForRegexp"),Le=`(?!(${["node_modules","bower_components","jspm_packages"].join("|")})(/|$))`,Oe=/(?:^|\/)[^.*?]+$/,De="**/*",Ve="[^/]",Ue="[^./]",Me="win32"===process.platform,je=r(({config:e,path:t},i=Ce())=>{if("extends"in e)throw new Error("tsconfig#extends must be resolved. Use getTsconfig or parseTsconfig to resolve it.");if(!a.isAbsolute(t))throw new Error("The tsconfig path must be absolute");Me&&(t=h(t));const n=a.dirname(t),{files:c,include:l,exclude:y,compilerOptions:E}=e,w=r(e=>a.isAbsolute(e)?e:Se(n,e),"resolvePattern"),C=null==c?void 0:c.map(w),S=Te(E),I=i?"":"i",N=(y||Re(E)).map(e=>{const t=w(e),i=Ae(t).replaceAll(String.raw`\*\*/`,"(.+/)?").replaceAll(String.raw`\*`,`${Ve}*`).replaceAll(String.raw`\?`,Ve);return new RegExp(`^${i}($|/)`,I)}),O=c||l?l:[De],j=O?O.map(e=>{let t=w(e);Oe.test(t)&&(t=Se(t,De));const i=Ae(t).replaceAll(String.raw`/\*\*`,`(/${Le}${Ue}${Ve}*)*?`).replaceAll(/(\/)?\\\*/g,(e,t)=>{const i=`(${Ue}|(\\.(?!min\\.js$))?)*`;return t?`/${Le}${Ue}${i}`:i}).replaceAll(/(\/)?\\\?/g,(e,t)=>t?`/${Le}${Ve}`:Ve);return new RegExp(`^${i}$`,I)}):void 0;return t=>{if(!a.isAbsolute(t))throw new Error("filePath must be absolute");return Me&&(t=h(t)),null!=C&&C.includes(t)||S.some(e=>t.endsWith(e))&&!N.some(e=>e.test(t))&&j&&j.some(e=>e.test(t))?e:void 0}},"createFilesMatcher"),Fe=r((e,t,i)=>{const n=a.resolve(e);let c=h(e);for(;;){const e=j(c,t,i);if(!e)return;const l=a.resolve(e),y=ve(l,i),E={path:h(l),config:y};if(je(E)(n))return E;const w=a.dirname(e),C=a.dirname(w);if(C===w)return;c=C}},"findConfigApplicable"),Be=r((e=process.cwd(),t="tsconfig.json",i=new Map,n=!1)=>{var a;return n?null==(a=Fe(e,t,i))?void 0:a.path:j(h(e),t,i)},"findTsconfig"),$e=r((e=process.cwd(),t="tsconfig.json",i=new Map,n=!1)=>{var a;if(!n){const n=Be(e,t,i);if(!n)return null;return{path:n,config:ve(n,i)}}return null!=(a=Fe(e,t,i))?a:null},"getTsconfig"),qe=/\*/g,Ge=r((e,t)=>{const i=e.match(qe);if(i&&i.length>1)throw new Error(t)},"assertStarCount"),Ke=r(e=>{if(e.includes("*")){const[t,i]=e.split("*");return{prefix:t,suffix:i}}return e},"parsePattern"),He=r(({prefix:e,suffix:t},i)=>i.startsWith(e)&&i.endsWith(t),"isPatternMatch"),ze=r((e,t,i)=>Object.entries(e).map(([e,n])=>(Ge(e,`Pattern '${e}' can have at most one '*' character.`),{pattern:Ke(e),substitutions:n.map(n=>{if(Ge(n,`Substitution '${n}' in pattern '${e}' can have at most one '*' character.`),!t&&!F.test(n)&&!a.isAbsolute(n))throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");return a.resolve(i,n)})})),"parsePaths"),Je=r(e=>{const{compilerOptions:t}=e.config;if(!t)return null;const{baseUrl:i,paths:n}=t;if(!i&&!n)return null;const c=te in t&&t[te],l=a.resolve(a.dirname(e.path),i||c||"."),y=n?ze(n,i,l):[];return e=>{if(F.test(e))return[];const t=[];for(const i of y){if(i.pattern===e)return i.substitutions.map(h);"string"!=typeof i.pattern&&t.push(i)}let n,c=-1;for(const i of t)He(i.pattern,e)&&i.pattern.prefix.length>c&&(c=i.pattern.prefix.length,n=i);if(!n)return i?[h(a.join(l,e))]:[];const E=e.slice(n.pattern.prefix.length,e.length-n.pattern.suffix.length);return n.substitutions.map(e=>h(e.replace("*",E)))}},"createPathsMatcher");t.createPathsMatcher=Je,t.getTsconfig=$e},"./node_modules/.pnpm/[email protected]/node_modules/resolve-pkg-maps/dist/index.cjs"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const d=e=>null!==e&&"object"==typeof e,s=(e,t)=>Object.assign(new Error(`[${e}]: ${t}`),{code:e}),i="ERR_INVALID_PACKAGE_CONFIG",n="ERR_INVALID_PACKAGE_TARGET",a=/^\d+$/,c=/^(\.{1,2}|node_modules)$/i,l=/\/|\\/;var y,E=((y=E||{}).Export="exports",y.Import="imports",y);const f=(e,t,y,E,w)=>{if(null==t)return[];if("string"==typeof t){const[i,...a]=t.split(l);if(".."===i||a.some(e=>c.test(e)))throw s(n,`Invalid "${e}" target "${t}" defined in the package config`);return[w?t.replace(/\*/g,w):t]}if(Array.isArray(t))return t.flatMap(t=>f(e,t,y,E,w));if(d(t)){for(const n of Object.keys(t)){if(a.test(n))throw s(i,"Cannot contain numeric property keys");if("default"===n||E.includes(n))return f(e,t[n],y,E,w)}return[]}throw s(n,`Invalid "${e}" target "${t}"`)},w="*",v=(e,t)=>{const i=e.indexOf(w),n=t.indexOf(w);return i===n?t.length>e.length:n>i};function A(e,t){if(!t.includes(w)&&e.hasOwnProperty(t))return[t];let i,n;for(const a of Object.keys(e))if(a.includes(w)){const[e,c,l]=a.split(w);if(void 0===l&&t.startsWith(e)&&t.endsWith(c)){const l=t.slice(e.length,-c.length||void 0);l&&(!i||v(i,a))&&(i=a,n=l)}}return[i,n]}const C=/^\w+:/;t.resolveExports=(e,t,a)=>{if(!e)throw new Error('"exports" is required');t=""===t?".":`./${t}`,("string"==typeof e||Array.isArray(e)||d(e)&&(e=>Object.keys(e).reduce((e,t)=>{const n=""===t||"."!==t[0];if(void 0===e||e===n)return n;throw s(i,'"exports" cannot contain some keys starting with "." and some not')},void 0))(e))&&(e={".":e});const[c,l]=A(e,t),y=f(E.Export,e[c],t,a,l);if(0===y.length)throw s("ERR_PACKAGE_PATH_NOT_EXPORTED","."===t?'No "exports" main defined':`Package subpath '${t}' is not defined by "exports"`);for(const e of y)if(!e.startsWith("./")&&!C.test(e))throw s(n,`Invalid "exports" target "${e}" defined in the package config`);return y},t.resolveImports=(e,t,i)=>{if(!e)throw new Error('"imports" is required');const[n,a]=A(e,t),c=f(E.Import,e[n],t,i,a);if(0===c.length)throw s("ERR_PACKAGE_IMPORT_NOT_DEFINED",`Package import specifier "${t}" is not defined in package`);return c}}},t={};function __webpack_require__(i){var n=t[i];if(void 0!==n)return n.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,__webpack_require__),a.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var i in t)__webpack_require__.o(t,i)&&!__webpack_require__.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i={};(()=>{"use strict";__webpack_require__.d(i,{default:()=>createJiti});const e=require("node:os");var t=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],n=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],a="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",c={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},l="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",y={5:l,"5module":l+" export import",6:l+" const class extends export import super"},E=/^in(stanceof)?$/,w=new RegExp("["+a+"]"),C=new RegExp("["+a+"·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function isInAstralSet(e,t){for(var i=65536,n=0;n<t.length;n+=2){if((i+=t[n])>e)return!1;if((i+=t[n+1])>=e)return!0}return!1}function isIdentifierStart(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&w.test(String.fromCharCode(e)):!1!==t&&isInAstralSet(e,n)))}function isIdentifierChar(e,i){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&C.test(String.fromCharCode(e)):!1!==i&&(isInAstralSet(e,n)||isInAstralSet(e,t)))))}var acorn_TokenType=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function binop(e,t){return new acorn_TokenType(e,{beforeExpr:!0,binop:t})}var S={beforeExpr:!0},I={startsExpr:!0},N={};function kw(e,t){return void 0===t&&(t={}),t.keyword=e,N[e]=new acorn_TokenType(e,t)}var O={num:new acorn_TokenType("num",I),regexp:new acorn_TokenType("regexp",I),string:new acorn_TokenType("string",I),name:new acorn_TokenType("name",I),privateId:new acorn_TokenType("privateId",I),eof:new acorn_TokenType("eof"),bracketL:new acorn_TokenType("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new acorn_TokenType("]"),braceL:new acorn_TokenType("{",{beforeExpr:!0,startsExpr:!0}),braceR:new acorn_TokenType("}"),parenL:new acorn_TokenType("(",{beforeExpr:!0,startsExpr:!0}),parenR:new acorn_TokenType(")"),comma:new acorn_TokenType(",",S),semi:new acorn_TokenType(";",S),colon:new acorn_TokenType(":",S),dot:new acorn_TokenType("."),question:new acorn_TokenType("?",S),questionDot:new acorn_TokenType("?."),arrow:new acorn_TokenType("=>",S),template:new acorn_TokenType("template"),invalidTemplate:new acorn_TokenType("invalidTemplate"),ellipsis:new acorn_TokenType("...",S),backQuote:new acorn_TokenType("`",I),dollarBraceL:new acorn_TokenType("${",{beforeExpr:!0,startsExpr:!0}),eq:new acorn_TokenType("=",{beforeExpr:!0,isAssign:!0}),assign:new acorn_TokenType("_=",{beforeExpr:!0,isAssign:!0}),incDec:new acorn_TokenType("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new acorn_TokenType("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("</>/<=/>=",7),bitShift:binop("<</>>/>>>",8),plusMin:new acorn_TokenType("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new acorn_TokenType("**",{beforeExpr:!0}),coalesce:binop("??",1),_break:kw("break"),_case:kw("case",S),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",S),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",S),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",I),_if:kw("if"),_return:kw("return",S),_switch:kw("switch"),_throw:kw("throw",S),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",I),_super:kw("super",I),_class:kw("class",I),_extends:kw("extends",S),_export:kw("export"),_import:kw("import",I),_null:kw("null",I),_true:kw("true",I),_false:kw("false",I),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},j=/\r\n?|\n|\u2028|\u2029/,F=new RegExp(j.source,"g");function isNewLine(e){return 10===e||13===e||8232===e||8233===e}function nextLineBreak(e,t,i){void 0===i&&(i=e.length);for(var n=t;n<i;n++){var a=e.charCodeAt(n);if(isNewLine(a))return n<i-1&&13===a&&10===e.charCodeAt(n+1)?n+2:n+1}return-1}var B=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,$=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,q=Object.prototype,W=q.hasOwnProperty,K=q.toString,H=Object.hasOwn||function(e,t){return W.call(e,t)},Y=Array.isArray||function(e){return"[object Array]"===K.call(e)},Q=Object.create(null);function wordsRegexp(e){return Q[e]||(Q[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function codePointToString(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}var Z=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,acorn_Position=function(e,t){this.line=e,this.column=t};acorn_Position.prototype.offset=function(e){return new acorn_Position(this.line,this.column+e)};var acorn_SourceLocation=function(e,t,i){this.start=t,this.end=i,null!==e.sourceFile&&(this.source=e.sourceFile)};function getLineInfo(e,t){for(var i=1,n=0;;){var a=nextLineBreak(e,n,t);if(a<0)return new acorn_Position(i,t-n);++i,n=a}}var X={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},te=!1;function getOptions(e){var t={};for(var i in X)t[i]=e&&H(e,i)?e[i]:X[i];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!te&&"object"==typeof console&&console.warn&&(te=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),e&&null!=e.allowHashBang||(t.allowHashBang=t.ecmaVersion>=14),Y(t.onToken)){var n=t.onToken;t.onToken=function(e){return n.push(e)}}if(Y(t.onComment)&&(t.onComment=function(e,t){return function(i,n,a,c,l,y){var E={type:i?"Block":"Line",value:n,start:a,end:c};e.locations&&(E.loc=new acorn_SourceLocation(this,l,y)),e.ranges&&(E.range=[a,c]),t.push(E)}}(t,t.onComment)),"commonjs"===t.sourceType&&t.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t}var ie=256,se=259;function functionFlags(e,t){return 2|(e?4:0)|(t?8:0)}var acorn_Parser=function(e,t,i){this.options=e=getOptions(e),this.sourceFile=e.sourceFile,this.keywords=wordsRegexp(y[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var n="";!0!==e.allowReserved&&(n=c[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(n+=" await")),this.reservedWords=wordsRegexp(n);var a=(n?n+" ":"")+c.strict;this.reservedWordsStrict=wordsRegexp(a),this.reservedWordsStrictBind=wordsRegexp(a+" "+c.strictBind),this.input=String(t),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf("\n",i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(j).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=O.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope("commonjs"===this.options.sourceType?2:1),this.regexpState=null,this.privateNameStack=[]},re={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};acorn_Parser.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},re.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},re.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},re.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},re.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(768&t)return!1;if(2&t)return(4&t)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},re.allowReturn.get=function(){return!!this.inFunction||!!(this.options.allowReturnOutsideFunction&&1&this.currentVarScope().flags)},re.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0||this.options.allowSuperOutsideMethod},re.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},re.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},re.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(768&t||2&t&&!(16&t))return!0}return!1},re.allowUsing.get=function(){var e=this.currentScope().flags;return!(1024&e)&&!(!this.inModule&&1&e)},re.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ie)>0},acorn_Parser.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var i=this,n=0;n<e.length;n++)i=e[n](i);return i},acorn_Parser.parse=function(e,t){return new this(t,e).parse()},acorn_Parser.parseExpressionAt=function(e,t,i){var n=new this(i,e,t);return n.nextToken(),n.parseExpression()},acorn_Parser.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(acorn_Parser.prototype,re);var ne=acorn_Parser.prototype,ae=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;ne.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){$.lastIndex=e,e+=$.exec(this.input)[0].length;var t=ae.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){$.lastIndex=e+t[0].length;var i=$.exec(this.input),n=i.index+i[0].length,a=this.input.charAt(n);return";"===a||"}"===a||j.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(a)||"!"===a&&"="===this.input.charAt(n+1))}e+=t[0].length,$.lastIndex=e,e+=$.exec(this.input)[0].length,";"===this.input[e]&&e++}},ne.eat=function(e){return this.type===e&&(this.next(),!0)},ne.isContextual=function(e){return this.type===O.name&&this.value===e&&!this.containsEsc},ne.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},ne.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},ne.canInsertSemicolon=function(){return this.type===O.eof||this.type===O.braceR||j.test(this.input.slice(this.lastTokEnd,this.start))},ne.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},ne.semicolon=function(){this.eat(O.semi)||this.insertSemicolon()||this.unexpected()},ne.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},ne.expect=function(e){this.eat(e)||this.unexpected()},ne.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var acorn_DestructuringErrors=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};ne.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}},ne.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,n=e.doubleProto;if(!t)return i>=0||n>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")},ne.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},ne.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var oe=acorn_Parser.prototype;oe.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==O.eof;){var i=this.parseStatement(null,!0,t);e.body.push(i)}if(this.inModule)for(var n=0,a=Object.keys(this.undefinedExports);n<a.length;n+=1){var c=a[n];this.raiseRecoverable(this.undefinedExports[c].start,"Export '"+c+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType="commonjs"===this.options.sourceType?"script":this.options.sourceType,this.finishNode(e,"Program")};var ce={kind:"loop"},he={kind:"switch"};oe.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;$.lastIndex=this.pos;var t=$.exec(this.input),i=this.pos+t[0].length,n=this.fullCharCodeAt(i);if(91===n||92===n)return!0;if(e)return!1;if(123===n)return!0;if(isIdentifierStart(n)){var a=i;do{i+=n<=65535?1:2}while(isIdentifierChar(n=this.fullCharCodeAt(i)));if(92===n)return!0;var c=this.input.slice(a,i);if(!E.test(c))return!0}return!1},oe.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;$.lastIndex=this.pos;var e,t=$.exec(this.input),i=this.pos+t[0].length;return!(j.test(this.input.slice(this.pos,i))||"function"!==this.input.slice(i,i+8)||i+8!==this.input.length&&(isIdentifierChar(e=this.fullCharCodeAt(i+8))||92===e))},oe.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;$.lastIndex=this.pos;var i=$.exec(this.input),n=this.pos+i[0].length;if(j.test(this.input.slice(this.pos,n)))return!1;if(e){var a,c=n+5;if("using"!==this.input.slice(n,c)||c===this.input.length||isIdentifierChar(a=this.fullCharCodeAt(c))||92===a)return!1;$.lastIndex=c;var l=$.exec(this.input);if(n=c+l[0].length,l&&j.test(this.input.slice(c,n)))return!1}var y=this.fullCharCodeAt(n);if(!isIdentifierStart(y)&&92!==y)return!1;var w=n;do{n+=y<=65535?1:2}while(isIdentifierChar(y=this.fullCharCodeAt(n)));if(92===y)return!0;var C=this.input.slice(w,n);return!(E.test(C)||t&&"of"===C)},oe.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)},oe.isUsing=function(e){return this.isUsingKeyword(!1,e)},oe.parseStatement=function(e,t,i){var n,a=this.type,c=this.startNode();switch(this.isLet(e)&&(a=O._var,n="let"),a){case O._break:case O._continue:return this.parseBreakContinueStatement(c,a.keyword);case O._debugger:return this.parseDebuggerStatement(c);case O._do:return this.parseDoStatement(c);case O._for:return this.parseForStatement(c);case O._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(c,!1,!e);case O._class:return e&&this.unexpected(),this.parseClass(c,!0);case O._if:return this.parseIfStatement(c);case O._return:return this.parseReturnStatement(c);case O._switch:return this.parseSwitchStatement(c);case O._throw:return this.parseThrowStatement(c);case O._try:return this.parseTryStatement(c);case O._const:case O._var:return n=n||this.value,e&&"var"!==n&&this.unexpected(),this.parseVarStatement(c,n);case O._while:return this.parseWhileStatement(c);case O._with:return this.parseWithStatement(c);case O.braceL:return this.parseBlock(!0,c);case O.semi:return this.parseEmptyStatement(c);case O._export:case O._import:if(this.options.ecmaVersion>10&&a===O._import){$.lastIndex=this.pos;var l=$.exec(this.input),y=this.pos+l[0].length,E=this.input.charCodeAt(y);if(40===E||46===E)return this.parseExpressionStatement(c,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),a===O._import?this.parseImport(c):this.parseExport(c,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(c,!0,!e);var w=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(w)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),"await using"===w&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(c,!1,w),this.semicolon(),this.finishNode(c,"VariableDeclaration");var C=this.value,S=this.parseExpression();return a===O.name&&"Identifier"===S.type&&this.eat(O.colon)?this.parseLabeledStatement(c,C,S,e):this.parseExpressionStatement(c,S)}},oe.parseBreakContinueStatement=function(e,t){var i="break"===t;this.next(),this.eat(O.semi)||this.insertSemicolon()?e.label=null:this.type!==O.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var n=0;n<this.labels.length;++n){var a=this.labels[n];if(null==e.label||a.name===e.label.name){if(null!=a.kind&&(i||"loop"===a.kind))break;if(e.label&&i)break}}return n===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,i?"BreakStatement":"ContinueStatement")},oe.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},oe.parseDoStatement=function(e){return this.next(),this.labels.push(ce),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(O._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(O.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},oe.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(ce),this.enterScope(0),this.expect(O.parenL),this.type===O.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===O._var||this.type===O._const||i){var n=this.startNode(),a=i?"let":this.value;return this.next(),this.parseVar(n,!0,a),this.finishNode(n,"VariableDeclaration"),this.parseForAfterInit(e,n,t)}var c=this.isContextual("let"),l=!1,y=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(y){var E=this.startNode();return this.next(),"await using"===y&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(E,!0,y),this.finishNode(E,"VariableDeclaration"),this.parseForAfterInit(e,E,t)}var w=this.containsEsc,C=new acorn_DestructuringErrors,S=this.start,I=t>-1?this.parseExprSubscripts(C,"await"):this.parseExpression(!0,C);return this.type===O._in||(l=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===O._in&&this.unexpected(t),e.await=!0):l&&this.options.ecmaVersion>=8&&(I.start!==S||w||"Identifier"!==I.type||"async"!==I.name?this.options.ecmaVersion>=9&&(e.await=!1):this.unexpected()),c&&l&&this.raise(I.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(I,!1,C),this.checkLValPattern(I),this.parseForIn(e,I)):(this.checkExpressionErrors(C,!0),t>-1&&this.unexpected(t),this.parseFor(e,I))},oe.parseForAfterInit=function(e,t,i){return(this.type===O._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===t.declarations.length?(this.options.ecmaVersion>=9&&(this.type===O._in?i>-1&&this.unexpected(i):e.await=i>-1),this.parseForIn(e,t)):(i>-1&&this.unexpected(i),this.parseFor(e,t))},oe.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,pe|(i?0:ue),!1,t)},oe.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(O._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},oe.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(O.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},oe.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(O.braceL),this.labels.push(he),this.enterScope(1024);for(var i=!1;this.type!==O.braceR;)if(this.type===O._case||this.type===O._default){var n=this.type===O._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(O.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},oe.parseThrowStatement=function(e){return this.next(),j.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var le=[];oe.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?32:0),this.checkLValPattern(e,t?4:2),this.expect(O.parenR),e},oe.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===O._catch){var t=this.startNode();this.next(),this.eat(O.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(O._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},oe.parseVarStatement=function(e,t,i){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")},oe.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(ce),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},oe.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},oe.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},oe.parseLabeledStatement=function(e,t,i,n){for(var a=0,c=this.labels;a<c.length;a+=1){c[a].name===t&&this.raise(i.start,"Label '"+t+"' is already declared")}for(var l=this.type.isLoop?"loop":this.type===O._switch?"switch":null,y=this.labels.length-1;y>=0;y--){var E=this.labels[y];if(E.statementStart!==e.start)break;E.statementStart=this.start,E.kind=l}return this.labels.push({name:t,kind:l,statementStart:this.start}),e.body=this.parseStatement(n?-1===n.indexOf("label")?n+"label":n:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")},oe.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},oe.parseBlock=function(e,t,i){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(O.braceL),e&&this.enterScope(0);this.type!==O.braceR;){var n=this.parseStatement(null);t.body.push(n)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},oe.parseFor=function(e,t){return e.init=t,this.expect(O.semi),e.test=this.type===O.semi?null:this.parseExpression(),this.expect(O.semi),e.update=this.type===O.parenR?null:this.parseExpression(),this.expect(O.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},oe.parseForIn=function(e,t){var i=this.type===O._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!i||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(O.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")},oe.parseVar=function(e,t,i,n){for(e.declarations=[],e.kind=i;;){var a=this.startNode();if(this.parseVarId(a,i),this.eat(O.eq)?a.init=this.parseMaybeAssign(t):n||"const"!==i||this.type===O._in||this.options.ecmaVersion>=6&&this.isContextual("of")?n||"using"!==i&&"await using"!==i||!(this.options.ecmaVersion>=17)||this.type===O._in||this.isContextual("of")?n||"Identifier"===a.id.type||t&&(this.type===O._in||this.isContextual("of"))?a.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.raise(this.lastTokEnd,"Missing initializer in "+i+" declaration"):this.unexpected(),e.declarations.push(this.finishNode(a,"VariableDeclarator")),!this.eat(O.comma))break}return e},oe.parseVarId=function(e,t){e.id="using"===t||"await using"===t?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var pe=1,ue=2;function isPrivateNameConflicted(e,t){var i=t.key.name,n=e[i],a="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(a=(t.static?"s":"i")+t.kind),"iget"===n&&"iset"===a||"iset"===n&&"iget"===a||"sget"===n&&"sset"===a||"sset"===n&&"sget"===a?(e[i]="true",!1):!!n||(e[i]=a,!1)}function checkKeyName(e,t){var i=e.computed,n=e.key;return!i&&("Identifier"===n.type&&n.name===t||"Literal"===n.type&&n.value===t)}oe.parseFunction=function(e,t,i,n,a){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===O.star&&t&ue&&this.unexpected(),e.generator=this.eat(O.star)),this.options.ecmaVersion>=8&&(e.async=!!n),t&pe&&(e.id=4&t&&this.type!==O.name?null:this.parseIdent(),!e.id||t&ue||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var c=this.yieldPos,l=this.awaitPos,y=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(e.async,e.generator)),t&pe||(e.id=this.type===O.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,a),this.yieldPos=c,this.awaitPos=l,this.awaitIdentPos=y,this.finishNode(e,t&pe?"FunctionDeclaration":"FunctionExpression")},oe.parseFunctionParams=function(e){this.expect(O.parenL),e.params=this.parseBindingList(O.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},oe.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var n=this.enterClassBody(),a=this.startNode(),c=!1;for(a.body=[],this.expect(O.braceL);this.type!==O.braceR;){var l=this.parseClassElement(null!==e.superClass);l&&(a.body.push(l),"MethodDefinition"===l.type&&"constructor"===l.kind?(c&&this.raiseRecoverable(l.start,"Duplicate constructor in the same class"),c=!0):l.key&&"PrivateIdentifier"===l.key.type&&isPrivateNameConflicted(n,l)&&this.raiseRecoverable(l.key.start,"Identifier '#"+l.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(a,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},oe.parseClassElement=function(e){if(this.eat(O.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),n="",a=!1,c=!1,l="method",y=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(O.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===O.star?y=!0:n="static"}if(i.static=y,!n&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==O.star||this.canInsertSemicolon()?n="async":c=!0),!n&&(t>=9||!c)&&this.eat(O.star)&&(a=!0),!n&&!c&&!a){var E=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?l=E:n=E)}if(n?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=n,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===O.parenL||"method"!==l||a||c){var w=!i.static&&checkKeyName(i,"constructor"),C=w&&e;w&&"method"!==l&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=w?"constructor":l,this.parseClassMethod(i,a,c,C)}else this.parseClassField(i);return i},oe.isClassElementNameStart=function(){return this.type===O.name||this.type===O.privateId||this.type===O.num||this.type===O.string||this.type===O.bracketL||this.type.keyword},oe.parseClassElementName=function(e){this.type===O.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},oe.parseClassMethod=function(e,t,i,n){var a=e.key;"constructor"===e.kind?(t&&this.raise(a.start,"Constructor can't be a generator"),i&&this.raise(a.start,"Constructor can't be an async method")):e.static&&checkKeyName(e,"prototype")&&this.raise(a.start,"Classes may not have a static property named prototype");var c=e.value=this.parseMethod(t,i,n);return"get"===e.kind&&0!==c.params.length&&this.raiseRecoverable(c.start,"getter should have no params"),"set"===e.kind&&1!==c.params.length&&this.raiseRecoverable(c.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===c.params[0].type&&this.raiseRecoverable(c.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},oe.parseClassField=function(e){return checkKeyName(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&checkKeyName(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(O.eq)?(this.enterScope(576),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")},oe.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==O.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},oe.parseClassId=function(e,t){this.type===O.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},oe.parseClassSuper=function(e){e.superClass=this.eat(O._extends)?this.parseExprSubscripts(null,!1):null},oe.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},oe.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,i=e.used;if(this.options.checkPrivateFields)for(var n=this.privateNameStack.length,a=0===n?null:this.privateNameStack[n-1],c=0;c<i.length;++c){var l=i[c];H(t,l.name)||(a?a.used.push(l):this.raiseRecoverable(l.start,"Private field '#"+l.name+"' must be declared in an enclosing class"))}},oe.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==O.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},oe.parseExport=function(e,t){if(this.next(),this.eat(O.star))return this.parseExportAllDeclaration(e,t);if(this.eat(O._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==O.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var i=0,n=e.specifiers;i<n.length;i+=1){var a=n[i];this.checkUnreserved(a.local),this.checkLocalExport(a.local),"Literal"===a.local.type&&this.raise(a.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},oe.parseExportDeclaration=function(e){return this.parseStatement(null)},oe.parseExportDefaultDeclaration=function(){var e;if(this.type===O._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,4|pe,!1,e)}if(this.type===O._class){var i=this.startNode();return this.parseClass(i,"nullableID")}var n=this.parseMaybeAssign();return this.semicolon(),n},oe.checkExport=function(e,t,i){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),H(e,t)&&this.raiseRecoverable(i,"Duplicate export '"+t+"'"),e[t]=!0)},oe.checkPatternExport=function(e,t){var i=t.type;if("Identifier"===i)this.checkExport(e,t,t.start);else if("ObjectPattern"===i)for(var n=0,a=t.properties;n<a.length;n+=1){var c=a[n];this.checkPatternExport(e,c)}else if("ArrayPattern"===i)for(var l=0,y=t.elements;l<y.length;l+=1){var E=y[l];E&&this.checkPatternExport(e,E)}else"Property"===i?this.checkPatternExport(e,t.value):"AssignmentPattern"===i?this.checkPatternExport(e,t.left):"RestElement"===i&&this.checkPatternExport(e,t.argument)},oe.checkVariableExport=function(e,t){if(e)for(var i=0,n=t;i<n.length;i+=1){var a=n[i];this.checkPatternExport(e,a.id)}},oe.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},oe.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")},oe.parseExportSpecifiers=function(e){var t=[],i=!0;for(this.expect(O.braceL);!this.eat(O.braceR);){if(i)i=!1;else if(this.expect(O.comma),this.afterTrailingComma(O.braceR))break;t.push(this.parseExportSpecifier(e))}return t},oe.parseImport=function(e){return this.next(),this.type===O.string?(e.specifiers=le,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===O.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},oe.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportSpecifier")},oe.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportDefaultSpecifier")},oe.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportNamespaceSpecifier")},oe.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===O.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(O.comma)))return e;if(this.type===O.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(O.braceL);!this.eat(O.braceR);){if(t)t=!1;else if(this.expect(O.comma),this.afterTrailingComma(O.braceR))break;e.push(this.parseImportSpecifier())}return e},oe.parseWithClause=function(){var e=[];if(!this.eat(O._with))return e;this.expect(O.braceL);for(var t={},i=!0;!this.eat(O.braceR);){if(i)i=!1;else if(this.expect(O.comma),this.afterTrailingComma(O.braceR))break;var n=this.parseImportAttribute(),a="Identifier"===n.key.type?n.key.name:n.key.value;H(t,a)&&this.raiseRecoverable(n.key.start,"Duplicate attribute key '"+a+"'"),t[a]=!0,e.push(n)}return e},oe.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===O.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(O.colon),this.type!==O.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")},oe.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===O.string){var e=this.parseLiteral(this.value);return Z.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},oe.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},oe.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var de=acorn_Parser.prototype;de.toAssignable=function(e,t,i){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var n=0,a=e.properties;n<a.length;n+=1){var c=a[n];this.toAssignable(c,t),"RestElement"!==c.type||"ArrayPattern"!==c.argument.type&&"ObjectPattern"!==c.argument.type||this.raise(c.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,i);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return e},de.toAssignableList=function(e,t){for(var i=e.length,n=0;n<i;n++){var a=e[n];a&&this.toAssignable(a,t)}if(i){var c=e[i-1];6===this.options.ecmaVersion&&t&&c&&"RestElement"===c.type&&"Identifier"!==c.argument.type&&this.unexpected(c.argument.start)}return e},de.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},de.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==O.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},de.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case O.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(O.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case O.braceL:return this.parseObj(!0)}return this.parseIdent()},de.parseBindingList=function(e,t,i,n){for(var a=[],c=!0;!this.eat(e);)if(c?c=!1:this.expect(O.comma),t&&this.type===O.comma)a.push(null);else{if(i&&this.afterTrailingComma(e))break;if(this.type===O.ellipsis){var l=this.parseRestBinding();this.parseBindingListItem(l),a.push(l),this.type===O.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}a.push(this.parseAssignableListItem(n))}return a},de.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},de.parseBindingListItem=function(e){return e},de.parseMaybeDefault=function(e,t,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(O.eq))return i;var n=this.startNodeAt(e,t);return n.left=i,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")},de.checkLValSimple=function(e,t,i){void 0===t&&(t=0);var n=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(n?"Binding ":"Assigning to ")+e.name+" in strict mode"),n&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),i&&(H(i,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),i[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":n&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return n&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,i);default:this.raise(e.start,(n?"Binding":"Assigning to")+" rvalue")}},de.checkLValPattern=function(e,t,i){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var n=0,a=e.properties;n<a.length;n+=1){var c=a[n];this.checkLValInnerPattern(c,t,i)}break;case"ArrayPattern":for(var l=0,y=e.elements;l<y.length;l+=1){var E=y[l];E&&this.checkLValInnerPattern(E,t,i)}break;default:this.checkLValSimple(e,t,i)}},de.checkLValInnerPattern=function(e,t,i){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,i);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,i);break;case"RestElement":this.checkLValPattern(e.argument,t,i);break;default:this.checkLValPattern(e,t,i)}};var acorn_TokContext=function(e,t,i,n,a){this.token=e,this.isExpr=!!t,this.preserveSpace=!!i,this.override=n,this.generator=!!a},fe={b_stat:new acorn_TokContext("{",!1),b_expr:new acorn_TokContext("{",!0),b_tmpl:new acorn_TokContext("${",!1),p_stat:new acorn_TokContext("(",!1),p_expr:new acorn_TokContext("(",!0),q_tmpl:new acorn_TokContext("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new acorn_TokContext("function",!1),f_expr:new acorn_TokContext("function",!0),f_expr_gen:new acorn_TokContext("function",!0,!1,null,!0),f_gen:new acorn_TokContext("function",!1,!1,null,!0)},me=acorn_Parser.prototype;me.initialContext=function(){return[fe.b_stat]},me.curContext=function(){return this.context[this.context.length-1]},me.braceIsBlock=function(e){var t=this.curContext();return t===fe.f_expr||t===fe.f_stat||(e!==O.colon||t!==fe.b_stat&&t!==fe.b_expr?e===O._return||e===O.name&&this.exprAllowed?j.test(this.input.slice(this.lastTokEnd,this.start)):e===O._else||e===O.semi||e===O.eof||e===O.parenR||e===O.arrow||(e===O.braceL?t===fe.b_stat:e!==O._var&&e!==O._const&&e!==O.name&&!this.exprAllowed):!t.isExpr)},me.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},me.updateContext=function(e){var t,i=this.type;i.keyword&&e===O.dot?this.exprAllowed=!1:(t=i.updateContext)?t.call(this,e):this.exprAllowed=i.beforeExpr},me.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},O.parenR.updateContext=O.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===fe.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},O.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?fe.b_stat:fe.b_expr),this.exprAllowed=!0},O.dollarBraceL.updateContext=function(){this.context.push(fe.b_tmpl),this.exprAllowed=!0},O.parenL.updateContext=function(e){var t=e===O._if||e===O._for||e===O._with||e===O._while;this.context.push(t?fe.p_stat:fe.p_expr),this.exprAllowed=!0},O.incDec.updateContext=function(){},O._function.updateContext=O._class.updateContext=function(e){!e.beforeExpr||e===O._else||e===O.semi&&this.curContext()!==fe.p_stat||e===O._return&&j.test(this.input.slice(this.lastTokEnd,this.start))||(e===O.colon||e===O.braceL)&&this.curContext()===fe.b_stat?this.context.push(fe.f_stat):this.context.push(fe.f_expr),this.exprAllowed=!1},O.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},O.backQuote.updateContext=function(){this.curContext()===fe.q_tmpl?this.context.pop():this.context.push(fe.q_tmpl),this.exprAllowed=!1},O.star.updateContext=function(e){if(e===O._function){var t=this.context.length-1;this.context[t]===fe.f_expr?this.context[t]=fe.f_expr_gen:this.context[t]=fe.f_gen}this.exprAllowed=!0},O.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==O.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var ge=acorn_Parser.prototype;function isLocalVariableAccess(e){return"Identifier"===e.type||"ParenthesizedExpression"===e.type&&isLocalVariableAccess(e.expression)}function isPrivateFieldAccess(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&isPrivateFieldAccess(e.expression)||"ParenthesizedExpression"===e.type&&isPrivateFieldAccess(e.expression)}ge.checkPropClash=function(e,t,i){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var n,a=e.key;switch(a.type){case"Identifier":n=a.name;break;case"Literal":n=String(a.value);break;default:return}var c=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===n&&"init"===c&&(t.proto&&(i?i.doubleProto<0&&(i.doubleProto=a.start):this.raiseRecoverable(a.start,"Redefinition of __proto__ property")),t.proto=!0);else{var l=t[n="$"+n];if(l)("init"===c?this.strict&&l.init||l.get||l.set:l.init||l[c])&&this.raiseRecoverable(a.start,"Redefinition of property");else l=t[n]={init:!1,get:!1,set:!1};l[c]=!0}}},ge.parseExpression=function(e,t){var i=this.start,n=this.startLoc,a=this.parseMaybeAssign(e,t);if(this.type===O.comma){var c=this.startNodeAt(i,n);for(c.expressions=[a];this.eat(O.comma);)c.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(c,"SequenceExpression")}return a},ge.parseMaybeAssign=function(e,t,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var n=!1,a=-1,c=-1,l=-1;t?(a=t.parenthesizedAssign,c=t.trailingComma,l=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new acorn_DestructuringErrors,n=!0);var y=this.start,E=this.startLoc;this.type!==O.parenL&&this.type!==O.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var w=this.parseMaybeConditional(e,t);if(i&&(w=i.call(this,w,y,E)),this.type.isAssign){var C=this.startNodeAt(y,E);return C.operator=this.value,this.type===O.eq&&(w=this.toAssignable(w,!1,t)),n||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=w.start&&(t.shorthandAssign=-1),this.type===O.eq?this.checkLValPattern(w):this.checkLValSimple(w),C.left=w,this.next(),C.right=this.parseMaybeAssign(e),l>-1&&(t.doubleProto=l),this.finishNode(C,"AssignmentExpression")}return n&&this.checkExpressionErrors(t,!0),a>-1&&(t.parenthesizedAssign=a),c>-1&&(t.trailingComma=c),w},ge.parseMaybeConditional=function(e,t){var i=this.start,n=this.startLoc,a=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return a;if(this.eat(O.question)){var c=this.startNodeAt(i,n);return c.test=a,c.consequent=this.parseMaybeAssign(),this.expect(O.colon),c.alternate=this.parseMaybeAssign(e),this.finishNode(c,"ConditionalExpression")}return a},ge.parseExprOps=function(e,t){var i=this.start,n=this.startLoc,a=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||a.start===i&&"ArrowFunctionExpression"===a.type?a:this.parseExprOp(a,i,n,-1,e)},ge.parseExprOp=function(e,t,i,n,a){var c=this.type.binop;if(null!=c&&(!a||this.type!==O._in)&&c>n){var l=this.type===O.logicalOR||this.type===O.logicalAND,y=this.type===O.coalesce;y&&(c=O.logicalAND.binop);var E=this.value;this.next();var w=this.start,C=this.startLoc,S=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,a),w,C,c,a),I=this.buildBinary(t,i,e,S,E,l||y);return(l&&this.type===O.coalesce||y&&(this.type===O.logicalOR||this.type===O.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(I,t,i,n,a)}return e},ge.buildBinary=function(e,t,i,n,a,c){"PrivateIdentifier"===n.type&&this.raise(n.start,"Private identifier can only be left side of binary expression");var l=this.startNodeAt(e,t);return l.left=i,l.operator=a,l.right=n,this.finishNode(l,c?"LogicalExpression":"BinaryExpression")},ge.parseMaybeUnary=function(e,t,i,n){var a,c=this.start,l=this.startLoc;if(this.isContextual("await")&&this.canAwait)a=this.parseAwait(n),t=!0;else if(this.type.prefix){var y=this.startNode(),E=this.type===O.incDec;y.operator=this.value,y.prefix=!0,this.next(),y.argument=this.parseMaybeUnary(null,!0,E,n),this.checkExpressionErrors(e,!0),E?this.checkLValSimple(y.argument):this.strict&&"delete"===y.operator&&isLocalVariableAccess(y.argument)?this.raiseRecoverable(y.start,"Deleting local variable in strict mode"):"delete"===y.operator&&isPrivateFieldAccess(y.argument)?this.raiseRecoverable(y.start,"Private fields can not be deleted"):t=!0,a=this.finishNode(y,E?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==O.privateId){if(a=this.parseExprSubscripts(e,n),this.checkExpressionErrors(e))return a;for(;this.type.postfix&&!this.canInsertSemicolon();){var w=this.startNodeAt(c,l);w.operator=this.value,w.prefix=!1,w.argument=a,this.checkLValSimple(a),this.next(),a=this.finishNode(w,"UpdateExpression")}}else(n||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),a=this.parsePrivateIdent(),this.type!==O._in&&this.unexpected();return i||!this.eat(O.starstar)?a:t?void this.unexpected(this.lastTokStart):this.buildBinary(c,l,a,this.parseMaybeUnary(null,!1,!1,n),"**",!1)},ge.parseExprSubscripts=function(e,t){var i=this.start,n=this.startLoc,a=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===a.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return a;var c=this.parseSubscripts(a,i,n,!1,t);return e&&"MemberExpression"===c.type&&(e.parenthesizedAssign>=c.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=c.start&&(e.parenthesizedBind=-1),e.trailingComma>=c.start&&(e.trailingComma=-1)),c},ge.parseSubscripts=function(e,t,i,n,a){for(var c=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,l=!1;;){var y=this.parseSubscript(e,t,i,n,c,l,a);if(y.optional&&(l=!0),y===e||"ArrowFunctionExpression"===y.type){if(l){var E=this.startNodeAt(t,i);E.expression=y,y=this.finishNode(E,"ChainExpression")}return y}e=y}},ge.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(O.arrow)},ge.parseSubscriptAsyncArrow=function(e,t,i,n){return this.parseArrowExpression(this.startNodeAt(e,t),i,!0,n)},ge.parseSubscript=function(e,t,i,n,a,c,l){var y=this.options.ecmaVersion>=11,E=y&&this.eat(O.questionDot);n&&E&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var w=this.eat(O.bracketL);if(w||E&&this.type!==O.parenL&&this.type!==O.backQuote||this.eat(O.dot)){var C=this.startNodeAt(t,i);C.object=e,w?(C.property=this.parseExpression(),this.expect(O.bracketR)):this.type===O.privateId&&"Super"!==e.type?C.property=this.parsePrivateIdent():C.property=this.parseIdent("never"!==this.options.allowReserved),C.computed=!!w,y&&(C.optional=E),e=this.finishNode(C,"MemberExpression")}else if(!n&&this.eat(O.parenL)){var S=new acorn_DestructuringErrors,I=this.yieldPos,N=this.awaitPos,j=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var F=this.parseExprList(O.parenR,this.options.ecmaVersion>=8,!1,S);if(a&&!E&&this.shouldParseAsyncArrow())return this.checkPatternErrors(S,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=I,this.awaitPos=N,this.awaitIdentPos=j,this.parseSubscriptAsyncArrow(t,i,F,l);this.checkExpressionErrors(S,!0),this.yieldPos=I||this.yieldPos,this.awaitPos=N||this.awaitPos,this.awaitIdentPos=j||this.awaitIdentPos;var B=this.startNodeAt(t,i);B.callee=e,B.arguments=F,y&&(B.optional=E),e=this.finishNode(B,"CallExpression")}else if(this.type===O.backQuote){(E||c)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var $=this.startNodeAt(t,i);$.tag=e,$.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode($,"TaggedTemplateExpression")}return e},ge.parseExprAtom=function(e,t,i){this.type===O.slash&&this.readRegexp();var n,a=this.potentialArrowAt===this.start;switch(this.type){case O._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),n=this.startNode(),this.next(),this.type!==O.parenL||this.allowDirectSuper||this.raise(n.start,"super() call outside constructor of a subclass"),this.type!==O.dot&&this.type!==O.bracketL&&this.type!==O.parenL&&this.unexpected(),this.finishNode(n,"Super");case O._this:return n=this.startNode(),this.next(),this.finishNode(n,"ThisExpression");case O.name:var c=this.start,l=this.startLoc,y=this.containsEsc,E=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!y&&"async"===E.name&&!this.canInsertSemicolon()&&this.eat(O._function))return this.overrideContext(fe.f_expr),this.parseFunction(this.startNodeAt(c,l),0,!1,!0,t);if(a&&!this.canInsertSemicolon()){if(this.eat(O.arrow))return this.parseArrowExpression(this.startNodeAt(c,l),[E],!1,t);if(this.options.ecmaVersion>=8&&"async"===E.name&&this.type===O.name&&!y&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return E=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(O.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(c,l),[E],!0,t)}return E;case O.regexp:var w=this.value;return(n=this.parseLiteral(w.value)).regex={pattern:w.pattern,flags:w.flags},n;case O.num:case O.string:return this.parseLiteral(this.value);case O._null:case O._true:case O._false:return(n=this.startNode()).value=this.type===O._null?null:this.type===O._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,"Literal");case O.parenL:var C=this.start,S=this.parseParenAndDistinguishExpression(a,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(S)&&(e.parenthesizedAssign=C),e.parenthesizedBind<0&&(e.parenthesizedBind=C)),S;case O.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(O.bracketR,!0,!0,e),this.finishNode(n,"ArrayExpression");case O.braceL:return this.overrideContext(fe.b_expr),this.parseObj(!1,e);case O._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case O._class:return this.parseClass(this.startNode(),!1);case O._new:return this.parseNew();case O.backQuote:return this.parseTemplate();case O._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}},ge.parseExprAtomDefault=function(){this.unexpected()},ge.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===O.parenL&&!e)return this.parseDynamicImport(t);if(this.type===O.dot){var i=this.startNodeAt(t.start,t.loc&&t.loc.start);return i.name="import",t.meta=this.finishNode(i,"Identifier"),this.parseImportMeta(t)}this.unexpected()},ge.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(O.parenR)?e.options=null:(this.expect(O.comma),this.afterTrailingComma(O.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(O.parenR)||(this.expect(O.comma),this.afterTrailingComma(O.parenR)||this.unexpected())));else if(!this.eat(O.parenR)){var t=this.start;this.eat(O.comma)&&this.eat(O.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},ge.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},ge.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=null!=t.value?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},ge.parseParenExpression=function(){this.expect(O.parenL);var e=this.parseExpression();return this.expect(O.parenR),e},ge.shouldParseArrow=function(e){return!this.canInsertSemicolon()},ge.parseParenAndDistinguishExpression=function(e,t){var i,n=this.start,a=this.startLoc,c=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var l,y=this.start,E=this.startLoc,w=[],C=!0,S=!1,I=new acorn_DestructuringErrors,N=this.yieldPos,j=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==O.parenR;){if(C?C=!1:this.expect(O.comma),c&&this.afterTrailingComma(O.parenR,!0)){S=!0;break}if(this.type===O.ellipsis){l=this.start,w.push(this.parseParenItem(this.parseRestBinding())),this.type===O.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}w.push(this.parseMaybeAssign(!1,I,this.parseParenItem))}var F=this.lastTokEnd,B=this.lastTokEndLoc;if(this.expect(O.parenR),e&&this.shouldParseArrow(w)&&this.eat(O.arrow))return this.checkPatternErrors(I,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=N,this.awaitPos=j,this.parseParenArrowList(n,a,w,t);w.length&&!S||this.unexpected(this.lastTokStart),l&&this.unexpected(l),this.checkExpressionErrors(I,!0),this.yieldPos=N||this.yieldPos,this.awaitPos=j||this.awaitPos,w.length>1?((i=this.startNodeAt(y,E)).expressions=w,this.finishNodeAt(i,"SequenceExpression",F,B)):i=w[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var $=this.startNodeAt(n,a);return $.expression=i,this.finishNode($,"ParenthesizedExpression")}return i},ge.parseParenItem=function(e){return e},ge.parseParenArrowList=function(e,t,i,n){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,n)};var xe=[];ge.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===O.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var i=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var n=this.start,a=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),n,a,!0,!1),this.eat(O.parenL)?e.arguments=this.parseExprList(O.parenR,this.options.ecmaVersion>=8,!1):e.arguments=xe,this.finishNode(e,"NewExpression")},ge.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===O.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),i.tail=this.type===O.backQuote,this.finishNode(i,"TemplateElement")},ge.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var n=this.parseTemplateElement({isTagged:t});for(i.quasis=[n];!n.tail;)this.type===O.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(O.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(O.braceR),i.quasis.push(n=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")},ge.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===O.name||this.type===O.num||this.type===O.string||this.type===O.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===O.star)&&!j.test(this.input.slice(this.lastTokEnd,this.start))},ge.parseObj=function(e,t){var i=this.startNode(),n=!0,a={};for(i.properties=[],this.next();!this.eat(O.braceR);){if(n)n=!1;else if(this.expect(O.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(O.braceR))break;var c=this.parseProperty(e,t);e||this.checkPropClash(c,a,t),i.properties.push(c)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")},ge.parseProperty=function(e,t){var i,n,a,c,l=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(O.ellipsis))return e?(l.argument=this.parseIdent(!1),this.type===O.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(l,"RestElement")):(l.argument=this.parseMaybeAssign(!1,t),this.type===O.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(l,"SpreadElement"));this.options.ecmaVersion>=6&&(l.method=!1,l.shorthand=!1,(e||t)&&(a=this.start,c=this.startLoc),e||(i=this.eat(O.star)));var y=this.containsEsc;return this.parsePropertyName(l),!e&&!y&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(l)?(n=!0,i=this.options.ecmaVersion>=9&&this.eat(O.star),this.parsePropertyName(l)):n=!1,this.parsePropertyValue(l,e,i,n,a,c,t,y),this.finishNode(l,"Property")},ge.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var i="get"===e.kind?0:1;if(e.value.params.length!==i){var n=e.value.start;"get"===e.kind?this.raiseRecoverable(n,"getter should have no params"):this.raiseRecoverable(n,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},ge.parsePropertyValue=function(e,t,i,n,a,c,l,y){(i||n)&&this.type===O.colon&&this.unexpected(),this.eat(O.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,l),e.kind="init"):this.options.ecmaVersion>=6&&this.type===O.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(i,n),e.kind="init"):t||y||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===O.comma||this.type===O.braceR||this.type===O.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((i||n)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=a),t?e.value=this.parseMaybeDefault(a,c,this.copyNode(e.key)):this.type===O.eq&&l?(l.shorthandAssign<0&&(l.shorthandAssign=this.start),e.value=this.parseMaybeDefault(a,c,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected():((i||n)&&this.unexpected(),this.parseGetterSetter(e))},ge.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(O.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(O.bracketR),e.key;e.computed=!1}return e.key=this.type===O.num||this.type===O.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},ge.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},ge.parseMethod=function(e,t,i){var n=this.startNode(),a=this.yieldPos,c=this.awaitPos,l=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|functionFlags(t,n.generator)|(i?128:0)),this.expect(O.parenL),n.params=this.parseBindingList(O.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0,!1),this.yieldPos=a,this.awaitPos=c,this.awaitIdentPos=l,this.finishNode(n,"FunctionExpression")},ge.parseArrowExpression=function(e,t,i,n){var a=this.yieldPos,c=this.awaitPos,l=this.awaitIdentPos;return this.enterScope(16|functionFlags(i,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,n),this.yieldPos=a,this.awaitPos=c,this.awaitIdentPos=l,this.finishNode(e,"ArrowFunctionExpression")},ge.parseFunctionBody=function(e,t,i,n){var a=t&&this.type!==O.braceL,c=this.strict,l=!1;if(a)e.body=this.parseMaybeAssign(n),e.expression=!0,this.checkParams(e,!1);else{var y=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);c&&!y||(l=this.strictDirective(this.end))&&y&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var E=this.labels;this.labels=[],l&&(this.strict=!0),this.checkParams(e,!c&&!l&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,l&&!c),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=E}this.exitScope()},ge.isSimpleParamList=function(e){for(var t=0,i=e;t<i.length;t+=1){if("Identifier"!==i[t].type)return!1}return!0},ge.checkParams=function(e,t){for(var i=Object.create(null),n=0,a=e.params;n<a.length;n+=1){var c=a[n];this.checkLValInnerPattern(c,1,t?null:i)}},ge.parseExprList=function(e,t,i,n){for(var a=[],c=!0;!this.eat(e);){if(c)c=!1;else if(this.expect(O.comma),t&&this.afterTrailingComma(e))break;var l=void 0;i&&this.type===O.comma?l=null:this.type===O.ellipsis?(l=this.parseSpread(n),n&&this.type===O.comma&&n.trailingComma<0&&(n.trailingComma=this.start)):l=this.parseMaybeAssign(!1,n),a.push(l)}return a},ge.checkUnreserved=function(e){var t=e.start,i=e.end,n=e.name;(this.inGenerator&&"yield"===n&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===n&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().flags&se||"arguments"!==n||this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==n&&"await"!==n||this.raise(t,"Cannot use "+n+" in class static initialization block"),this.keywords.test(n)&&this.raise(t,"Unexpected keyword '"+n+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,i).indexOf("\\"))||(this.strict?this.reservedWordsStrict:this.reservedWords).test(n)&&(this.inAsync||"await"!==n||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+n+"' is reserved"))},ge.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),"await"!==t.name||this.awaitIdentPos||(this.awaitIdentPos=t.start)),t},ge.parseIdentNode=function(){var e=this.startNode();return this.type===O.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,"class"!==e.name&&"function"!==e.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop(),this.type=O.name):this.unexpected(),e},ge.parsePrivateIdent=function(){var e=this.startNode();return this.type===O.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},ge.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===O.semi||this.canInsertSemicolon()||this.type!==O.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(O.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},ge.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var ve=acorn_Parser.prototype;ve.raise=function(e,t){var i=getLineInfo(this.input,e);t+=" ("+i.line+":"+i.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var n=new SyntaxError(t);throw n.pos=e,n.loc=i,n.raisedAt=this.pos,n},ve.raiseRecoverable=ve.raise,ve.curPosition=function(){if(this.options.locations)return new acorn_Position(this.curLine,this.pos-this.lineStart)};var ye=acorn_Parser.prototype,acorn_Scope=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};ye.enterScope=function(e){this.scopeStack.push(new acorn_Scope(e))},ye.exitScope=function(){this.scopeStack.pop()},ye.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},ye.declareName=function(e,t,i){var n=!1;if(2===t){var a=this.currentScope();n=a.lexical.indexOf(e)>-1||a.functions.indexOf(e)>-1||a.var.indexOf(e)>-1,a.lexical.push(e),this.inModule&&1&a.flags&&delete this.undefinedExports[e]}else if(4===t){this.currentScope().lexical.push(e)}else if(3===t){var c=this.currentScope();n=this.treatFunctionsAsVar?c.lexical.indexOf(e)>-1:c.lexical.indexOf(e)>-1||c.var.indexOf(e)>-1,c.functions.push(e)}else for(var l=this.scopeStack.length-1;l>=0;--l){var y=this.scopeStack[l];if(y.lexical.indexOf(e)>-1&&!(32&y.flags&&y.lexical[0]===e)||!this.treatFunctionsAsVarInScope(y)&&y.functions.indexOf(e)>-1){n=!0;break}if(y.var.push(e),this.inModule&&1&y.flags&&delete this.undefinedExports[e],y.flags&se)break}n&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")},ye.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},ye.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ye.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(771&t.flags)return t}},ye.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(771&t.flags&&!(16&t.flags))return t}};var acorn_Node=function(e,t,i){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new acorn_SourceLocation(e,i)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},_e=acorn_Parser.prototype;function finishNodeAt(e,t,i,n){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=n),this.options.ranges&&(e.range[1]=i),e}_e.startNode=function(){return new acorn_Node(this,this.start,this.startLoc)},_e.startNodeAt=function(e,t){return new acorn_Node(this,e,t)},_e.finishNode=function(e,t){return finishNodeAt.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},_e.finishNodeAt=function(e,t,i,n){return finishNodeAt.call(this,e,t,i,n)},_e.copyNode=function(e){var t=new acorn_Node(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var Ee="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",be=Ee+" Extended_Pictographic",ke=be+" EBase EComp EMod EPres ExtPict",we={9:Ee,10:be,11:be,12:ke,13:ke,14:ke},Ce={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},Se="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Ie="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Te=Ie+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Re=Te+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Ae=Re+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Le=Ae+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Oe={9:Ie,10:Te,11:Re,12:Ae,13:Le,14:Le+" Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz"},De={};function buildUnicodeData(e){var t=De[e]={binary:wordsRegexp(we[e]+" "+Se),binaryOfStrings:wordsRegexp(Ce[e]),nonBinary:{General_Category:wordsRegexp(Se),Script:wordsRegexp(Oe[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var Ve=0,Ue=[9,10,11,12,13,14];Ve<Ue.length;Ve+=1){buildUnicodeData(Ue[Ve])}var Me=acorn_Parser.prototype,acorn_BranchID=function(e,t){this.parent=e,this.base=t||this};acorn_BranchID.prototype.separatedFrom=function(e){for(var t=this;t;t=t.parent)for(var i=e;i;i=i.parent)if(t.base===i.base&&t!==i)return!0;return!1},acorn_BranchID.prototype.sibling=function(){return new acorn_BranchID(this.parent,this.base)};var acorn_RegExpValidationState=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=De[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function isRegularExpressionModifier(e){return 105===e||109===e||115===e}function isSyntaxCharacter(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function isControlLetter(e){return e>=65&&e<=90||e>=97&&e<=122}acorn_RegExpValidationState.prototype.reset=function(e,t,i){var n=-1!==i.indexOf("v"),a=-1!==i.indexOf("u");this.start=0|e,this.source=t+"",this.flags=i,n&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=a&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=a&&this.parser.options.ecmaVersion>=9)},acorn_RegExpValidationState.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},acorn_RegExpValidationState.prototype.at=function(e,t){void 0===t&&(t=!1);var i=this.source,n=i.length;if(e>=n)return-1;var a=i.charCodeAt(e);if(!t&&!this.switchU||a<=55295||a>=57344||e+1>=n)return a;var c=i.charCodeAt(e+1);return c>=56320&&c<=57343?(a<<10)+c-56613888:a},acorn_RegExpValidationState.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var i=this.source,n=i.length;if(e>=n)return n;var a,c=i.charCodeAt(e);return!t&&!this.switchU||c<=55295||c>=57344||e+1>=n||(a=i.charCodeAt(e+1))<56320||a>57343?e+1:e+2},acorn_RegExpValidationState.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},acorn_RegExpValidationState.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},acorn_RegExpValidationState.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},acorn_RegExpValidationState.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},acorn_RegExpValidationState.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var i=this.pos,n=0,a=e;n<a.length;n+=1){var c=a[n],l=this.at(i,t);if(-1===l||l!==c)return!1;i=this.nextIndex(i,t)}return this.pos=i,!0},Me.validateRegExpFlags=function(e){for(var t=e.validFlags,i=e.flags,n=!1,a=!1,c=0;c<i.length;c++){var l=i.charAt(c);-1===t.indexOf(l)&&this.raise(e.start,"Invalid regular expression flag"),i.indexOf(l,c+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===l&&(n=!0),"v"===l&&(a=!0)}this.options.ecmaVersion>=15&&n&&a&&this.raise(e.start,"Invalid regular expression flag")},Me.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&function(e){for(var t in e)return!0;return!1}(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},Me.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,i=e.backReferenceNames;t<i.length;t+=1){var n=i[t];e.groupNames[n]||e.raise("Invalid named capture referenced")}},Me.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new acorn_BranchID(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},Me.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},Me.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},Me.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var i=!1;if(this.options.ecmaVersion>=9&&(i=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!i,!0}return e.pos=t,!1},Me.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},Me.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Me.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var n=0,a=-1;if(this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(a=e.lastIntValue),e.eat(125)))return-1!==a&&a<n&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=i}return!1},Me.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},Me.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},Me.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var i=this.regexp_eatModifiers(e),n=e.eat(45);if(i||n){for(var a=0;a<i.length;a++){var c=i.charAt(a);i.indexOf(c,a+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(n){var l=this.regexp_eatModifiers(e);i||l||58!==e.current()||e.raise("Invalid regular expression modifiers");for(var y=0;y<l.length;y++){var E=l.charAt(y);(l.indexOf(E,y+1)>-1||i.indexOf(E)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1},Me.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},Me.regexp_eatModifiers=function(e){for(var t="",i=0;-1!==(i=e.current())&&isRegularExpressionModifier(i);)t+=codePointToString(i),e.advance();return t},Me.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},Me.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},Me.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!isSyntaxCharacter(t)&&(e.lastIntValue=t,e.advance(),!0)},Me.regexp_eatPatternCharacters=function(e){for(var t=e.pos,i=0;-1!==(i=e.current())&&!isSyntaxCharacter(i);)e.advance();return e.pos!==t},Me.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t)&&(e.advance(),!0)},Me.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,i=e.groupNames[e.lastStringValue];if(i)if(t)for(var n=0,a=i;n<a.length;n+=1){a[n].separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(i||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}},Me.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},Me.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=codePointToString(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=codePointToString(e.lastIntValue);return!0}return!1},Me.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,n=e.current(i);return e.advance(i),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(n=e.lastIntValue),function(e){return isIdentifierStart(e,!0)||36===e||95===e}(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},Me.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,n=e.current(i);return e.advance(i),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(n=e.lastIntValue),function(e){return isIdentifierChar(e,!0)||36===e||95===e||8204===e||8205===e}(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},Me.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},Me.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var i=e.lastIntValue;if(e.switchU)return i>e.maxBackReference&&(e.maxBackReference=i),!0;if(i<=e.numCapturingParens)return!0;e.pos=t}return!1},Me.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},Me.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},Me.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Me.regexp_eatZero=function(e){return 48===e.current()&&!isDecimalDigit(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Me.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},Me.regexp_eatControlLetter=function(e){var t=e.current();return!!isControlLetter(t)&&(e.lastIntValue=t%32,e.advance(),!0)},Me.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var i,n=e.pos,a=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var c=e.lastIntValue;if(a&&c>=55296&&c<=56319){var l=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var y=e.lastIntValue;if(y>=56320&&y<=57343)return e.lastIntValue=1024*(c-55296)+(y-56320)+65536,!0}e.pos=l,e.lastIntValue=c}return!0}if(a&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&((i=e.lastIntValue)>=0&&i<=1114111))return!0;a&&e.raise("Invalid unicode escape"),e.pos=n}return!1},Me.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t)&&(e.lastIntValue=t,e.advance(),!0)},Me.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1};function isUnicodePropertyNameCharacter(e){return isControlLetter(e)||95===e}function isUnicodePropertyValueCharacter(e){return isUnicodePropertyNameCharacter(e)||isDecimalDigit(e)}function isDecimalDigit(e){return e>=48&&e<=57}function isHexDigit(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function hexToInt(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function isOctalDigit(e){return e>=48&&e<=55}Me.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),1;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=80===t)||112===t)){var n;if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(n=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&2===n&&e.raise("Invalid property name"),n;e.raise("Invalid property name")}return 0},Me.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var i=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,n),1}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var a=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,a)}return 0},Me.regexp_validateUnicodePropertyNameAndValue=function(e,t,i){H(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")},Me.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?1:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?2:void e.raise("Invalid property name")},Me.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";isUnicodePropertyNameCharacter(t=e.current());)e.lastStringValue+=codePointToString(t),e.advance();return""!==e.lastStringValue},Me.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";isUnicodePropertyValueCharacter(t=e.current());)e.lastStringValue+=codePointToString(t),e.advance();return""!==e.lastStringValue},Me.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Me.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),i=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&2===i&&e.raise("Negated character class may contain strings"),!0}return!1},Me.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},Me.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var i=e.lastIntValue;!e.switchU||-1!==t&&-1!==i||e.raise("Invalid character class"),-1!==t&&-1!==i&&t>i&&e.raise("Range out of order in character class")}}},Me.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var i=e.current();(99===i||isOctalDigit(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var n=e.current();return 93!==n&&(e.lastIntValue=n,e.advance(),!0)},Me.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},Me.regexp_classSetExpression=function(e){var t,i=1;if(this.regexp_eatClassSetRange(e));else if(t=this.regexp_eatClassSetOperand(e)){2===t&&(i=2);for(var n=e.pos;e.eatChars([38,38]);)38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))?2!==t&&(i=1):e.raise("Invalid character in character class");if(n!==e.pos)return i;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(n!==e.pos)return i}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return i;2===t&&(i=2)}},Me.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;return-1!==i&&-1!==n&&i>n&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},Me.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},Me.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var i=e.eat(94),n=this.regexp_classContents(e);if(e.eat(93))return i&&2===n&&e.raise("Negated character class may contain strings"),n;e.pos=t}if(e.eat(92)){var a=this.regexp_eatCharacterClassEscape(e);if(a)return a;e.pos=t}return null},Me.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var i=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return i}else e.raise("Invalid escape");e.pos=t}return null},Me.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},Me.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},Me.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return!(!this.regexp_eatCharacterEscape(e)&&!this.regexp_eatClassSetReservedPunctuator(e))||(e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1));var i=e.current();return!(i<0||i===e.lookahead()&&function(e){return 33===e||e>=35&&e<=38||e>=42&&e<=44||46===e||e>=58&&e<=64||94===e||96===e||126===e}(i))&&(!function(e){return 40===e||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125}(i)&&(e.advance(),e.lastIntValue=i,!0))},Me.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return!!function(e){return 33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e}(t)&&(e.lastIntValue=t,e.advance(),!0)},Me.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!isDecimalDigit(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},Me.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},Me.regexp_eatDecimalDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;isDecimalDigit(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t},Me.regexp_eatHexDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;isHexDigit(i=e.current());)e.lastIntValue=16*e.lastIntValue+hexToInt(i),e.advance();return e.pos!==t},Me.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*i+e.lastIntValue:e.lastIntValue=8*t+i}else e.lastIntValue=t;return!0}return!1},Me.regexp_eatOctalDigit=function(e){var t=e.current();return isOctalDigit(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},Me.regexp_eatFixedHexDigits=function(e,t){var i=e.pos;e.lastIntValue=0;for(var n=0;n<t;++n){var a=e.current();if(!isHexDigit(a))return e.pos=i,!1;e.lastIntValue=16*e.lastIntValue+hexToInt(a),e.advance()}return!0};var acorn_Token=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new acorn_SourceLocation(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},je=acorn_Parser.prototype;function stringToBigInt(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}je.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new acorn_Token(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},je.getToken=function(){return this.next(),new acorn_Token(this)},"undefined"!=typeof Symbol&&(je[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===O.eof,value:t}}}}),je.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(O.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},je.readToken=function(e){return isIdentifierStart(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},je.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var i=this.input.charCodeAt(e+1);return i<=56319||i>=57344?t:(t<<10)+i-56613888},je.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},je.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(-1===i&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var n=void 0,a=t;(n=nextLineBreak(this.input,a,this.pos))>-1;)++this.curLine,a=this.lineStart=n;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())},je.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!isNewLine(n);)n=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,i,this.curPosition())},je.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&B.test(String.fromCharCode(e))))break e;++this.pos}}},je.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=e,this.value=t,this.updateContext(i)},je.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(O.ellipsis)):(++this.pos,this.finishToken(O.dot))},je.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(O.assign,2):this.finishOp(O.slash,1)},je.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,n=42===e?O.star:O.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++i,n=O.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(O.assign,i+1):this.finishOp(n,i)},je.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(O.assign,3);return this.finishOp(124===e?O.logicalOR:O.logicalAND,2)}return 61===t?this.finishOp(O.assign,2):this.finishOp(124===e?O.bitwiseOR:O.bitwiseAND,1)},je.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(O.assign,2):this.finishOp(O.bitwiseXOR,1)},je.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!j.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(O.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(O.assign,2):this.finishOp(O.plusMin,1)},je.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),i=1;return t===e?(i=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+i)?this.finishOp(O.assign,i+1):this.finishOp(O.bitShift,i)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(i=2),this.finishOp(O.relational,i)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},je.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(O.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(O.arrow)):this.finishOp(61===e?O.eq:O.prefix,1)},je.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(O.questionDot,2)}if(63===t){if(e>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(O.assign,3);return this.finishOp(O.coalesce,2)}}return this.finishOp(O.question,1)},je.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,isIdentifierStart(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(O.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+codePointToString(e)+"'")},je.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(O.parenL);case 41:return++this.pos,this.finishToken(O.parenR);case 59:return++this.pos,this.finishToken(O.semi);case 44:return++this.pos,this.finishToken(O.comma);case 91:return++this.pos,this.finishToken(O.bracketL);case 93:return++this.pos,this.finishToken(O.bracketR);case 123:return++this.pos,this.finishToken(O.braceL);case 125:return++this.pos,this.finishToken(O.braceR);case 58:return++this.pos,this.finishToken(O.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(O.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(O.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+codePointToString(e)+"'")},je.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)},je.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(j.test(n)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if("["===n)t=!0;else if("]"===n&&t)t=!1;else if("/"===n&&!t)break;e="\\"===n}++this.pos}var a=this.input.slice(i,this.pos);++this.pos;var c=this.pos,l=this.readWord1();this.containsEsc&&this.unexpected(c);var y=this.regexpState||(this.regexpState=new acorn_RegExpValidationState(this));y.reset(i,a,l),this.validateRegExpFlags(y),this.validateRegExpPattern(y);var E=null;try{E=new RegExp(a,l)}catch(e){}return this.finishToken(O.regexp,{pattern:a,flags:l,value:E})},je.readInt=function(e,t,i){for(var n=this.options.ecmaVersion>=12&&void 0===t,a=i&&48===this.input.charCodeAt(this.pos),c=this.pos,l=0,y=0,E=0,w=null==t?1/0:t;E<w;++E,++this.pos){var C=this.input.charCodeAt(this.pos),S=void 0;if(n&&95===C)a&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===y&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===E&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),y=C;else{if((S=C>=97?C-97+10:C>=65?C-65+10:C>=48&&C<=57?C-48:1/0)>=e)break;y=C,l=l*e+S}}return n&&95===y&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===c||null!=t&&this.pos-c!==t?null:l},je.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var i=this.readInt(e);return null==i&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(i=stringToBigInt(this.input.slice(t,this.pos)),++this.pos):isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(O.num,i)},je.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var i=this.pos-t>=2&&48===this.input.charCodeAt(t);i&&this.strict&&this.raise(t,"Invalid number");var n=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&110===n){var a=stringToBigInt(this.input.slice(t,this.pos));return++this.pos,isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(O.num,a)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),46!==n||i||(++this.pos,this.readInt(10),n=this.input.charCodeAt(this.pos)),69!==n&&101!==n||i||(43!==(n=this.input.charCodeAt(++this.pos))&&45!==n||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var c,l=(c=this.input.slice(t,this.pos),i?parseInt(c,8):parseFloat(c.replace(/_/g,"")));return this.finishToken(O.num,l)},je.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},je.readString=function(e){for(var t="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;92===n?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):8232===n||8233===n?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(isNewLine(n)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(O.string,t)};var Fe={};je.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==Fe)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},je.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Fe;this.raise(e,t)},je.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==O.template&&this.type!==O.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(O.template,e)):36===i?(this.pos+=2,this.finishToken(O.dollarBraceL)):(++this.pos,this.finishToken(O.backQuote));if(92===i)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(isNewLine(i)){switch(e+=this.input.slice(t,this.pos),++this.pos,i){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(i)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},je.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(O.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":"\n"===this.input[this.pos+1]&&++this.pos;case"\n":case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},je.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return codePointToString(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],a=parseInt(n,8);return a>255&&(n=n.slice(0,-1),a=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),"0"===n&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(a)}return isNewLine(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}},je.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return null===i&&this.invalidStringToken(t,"Bad character escape sequence"),i},je.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,n=this.options.ecmaVersion>=6;this.pos<this.input.length;){var a=this.fullCharCodeAtPos();if(isIdentifierChar(a,n))this.pos+=a<=65535?1:2;else{if(92!==a)break;this.containsEsc=!0,e+=this.input.slice(i,this.pos);var c=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var l=this.readCodePoint();(t?isIdentifierStart:isIdentifierChar)(l,n)||this.invalidStringToken(c,"Invalid Unicode escape"),e+=codePointToString(l),i=this.pos}t=!1}return e+this.input.slice(i,this.pos)},je.readWord=function(){var e=this.readWord1(),t=O.name;return this.keywords.test(e)&&(t=N[e]),this.finishToken(t,e)};acorn_Parser.acorn={Parser:acorn_Parser,version:"8.16.0",defaultOptions:X,Position:acorn_Position,SourceLocation:acorn_SourceLocation,getLineInfo,Node:acorn_Node,TokenType:acorn_TokenType,tokTypes:O,keywordTypes:N,TokContext:acorn_TokContext,tokContexts:fe,isIdentifierChar,isIdentifierStart,Token:acorn_Token,isNewLine,lineBreak:j,lineBreakG:F,nonASCIIwhitespace:B};var Be=__webpack_require__("node:module"),$e=__webpack_require__("node:fs");String.fromCharCode;const qe=/\/$|\/\?|\/#/,Ge=/^\.?\//;function hasTrailingSlash(e="",t){return t?qe.test(e):e.endsWith("/")}function withTrailingSlash(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(hasTrailingSlash(e,!0))return e||"/";let i=e,n="";const a=e.indexOf("#");if(-1!==a&&(i=e.slice(0,a),n=e.slice(a),!i))return n;const[c,...l]=i.split("?");return c+"/"+(l.length>0?`?${l.join("?")}`:"")+n}function isNonEmptyURL(e){return e&&"/"!==e}function dist_joinURL(e,...t){let i=e||"";for(const e of t.filter(e=>isNonEmptyURL(e)))if(i){const t=e.replace(Ge,"");i=withTrailingSlash(i)+t}else i=e;return i}Symbol.for("ufo:protocolRelative");const Ke=/^[A-Za-z]:\//;function pathe_M_eThtNZ_normalizeWindowsPath(e=""){return e?e.replace(/\\/g,"/").replace(Ke,e=>e.toUpperCase()):e}const He=/^[/\\]{2}/,ze=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Je=/^[A-Za-z]:$/,Ye=/.(\.[^./]+|\.)$/,pathe_M_eThtNZ_normalize=function(e){if(0===e.length)return".";const t=(e=pathe_M_eThtNZ_normalizeWindowsPath(e)).match(He),i=isAbsolute(e),n="/"===e[e.length-1];return 0===(e=normalizeString(e,!i)).length?i?"/":n?"./":".":(n&&(e+="/"),Je.test(e)&&(e+="/"),t?i?`//${e}`:`//./${e}`:i&&!isAbsolute(e)?`/${e}`:e)},pathe_M_eThtNZ_join=function(...e){let t="";for(const i of e)if(i)if(t.length>0){const e="/"===t[t.length-1],n="/"===i[0];t+=e&&n?i.slice(1):e||n?i:`/${i}`}else t+=i;return pathe_M_eThtNZ_normalize(t)};function pathe_M_eThtNZ_cwd(){return"undefined"!=typeof process&&"function"==typeof process.cwd?process.cwd().replace(/\\/g,"/"):"/"}const pathe_M_eThtNZ_resolve=function(...e){let t="",i=!1;for(let n=(e=e.map(e=>pathe_M_eThtNZ_normalizeWindowsPath(e))).length-1;n>=-1&&!i;n--){const a=n>=0?e[n]:pathe_M_eThtNZ_cwd();a&&0!==a.length&&(t=`${a}/${t}`,i=isAbsolute(a))}return t=normalizeString(t,!i),i&&!isAbsolute(t)?`/${t}`:t.length>0?t:"."};function normalizeString(e,t){let i="",n=0,a=-1,c=0,l=null;for(let y=0;y<=e.length;++y){if(y<e.length)l=e[y];else{if("/"===l)break;l="/"}if("/"===l){if(a===y-1||1===c);else if(2===c){if(i.length<2||2!==n||"."!==i[i.length-1]||"."!==i[i.length-2]){if(i.length>2){const e=i.lastIndexOf("/");-1===e?(i="",n=0):(i=i.slice(0,e),n=i.length-1-i.lastIndexOf("/")),a=y,c=0;continue}if(i.length>0){i="",n=0,a=y,c=0;continue}}t&&(i+=i.length>0?"/..":"..",n=2)}else i.length>0?i+=`/${e.slice(a+1,y)}`:i=e.slice(a+1,y),n=y-a-1;a=y,c=0}else"."===l&&-1!==c?++c:c=-1}return i}const isAbsolute=function(e){return ze.test(e)},extname=function(e){if(".."===e)return"";const t=Ye.exec(pathe_M_eThtNZ_normalizeWindowsPath(e));return t&&t[1]||""},pathe_M_eThtNZ_dirname=function(e){const t=pathe_M_eThtNZ_normalizeWindowsPath(e).replace(/\/$/,"").split("/").slice(0,-1);return 1===t.length&&Je.test(t[0])&&(t[0]+="/"),t.join("/")||(isAbsolute(e)?"/":".")},basename=function(e,t){const i=pathe_M_eThtNZ_normalizeWindowsPath(e).split("/");let n="";for(let e=i.length-1;e>=0;e--){const t=i[e];if(t){n=t;break}}return t&&n.endsWith(t)?n.slice(0,-t.length):n},Qe=require("node:url"),Ze=require("node:assert"),Xe=require("node:process");var et=__webpack_require__("node:path");const tt=require("node:v8"),it=require("node:util"),st=new Set(Be.builtinModules);function normalizeSlash(e){return e.replace(/\\/g,"/")}const rt={}.hasOwnProperty,nt=/^([A-Z][a-z\d]*)+$/,at=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),ot={};function formatList(e,t="and"){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}const ct=new Map;let ht;function createError(e,t,i){return ct.set(e,t),function(e,t){return NodeError;function NodeError(...i){const n=Error.stackTraceLimit;isErrorStackTraceLimitWritable()&&(Error.stackTraceLimit=0);const a=new e;isErrorStackTraceLimitWritable()&&(Error.stackTraceLimit=n);const c=function(e,t,i){const n=ct.get(e);if(Ze.ok(void 0!==n,"expected `message` to be found"),"function"==typeof n)return Ze.ok(n.length<=t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${n.length}).`),Reflect.apply(n,i,t);const a=/%[dfijoOs]/g;let c=0;for(;null!==a.exec(n);)c++;return Ze.ok(c===t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${c}).`),0===t.length?n:(t.unshift(n),Reflect.apply(it.format,null,t))}(t,i,a);return Object.defineProperties(a,{message:{value:c,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),lt(a),a.code=t,a}}(i,e)}function isErrorStackTraceLimitWritable(){try{if(tt.startupSnapshot.isBuildingSnapshot())return!1}catch{}const e=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return void 0===e?Object.isExtensible(Error):rt.call(e,"writable")&&void 0!==e.writable?e.writable:void 0!==e.set}ot.ERR_INVALID_ARG_TYPE=createError("ERR_INVALID_ARG_TYPE",(e,t,i)=>{Ze.ok("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let n="The ";if(e.endsWith(" argument"))n+=`${e} `;else{const t=e.includes(".")?"property":"argument";n+=`"${e}" ${t} `}n+="must be ";const a=[],c=[],l=[];for(const e of t)Ze.ok("string"==typeof e,"All expected entries have to be of type string"),at.has(e)?a.push(e.toLowerCase()):null===nt.exec(e)?(Ze.ok("object"!==e,'The value "object" should be written as "Object"'),l.push(e)):c.push(e);if(c.length>0){const e=a.indexOf("object");-1!==e&&(a.slice(e,1),c.push("Object"))}return a.length>0&&(n+=`${a.length>1?"one of type":"of type"} ${formatList(a,"or")}`,(c.length>0||l.length>0)&&(n+=" or ")),c.length>0&&(n+=`an instance of ${formatList(c,"or")}`,l.length>0&&(n+=" or ")),l.length>0&&(l.length>1?n+=`one of ${formatList(l,"or")}`:(l[0].toLowerCase()!==l[0]&&(n+="an "),n+=`${l[0]}`)),n+=`. Received ${function(e){if(null==e)return String(e);if("function"==typeof e&&e.name)return`function ${e.name}`;if("object"==typeof e)return e.constructor&&e.constructor.name?`an instance of ${e.constructor.name}`:`${(0,it.inspect)(e,{depth:-1})}`;let t=(0,it.inspect)(e,{colors:!1});t.length>28&&(t=`${t.slice(0,25)}...`);return`type ${typeof e} (${t})`}(i)}`,n},TypeError),ot.ERR_INVALID_MODULE_SPECIFIER=createError("ERR_INVALID_MODULE_SPECIFIER",(e,t,i=void 0)=>`Invalid module "${e}" ${t}${i?` imported from ${i}`:""}`,TypeError),ot.ERR_INVALID_PACKAGE_CONFIG=createError("ERR_INVALID_PACKAGE_CONFIG",(e,t,i)=>`Invalid package config ${e}${t?` while importing ${t}`:""}${i?`. ${i}`:""}`,Error),ot.ERR_INVALID_PACKAGE_TARGET=createError("ERR_INVALID_PACKAGE_TARGET",(e,t,i,n=!1,a=void 0)=>{const c="string"==typeof i&&!n&&i.length>0&&!i.startsWith("./");return"."===t?(Ze.ok(!1===n),`Invalid "exports" main target ${JSON.stringify(i)} defined in the package config ${e}package.json${a?` imported from ${a}`:""}${c?'; targets must start with "./"':""}`):`Invalid "${n?"imports":"exports"}" target ${JSON.stringify(i)} defined for '${t}' in the package config ${e}package.json${a?` imported from ${a}`:""}${c?'; targets must start with "./"':""}`},Error),ot.ERR_MODULE_NOT_FOUND=createError("ERR_MODULE_NOT_FOUND",(e,t,i=!1)=>`Cannot find ${i?"module":"package"} '${e}' imported from ${t}`,Error),ot.ERR_NETWORK_IMPORT_DISALLOWED=createError("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error),ot.ERR_PACKAGE_IMPORT_NOT_DEFINED=createError("ERR_PACKAGE_IMPORT_NOT_DEFINED",(e,t,i)=>`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:""} imported from ${i}`,TypeError),ot.ERR_PACKAGE_PATH_NOT_EXPORTED=createError("ERR_PACKAGE_PATH_NOT_EXPORTED",(e,t,i=void 0)=>"."===t?`No "exports" main defined in ${e}package.json${i?` imported from ${i}`:""}`:`Package subpath '${t}' is not defined by "exports" in ${e}package.json${i?` imported from ${i}`:""}`,Error),ot.ERR_UNSUPPORTED_DIR_IMPORT=createError("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error),ot.ERR_UNSUPPORTED_RESOLVE_REQUEST=createError("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError),ot.ERR_UNKNOWN_FILE_EXTENSION=createError("ERR_UNKNOWN_FILE_EXTENSION",(e,t)=>`Unknown file extension "${e}" for ${t}`,TypeError),ot.ERR_INVALID_ARG_VALUE=createError("ERR_INVALID_ARG_VALUE",(e,t,i="is invalid")=>{let n=(0,it.inspect)(t);n.length>128&&(n=`${n.slice(0,128)}...`);return`The ${e.includes(".")?"property":"argument"} '${e}' ${i}. Received ${n}`},TypeError);const lt=function(e){const t="__node_internal_"+e.name;return Object.defineProperty(e,"name",{value:t}),e}(function(e){const t=isErrorStackTraceLimitWritable();return t&&(ht=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(e),t&&(Error.stackTraceLimit=ht),e});const pt={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:ut}=ot,dt=new Map;function read(e,{base:t,specifier:i}){const n=dt.get(e);if(n)return n;let a;try{a=$e.readFileSync(et.toNamespacedPath(e),"utf8")}catch(e){const t=e;if("ENOENT"!==t.code)throw t}const c={exists:!1,pjsonPath:e,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(void 0!==a){let n;try{n=JSON.parse(a)}catch(n){const a=n,c=new ut(e,(t?`"${i}" from `:"")+(0,Qe.fileURLToPath)(t||i),a.message);throw c.cause=a,c}c.exists=!0,pt.call(n,"name")&&"string"==typeof n.name&&(c.name=n.name),pt.call(n,"main")&&"string"==typeof n.main&&(c.main=n.main),pt.call(n,"exports")&&(c.exports=n.exports),pt.call(n,"imports")&&(c.imports=n.imports),!pt.call(n,"type")||"commonjs"!==n.type&&"module"!==n.type||(c.type=n.type)}return dt.set(e,c),c}function getPackageScopeConfig(e){let t=new URL("package.json",e);for(;;){if(t.pathname.endsWith("node_modules/package.json"))break;const i=read((0,Qe.fileURLToPath)(t),{specifier:e});if(i.exists)return i;const n=t;if(t=new URL("../package.json",t),t.pathname===n.pathname)break}return{pjsonPath:(0,Qe.fileURLToPath)(t),exists:!1,type:"none"}}function getPackageType(e){return getPackageScopeConfig(e).type}const{ERR_UNKNOWN_FILE_EXTENSION:ft}=ot,mt={}.hasOwnProperty,gt={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"};const xt={__proto__:null,"data:":function(e){const{1:t}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e.pathname)||[null,null,null];return function(e){return e&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(e)?"module":"application/json"===e?"json":null}(t)},"file:":function(e,t,i){const n=function(e){const t=e.pathname;let i=t.length;for(;i--;){const e=t.codePointAt(i);if(47===e)return"";if(46===e)return 47===t.codePointAt(i-1)?"":t.slice(i)}return""}(e);if(".js"===n){const t=getPackageType(e);return"none"!==t?t:"commonjs"}if(""===n){const t=getPackageType(e);return"none"===t||"commonjs"===t?"commonjs":"module"}const a=gt[n];if(a)return a;if(i)return;const c=(0,Qe.fileURLToPath)(e);throw new ft(n,c)},"http:":getHttpProtocolModuleFormat,"https:":getHttpProtocolModuleFormat,"node:":()=>"builtin"};function getHttpProtocolModuleFormat(){}const vt=Object.freeze(["node","import"]),yt=new Set(vt);function getConditionsSet(e){return yt}const _t=RegExp.prototype[Symbol.replace],{ERR_INVALID_MODULE_SPECIFIER:Et,ERR_INVALID_PACKAGE_CONFIG:bt,ERR_INVALID_PACKAGE_TARGET:kt,ERR_MODULE_NOT_FOUND:wt,ERR_PACKAGE_IMPORT_NOT_DEFINED:Ct,ERR_PACKAGE_PATH_NOT_EXPORTED:St,ERR_UNSUPPORTED_DIR_IMPORT:It,ERR_UNSUPPORTED_RESOLVE_REQUEST:Tt}=ot,Rt={}.hasOwnProperty,At=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,Pt=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,Lt=/^\.|%|\\/,Nt=/\*/g,Ot=/%2f|%5c/i,Dt=new Set,Vt=/[/\\]{2}/;function emitInvalidSegmentDeprecation(e,t,i,n,a,c,l){if(Xe.noDeprecation)return;const y=(0,Qe.fileURLToPath)(n),E=null!==Vt.exec(l?e:t);Xe.emitWarning(`Use of deprecated ${E?"double slash":"leading or trailing slash matching"} resolving "${e}" for module request "${t}" ${t===i?"":`matched to "${i}" `}in the "${a?"imports":"exports"}" field module resolution of the package at ${y}${c?` imported from ${(0,Qe.fileURLToPath)(c)}`:""}.`,"DeprecationWarning","DEP0166")}function emitLegacyIndexDeprecation(e,t,i,n){if(Xe.noDeprecation)return;const a=function(e,t){const i=e.protocol;return mt.call(xt,i)&&xt[i](e,t,!0)||null}(e,{parentURL:i.href});if("module"!==a)return;const c=(0,Qe.fileURLToPath)(e.href),l=(0,Qe.fileURLToPath)(new URL(".",t)),y=(0,Qe.fileURLToPath)(i);n?et.resolve(l,n)!==c&&Xe.emitWarning(`Package ${l} has a "main" field set to "${n}", excluding the full filename and extension to the resolved file at "${c.slice(l.length)}", imported from ${y}.\n Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151"):Xe.emitWarning(`No "main" or "exports" field defined in the package.json for ${l} resolving the main entry point "${c.slice(l.length)}", imported from ${y}.\nDefault "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function tryStatSync(e){try{return(0,$e.statSync)(e)}catch{}}function fileExists(e){const t=(0,$e.statSync)(e,{throwIfNoEntry:!1}),i=t?t.isFile():void 0;return null!=i&&i}function legacyMainResolve(e,t,i){let n;if(void 0!==t.main){if(n=new URL(t.main,e),fileExists(n))return n;const a=[`./${t.main}.js`,`./${t.main}.json`,`./${t.main}.node`,`./${t.main}/index.js`,`./${t.main}/index.json`,`./${t.main}/index.node`];let c=-1;for(;++c<a.length&&(n=new URL(a[c],e),!fileExists(n));)n=void 0;if(n)return emitLegacyIndexDeprecation(n,e,i,t.main),n}const a=["./index.js","./index.json","./index.node"];let c=-1;for(;++c<a.length&&(n=new URL(a[c],e),!fileExists(n));)n=void 0;if(n)return emitLegacyIndexDeprecation(n,e,i,t.main),n;throw new wt((0,Qe.fileURLToPath)(new URL(".",e)),(0,Qe.fileURLToPath)(i))}function exportsNotFound(e,t,i){return new St((0,Qe.fileURLToPath)(new URL(".",t)),e,i&&(0,Qe.fileURLToPath)(i))}function invalidPackageTarget(e,t,i,n,a){return t="object"==typeof t&&null!==t?JSON.stringify(t,null,""):`${t}`,new kt((0,Qe.fileURLToPath)(new URL(".",i)),e,t,n,a&&(0,Qe.fileURLToPath)(a))}function resolvePackageTargetString(e,t,i,n,a,c,l,y,E){if(""!==t&&!c&&"/"!==e[e.length-1])throw invalidPackageTarget(i,e,n,l,a);if(!e.startsWith("./")){if(l&&!e.startsWith("../")&&!e.startsWith("/")){let i=!1;try{new URL(e),i=!0}catch{}if(!i){return packageResolve(c?_t.call(Nt,e,()=>t):e+t,n,E)}}throw invalidPackageTarget(i,e,n,l,a)}if(null!==At.exec(e.slice(2))){if(null!==Pt.exec(e.slice(2)))throw invalidPackageTarget(i,e,n,l,a);if(!y){const y=c?i.replace("*",()=>t):i+t;emitInvalidSegmentDeprecation(c?_t.call(Nt,e,()=>t):e,y,i,n,l,a,!0)}}const w=new URL(e,n),C=w.pathname,S=new URL(".",n).pathname;if(!C.startsWith(S))throw invalidPackageTarget(i,e,n,l,a);if(""===t)return w;if(null!==At.exec(t)){const E=c?i.replace("*",()=>t):i+t;if(null===Pt.exec(t)){if(!y){emitInvalidSegmentDeprecation(c?_t.call(Nt,e,()=>t):e,E,i,n,l,a,!1)}}else!function(e,t,i,n,a){const c=`request is not a valid match in pattern "${t}" for the "${n?"imports":"exports"}" resolution of ${(0,Qe.fileURLToPath)(i)}`;throw new Et(e,c,a&&(0,Qe.fileURLToPath)(a))}(E,i,n,l,a)}return c?new URL(_t.call(Nt,w.href,()=>t)):new URL(t,w)}function isArrayIndex(e){const t=Number(e);return`${t}`===e&&(t>=0&&t<4294967295)}function resolvePackageTarget(e,t,i,n,a,c,l,y,E){if("string"==typeof t)return resolvePackageTargetString(t,i,n,e,a,c,l,y,E);if(Array.isArray(t)){const w=t;if(0===w.length)return null;let C,S=-1;for(;++S<w.length;){const t=w[S];let I;try{I=resolvePackageTarget(e,t,i,n,a,c,l,y,E)}catch(e){if(C=e,"ERR_INVALID_PACKAGE_TARGET"===e.code)continue;throw e}if(void 0!==I){if(null!==I)return I;C=null}}if(null==C)return null;throw C}if("object"==typeof t&&null!==t){const w=Object.getOwnPropertyNames(t);let C=-1;for(;++C<w.length;){if(isArrayIndex(w[C]))throw new bt((0,Qe.fileURLToPath)(e),a,'"exports" cannot contain numeric property keys.')}for(C=-1;++C<w.length;){const S=w[C];if("default"===S||E&&E.has(S)){const w=resolvePackageTarget(e,t[S],i,n,a,c,l,y,E);if(void 0===w)continue;return w}}return null}if(null===t)return null;throw invalidPackageTarget(n,t,e,l,a)}function emitTrailingSlashPatternDeprecation(e,t,i){if(Xe.noDeprecation)return;const n=(0,Qe.fileURLToPath)(t);Dt.has(n+"|"+e)||(Dt.add(n+"|"+e),Xe.emitWarning(`Use of deprecated trailing slash pattern mapping "${e}" in the "exports" field module resolution of the package at ${n}${i?` imported from ${(0,Qe.fileURLToPath)(i)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155"))}function packageExportsResolve(e,t,i,n,a){let c=i.exports;if(function(e,t,i){if("string"==typeof e||Array.isArray(e))return!0;if("object"!=typeof e||null===e)return!1;const n=Object.getOwnPropertyNames(e);let a=!1,c=0,l=-1;for(;++l<n.length;){const e=n[l],y=""===e||"."!==e[0];if(0===c++)a=y;else if(a!==y)throw new bt((0,Qe.fileURLToPath)(t),i,"\"exports\" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.")}return a}(c,e,n)&&(c={".":c}),Rt.call(c,t)&&!t.includes("*")&&!t.endsWith("/")){const i=resolvePackageTarget(e,c[t],"",t,n,!1,!1,!1,a);if(null==i)throw exportsNotFound(t,e,n);return i}let l="",y="";const E=Object.getOwnPropertyNames(c);let w=-1;for(;++w<E.length;){const i=E[w],a=i.indexOf("*");if(-1!==a&&t.startsWith(i.slice(0,a))){t.endsWith("/")&&emitTrailingSlashPatternDeprecation(t,e,n);const c=i.slice(a+1);t.length>=i.length&&t.endsWith(c)&&1===patternKeyCompare(l,i)&&i.lastIndexOf("*")===a&&(l=i,y=t.slice(a,t.length-c.length))}}if(l){const i=resolvePackageTarget(e,c[l],y,l,n,!0,!1,t.endsWith("/"),a);if(null==i)throw exportsNotFound(t,e,n);return i}throw exportsNotFound(t,e,n)}function patternKeyCompare(e,t){const i=e.indexOf("*"),n=t.indexOf("*"),a=-1===i?e.length:i+1,c=-1===n?t.length:n+1;return a>c?-1:c>a||-1===i?1:-1===n||e.length>t.length?-1:t.length>e.length?1:0}function packageImportsResolve(e,t,i){if("#"===e||e.startsWith("#/")||e.endsWith("/")){throw new Et(e,"is not a valid internal imports specifier name",(0,Qe.fileURLToPath)(t))}let n;const a=getPackageScopeConfig(t);if(a.exists){n=(0,Qe.pathToFileURL)(a.pjsonPath);const c=a.imports;if(c)if(Rt.call(c,e)&&!e.includes("*")){const a=resolvePackageTarget(n,c[e],"",e,t,!1,!0,!1,i);if(null!=a)return a}else{let a="",l="";const y=Object.getOwnPropertyNames(c);let E=-1;for(;++E<y.length;){const t=y[E],i=t.indexOf("*");if(-1!==i&&e.startsWith(t.slice(0,-1))){const n=t.slice(i+1);e.length>=t.length&&e.endsWith(n)&&1===patternKeyCompare(a,t)&&t.lastIndexOf("*")===i&&(a=t,l=e.slice(i,e.length-n.length))}}if(a){const e=resolvePackageTarget(n,c[a],l,a,t,!0,!0,!1,i);if(null!=e)return e}}}throw function(e,t,i){return new Ct(e,t&&(0,Qe.fileURLToPath)(new URL(".",t)),(0,Qe.fileURLToPath)(i))}(e,n,t)}function packageResolve(e,t,i){if(Be.builtinModules.includes(e))return new URL("node:"+e);const{packageName:n,packageSubpath:a,isScoped:c}=function(e,t){let i=e.indexOf("/"),n=!0,a=!1;"@"===e[0]&&(a=!0,-1===i||0===e.length?n=!1:i=e.indexOf("/",i+1));const c=-1===i?e:e.slice(0,i);if(null!==Lt.exec(c)&&(n=!1),!n)throw new Et(e,"is not a valid package name",(0,Qe.fileURLToPath)(t));return{packageName:c,packageSubpath:"."+(-1===i?"":e.slice(i)),isScoped:a}}(e,t),l=getPackageScopeConfig(t);if(l.exists){const e=(0,Qe.pathToFileURL)(l.pjsonPath);if(l.name===n&&void 0!==l.exports&&null!==l.exports)return packageExportsResolve(e,a,l,t,i)}let y,E=new URL("./node_modules/"+n+"/package.json",t),w=(0,Qe.fileURLToPath)(E);do{const l=tryStatSync(w.slice(0,-13));if(!l||!l.isDirectory()){y=w,E=new URL((c?"../../../../node_modules/":"../../../node_modules/")+n+"/package.json",E),w=(0,Qe.fileURLToPath)(E);continue}const C=read(w,{base:t,specifier:e});return void 0!==C.exports&&null!==C.exports?packageExportsResolve(E,a,C,t,i):"."===a?legacyMainResolve(E,C,t):new URL(a,E)}while(w.length!==y.length)}function moduleResolve(e,t,i,n){void 0===i&&(i=getConditionsSet());const a=t.protocol,c="data:"===a||"http:"===a||"https:"===a;let l;if(function(e){return""!==e&&("/"===e[0]||function(e){if("."===e[0]){if(1===e.length||"/"===e[1])return!0;if("."===e[1]&&(2===e.length||"/"===e[2]))return!0}return!1}(e))}(e))try{l=new URL(e,t)}catch(i){const n=new Tt(e,t);throw n.cause=i,n}else if("file:"===a&&"#"===e[0])l=packageImportsResolve(e,t,i);else try{l=new URL(e)}catch(n){if(c&&!Be.builtinModules.includes(e)){const i=new Tt(e,t);throw i.cause=n,i}l=packageResolve(e,t,i)}return Ze.ok(void 0!==l,"expected to be defined"),"file:"!==l.protocol?l:function(e,t){if(null!==Ot.exec(e.pathname))throw new Et(e.pathname,'must not include encoded "/" or "\\" characters',(0,Qe.fileURLToPath)(t));let i;try{i=(0,Qe.fileURLToPath)(e)}catch(i){const n=i;throw Object.defineProperty(n,"input",{value:String(e)}),Object.defineProperty(n,"module",{value:String(t)}),n}const n=tryStatSync(i.endsWith("/")?i.slice(-1):i);if(n&&n.isDirectory()){const n=new It(i,(0,Qe.fileURLToPath)(t));throw n.url=String(e),n}if(!n||!n.isFile()){const n=new wt(i||e.pathname,t&&(0,Qe.fileURLToPath)(t),!0);throw n.url=String(e),n}{const t=(0,$e.realpathSync)(i),{search:n,hash:a}=e;(e=(0,Qe.pathToFileURL)(t+(i.endsWith(et.sep)?"/":""))).search=n,e.hash=a}return e}(l,t)}function fileURLToPath(e){return"string"!=typeof e||e.startsWith("file://")?normalizeSlash((0,Qe.fileURLToPath)(e)):normalizeSlash(e)}function pathToFileURL(e){return(0,Qe.pathToFileURL)(fileURLToPath(e)).toString()}const Ut=new Set(["node","import"]),Mt=[".mjs",".cjs",".js",".json"],jt=new Set(["ERR_MODULE_NOT_FOUND","ERR_UNSUPPORTED_DIR_IMPORT","MODULE_NOT_FOUND","ERR_PACKAGE_PATH_NOT_EXPORTED"]);function _tryModuleResolve(e,t,i){try{return moduleResolve(e,t,i)}catch(e){if(!jt.has(e?.code))throw e}}function _resolve(e,t={}){if("string"!=typeof e){if(!(e instanceof URL))throw new TypeError("input must be a `string` or `URL`");e=fileURLToPath(e)}if(/(?:node|data|http|https):/.test(e))return e;if(st.has(e))return"node:"+e;if(e.startsWith("file://")&&(e=fileURLToPath(e)),isAbsolute(e))try{if((0,$e.statSync)(e).isFile())return pathToFileURL(e)}catch(e){if("ENOENT"!==e?.code)throw e}const i=t.conditions?new Set(t.conditions):Ut,n=(Array.isArray(t.url)?t.url:[t.url]).filter(Boolean).map(e=>new URL(function(e){return"string"!=typeof e&&(e=e.toString()),/(?:node|data|http|https|file):/.test(e)?e:st.has(e)?"node:"+e:"file://"+encodeURI(normalizeSlash(e))}(e.toString())));0===n.length&&n.push(new URL(pathToFileURL(process.cwd())));const a=[...n];for(const e of n)"file:"===e.protocol&&a.push(new URL("./",e),new URL(dist_joinURL(e.pathname,"_index.js"),e),new URL("node_modules",e));let c;for(const n of a){if(c=_tryModuleResolve(e,n,i),c)break;for(const a of["","/index"]){for(const l of t.extensions||Mt)if(c=_tryModuleResolve(dist_joinURL(e,a)+l,n,i),c)break;if(c)break}if(c)break}if(!c){const t=new Error(`Cannot find module ${e} imported from ${a.join(", ")}`);throw t.code="ERR_MODULE_NOT_FOUND",t}return pathToFileURL(c)}function resolveSync(e,t){return _resolve(e,t)}function resolvePathSync(e,t){return fileURLToPath(resolveSync(e,t))}const Ft=/(?:[\s;]|^)(?:import[\s\w*,{}]*from|import\s*["'*{]|export\b\s*(?:[*{]|default|class|type|function|const|var|let|async function)|import\.meta\b)/m,Bt=/\/\*.+?\*\/|\/\/.*(?=[nr])/g;function hasESMSyntax(e,t={}){return t.stripComments&&(e=e.replace(Bt,"")),Ft.test(e)}function escapeStringRegexp(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const $t=new Set(["/","\\",void 0]),qt=Symbol.for("pathe:normalizedAlias"),Wt=/[/\\]/;function normalizeAliases(e){if(e[qt])return e;const t=Object.fromEntries(Object.entries(e).sort(([e],[t])=>function(e,t){return t.split("/").length-e.split("/").length}(e,t)));for(const e in t)for(const i in t)i===e||e.startsWith(i)||t[e]?.startsWith(i)&&$t.has(t[e][i.length])&&(t[e]=t[i]+t[e].slice(i.length));return Object.defineProperty(t,qt,{value:!0,enumerable:!1}),t}function utils_hasTrailingSlash(e="/"){const t=e[e.length-1];return"/"===t||"\\"===t}var Gt={rE:"2.6.1"};const Kt=require("node:crypto");var Ht=__webpack_require__.n(Kt);const zt=globalThis.process?.env||Object.create(null),Jt=globalThis.process||{env:zt},Yt=void 0!==Jt&&Jt.env&&Jt.env.NODE_ENV||void 0,Qt=[["claude",["CLAUDECODE","CLAUDE_CODE"]],["replit",["REPL_ID"]],["gemini",["GEMINI_CLI"]],["codex",["CODEX_SANDBOX","CODEX_THREAD_ID"]],["opencode",["OPENCODE"]],["pi",[dist_i("PATH",/\.pi[\\/]agent/)]],["auggie",["AUGMENT_AGENT"]],["goose",["GOOSE_PROVIDER"]],["devin",[dist_i("EDITOR",/devin/)]],["cursor",["CURSOR_AGENT"]],["kiro",[dist_i("TERM_PROGRAM",/kiro/)]]];function dist_i(e,t){return()=>{let i=zt[e];return!!i&&t.test(i)}}const Zt=function(){let e=zt.AI_AGENT;if(e)return{name:e.toLowerCase()};for(let[e,t]of Qt)for(let i of t)if("string"==typeof i?zt[i]:i())return{name:e};return{}}(),Xt=(Zt.name,Zt.name,[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:!0}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:!0}],["CLOUDFLARE_WORKERS","WORKERS_CI",{ci:!0}],["GOOGLE_CLOUDRUN","K_SERVICE"],["GOOGLE_CLOUDRUN_JOB","CLOUD_RUN_JOB"],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["JENKINS","JENKINS_URL"],["HUDSON","HUDSON_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:!1}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:!1}],["VERCEL","VERCEL_ENV",{ci:!1}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:!1}],["CODESANDBOX","CODESANDBOX_HOST",{ci:!1}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:!0}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOY"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:!0}],["EDGEONE_PAGES","EO_PAGES_CI",{ci:!0}]]);const ei=function(){for(let e of Xt)if(zt[e[1]||e[0]])return{name:e[0].toLowerCase(),...e[2]};return"/bin/jsh"===zt.SHELL&&Jt.versions?.webcontainer?{name:"stackblitz",ci:!1}:{name:"",ci:!1}}(),ti=(ei.name,Jt.platform||""),ii=!!zt.CI||!1!==ei.ci,si=!!Jt.stdout?.isTTY,ri=(zt.DEBUG,"test"===Yt||!!zt.TEST),ni=("production"===Yt||zt.MODE,"dev"===Yt||"development"===Yt||zt.MODE,zt.MINIMAL,/^win/i.test(ti)),ai=(/^linux/i.test(ti),/^darwin/i.test(ti),!zt.NO_COLOR&&(!!zt.FORCE_COLOR||(si||ni)&&zt.TERM),(Jt.versions?.node||"").replace(/^v/,"")||null),oi=(Number(ai?.split(".")[0]),!!Jt?.versions?.node),ci="Bun"in globalThis,hi="Deno"in globalThis,li="fastly"in globalThis,pi=[["Netlify"in globalThis,"netlify"],["EdgeRuntime"in globalThis,"edge-light"],["Cloudflare-Workers"===globalThis.navigator?.userAgent,"workerd"],[li,"fastly"],[hi,"deno"],[ci,"bun"],[oi,"node"]];!function(){let e=pi.find(e=>e[0]);if(e)e[1]}();const ui=require("node:tty"),di=ui?.WriteStream?.prototype?.hasColors?.()??!1,base_format=(e,t)=>{if(!di)return e=>e;const i=`[${e}m`,n=`[${t}m`;return e=>{const a=e+"";let c=a.indexOf(n);if(-1===c)return i+a+n;let l=i,y=0;const E=(22===t?n:"")+i;for(;-1!==c;)l+=a.slice(y,c)+E,y=c+n.length,c=a.indexOf(n,y);return l+=a.slice(y)+n,l}},fi=(base_format(0,0),base_format(1,22),base_format(2,22),base_format(3,23),base_format(4,24),base_format(53,55),base_format(7,27),base_format(8,28),base_format(9,29),base_format(30,39),base_format(31,39)),mi=base_format(32,39),gi=base_format(33,39),xi=base_format(34,39),vi=(base_format(35,39),base_format(36,39)),yi=(base_format(37,39),base_format(90,39));base_format(40,49),base_format(41,49),base_format(42,49),base_format(43,49),base_format(44,49),base_format(45,49),base_format(46,49),base_format(47,49),base_format(100,49),base_format(91,39),base_format(92,39),base_format(93,39),base_format(94,39),base_format(95,39),base_format(96,39),base_format(97,39),base_format(101,49),base_format(102,49),base_format(103,49),base_format(104,49),base_format(105,49),base_format(106,49),base_format(107,49);function isDir(e){if("string"!=typeof e||e.startsWith("file://"))return!1;try{return(0,$e.lstatSync)(e).isDirectory()}catch{return!1}}function utils_hash(e,t=8){return(function(){if(void 0!==Ei)return Ei;try{return Ei=!!Ht().getFips?.(),Ei}catch{return Ei=!1,Ei}}()?Ht().createHash("sha256"):Ht().createHash("md5")).update(e).digest("hex").slice(0,t)}const _i={true:mi("true"),false:gi("false"),"[rebuild]":gi("[rebuild]"),"[esm]":xi("[esm]"),"[cjs]":mi("[cjs]"),"[import]":xi("[import]"),"[require]":mi("[require]"),"[native]":vi("[native]"),"[transpile]":gi("[transpile]"),"[fallback]":fi("[fallback]"),"[unknown]":fi("[unknown]"),"[hit]":mi("[hit]"),"[miss]":gi("[miss]"),"[json]":mi("[json]"),"[data]":mi("[data]")};function debug(e,...t){if(!e.opts.debug)return;const i=process.cwd();console.log(yi(["[jiti]",...t.map(e=>e in _i?_i[e]:"string"!=typeof e?JSON.stringify(e):e.replace(i,"."))].join(" ")))}function jitiInteropDefault(e,t){return e.opts.interopDefault?function(e){const t=typeof e;if(null===e||"object"!==t&&"function"!==t)return e;const i=e.default,n=typeof i,a=null==i,c="object"===n||"function"===n;if(a&&e instanceof Promise)return e;const l="function"===n&&"function"!==t,y=c&&!(i instanceof Promise),E=new Map;return new Proxy(e,{get(t,n){if(E.has(n))return E.get(n);let c;return"__esModule"===n?c=!0:"default"===n?c=a?e:"function"==typeof i?.default&&e.__esModule?i.default:i:n in t?c=t[n]:y&&(c=i[n],"function"==typeof c&&(c=c.bind(i))),E.set(n,c),c},apply:l?(e,t,n)=>Reflect.apply(i,t,n):void 0})}(t):t}let Ei;function _booleanEnv(e,t){const i=_jsonEnv(e,t);return Boolean(i)}function _jsonEnv(e,t,i){const n=process.env[e];if(!(e in process.env))return t;try{return JSON.parse(n)}catch{return i?n:t}}const bi=/\.(c|m)?j(sx?)$/,ki=/\.(c|m)?t(sx?)$/;function jitiResolve(e,t,i){let n,a;if(e.isNativeRe.test(t))return t;if(e.resolveTsConfigPaths&&!i.skipTsConfigPaths){const n=e.resolveTsConfigPaths(t);for(const t of n){const n=jitiResolve(e,t,{...i,try:!0,skipTsConfigPaths:!0});if(n)return n}}e.alias&&(t=function(e,t){const i=pathe_M_eThtNZ_normalizeWindowsPath(e);t=normalizeAliases(t);for(const[e,n]of Object.entries(t)){if(!i.startsWith(e))continue;const t=utils_hasTrailingSlash(e)?e.slice(0,-1):e;if(utils_hasTrailingSlash(i[t.length]))return pathe_M_eThtNZ_join(n,i.slice(e.length))}return i}(t,e.alias));let c=i?.parentURL||e.url;isDir(c)&&(c=pathe_M_eThtNZ_join(c,"_index.js"));const l=(i?.async?[i?.conditions,["node","import"],["node","require"]]:[i?.conditions,["node","require"],["node","import"]]).filter(Boolean);for(const i of l){try{n=resolvePathSync(t,{url:c,conditions:i,extensions:e.opts.extensions})}catch(e){a=e}if(n)return n}try{return e.nativeRequire.resolve(t,{paths:i.paths})}catch(e){a=e}for(const a of e.additionalExts){if(n=tryNativeRequireResolve(e,t+a,c,i)||tryNativeRequireResolve(e,t+"/index"+a,c,i),n)return n;if((ki.test(e.filename)||ki.test(e.parentModule?.filename||"")||bi.test(t))&&(n=tryNativeRequireResolve(e,t.replace(bi,".$1t$2"),c,i),n))return n}if(!i?.try)throw a}function tryNativeRequireResolve(e,t,i,n){try{return e.nativeRequire.resolve(t,{...n,paths:[pathe_M_eThtNZ_dirname(fileURLToPath(i)),...n?.paths||[]]})}catch{}}const wi=require("node:fs/promises"),Ci=require("node:perf_hooks"),Si=require("node:vm");var Ii=__webpack_require__.n(Si);function jitiRequire(e,t,i){const n=e.parentCache||{};if(t.startsWith("node:"))return nativeImportOrRequire(e,t,i.async);if(t.startsWith("file:"))t=(0,Qe.fileURLToPath)(t);else if(t.startsWith("data:")){if(!i.async)throw new Error("`data:` URLs are only supported in ESM context. Use `import` or `jiti.import` instead.");return debug(e,"[native]","[data]","[import]",t),nativeImportOrRequire(e,t,!0)}if(Be.builtinModules.includes(t)||".pnp.js"===t)return nativeImportOrRequire(e,t,i.async);if(e.opts.virtualModules&&t in e.opts.virtualModules){debug(e,"[virtual]",t);const n=e.opts.virtualModules[t];return i.async?Promise.resolve(jitiInteropDefault(e,n)):jitiInteropDefault(e,n)}if(e.opts.tryNative&&!e.opts.transformOptions)try{if(!(t=jitiResolve(e,t,i))&&i.try)return;if(debug(e,"[try-native]",i.async&&e.nativeImport?"[import]":"[require]",t),i.async&&e.nativeImport)return e.nativeImport(t).then(i=>(!1===e.opts.moduleCache&&delete e.nativeRequire.cache[t],jitiInteropDefault(e,i))).catch(n=>(debug(e,`[try-native] Using fallback for ${t} because of an error:`,n),jitiRequire({...e,opts:{...e.opts,tryNative:!1}},t,i)));{const i=e.nativeRequire(t);return!1===e.opts.moduleCache&&delete e.nativeRequire.cache[t],jitiInteropDefault(e,i)}}catch(i){debug(e,`[try-native] Using fallback for ${t} because of an error:`,i)}const a=jitiResolve(e,t,i);if(!a&&i.try)return;const c=extname(a);if(".json"===c){debug(e,"[json]",a);const t=e.nativeRequire(a);return t&&!("default"in t)&&Object.defineProperty(t,"default",{value:t,enumerable:!1}),t}if(c&&!e.opts.extensions.includes(c))return debug(e,"[native]","[unknown]",i.async?"[import]":"[require]",a),nativeImportOrRequire(e,a,i.async);if(e.isNativeRe.test(a))return debug(e,"[native]",i.async?"[import]":"[require]",a),nativeImportOrRequire(e,a,i.async);if(n[a])return jitiInteropDefault(e,n[a]?.exports);if(e.opts.moduleCache){const t=e.nativeRequire.cache[a];if(t?.loaded)return jitiInteropDefault(e,t.exports)}const l=(0,$e.readFileSync)(a,"utf8");return eval_evalModule(e,l,{id:t,filename:a,ext:c,cache:n,async:i.async})}function nativeImportOrRequire(e,t,i){return i&&e.nativeImport?e.nativeImport(function(e){return ni&&isAbsolute(e)?pathToFileURL(e):e}(t)).then(t=>jitiInteropDefault(e,t)):jitiInteropDefault(e,e.nativeRequire(t))}const Ti="9";function getCache(e,t,i){if(!e.opts.fsCache||!t.filename)return i();const n=` /* v${Ti}-${utils_hash(t.source,16)} */\n`;let a=`${basename(pathe_M_eThtNZ_dirname(t.filename))}-${function(e){const t=e.split(Wt).pop();if(!t)return;const i=t.lastIndexOf(".");return i<=0?t:t.slice(0,i)}(t.filename)}`+(e.opts.sourceMaps?"+map":"")+(t.interopDefault?".i":"")+`.${utils_hash(t.filename)}`+(t.async?".mjs":".cjs");t.jsx&&t.filename.endsWith("x")&&(a+="x");const c=e.opts.fsCache,l=pathe_M_eThtNZ_join(c,a);if(!e.opts.rebuildFsCache&&(0,$e.existsSync)(l)){const i=(0,$e.readFileSync)(l,"utf8");if(i.endsWith(n))return debug(e,"[cache]","[hit]",t.filename,"~>",l),i}debug(e,"[cache]","[miss]",t.filename);const y=i();return y.includes("__JITI_ERROR__")||((0,$e.writeFileSync)(l,y+n,"utf8"),debug(e,"[cache]","[store]",t.filename,"~>",l)),y}function prepareCacheDir(t){if(!0===t.opts.fsCache&&(t.opts.fsCache=function(t){const i=t.filename&&pathe_M_eThtNZ_resolve(t.filename,"../node_modules");if(i&&(0,$e.existsSync)(i))return pathe_M_eThtNZ_join(i,".cache/jiti");let n=(0,e.tmpdir)();if(process.env.TMPDIR&&n===process.cwd()&&!process.env.JITI_RESPECT_TMPDIR_ENV){const t=process.env.TMPDIR;delete process.env.TMPDIR,n=(0,e.tmpdir)(),process.env.TMPDIR=t}return pathe_M_eThtNZ_join(n,"jiti")}(t)),t.opts.fsCache)try{if((0,$e.mkdirSync)(t.opts.fsCache,{recursive:!0}),!function(e){try{return(0,$e.accessSync)(e,$e.constants.W_OK),!0}catch{return!1}}(t.opts.fsCache))throw new Error("directory is not writable!")}catch(e){debug(t,"Error creating cache directory at ",t.opts.fsCache,e),t.opts.fsCache=!1}}function transform(e,t){let i=getCache(e,t,()=>{const i=e.opts.transform({...e.opts.transformOptions,babel:{...e.opts.sourceMaps?{sourceFileName:t.filename,sourceMaps:"inline"}:{},...e.opts.transformOptions?.babel},interopDefault:e.opts.interopDefault,...t});return i.error&&e.opts.debug&&debug(e,i.error),i.code});return i.startsWith("#!")&&(i="// "+i),i}function eval_evalModule(t,i,n={}){const a=n.id||(n.filename?basename(n.filename):`_jitiEval.${n.ext||(n.async?"mjs":"js")}`),c=n.filename||jitiResolve(t,a,{async:n.async}),l=n.ext||extname(c),y=n.cache||t.parentCache||{},E=/\.[cm]?tsx?$/.test(l),w=".mjs"===l||".js"===l&&"module"===function(e){for(;e&&"."!==e&&"/"!==e;){e=pathe_M_eThtNZ_join(e,"..");try{const t=(0,$e.readFileSync)(pathe_M_eThtNZ_join(e,"package.json"),"utf8");try{return JSON.parse(t)}catch{}break}catch{}}}(c)?.type,C=".cjs"===l,S=n.forceTranspile??(!C&&!(w&&n.async)&&(E||w||t.isTransformRe.test(c)||hasESMSyntax(i))),I=Ci.performance.now();if(S){i=transform(t,{filename:c,source:i,ts:E,async:n.async??!1,jsx:t.opts.jsx});const e=Math.round(1e3*(Ci.performance.now()-I))/1e3;debug(t,"[transpile]",n.async?"[esm]":"[cjs]",c,`(${e}ms)`)}else{if(debug(t,"[native]",n.async?"[import]":"[require]",c),n.async)return Promise.resolve(nativeImportOrRequire(t,c,n.async)).catch(e=>(debug(t,"Native import error:",e),debug(t,"[fallback]",c),eval_evalModule(t,i,{...n,forceTranspile:!0})));try{return nativeImportOrRequire(t,c,n.async)}catch(e){debug(t,"Native require error:",e),debug(t,"[fallback]",c),i=transform(t,{filename:c,source:i,ts:E,async:n.async??!1,jsx:t.opts.jsx})}}const N=new Be.Module(c);N.filename=c,t.parentModule&&(N.parent=t.parentModule,Array.isArray(t.parentModule.children)&&!t.parentModule.children.includes(N)&&t.parentModule.children.push(N));const O=createJiti(c,t.opts,{parentModule:N,parentCache:y,nativeImport:t.nativeImport,onError:t.onError,createRequire:t.createRequire},!0);let j;N.require=O,N.path=pathe_M_eThtNZ_dirname(c),N.paths=Be.Module._nodeModulePaths(N.path),y[c]=N,t.opts.moduleCache&&(t.nativeRequire.cache[c]=N);const F=function(e,t){return`(${t?.async?"async ":""}function (exports, require, module, __filename, __dirname, jitiImport, jitiESMResolve) { ${e}\n});`}(i,{async:n.async});try{j=Ii().runInThisContext(F,{filename:c,lineOffset:0,displayErrors:!1})}catch(i){"SyntaxError"===i.name&&n.async&&t.nativeImport?(debug(t,"[esm]","[import]","[fallback]",c),j=function(t,i,n,a,c){const l=`export default ${i}`,y=c?void 0:`data:text/javascript;base64,${Buffer.from(l).toString("base64")}`;return(...i)=>{let c;const importViaTempFile=()=>(c=function(t,i){const n=pathe_M_eThtNZ_join((0,e.tmpdir)(),"jiti-esm");try{(0,$e.mkdirSync)(n,{recursive:!0})}catch{}const a=pathe_M_eThtNZ_join(n,`${basename(i,extname(i))}-${Date.now()}-${Math.random().toString(36).slice(2)}.mjs`);return(0,$e.writeFileSync)(a,t),a}(l,n),debug(t,"[esm]","[tempfile]",c),a(pathToFileURL(c))),E=y?a(y).catch(e=>{if("ENAMETOOLONG"!==e?.code)throw e;return importViaTempFile()}):importViaTempFile();return E.then(e=>e.default(...i)).finally(()=>{c&&(0,wi.unlink)(c).catch(()=>{})})}}(t,F,c,t.nativeImport,t.opts.esmEvalTempFile)):(t.opts.moduleCache&&delete t.nativeRequire.cache[c],t.onError(i))}let B;try{B=j(N.exports,N.require,N,N.filename,pathe_M_eThtNZ_dirname(N.filename),O.import,O.esmResolve)}catch(e){t.opts.moduleCache&&delete t.nativeRequire.cache[c],t.onError(e)}function next(){if(N.exports&&N.exports.__JITI_ERROR__){const{filename:e,line:i,column:n,code:a,message:c}=N.exports.__JITI_ERROR__,l=new Error(`${a}: ${c} \n ${`${e}:${i}:${n}`}`);Error.captureStackTrace(l,jitiRequire),t.onError(l)}N.loaded=!0;return jitiInteropDefault(t,N.exports)}return n.async?Promise.resolve(B).then(next):next()}const Ri="win32"===(0,e.platform)();function createJiti(e,t={},i,n=!1){const a=n?t:function(e){const t={fsCache:_booleanEnv("JITI_FS_CACHE",_booleanEnv("JITI_CACHE",!0)),rebuildFsCache:_booleanEnv("JITI_REBUILD_FS_CACHE",!1),moduleCache:_booleanEnv("JITI_MODULE_CACHE",_booleanEnv("JITI_REQUIRE_CACHE",!0)),debug:_booleanEnv("JITI_DEBUG",!1),sourceMaps:_booleanEnv("JITI_SOURCE_MAPS",!1),interopDefault:_booleanEnv("JITI_INTEROP_DEFAULT",!0),extensions:_jsonEnv("JITI_EXTENSIONS",[".js",".mjs",".cjs",".ts",".tsx",".mts",".cts",".mtsx",".ctsx"]),alias:_jsonEnv("JITI_ALIAS",{}),nativeModules:_jsonEnv("JITI_NATIVE_MODULES",[]),transformModules:_jsonEnv("JITI_TRANSFORM_MODULES",[]),tryNative:_jsonEnv("JITI_TRY_NATIVE","Bun"in globalThis),esmEvalTempFile:_booleanEnv("JITI_ESM_EVAL_TEMP_FILE",!1),jsx:_booleanEnv("JITI_JSX",!1),tsconfigPaths:_jsonEnv("JITI_TSCONFIG_PATHS",!1,!0)};t.jsx&&t.extensions.push(".jsx",".tsx");const i={};return void 0!==e.cache&&(i.fsCache=e.cache),void 0!==e.requireCache&&(i.moduleCache=e.requireCache),{...t,...i,...e}}(t);"string"==typeof e&&e.startsWith("file://")&&(e=fileURLToPath(e));const c=a.alias&&Object.keys(a.alias).length>0?normalizeAliases(a.alias||{}):void 0;let l;if(a.tsconfigPaths){const{getTsconfig:t,createPathsMatcher:i}=__webpack_require__("./node_modules/.pnpm/[email protected]/node_modules/get-tsconfig/dist/index.cjs"),n=t("string"==typeof a.tsconfigPaths?a.tsconfigPaths:pathe_M_eThtNZ_dirname(e));n&&(l=i(n))}const y=["typescript","jiti",...a.nativeModules||[]],E=new RegExp(`node_modules/(${y.map(e=>escapeStringRegexp(e)).join("|")})/`),w=[...a.transformModules||[]],C=new RegExp(`node_modules/(${w.map(e=>escapeStringRegexp(e)).join("|")})/`);e||(e=process.cwd()),!n&&isDir(e)&&(e=pathe_M_eThtNZ_join(e,"_index.js"));const S=pathToFileURL(e),I=[...a.extensions].filter(e=>".js"!==e),N=i.createRequire(Ri?e.replace(/\//g,"\\"):e),O={filename:e,url:S,opts:a,alias:c,resolveTsConfigPaths:l,nativeModules:y,transformModules:w,isNativeRe:E,isTransformRe:C,additionalExts:I,nativeRequire:N,onError:i.onError,parentModule:i.parentModule,parentCache:i.parentCache,nativeImport:i.nativeImport,createRequire:i.createRequire};n||debug(O,"[init]",...[["version:",Gt.rE],["module-cache:",a.moduleCache],["fs-cache:",a.fsCache],["rebuild-fs-cache:",a.rebuildFsCache],["interop-defaults:",a.interopDefault]].flat()),n||prepareCacheDir(O);const j=Object.assign(function(e){return jitiRequire(O,e,{async:!1})},{cache:a.moduleCache?N.cache:Object.create(null),extensions:N.extensions,main:N.main,options:a,resolve:Object.assign(function(e,t){return jitiResolve(O,e,{...t,async:!1})},{paths:N.resolve.paths}),transform:e=>transform(O,e),evalModule:(e,t)=>eval_evalModule(O,e,t),async import(e,t){const i=await jitiRequire(O,e,{...t,async:!0});return t?.default?i?.default??i:i},esmResolve(e,t){"string"==typeof t&&(t={parentURL:t});const i=jitiResolve(O,e,{parentURL:S,...t,async:!0});return!i||"string"!=typeof i||i.startsWith("file://")?i:pathToFileURL(i)}});return j}})(),module.exports=i.default})();\ No newline at end of filediff --git a/crates/pa-core/src/extensions/vendor/jiti/lib/jiti-static.mjs b/crates/pa-core/src/extensions/vendor/jiti/lib/jiti-static.mjsdeleted file mode 100644index d2b0417eaa..0000000000--- a/crates/pa-core/src/extensions/vendor/jiti/lib/jiti-static.mjs+++ /dev/null@@ -1,23 +0,0 @@-import { createRequire } from "node:module";-import _createJiti from "../dist/jiti.cjs";-// Static import so Bun bundles babel.cjs into compiled binaries-import _babelTransform from "../dist/babel.cjs";--function onError(err) {- throw err; /* ↓ Check stack trace ↓ */-}--const nativeImport = (id) => import(id);--export function createJiti(id, opts = {}) {- if (!opts.transform) {- opts = { ...opts, transform: _babelTransform };- }- return _createJiti(id, opts, {- onError,- nativeImport,- createRequire,- });-}--export default createJiti;diff --git a/crates/pa-core/src/extensions/vendor/jiti/package.json b/crates/pa-core/src/extensions/vendor/jiti/package.jsondeleted file mode 100644index 64fc3f1749..0000000000--- a/crates/pa-core/src/extensions/vendor/jiti/package.json+++ /dev/null@@ -1,146 +0,0 @@-{- "name": "jiti",- "version": "2.7.0",- "description": "Runtime typescript and ESM support for Node.js",- "repository": "unjs/jiti",- "license": "MIT",- "type": "module",- "exports": {- ".": {- "import": {- "types": "./lib/jiti.d.mts",- "default": "./lib/jiti.mjs"- },- "require": {- "types": "./lib/jiti.d.cts",- "default": "./lib/jiti.cjs"- }- },- "./register": {- "types": "./lib/jiti-register.d.mts",- "import": "./lib/jiti-register.mjs"- },- "./native": {- "types": "./lib/jiti.d.mts",- "import": "./lib/jiti-native.mjs"- },- "./static": {- "types": "./lib/jiti.d.mts",- "import": "./lib/jiti-static.mjs"- },- "./package.json": "./package.json"- },- "main": "./lib/jiti.cjs",- "module": "./lib/jiti.mjs",- "types": "./lib/jiti.d.cts",- "typesVersions": {- "*": {- "register": [- "./lib/jiti-register.d.mts"- ],- "native": [- "./lib/jiti.d.mts"- ],- "static": [- "./lib/jiti.d.mts"- ]- }- },- "bin": {- "jiti": "./lib/jiti-cli.mjs"- },- "files": [- "lib",- "dist",- "register.cjs"- ],- "scripts": {- "bench": "node test/bench.mjs && deno -A test/bench.mjs && bun --bun test/bench.mjs",- "build": "pnpm clean && pnpm rspack",- "build:rolldown": "pnpm clean && pnpm rolldown -c rolldown.config.mjs",- "clean": "rm -rf dist",- "dev": "pnpm clean && pnpm rspack --watch",- "jiti": "JITI_DEBUG=1 JITI_JSX=1 lib/jiti-cli.mjs",- "lint": "eslint . && prettier -c src lib test stubs",- "lint:fix": "eslint --fix . && prettier -w src lib test stubs",- "prepack": "pnpm build",- "release": "pnpm build && pnpm test && changelogen --release --push && npm publish",- "test": "pnpm lint && pnpm test:types && vitest run --coverage && pnpm test:node-register && pnpm test:bun && pnpm test:native",- "test:bun": "bun --bun test test/bun",- "test:native": "pnpm test:native:bun && pnpm test:native:node && pnpm test:native:deno",- "test:native:bun": "bun --bun test test/native/bun.test.ts",- "test:native:deno": "deno test -A --no-check test/native/deno.test.ts",- "test:native:node": "node --test --experimental-strip-types test/native/node.test.ts",- "test:node-register": "JITI_JSX=1 node --test test/node-register.test.mjs",- "test:types": "tsgo --noEmit"- },- "devDependencies": {- "@babel/core": "^7.29.0",- "@babel/helper-module-imports": "^7.28.6",- "@babel/helper-module-transforms": "^7.28.6",- "@babel/helper-plugin-utils": "^7.28.6",- "@babel/helper-simple-access": "^7.27.1",- "@babel/plugin-proposal-decorators": "^7.29.0",- "@babel/plugin-syntax-class-properties": "^7.12.13",- "@babel/plugin-syntax-import-assertions": "^7.28.6",- "@babel/plugin-syntax-jsx": "^7.28.6",- "@babel/plugin-transform-explicit-resource-management": "^7.28.6",- "@babel/plugin-transform-export-namespace-from": "^7.27.1",- "@babel/plugin-transform-react-jsx": "^7.28.6",- "@babel/plugin-transform-typescript": "^7.28.6",- "@babel/preset-typescript": "^7.28.5",- "@babel/template": "^7.28.6",- "@babel/traverse": "^7.29.0",- "@babel/types": "^7.29.0",- "@rspack/cli": "^2.0.1",- "@rspack/core": "^2.0.1",- "@types/babel__core": "^7.20.5",- "@types/babel__helper-module-imports": "^7.18.3",- "@types/babel__helper-plugin-utils": "^7.10.3",- "@types/babel__template": "^7.4.4",- "@types/babel__traverse": "^7.28.0",- "@types/node": "^25.6.0",- "@typescript/native-preview": "7.0.0-dev.20260505.1",- "@vitest/coverage-v8": "^4.1.5",- "acorn": "^8.16.0",- "babel-plugin-parameter-decorator": "^1.0.16",- "changelogen": "^0.6.2",- "config": "^4.4.1",- "consola": "^3.4.2",- "defu": "^6.1.7",- "destr": "^2.0.5",- "escape-string-regexp": "^5.0.0",- "eslint": "^10.3.0",- "eslint-config-unjs": "^0.6.2",- "estree-walker": "^3.0.3",- "etag": "^1.8.1",- "fast-glob": "^3.3.3",- "get-tsconfig": "^4.14.0",- "is-installed-globally": "^1.0.0",- "mime": "^4.1.0",- "mitata": "^1.0.34",- "mlly": "^1.8.2",- "moment-timezone": "^0.6.2",- "nano-jsx": "^0.2.1",- "pathe": "^2.0.3",- "pkg-types": "^2.3.1",- "preact": "^10.29.1",- "preact-render-to-string": "^6.6.7",- "prettier": "^3.8.3",- "react": "^19.2.5",- "react-dom": "^19.2.5",- "reflect-metadata": "^0.2.2",- "rolldown": "1.0.0-rc.18",- "solid-js": "^1.9.12",- "std-env": "^4.1.0",- "terser-webpack-plugin": "^5.5.0",- "tinyexec": "^1.1.2",- "ts-loader": "^9.5.7",- "typescript": "^5.9.3",- "vitest": "^4.1.5",- "vue": "^3.5.33",- "yoctocolors": "^2.1.2",- "zod": "^4.4.3"- },- "packageManager": "[email protected]"-}diff --git a/crates/pa-core/src/lib.rs b/crates/pa-core/src/lib.rsindex e0375491df..273fd4ad6f 100644--- a/crates/pa-core/src/lib.rs+++ b/crates/pa-core/src/lib.rs@@ -72,7 +72,6 @@ pub mod auth;pub mod autonomous;pub mod cron;pub mod export_html;-pub mod extensions;pub mod goals;pub mod kernel;pub mod mcp;diff --git a/crates/pa-core/src/packages/git.rs b/crates/pa-core/src/packages/git.rsindex 1a0136dab9..37bf5c5f21 100644--- a/crates/pa-core/src/packages/git.rs+++ b/crates/pa-core/src/packages/git.rs@@ -200,7 +200,7 @@ pub fn update_git(&["reset", "--hard", &target.git_ref],Some(&target_dir),)?;- // Extension checkouts must be pristine after an update.+ // Package checkouts must be pristine after an update.run_command("git", &["clean", "-fdx"], Some(&target_dir))?;if target_dir.join("package.json").exists() {diff --git a/crates/pa-core/src/packages/manager.rs b/crates/pa-core/src/packages/manager.rsindex 3f2269d644..f75b3f3f97 100644--- a/crates/pa-core/src/packages/manager.rs+++ b/crates/pa-core/src/packages/manager.rs@@ -615,7 +615,7 @@ impl PackageManager {}/// A settings `packages` entry: a plain source string or the filter object-/// form (`{ source, extensions?, skills?, prompts?, themes? }`).+/// form (`{ source, skills?, prompts?, themes? }`).pub(super) fn split_entry(entry: &serde_json::Value) -> (String, bool) {match entry {serde_json::Value::String(source) => (source.clone(), false),diff --git a/crates/pa-core/src/packages/mod.rs b/crates/pa-core/src/packages/mod.rsindex 679b1c2615..cf17fe5a93 100644--- a/crates/pa-core/src/packages/mod.rs+++ b/crates/pa-core/src/packages/mod.rs@@ -3,10 +3,9 @@//! configured-npm/git child-process flows.//!//! Session resource resolution lives here as well: `PackageManager::resolve`-//! produces the ranked skill/prompt/theme/extension paths sessions consume.+//! produces the ranked skill/prompt/theme paths sessions consume.//!-//! Non-goals: the extension-//! *runner* (loading/executing extension modules) and Prime Agent+//! Non-goals: loading/executing session-resource code and Prime Agent//! self-updates.mod git;@@ -26,8 +25,8 @@ pub use manager::{ProgressAction, ProgressEvent, ProgressEventKind, UserOrProject,};pub use resolve::{- MetadataSource, MissingSourceAction, PathMetadata, ResolveExtensionOptions, ResolvedPaths,- ResolvedResource, ResourceOrigin, ResourceType,+ MetadataSource, MissingSourceAction, PathMetadata, ResolvedPaths, ResolvedResource,+ ResourceOrigin, ResourceType,};pub use source::{parse_git_url, GitSource, LocalSource, NpmSource, ParsedSource, SourceScope};@@ -115,9 +114,8 @@ pub(crate) fn get_bundled_skills_dir() -> PathBuf {packaged}-/// Stable temporary directory for resolve-only package installs:-/// `/tmp/pi-extensions/<prefix>/<hash8>/<suffix?>` (the hash keys on-/// prefix+suffix so the same source always maps to one checkout).+/// Stable temporary directory for resolve-only package installs (the hash+/// keys on prefix+suffix so the same source always maps to one checkout).pub(crate) fn temporary_dir(prefix: &str, suffix: Option<&str>) -> PathBuf {use sha2::{Digest, Sha256};diff --git a/crates/pa-core/src/packages/resolve/auto.rs b/crates/pa-core/src/packages/resolve/auto.rsindex 843f91c565..688eb2d48a 100644--- a/crates/pa-core/src/packages/resolve/auto.rs+++ b/crates/pa-core/src/packages/resolve/auto.rs@@ -6,9 +6,8 @@ use std::path::{Path, PathBuf};use super::super::PackageManager;use super::discovery::{- collect_ancestor_agents_skill_dirs, collect_auto_extension_entries,- collect_auto_prompt_entries, collect_auto_theme_entries, collect_skill_entries,- SkillDiscoveryMode,+ collect_ancestor_agents_skill_dirs, collect_auto_prompt_entries, collect_auto_theme_entries,+ collect_skill_entries, SkillDiscoveryMode,};use super::patterns::is_enabled_by_overrides;use super::{@@ -73,19 +72,11 @@ impl PackageManager {}};- add_resources(- accumulator,- ResourceType::Extensions,- collect_auto_extension_entries(&project_dirs[0]),- &project_metadata,- &project_overrides[0],- project_base_dir,- );add_resources(accumulator,ResourceType::Skills,[- collect_skill_entries(&project_dirs[1], SkillDiscoveryMode::Pi),+ collect_skill_entries(&project_dirs[0], SkillDiscoveryMode::Pi),project_agents_skill_dirs.iter().flat_map(|dir| collect_skill_entries(dir, SkillDiscoveryMode::Agents))@@ -93,44 +84,36 @@ impl PackageManager {].concat(),&project_metadata,- &project_overrides[1],+ &project_overrides[0],project_base_dir,);add_resources(accumulator,ResourceType::Prompts,- collect_auto_prompt_entries(&project_dirs[2]),+ collect_auto_prompt_entries(&project_dirs[1]),&project_metadata,- &project_overrides[2],+ &project_overrides[1],project_base_dir,);add_resources(accumulator,ResourceType::Themes,- collect_auto_theme_entries(&project_dirs[3]),+ collect_auto_theme_entries(&project_dirs[2]),&project_metadata,- &project_overrides[3],+ &project_overrides[2],project_base_dir,);- add_resources(- accumulator,- ResourceType::Extensions,- collect_auto_extension_entries(&user_dirs[0]),- &user_metadata,- &user_overrides[0],- global_base_dir,- );add_resources(accumulator,ResourceType::Skills,[- collect_skill_entries(&user_dirs[1], SkillDiscoveryMode::Pi),+ collect_skill_entries(&user_dirs[0], SkillDiscoveryMode::Pi),collect_skill_entries(&user_agents_skills_dir, SkillDiscoveryMode::Agents),].concat(),&user_metadata,- &user_overrides[1],+ &user_overrides[0],global_base_dir,);@@ -157,7 +140,7 @@ impl PackageManager {path: Some(bundled_dir.display().to_string()),});}- let mut builtin_skill_overrides = user_overrides[1].clone();+ let mut builtin_skill_overrides = user_overrides[0].clone();if !self.bundled_websearch_enabled() {// Web search stays disabled until explicitly enabled.builtin_skill_overrides.push("-websearch/SKILL.md".to_string());@@ -178,17 +161,17 @@ impl PackageManager {add_resources(accumulator,ResourceType::Prompts,- collect_auto_prompt_entries(&user_dirs[2]),+ collect_auto_prompt_entries(&user_dirs[1]),&user_metadata,- &user_overrides[2],+ &user_overrides[1],global_base_dir,);add_resources(accumulator,ResourceType::Themes,- collect_auto_theme_entries(&user_dirs[3]),+ collect_auto_theme_entries(&user_dirs[2]),&user_metadata,- &user_overrides[3],+ &user_overrides[2],global_base_dir,);}diff --git a/crates/pa-core/src/packages/resolve/discovery.rs b/crates/pa-core/src/packages/resolve/discovery.rsindex 11b1e91cb2..6e45497725 100644--- a/crates/pa-core/src/packages/resolve/discovery.rs+++ b/crates/pa-core/src/packages/resolve/discovery.rs@@ -1,7 +1,7 @@//! Filesystem collectors for resource discovery: recursive file collection//! under `.gitignore`/`.ignore`/`.fdignore` rules, skill-entry scanning with-//! the `SKILL.md` stopping rule, extension/prompt/theme auto-discovery, the-//! `.agents/skills` ancestor scan, and the extension entry-point resolution.+//! the `SKILL.md` stopping rule, prompt/theme auto-discovery, and the+//! `.agents/skills` ancestor scan.use std::path::{Path, PathBuf};@@ -189,7 +189,6 @@ fn prefix_ignore_pattern(line: &str, prefix: &str) -> Option<String> {/// File-name suffixes recognized per resource type.#[derive(Debug, Clone, Copy, PartialEq, Eq)]pub(crate) enum FileKind {- Extension,Markdown,Json,}@@ -206,7 +205,6 @@ fn extension_is(name: &str, wanted: &[&str]) -> bool {impl FileKind {fn matches(self, name: &str) -> bool {match self {- FileKind::Extension => extension_is(name, &["ts", "js"]),FileKind::Markdown => extension_is(name, &["md"]),FileKind::Json => extension_is(name, &["json"]),}@@ -357,76 +355,6 @@ fn collect_top_level_files(dir: &Path, kind: FileKind) -> Vec<PathBuf> {entries}-/// Extension entry points for a package directory: the `pi.extensions`-/// manifest entries when present, otherwise `index.ts`/`index.js`.-/// `None` when the directory exposes no extension entry point.-pub(crate) fn resolve_extension_entries(dir: &Path) -> Option<Vec<PathBuf>> {- let package_json = dir.join("package.json");- if package_json.exists() {- let manifest = read_pi_manifest_file(&package_json);- let entries = manifest- .as_ref()- .and_then(|manifest| manifest.extensions.as_ref())- .map(std::vec::Vec::as_slice)- .unwrap_or_default();- if !entries.is_empty() {- let mut resolved: Vec<PathBuf> = Vec::new();- for extension in entries {- let path = lexical_join(dir, extension);- if path.exists() {- resolved.push(path);- }- }- if !resolved.is_empty() {- return Some(resolved);- }- }- }-- let ts_entry = dir.join("index.ts");- if ts_entry.exists() {- return Some(vec![ts_entry]);- }- let js_entry = dir.join("index.js");- if js_entry.exists() {- return Some(vec![js_entry]);- }- None-}--/// Auto-discovery of extension entry points under a directory: the root's-/// own entry points, otherwise every top-level `.ts`/`.js` file plus each-/// subdirectory's entry points.-pub(crate) fn collect_auto_extension_entries(dir: &Path) -> Vec<PathBuf> {- let mut entries = Vec::new();- if !dir.exists() {- return entries;- }- if let Some(root_entries) = resolve_extension_entries(dir) {- return root_entries;- }- let mut matcher = IgnoreMatcher::new();- matcher.add_rules(dir, dir);- for entry in read_entries_sorted(dir) {- if entry.name.starts_with('.') || is_node_modules(&entry.name, true) {- continue;- }- let (is_dir, is_file) = classify(&entry.path);- let rel_path = path_relative(dir, &entry.path);- if matcher.ignores(&rel_path, is_dir) {- continue;- }- if !is_dir && is_file && FileKind::Extension.matches(&entry.name) {- entries.push(entry.path);- } else if is_dir {- if let Some(resolved) = resolve_extension_entries(&entry.path) {- entries.extend(resolved);- }- }- }- entries-}-/// The `pi` manifest in a package's `package.json` (parse failures are no/// manifest, per the TS product).pub(crate) fn read_pi_manifest(package_root: &Path) -> Option<super::PiManifest> {@@ -442,7 +370,6 @@ fn read_pi_manifest_file(package_json: &Path) -> Option<super::PiManifest> {let value: serde_json::Value = serde_json::from_str(&content).ok()?;let pi = value.get("pi")?.as_object()?;Some(super::PiManifest {- extensions: string_array(pi.get("extensions")),skills: string_array(pi.get("skills")),prompts: string_array(pi.get("prompts")),themes: string_array(pi.get("themes")),@@ -463,24 +390,18 @@ fn string_array(value: Option<&serde_json::Value>) -> Option<Vec<String>> {}/// Collect resource files from a directory by kind: skills use the-/// skill-entry scanner, extensions the entry-point discovery, others-/// recursive file collection.+/// skill-entry scanner, others recursive file collection.pub(crate) fn collect_resource_files(dir: &Path,resource_type: super::ResourceType,) -> Vec<PathBuf> {match resource_type {super::ResourceType::Skills => collect_skill_entries(dir, SkillDiscoveryMode::Pi),- super::ResourceType::Extensions => collect_auto_extension_entries(dir),super::ResourceType::Prompts => collect_files(dir, FileKind::Markdown),super::ResourceType::Themes => collect_files(dir, FileKind::Json),}}-fn lexical_join(base: &Path, input: &str) -> PathBuf {- super::super::source::lexical_resolve(base, input)-}-/// Find the nearest ancestor containing a `.git` entry.fn find_git_repo_root(start_dir: &Path) -> Option<PathBuf> {let mut dir = start_dir.to_path_buf();diff --git a/crates/pa-core/src/packages/resolve/manager.rs b/crates/pa-core/src/packages/resolve/manager.rsindex d9d2ec9787..3d875711b6 100644--- a/crates/pa-core/src/packages/resolve/manager.rs+++ b/crates/pa-core/src/packages/resolve/manager.rs@@ -16,8 +16,8 @@ use super::discovery::collect_resource_files;use super::patterns::{apply_patterns, split_patterns};use super::{settings_array, to_resolved_paths, top_level_metadata, ConfiguredSource, MetadataSource,- MissingSourceAction, PackageFilter, PathMetadata, ResolveExtensionOptions, ResolvedPaths,- ResourceAccumulator, ResourceOrigin, ResourceType, RESOURCE_TYPES,+ MissingSourceAction, PackageFilter, PathMetadata, ResolvedPaths, ResourceAccumulator,+ ResourceOrigin, ResourceType, RESOURCE_TYPES,};/// Parse the object (filter) form of a `packages` settings entry.@@ -36,7 +36,6 @@ fn parse_package_filter(entry: &serde_json::Value) -> Option<PackageFilter> {}};Some(PackageFilter {- extensions: strings(object.get("extensions")),skills: strings(object.get("skills")),prompts: strings(object.get("prompts")),themes: strings(object.get("themes")),@@ -193,39 +192,6 @@ impl PackageManager {Ok(to_resolved_paths(accumulator))}- /// Resolve a caller-supplied list of package sources (CLI extension- /// sources) without touching settings. Unpinned temporary git sources- /// auto-refresh from their origin.- ///- /// # Errors- ///- /// Returns an error when one of the given sources cannot be parsed,- /// installed, or refreshed (npm/git failures, missing local paths).- pub fn resolve_extension_sources(- &mut self,- sources: &[String],- options: ResolveExtensionOptions,- ) -> Result<ResolvedPaths> {- let scope = if options.temporary {- SourceScope::Temporary- } else if options.local {- SourceScope::Project- } else {- SourceScope::User- };- let mut accumulator = ResourceAccumulator::default();- let configured: Vec<ConfiguredSource> = sources- .iter()- .map(|source| ConfiguredSource {- source: source.clone(),- scope,- filter: None,- })- .collect();- self.resolve_package_sources(configured, &mut accumulator, None)?;- Ok(to_resolved_paths(accumulator))- }-fn resolve_package_sources(&mut self,sources: Vec<ConfiguredSource>,@@ -243,7 +209,7 @@ impl PackageManager {match &parsed {ParsedSource::Local(local) => {let base_dir = self.base_dir_for_scope(configured.scope);- Self::resolve_local_extension_source(+ Self::resolve_local_source(&local.path,accumulator,configured.filter.as_ref(),@@ -340,10 +306,10 @@ impl PackageManager {Ok(true)}- /// A local package source: a file binds as one extension; a directory- /// contributes its package resources (or binds as one extension when it- /// provides none).- fn resolve_local_extension_source(+ /// Resolve one configured local package source: a directory's+ /// resources collect through the manifest/convention scanners; a+ /// bare file yields nothing.+ fn resolve_local_source(path: &str,accumulator: &mut ResourceAccumulator,filter: Option<&PackageFilter>,@@ -357,22 +323,9 @@ impl PackageManager {let Ok(stats) = std::fs::metadata(&resolved) else {return;};- if stats.is_file() {- metadata.base_dir = resolved.parent().map(Path::to_path_buf);- accumulator- .extensions- .add(&resolved, metadata.clone(), true);- return;- }if stats.is_dir() {metadata.base_dir = Some(resolved.clone());- let has_resources =- PackageManager::collect_package_resources(&resolved, accumulator, filter, metadata);- if !has_resources {- accumulator- .extensions- .add(&resolved, metadata.clone(), true);- }+ PackageManager::collect_package_resources(&resolved, accumulator, filter, metadata);}}diff --git a/crates/pa-core/src/packages/resolve/mod.rs b/crates/pa-core/src/packages/resolve/mod.rsindex 611c5be7f9..ce20e7cd5e 100644--- a/crates/pa-core/src/packages/resolve/mod.rs+++ b/crates/pa-core/src/packages/resolve/mod.rs@@ -1,5 +1,5 @@//! Session resource resolution (`resolve()`): precedence-ranked collection of-//! extension/skill/prompt/theme paths from configured packages (pi manifest,+//! skill/prompt/theme paths from configured packages (pi manifest,//! convention directories, filter patterns), settings top-level arrays, and//! auto-discovery (settings-base directories, `.agents/skills` ancestor//! scan, bundled skills).@@ -22,17 +22,15 @@ use std::path::PathBuf;use super::SourceScope;-/// The four session resource kinds a package can provide.+/// The session resource kinds a package can provide.#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]pub enum ResourceType {- Extensions,Skills,Prompts,Themes,}-pub(crate) const RESOURCE_TYPES: [ResourceType; 4] = [- ResourceType::Extensions,+pub(crate) const RESOURCE_TYPES: [ResourceType; 3] = [ResourceType::Skills,ResourceType::Prompts,ResourceType::Themes,@@ -88,7 +86,6 @@ pub struct ResolvedResource {/// The `resolve()` output: ranked resources per kind plus diagnostics.#[derive(Debug, Clone, Default, PartialEq)]pub struct ResolvedPaths {- pub extensions: Vec<ResolvedResource>,pub skills: Vec<ResolvedResource>,pub prompts: Vec<ResolvedResource>,pub themes: Vec<ResolvedResource>,@@ -103,15 +100,6 @@ pub enum MissingSourceAction {Error,}-/// Options for [`crate::packages::PackageManager::resolve_extension_sources`]:-/// `local` puts sources in project scope; `temporary` uses the ephemeral-/// resolve-only scope (never persisted).-#[derive(Debug, Clone, Copy, Default)]-pub struct ResolveExtensionOptions {- pub local: bool,- pub temporary: bool,-}-/// Lower rank = higher precedence: project settings (0), project auto (1),/// user settings (2), user auto (3), package (4), builtin (5).pub(crate) fn resource_precedence_rank(metadata: &PathMetadata) -> u8 {@@ -129,7 +117,6 @@ pub(crate) fn resource_precedence_rank(metadata: &PathMetadata) -> u8 {/// `packages` settings entry). An explicit empty list disables the kind.#[derive(Debug, Clone, Default)]pub(crate) struct PackageFilter {- pub extensions: Option<Vec<String>>,pub skills: Option<Vec<String>>,pub prompts: Option<Vec<String>>,pub themes: Option<Vec<String>>,@@ -138,7 +125,6 @@ pub(crate) struct PackageFilter {impl PackageFilter {fn get(&self, resource_type: ResourceType) -> Option<&Vec<String>> {match resource_type {- ResourceType::Extensions => self.extensions.as_ref(),ResourceType::Skills => self.skills.as_ref(),ResourceType::Prompts => self.prompts.as_ref(),ResourceType::Themes => self.themes.as_ref(),@@ -157,7 +143,6 @@ pub(crate) struct ConfiguredSource {/// manifest, per the TS product).#[derive(Debug, Default)]pub(crate) struct PiManifest {- pub extensions: Option<Vec<String>>,pub skills: Option<Vec<String>>,pub prompts: Option<Vec<String>>,pub themes: Option<Vec<String>>,@@ -166,7 +151,6 @@ pub(crate) struct PiManifest {impl PiManifest {pub(crate) fn entries(&self, resource_type: ResourceType) -> Option<Vec<String>> {match resource_type {- ResourceType::Extensions => self.extensions.clone(),ResourceType::Skills => self.skills.clone(),ResourceType::Prompts => self.prompts.clone(),ResourceType::Themes => self.themes.clone(),@@ -201,7 +185,6 @@ impl ResourceMap {/// [`ResolvedPaths`] at the end of resolution.#[derive(Default)]pub(crate) struct ResourceAccumulator {- pub extensions: ResourceMap,pub skills: ResourceMap,pub prompts: ResourceMap,pub themes: ResourceMap,@@ -211,7 +194,6 @@ pub(crate) struct ResourceAccumulator {impl ResourceAccumulator {pub(crate) fn map(&mut self, resource_type: ResourceType) -> &mut ResourceMap {match resource_type {- ResourceType::Extensions => &mut self.extensions,ResourceType::Skills => &mut self.skills,ResourceType::Prompts => &mut self.prompts,ResourceType::Themes => &mut self.themes,@@ -242,7 +224,6 @@ pub(crate) fn to_resolved_paths(accumulator: ResourceAccumulator) -> ResolvedPat};ResolvedPaths {- extensions: map_to_resolved(accumulator.extensions),skills: map_to_resolved(accumulator.skills),prompts: map_to_resolved(accumulator.prompts),themes: map_to_resolved(accumulator.themes),@@ -257,7 +238,6 @@ pub(crate) fn settings_array(resource_type: ResourceType,) -> Vec<String> {match resource_type {- ResourceType::Extensions => settings.extensions.clone().unwrap_or_default(),ResourceType::Skills => settings.skills.clone().unwrap_or_default(),ResourceType::Prompts => settings.prompts.clone().unwrap_or_default(),ResourceType::Themes => settings.themes.clone().unwrap_or_default(),@@ -266,7 +246,6 @@ pub(crate) fn settings_array(pub(crate) fn resource_type_dir_name(resource_type: ResourceType) -> &'static str {match resource_type {- ResourceType::Extensions => "extensions",ResourceType::Skills => "skills",ResourceType::Prompts => "prompts",ResourceType::Themes => "themes",diff --git a/crates/pa-core/src/packages/resolve/tests.rs b/crates/pa-core/src/packages/resolve/tests.rsindex 898a667e0e..e910781d5d 100644--- a/crates/pa-core/src/packages/resolve/tests.rs+++ b/crates/pa-core/src/packages/resolve/tests.rs@@ -1,16 +1,15 @@//! Ported TS resolve test cases (package-manager.test.ts): settings entries,//! auto-discovery (settings-base dirs, `.agents/skills` ancestors, ignore-//! files, symlinks), extension sources, pattern filtering (top-level-//! arrays, pi manifest, package filters, `+`/`-` force forms), package-//! dedupe, multi-file extension discovery, and the offline/missing-source-//! policies.+//! files, symlinks), pattern filtering (top-level arrays, pi manifest,+//! package filters, `+`/`-` force forms), package dedupe, and the+//! offline/missing-source policies.use std::path::{Path, PathBuf};use super::{MetadataSource, ResolvedResource, ResourceOrigin};use crate::packages::manager::BundledSkillsDir;use crate::packages::source::SourceScope;-use crate::packages::{PackageManager, PackageManagerOptions, ResolveExtensionOptions};+use crate::packages::{PackageManager, PackageManagerOptions};use crate::settings::SettingsManager;/// Environment mutations (HOME, `PI_OFFLINE`) are process-wide: tests that@@ -135,7 +134,6 @@ fn has_path(resources: &[ResolvedResource], suffix: &str) -> bool {fn resolve_without_configured_sources_returns_only_auto_resources() {let mut fixture = Fixture::new();let result = fixture.manager.resolve().unwrap();- assert!(result.extensions.is_empty());assert!(result.prompts.is_empty());assert!(result.themes.is_empty());assert!(result.skills.iter().all(|r| {@@ -143,23 +141,6 @@ fn resolve_without_configured_sources_returns_only_auto_resources() {}));}-#[test]-fn resolve_local_extension_paths_from_settings() {- let mut fixture = Fixture::new();- let ext_path = fixture.agent_dir.join("extensions").join("my-extension.ts");- write(&ext_path, "export default function() {}");- fixture.set_user_array(- "extensions",- serde_json::json!(["extensions/my-extension.ts"]),- );-- let result = fixture.manager.resolve().unwrap();- assert!(result- .extensions- .iter()- .any(|r| r.path == ext_path && r.enabled));-}-#[test]fn resolve_skill_paths_from_settings() {let mut fixture = Fixture::new();@@ -197,18 +178,15 @@ fn auto_discovers_root_markdown_skills() {fn resolves_project_paths_relative_to_project_config_dir() {let mut fixture = Fixture::new();let project_dir = fixture.manager.cwd().join(crate::settings::CONFIG_DIR_NAME);- let ext_path = project_dir.join("extensions").join("project-ext.ts");- write(&ext_path, "export default function() {}");- fixture.set_project_array(- "extensions",- serde_json::json!(["extensions/project-ext.ts"]),- );+ let prompt_path = project_dir.join("prompts").join("project.md");+ write(&prompt_path, "Project prompt");+ fixture.set_project_array("prompts", serde_json::json!(["prompts/project.md"]));let result = fixture.manager.resolve().unwrap();assert!(result- .extensions+ .prompts.iter()- .any(|r| r.path == ext_path && r.enabled));+ .any(|r| r.path == prompt_path && r.enabled));}#[test]@@ -256,31 +234,19 @@ fn resolves_symlinked_user_and_project_resources_once() {skill_md(&shared_skills, "shared-skill", "Shared skill");write(&shared.join("prompts").join("shared.md"), "Shared prompt");write(&shared.join("themes").join("shared.json"), "{}");- write(- &shared.join("extensions").join("shared.ts"),- "export default function() {}",- );let project_dir = fixture.manager.cwd().join(crate::settings::CONFIG_DIR_NAME);std::fs::create_dir_all(&project_dir).unwrap();- symlink(- shared.join("extensions"),- fixture.agent_dir.join("extensions"),- )- .unwrap();symlink(&shared_skills, fixture.agent_dir.join("skills")).unwrap();symlink(shared.join("prompts"), fixture.agent_dir.join("prompts")).unwrap();symlink(shared.join("themes"), fixture.agent_dir.join("themes")).unwrap();- symlink(shared.join("extensions"), project_dir.join("extensions")).unwrap();symlink(shared_skills, project_dir.join("skills")).unwrap();symlink(shared.join("prompts"), project_dir.join("prompts")).unwrap();symlink(shared.join("themes"), project_dir.join("themes")).unwrap();let result = fixture.manager.resolve().unwrap();- assert_eq!(result.extensions.len(), 1);assert_eq!(result.skills.len(), 1);assert_eq!(result.prompts.len(), 1);assert_eq!(result.themes.len(), 1);- assert_eq!(result.extensions[0].metadata.scope, SourceScope::Project);assert_eq!(result.skills[0].metadata.scope, SourceScope::Project);assert_eq!(result.prompts[0].metadata.scope, SourceScope::Project);assert_eq!(result.themes[0].metadata.scope, SourceScope::Project);@@ -291,38 +257,6 @@ fn resolves_symlinked_user_and_project_resources_once() {}}-#[test]-fn resolves_directory_with_pi_extensions_manifest() {- let mut fixture = Fixture::new();- let pkg_dir = fixture.temp_dir.join("my-extensions-pkg");- write(- &pkg_dir.join("package.json"),- r#"{"name":"my-extensions-pkg","pi":{"extensions":["./extensions/clip.ts","./extensions/cost.ts"]}}"#,- );- write(- &pkg_dir.join("extensions").join("clip.ts"),- "export default function() {}",- );- write(- &pkg_dir.join("extensions").join("cost.ts"),- "export default function() {}",- );- write(- &pkg_dir.join("extensions").join("helper.ts"),- "export const x = 1;",- );-- fixture.set_user_array(- "extensions",- serde_json::json!([pkg_dir.display().to_string()]),- );-- let result = fixture.manager.resolve().unwrap();- assert!(is_enabled(&result.extensions, "clip.ts"));- assert!(is_enabled(&result.extensions, "cost.ts"));- assert!(!has_path(&result.extensions, "helper.ts"));-}-// -- .agents/skills ancestor scan -----------------------------------------------#[test]@@ -504,129 +438,8 @@ fn parent_gitignore_does_not_apply_to_auto_discovery() {.any(|r| r.path == skill_path && r.enabled));}-// -- resolveExtensionSources ------------------------------------------------------#[test]-fn extension_sources_resolve_local_paths() {- let mut fixture = Fixture::new();- let ext_path = fixture.temp_dir.join("ext.ts");- write(&ext_path, "export default function() {}");-- let result = fixture- .manager- .resolve_extension_sources(- &[ext_path.display().to_string()],- ResolveExtensionOptions::default(),- )- .unwrap();- assert!(result- .extensions- .iter()- .any(|r| r.path == ext_path && r.enabled));-}--#[test]-fn extension_sources_handle_directories_with_pi_manifest() {- let mut fixture = Fixture::new();- let pkg_dir = fixture.temp_dir.join("my-package");- write(- &pkg_dir.join("package.json"),- r#"{"name":"my-package","pi":{"extensions":["./src/index.ts"],"skills":["./skills"]}}"#,- );- write(- &pkg_dir.join("src").join("index.ts"),- "export default function() {}",- );- let skill_path = skill_md(&pkg_dir.join("skills"), "my-skill", "Test");-- let result = fixture- .manager- .resolve_extension_sources(- &[pkg_dir.display().to_string()],- ResolveExtensionOptions::default(),- )- .unwrap();- assert!(result- .extensions- .iter()- .any(|r| r.path == pkg_dir.join("src").join("index.ts") && r.enabled));- assert!(result- .skills- .iter()- .any(|r| r.path == skill_path && r.enabled));-}--#[test]-fn extension_sources_handle_auto_discovery_layout() {- let mut fixture = Fixture::new();- let pkg_dir = fixture.temp_dir.join("auto-pkg");- write(- &pkg_dir.join("extensions").join("main.ts"),- "export default function() {}",- );- write(&pkg_dir.join("themes").join("dark.json"), "{}");-- let result = fixture- .manager- .resolve_extension_sources(- &[pkg_dir.display().to_string()],- ResolveExtensionOptions::default(),- )- .unwrap();- assert!(is_enabled(&result.extensions, "main.ts"));- assert!(is_enabled(&result.themes, "dark.json"));-}--#[test]-fn extension_sources_stop_recursion_at_skill_md() {- let mut fixture = Fixture::new();- let pkg_dir = fixture.temp_dir.join("skill-root-pkg");- let root_skill = pkg_dir.join("skills").join("root-skill").join("SKILL.md");- write(- &root_skill,- "---\nname: root-skill\ndescription: Root\n---\n",- );- let nested = skill_md(- &pkg_dir- .join("skills")- .join("root-skill")- .join("nested-skill"),- "nested-skill",- "Nested",- );-- let result = fixture- .manager- .resolve_extension_sources(- &[pkg_dir.display().to_string()],- ResolveExtensionOptions::default(),- )- .unwrap();- assert!(result- .skills- .iter()- .any(|r| r.path == root_skill && r.enabled));- assert!(!result.skills.iter().any(|r| r.path == nested));-}-// -- pattern filtering: top-level arrays -----------------------------------------#[test]-fn top_level_excludes_extensions_with_pattern() {- let mut fixture = Fixture::new();- let ext_dir = fixture.agent_dir.join("extensions");- write(&ext_dir.join("keep.ts"), "export default function() {}");- write(&ext_dir.join("remove.ts"), "export default function() {}");- fixture.set_user_array(- "extensions",- serde_json::json!(["extensions", "!**/remove.ts"]),- );-- let result = fixture.manager.resolve().unwrap();- assert!(is_enabled(&result.extensions, "keep.ts"));- assert!(is_disabled(&result.extensions, "remove.ts"));-}-#[test]fn top_level_filters_themes_with_glob_patterns() {let mut fixture = Fixture::new();@@ -676,47 +489,6 @@ fn top_level_filters_skills_with_exclusion_pattern() {// -- pattern filtering: pi manifest -----------------------------------------------#[test]-fn manifest_supports_glob_patterns_for_extensions() {- let mut fixture = Fixture::new();- let pkg_dir = fixture.temp_dir.join("manifest-pkg");- write(- &pkg_dir.join("package.json"),- r#"{"name":"manifest-pkg","pi":{"extensions":["extensions","node_modules/dep/extensions","!**/skip.ts"]}}"#,- );- write(- &pkg_dir.join("extensions").join("local.ts"),- "export default function() {}",- );- write(- &pkg_dir- .join("node_modules")- .join("dep")- .join("extensions")- .join("remote.ts"),- "export default function() {}",- );- write(- &pkg_dir- .join("node_modules")- .join("dep")- .join("extensions")- .join("skip.ts"),- "export default function() {}",- );-- let result = fixture- .manager- .resolve_extension_sources(- &[pkg_dir.display().to_string()],- ResolveExtensionOptions::default(),- )- .unwrap();- assert!(is_enabled(&result.extensions, "local.ts"));- assert!(is_enabled(&result.extensions, "remote.ts"));- assert!(!has_path(&result.extensions, "skip.ts"));-}-#[test]fn manifest_supports_glob_patterns_for_skills() {let mut fixture = Fixture::new();@@ -728,13 +500,8 @@ fn manifest_supports_glob_patterns_for_skills() {skill_md(&pkg_dir.join("skills"), "good-skill", "Good");skill_md(&pkg_dir.join("skills"), "bad-skill", "Bad");- let result = fixture- .manager- .resolve_extension_sources(- &[pkg_dir.display().to_string()],- ResolveExtensionOptions::default(),- )- .unwrap();+ fixture.set_user_packages(serde_json::json!([pkg_dir.display().to_string()]));+ let result = fixture.manager.resolve().unwrap();assert!(result.skills.iter()@@ -767,13 +534,8 @@ fn manifest_expands_positive_glob_entries_before_collecting_skills() {"DWS",);- let result = fixture- .manager- .resolve_extension_sources(- &[pkg_dir.display().to_string()],- ResolveExtensionOptions::default(),- )- .unwrap();+ fixture.set_user_packages(serde_json::json!([pkg_dir.display().to_string()]));+ let result = fixture.manager.resolve().unwrap();assert!(result.skills.iter()@@ -793,50 +555,22 @@ fn user_filters_layer_on_top_of_manifest_filters() {let pkg_dir = fixture.temp_dir.join("layered-pkg");write(&pkg_dir.join("package.json"),- r#"{"name":"layered-pkg","pi":{"extensions":["extensions","!**/baz.ts"]}}"#,+ r#"{"name":"layered-pkg","pi":{"prompts":["prompts","!**/baz.md"]}}"#,);- for name in ["foo.ts", "bar.ts", "baz.ts"] {- write(- &pkg_dir.join("extensions").join(name),- "export default function() {}",- );+ for name in ["foo.md", "bar.md", "baz.md"] {+ write(&pkg_dir.join("prompts").join(name), "A prompt");}fixture.set_user_packages(serde_json::json!([{"source": pkg_dir.display().to_string(),- "extensions": ["!**/bar.ts"],"skills": [],- "prompts": [],+ "prompts": ["!**/bar.md"],"themes": [],}]));let result = fixture.manager.resolve().unwrap();- assert!(is_enabled(&result.extensions, "foo.ts"));- assert!(is_disabled(&result.extensions, "bar.ts"));- assert!(!has_path(&result.extensions, "baz.ts"));-}--#[test]-fn package_filters_exclude_extensions_with_pattern() {- let mut fixture = Fixture::new();- let pkg_dir = fixture.temp_dir.join("pattern-pkg");- for name in ["foo.ts", "bar.ts", "baz.ts"] {- write(- &pkg_dir.join("extensions").join(name),- "export default function() {}",- );- }- fixture.set_user_packages(serde_json::json!([{- "source": pkg_dir.display().to_string(),- "extensions": ["!**/baz.ts"],- "skills": [],- "prompts": [],- "themes": [],- }]));-- let result = fixture.manager.resolve().unwrap();- assert!(is_enabled(&result.extensions, "foo.ts"));- assert!(is_enabled(&result.extensions, "bar.ts"));- assert!(is_disabled(&result.extensions, "baz.ts"));+ assert!(is_enabled(&result.prompts, "foo.md"));+ assert!(is_disabled(&result.prompts, "bar.md"));+ assert!(!has_path(&result.prompts, "baz.md"));}#[test]@@ -847,7 +581,6 @@ fn package_filters_filter_themes() {write(&pkg_dir.join("themes").join("ugly.json"), "{}");fixture.set_user_packages(serde_json::json!([{"source": pkg_dir.display().to_string(),- "extensions": [],"skills": [],"prompts": [],"themes": ["!ugly.json"],@@ -862,97 +595,60 @@ fn package_filters_filter_themes() {fn package_filters_combine_include_and_exclude_patterns() {let mut fixture = Fixture::new();let pkg_dir = fixture.temp_dir.join("combo-pkg");- for name in ["alpha.ts", "beta.ts", "gamma.ts"] {- write(- &pkg_dir.join("extensions").join(name),- "export default function() {}",- );+ for name in ["alpha.md", "beta.md", "gamma.md"] {+ write(&pkg_dir.join("prompts").join(name), "A prompt");}fixture.set_user_packages(serde_json::json!([{"source": pkg_dir.display().to_string(),- "extensions": ["**/alpha.ts", "**/beta.ts", "!**/beta.ts"],"skills": [],- "prompts": [],+ "prompts": ["**/alpha.md", "**/beta.md", "!**/beta.md"],"themes": [],}]));let result = fixture.manager.resolve().unwrap();- assert!(is_enabled(&result.extensions, "alpha.ts"));- assert!(is_disabled(&result.extensions, "beta.ts"));- assert!(is_disabled(&result.extensions, "gamma.ts"));+ assert!(is_enabled(&result.prompts, "alpha.md"));+ assert!(is_disabled(&result.prompts, "beta.md"));+ assert!(is_disabled(&result.prompts, "gamma.md"));}#[test]fn package_filters_work_with_direct_paths() {let mut fixture = Fixture::new();let pkg_dir = fixture.temp_dir.join("direct-pkg");- write(- &pkg_dir.join("extensions").join("one.ts"),- "export default function() {}",- );- write(- &pkg_dir.join("extensions").join("two.ts"),- "export default function() {}",- );+ write(&pkg_dir.join("prompts").join("one.md"), "One");+ write(&pkg_dir.join("prompts").join("two.md"), "Two");fixture.set_user_packages(serde_json::json!([{"source": pkg_dir.display().to_string(),- "extensions": ["extensions/one.ts"],"skills": [],- "prompts": [],+ "prompts": ["prompts/one.md"],"themes": [],}]));let result = fixture.manager.resolve().unwrap();- assert!(is_enabled(&result.extensions, "one.ts"));- assert!(is_disabled(&result.extensions, "two.ts"));+ assert!(is_enabled(&result.prompts, "one.md"));+ assert!(is_disabled(&result.prompts, "two.md"));}// -- force-include / force-exclude ----------------------------------------------#[test]-fn force_include_extensions_after_exclusion() {- let mut fixture = Fixture::new();- let ext_dir = fixture.agent_dir.join("extensions");- for name in ["keep.ts", "excluded.ts", "force-back.ts"] {- write(&ext_dir.join(name), "export default function() {}");- }- fixture.set_user_array(- "extensions",- serde_json::json!([- "extensions",- "!extensions/*.ts",- "+extensions/force-back.ts"- ]),- );-- let result = fixture.manager.resolve().unwrap();- assert!(is_disabled(&result.extensions, "keep.ts"));- assert!(is_disabled(&result.extensions, "excluded.ts"));- assert!(is_enabled(&result.extensions, "force-back.ts"));-}-#[test]fn force_include_overrides_exclude_in_package_filters() {let mut fixture = Fixture::new();let pkg_dir = fixture.temp_dir.join("force-pkg");- for name in ["alpha.ts", "beta.ts", "gamma.ts"] {- write(- &pkg_dir.join("extensions").join(name),- "export default function() {}",- );+ for name in ["alpha.md", "beta.md", "gamma.md"] {+ write(&pkg_dir.join("prompts").join(name), "A prompt");}fixture.set_user_packages(serde_json::json!([{"source": pkg_dir.display().to_string(),- "extensions": ["!**/*.ts", "+extensions/beta.ts"],"skills": [],- "prompts": [],+ "prompts": ["!**/*.md", "+prompts/beta.md"],"themes": [],}]));let result = fixture.manager.resolve().unwrap();- assert!(is_disabled(&result.extensions, "alpha.ts"));- assert!(is_enabled(&result.extensions, "beta.ts"));- assert!(is_disabled(&result.extensions, "gamma.ts"));+ assert!(is_disabled(&result.prompts, "alpha.md"));+ assert!(is_enabled(&result.prompts, "beta.md"));+ assert!(is_disabled(&result.prompts, "gamma.md"));}#[test]@@ -964,7 +660,6 @@ fn force_include_multiple_resources() {}fixture.set_user_packages(serde_json::json!([{"source": pkg_dir.display().to_string(),- "extensions": [],"skills": ["!**/*", "+skills/skill-a", "+skills/skill-c"],"prompts": [],"themes": [],@@ -988,17 +683,17 @@ fn force_include_multiple_resources() {#[test]fn force_include_after_specific_exclusion() {let mut fixture = Fixture::new();- let ext_dir = fixture.agent_dir.join("extensions");- write(&ext_dir.join("a.ts"), "export default function() {}");- write(&ext_dir.join("b.ts"), "export default function() {}");+ let prompts_dir = fixture.agent_dir.join("prompts");+ write(&prompts_dir.join("a.md"), "A prompt");+ write(&prompts_dir.join("b.md"), "B prompt");fixture.set_user_array(- "extensions",- serde_json::json!(["extensions", "!extensions/b.ts", "+extensions/b.ts"]),+ "prompts",+ serde_json::json!(["prompts", "!prompts/b.md", "+prompts/b.md"]),);let result = fixture.manager.resolve().unwrap();- assert!(is_enabled(&result.extensions, "a.ts"));- assert!(is_enabled(&result.extensions, "b.ts"));+ assert!(is_enabled(&result.prompts, "a.md"));+ assert!(is_enabled(&result.prompts, "b.md"));}#[test]@@ -1007,25 +702,17 @@ fn force_include_in_manifest_patterns() {let pkg_dir = fixture.temp_dir.join("manifest-force-pkg");write(&pkg_dir.join("package.json"),- r#"{"name":"manifest-force-pkg","pi":{"extensions":["extensions","!**/two.ts","+extensions/two.ts"]}}"#,+ r#"{"name":"manifest-force-pkg","pi":{"prompts":["prompts","!**/two.md","+prompts/two.md"]}}"#,);- for name in ["one.ts", "two.ts", "three.ts"] {- write(- &pkg_dir.join("extensions").join(name),- "export default function() {}",- );+ for name in ["one.md", "two.md", "three.md"] {+ write(&pkg_dir.join("prompts").join(name), "A prompt");}- let result = fixture- .manager- .resolve_extension_sources(- &[pkg_dir.display().to_string()],- ResolveExtensionOptions::default(),- )- .unwrap();- assert!(is_enabled(&result.extensions, "one.ts"));- assert!(is_enabled(&result.extensions, "two.ts"));- assert!(is_enabled(&result.extensions, "three.ts"));+ fixture.set_user_packages(serde_json::json!([pkg_dir.display().to_string()]));+ let result = fixture.manager.resolve().unwrap();+ assert!(is_enabled(&result.prompts, "one.md"));+ assert!(is_enabled(&result.prompts, "two.md"));+ assert!(is_enabled(&result.prompts, "three.md"));}#[test]@@ -1067,42 +754,35 @@ fn force_include_prompts() {#[test]fn force_exclude_top_level_resources() {let mut fixture = Fixture::new();- let ext_dir = fixture.agent_dir.join("extensions");- write(&ext_dir.join("alpha.ts"), "export default function() {}");- write(&ext_dir.join("beta.ts"), "export default function() {}");+ let themes_dir = fixture.agent_dir.join("themes");+ write(&themes_dir.join("alpha.json"), "{}");+ write(&themes_dir.join("beta.json"), "{}");fixture.set_user_array(- "extensions",- serde_json::json!(["extensions", "+extensions/alpha.ts", "-extensions/alpha.ts"]),+ "themes",+ serde_json::json!(["themes", "+themes/alpha.json", "-themes/alpha.json"]),);let result = fixture.manager.resolve().unwrap();- assert!(is_disabled(&result.extensions, "alpha.ts"));- assert!(is_enabled(&result.extensions, "beta.ts"));+ assert!(is_disabled(&result.themes, "alpha.json"));+ assert!(is_enabled(&result.themes, "beta.json"));}#[test]fn force_exclude_in_package_filters() {let mut fixture = Fixture::new();let pkg_dir = fixture.temp_dir.join("force-exclude-pkg");- write(- &pkg_dir.join("extensions").join("alpha.ts"),- "export default function() {}",- );- write(- &pkg_dir.join("extensions").join("beta.ts"),- "export default function() {}",- );+ write(&pkg_dir.join("prompts").join("alpha.md"), "A prompt");+ write(&pkg_dir.join("prompts").join("beta.md"), "B prompt");fixture.set_user_packages(serde_json::json!([{"source": pkg_dir.display().to_string(),- "extensions": ["extensions/*.ts", "+extensions/alpha.ts", "-extensions/alpha.ts"],"skills": [],- "prompts": [],+ "prompts": ["prompts/*.md", "+prompts/alpha.md", "-prompts/alpha.md"],"themes": [],}]));let result = fixture.manager.resolve().unwrap();- assert!(is_disabled(&result.extensions, "alpha.ts"));- assert!(is_enabled(&result.extensions, "beta.ts"));+ assert!(is_disabled(&result.prompts, "alpha.md"));+ assert!(is_enabled(&result.prompts, "beta.md"));}// -- package deduplication -------------------------------------------------------@@ -1111,10 +791,7 @@ fn force_exclude_in_package_filters() {fn same_local_package_in_both_scopes_resolves_once_with_project_scope() {let mut fixture = Fixture::new();let pkg_dir = fixture.temp_dir.join("shared-pkg");- write(- &pkg_dir.join("extensions").join("shared.ts"),- "export default function() {}",- );+ skill_md(&pkg_dir.join("skills"), "shared-skill", "Shared skill");fixture.set_user_packages(serde_json::json!([pkg_dir.display().to_string()]));let project_dir = fixture.manager.cwd().join(crate::settings::CONFIG_DIR_NAME);@@ -1128,7 +805,7 @@ fn same_local_package_in_both_scopes_resolves_once_with_project_scope() {let result = fixture.manager.resolve().unwrap();let shared: Vec<_> = result- .extensions+ .skills.iter().filter(|r| r.path.to_string_lossy().contains("shared-pkg")).collect();@@ -1141,14 +818,8 @@ fn different_packages_in_both_scopes_both_resolve() {let mut fixture = Fixture::new();let pkg1 = fixture.temp_dir.join("pkg1");let pkg2 = fixture.temp_dir.join("pkg2");- write(- &pkg1.join("extensions").join("from-pkg1.ts"),- "export default function() {}",- );- write(- &pkg2.join("extensions").join("from-pkg2.ts"),- "export default function() {}",- );+ write(&pkg1.join("prompts").join("from-pkg1.md"), "Pkg1 prompt");+ write(&pkg2.join("prompts").join("from-pkg2.md"), "Pkg2 prompt");fixture.set_user_packages(serde_json::json!([pkg1.display().to_string()]));let project_dir = fixture.manager.cwd().join(crate::settings::CONFIG_DIR_NAME);@@ -1162,143 +833,15 @@ fn different_packages_in_both_scopes_both_resolve() {let result = fixture.manager.resolve().unwrap();assert!(result- .extensions+ .prompts.iter().any(|r| r.path.to_string_lossy().contains("pkg1")));assert!(result- .extensions+ .prompts.iter().any(|r| r.path.to_string_lossy().contains("pkg2")));}-// -- multi-file extension discovery -----------------------------------------------#[test]-fn only_index_ts_loads_from_subdirectories() {- let mut fixture = Fixture::new();- let pkg_dir = fixture.temp_dir.join("multifile-pkg");- write(- &pkg_dir.join("extensions").join("subagent").join("index.ts"),- "export default function(api) {}",- );- write(- &pkg_dir- .join("extensions")- .join("subagent")- .join("agents.ts"),- "export function helper() {}",- );- write(- &pkg_dir.join("extensions").join("standalone.ts"),- "export default function(api) {}",- );-- let result = fixture- .manager- .resolve_extension_sources(- &[pkg_dir.display().to_string()],- ResolveExtensionOptions::default(),- )- .unwrap();- assert!(is_enabled(&result.extensions, "subagent/index.ts"));- assert!(is_enabled(&result.extensions, "standalone.ts"));- assert!(!has_path(&result.extensions, "agents.ts"));-}--#[test]-fn manifest_in_subdirectories_is_respected() {- let mut fixture = Fixture::new();- let pkg_dir = fixture.temp_dir.join("manifest-subdir-pkg");- write(- &pkg_dir- .join("extensions")- .join("custom")- .join("package.json"),- r#"{"pi":{"extensions":["./main.ts"]}}"#,- );- write(- &pkg_dir.join("extensions").join("custom").join("main.ts"),- "export default function(api) {}",- );- write(- &pkg_dir.join("extensions").join("custom").join("utils.ts"),- "export const util = 1;",- );-- let result = fixture- .manager- .resolve_extension_sources(- &[pkg_dir.display().to_string()],- ResolveExtensionOptions::default(),- )- .unwrap();- assert!(is_enabled(&result.extensions, "custom/main.ts"));- assert!(!has_path(&result.extensions, "utils.ts"));-}--#[test]-fn mixed_top_level_files_and_subdirectories() {- let mut fixture = Fixture::new();- let pkg_dir = fixture.temp_dir.join("mixed-pkg");- write(- &pkg_dir.join("extensions").join("simple.ts"),- "export default function(api) {}",- );- write(- &pkg_dir.join("extensions").join("complex").join("index.ts"),- "export default function(api) {}",- );- write(- &pkg_dir.join("extensions").join("complex").join("a.ts"),- "export const a = 1;",- );- write(- &pkg_dir.join("extensions").join("complex").join("b.ts"),- "export const b = 2;",- );-- let result = fixture- .manager- .resolve_extension_sources(- &[pkg_dir.display().to_string()],- ResolveExtensionOptions::default(),- )- .unwrap();- assert!(is_enabled(&result.extensions, "simple.ts"));- assert!(is_enabled(&result.extensions, "complex/index.ts"));- assert!(!has_path(&result.extensions, "complex/a.ts"));- assert!(!has_path(&result.extensions, "complex/b.ts"));- assert_eq!(result.extensions.iter().filter(|r| r.enabled).count(), 2);-}--#[test]-fn subdirectories_without_entry_point_are_skipped() {- let mut fixture = Fixture::new();- let pkg_dir = fixture.temp_dir.join("no-entry-pkg");- write(- &pkg_dir.join("extensions").join("broken").join("helper.ts"),- "export const x = 1;",- );- write(- &pkg_dir.join("extensions").join("broken").join("another.ts"),- "export const y = 2;",- );- write(- &pkg_dir.join("extensions").join("valid.ts"),- "export default function(api) {}",- );-- let result = fixture- .manager- .resolve_extension_sources(- &[pkg_dir.display().to_string()],- ResolveExtensionOptions::default(),- )- .unwrap();- assert!(is_enabled(&result.extensions, "valid.ts"));- assert_eq!(result.extensions.iter().filter(|r| r.enabled).count(), 1);-}-// -- offline / missing-source policies -------------------------------------------#[test]@@ -1319,9 +862,8 @@ fn offline_mode_skips_installing_missing_sources() {let result = fixture.manager.resolve().unwrap();assert!(!result- .extensions+ .skills.iter()- .chain(&result.skills).chain(&result.prompts).chain(&result.themes).any(|r| r.metadata.origin == ResourceOrigin::Package));@@ -1332,49 +874,6 @@ fn offline_mode_skips_installing_missing_sources() {}}-#[test]-fn offline_mode_skips_refreshing_temporary_git_sources() {- let _guard = ENV_MUTEX.lock().unwrap();- let previous = std::env::var("PI_OFFLINE").ok();- std::env::set_var("PI_OFFLINE", "1");- let mut fixture = Fixture::new();-- // A pre-existing temporary checkout for the source is collected without- // any refresh attempt.- let git_source = "git:github.com/example/repo";- let parsed = super::super::source::parse_source(git_source);- let installed = match &parsed {- crate::packages::ParsedSource::Git(git) => super::super::git::git_install_path(- git,- SourceScope::Temporary,- fixture.manager.cwd(),- &fixture.agent_dir,- ),- _ => panic!("expected git source"),- };- write(- &installed.join("extensions").join("index.ts"),- "export default function() {};",- );-- let result = fixture- .manager- .resolve_extension_sources(- &[git_source.to_string()],- ResolveExtensionOptions {- temporary: true,- ..Default::default()- },- )- .unwrap();- assert!(is_enabled(&result.extensions, "extensions/index.ts"));-- match previous {- Some(value) => std::env::set_var("PI_OFFLINE", value),- None => std::env::remove_var("PI_OFFLINE"),- }-}-#[test]fn on_missing_error_fails_resolution() {let _guard = ENV_MUTEX.lock().unwrap();@@ -1402,8 +901,10 @@ fn on_missing_skip_leaves_the_source_out() {.resolve_with_on_missing(Some(&mut |_| crate::packages::MissingSourceAction::Skip)).unwrap();assert!(result- .extensions+ .skills.iter()+ .chain(&result.prompts)+ .chain(&result.themes).all(|r| r.metadata.origin != ResourceOrigin::Package));}diff --git a/crates/pa-core/src/packages/resource_config.rs b/crates/pa-core/src/packages/resource_config.rsindex 7f5e44ae0e..456cbec291 100644--- a/crates/pa-core/src/packages/resource_config.rs+++ b/crates/pa-core/src/packages/resource_config.rs@@ -1,7 +1,7 @@//! Resource configuration (TS `config-selector.ts` data layer): the grouped-//! view of every resolved extension/skill/prompt/theme and the settings-//! mutation that flips one resource's enablement. The UI lives in pa-tui /-//! pa-cli; this module owns the grouping rules and the settings writes.+//! view of every resolved skill/prompt/theme and the settings mutation that+//! flips one resource's enablement. The UI lives in pa-tui / pa-cli; this+//! module owns the grouping rules and the settings writes.use std::path::{Path, PathBuf};@@ -48,7 +48,6 @@ pub struct ResourceGroup {#[must_use]pub fn resource_type_label(resource_type: ResourceType) -> &'static str {match resource_type {- ResourceType::Extensions => "Extensions",ResourceType::Skills => "Skills",ResourceType::Prompts => "Prompts",ResourceType::Themes => "Themes",@@ -90,9 +89,8 @@ fn scope_word(scope: SourceScope) -> &'static str {}}-/// The display name of one resource path (TS naming rules): extensions keep-/// their parent folder when it is not the conventional one, skills named by-/// their SKILL.md use the folder, everything else shows the file name.+/// The display name of one resource path (TS naming rules): skills named+/// by their SKILL.md use the folder, everything else shows the file name.fn display_name(path: &Path, resource_type: ResourceType) -> String {let file_name = path.file_name()@@ -103,9 +101,6 @@ fn display_name(path: &Path, resource_type: ResourceType) -> String {.and_then(|parent| parent.file_name()).map(|name| name.to_string_lossy().to_string()).unwrap_or_default();- if resource_type == ResourceType::Extensions && parent_folder != "extensions" {- return format!("{parent_folder}/{file_name}");- }if resource_type == ResourceType::Skills && file_name == "SKILL.md" {return parent_folder;}@@ -114,7 +109,7 @@ fn display_name(path: &Path, resource_type: ResourceType) -> String {/// The grouped view of a full resolution (TS `buildGroups`): items grouped by/// origin/scope/source, subgroups per resource kind in-/// extensions/skills/prompts/themes order, items sorted by display name.+/// skills/prompts/themes order, items sorted by display name.#[must_use]pub fn build_groups(resolved: &ResolvedPaths) -> Vec<ResourceGroup> {let mut groups: Vec<ResourceGroup> = Vec::new();@@ -163,9 +158,6 @@ pub fn build_groups(resolved: &ResolvedPaths) -> Vec<ResourceGroup> {subgroup_key,});};- for resource in &resolved.extensions {- add(resource, ResourceType::Extensions);- }for resource in &resolved.skills {add(resource, ResourceType::Skills);}@@ -325,7 +317,7 @@ fn toggle_package_resource(updated.push(serde_json::Value::String(written.clone()));if let Some(object) = entry.as_object_mut() {object.insert(array_key.to_string(), serde_json::Value::Array(updated));- let has_filters = ["extensions", "skills", "prompts", "themes"]+ let has_filters = ["skills", "prompts", "themes"].iter().any(|key| object.contains_key(*key));if !has_filters {@@ -348,7 +340,6 @@ fn resource_array(resource_type: ResourceType,) -> Option<&[String]> {match resource_type {- ResourceType::Extensions => scope.extensions.as_deref(),ResourceType::Skills => scope.skills.as_deref(),ResourceType::Prompts => scope.prompts.as_deref(),ResourceType::Themes => scope.themes.as_deref(),@@ -357,7 +348,6 @@ fn resource_array(fn resource_array_key(resource_type: ResourceType) -> &'static str {match resource_type {- ResourceType::Extensions => "extensions",ResourceType::Skills => "skills",ResourceType::Prompts => "prompts",ResourceType::Themes => "themes",@@ -446,14 +436,12 @@ mod tests {match RESOURCE_TYPES.iter().find(|kind| {- let is_skill = **kind == ResourceType::Skills;- is_skill == item.path.to_string_lossy().contains("skill")- || (!is_skill && item.path.extension().is_some_and(|e| e == "ts"))+ (**kind == ResourceType::Skills)+ == item.path.to_string_lossy().contains("skill")}).copied().unwrap_or(ResourceType::Skills){- ResourceType::Extensions => paths.extensions.push(item),ResourceType::Skills => paths.skills.push(item),ResourceType::Prompts => paths.prompts.push(item),ResourceType::Themes => paths.themes.push(item),@@ -485,16 +473,6 @@ mod tests {),true,),- resource(- "/work/.prime/agent/extensions/ext.ts",- metadata(- MetadataSource::Local,- SourceScope::Project,- ResourceOrigin::TopLevel,- None,- ),- false,- ),resource("/work/.prime/agent/skills/project-skill/SKILL.md",metadata(@@ -543,14 +521,17 @@ mod tests {.iter().map(|subgroup| subgroup.label).collect();- assert_eq!(kinds, vec!["Extensions", "Skills"]);- assert_eq!(project_group.subgroups[0].items[0].display_name, "ext.ts");+ assert_eq!(kinds, vec!["Skills"]);+ assert_eq!(+ project_group.subgroups[0].items[0].display_name,+ "project-skill"+ );}#[test]- fn extension_display_names_keep_their_parent_folder() {+ fn prompt_display_names_show_the_file_name() {let item = resource(- "/work/.prime/agent/extensions/my-ext/index.ts",+ "/work/.prime/agent/prompts/fix.md",metadata(MetadataSource::Local,SourceScope::Project,@@ -559,10 +540,7 @@ mod tests {),true,);- assert_eq!(- display_name(&item.path, ResourceType::Extensions),- "my-ext/index.ts"- );+ assert_eq!(display_name(&item.path, ResourceType::Prompts), "fix.md");}fn settings_fixture() -> (tempfile::TempDir, SettingsManager) {diff --git a/crates/pa-core/src/resources/mod.rs b/crates/pa-core/src/resources/mod.rsindex 22b34fdb74..13a41d2ec1 100644--- a/crates/pa-core/src/resources/mod.rs+++ b/crates/pa-core/src/resources/mod.rs@@ -2,9 +2,7 @@//! loader. Port of core/resource-loader.ts, scoped to the session engine's//! needs: skills, prompt templates, agents files, and system-prompt sources,//! resolved from configured packages, settings, auto-discovery, and bundled-//! skills through the package manager. The extension *runner* (loading and-//! executing extension modules) is a downstream seam; theme loading lives-//! in pa-tui.+//! skills through the package manager. Theme loading lives in pa-tui.use std::collections::HashSet;use std::path::{Path, PathBuf};@@ -71,8 +69,8 @@ pub fn load_project_context_files(cwd: &Path, agent_dir: &Path) -> Vec<ContextFicontext_files}-// Session resource resolution (package-manager `resolve()` + CLI extension-// sources) feeds the loader below.+// Session resource resolution (package-manager `resolve()`) feeds the+// loader below.pub(crate) mod resolution;use anyhow::Result;@@ -89,13 +87,10 @@ pub struct LoadedResources {pub agents_files: Vec<ContextFile>,pub system_prompt: Option<String>,pub append_system_prompt: Vec<String>,- /// Enabled extension entry points, in precedence order (the extension- /// runner consumes these; it is not part of this lane's surface).- pub extension_paths: Vec<String>,}/// Resource loading options (the TS `DefaultResourceLoaderOptions` surface,-/// minus the extension-runner/theme machinery).+/// minus the theme machinery).#[derive(Default)]pub struct ResourceLoaderOptions {pub cwd: PathBuf,@@ -104,8 +99,6 @@ pub struct ResourceLoaderOptions {pub settings: Option<SettingsManager>,/// Built-in skills directory (default: the packaged layout).pub bundled_skills_dir: BundledSkillsDir,- /// CLI extension sources resolved in the temporary scope.- pub additional_extension_sources: Vec<String>,/// Extra force-exclude patterns for built-in skills.pub extra_builtin_skill_overrides: Vec<String>,pub additional_skill_paths: Vec<String>,@@ -130,8 +123,7 @@ impl ResourceLoaderOptions {/// Load all session resources: package-manager resolution (configured/// packages, settings arrays, auto-discovery, bundled skills) feeds the-/// enabled skill and prompt paths; CLI extension sources resolve in the-/// temporary scope.+/// enabled skill and prompt paths.////// # Errors///@@ -144,10 +136,7 @@ pub fn load_resources(mut options: ResourceLoaderOptions) -> Result<LoadedResour.unwrap_or_else(|| SettingsManager::create(&options.cwd, &options.agent_dir));let resolution = resolution::resolve_session_resources(&options, settings)?;- let mut resources = LoadedResources {- extension_paths: resolution.extension_paths.clone(),- ..Default::default()- };+ let mut resources = LoadedResources::default();// Skills: CLI paths + additional paths first, then resolved paths in// precedence order; name collisions resolve first-wins in load order.diff --git a/crates/pa-core/src/resources/resolution.rs b/crates/pa-core/src/resources/resolution.rsindex 1d91e02175..3bba64c2d2 100644--- a/crates/pa-core/src/resources/resolution.rs+++ b/crates/pa-core/src/resources/resolution.rs@@ -1,7 +1,7 @@//! Resource resolution wiring: the package manager resolves configured//! packages, settings arrays, auto-discovery, and bundled skills; the loader-//! consumes the enabled paths (skills and prompts join the session). The-//! extension runner and theme loading are downstream seams.+//! consumes the enabled paths (skills and prompts join the session). Theme+//! loading is a downstream seam.use std::collections::HashSet;use std::path::{Path, PathBuf};@@ -13,11 +13,10 @@ use crate::settings::SettingsManager;use crate::packages::PathMetadata;use crate::packages::{- MetadataSource, PackageManager, PackageManagerOptions, ResolveExtensionOptions, ResolvedPaths,- ResolvedResource,+ MetadataSource, PackageManager, PackageManagerOptions, ResolvedPaths, ResolvedResource,};use crate::skills::{- create_synthetic_source_info, SourceInfo as SkillSourceInfo, SourceOrigin as SkillSourceOrigin,+ SourceInfo as SkillSourceInfo, SourceOrigin as SkillSourceOrigin,SourceScope as SkillSourceScope,};@@ -59,19 +58,6 @@ pub(crate) fn index_source_infos(index: &mut SourceInfoIndex, resources: &[Resol}}-/// CLI-sourced provenance (`source: "cli"`, temporary scope).-fn index_cli_source_infos(index: &mut SourceInfoIndex, resources: &[ResolvedResource]) {- for resource in resources {- let key = resource.path.display().to_string();- if !index.iter().any(|(existing, _)| existing == &key) {- index.push((- key.clone(),- create_synthetic_source_info(&key, "cli", SkillSourceScope::Temporary, None),- ));- }- }-}-/// The resolved-path provenance of a loaded file: exact match, else the/// nearest parent entry (a resource directory owns the files under it).pub(crate) fn find_source_info(@@ -165,14 +151,13 @@ fn home_dir() -> PathBuf {pa_types::platform::home_dir().unwrap_or_else(|| PathBuf::from("."))}-/// The full resolve step of resource loading: package-manager resolution-/// plus CLI extension sources, returning the resolved paths, the enabled-/// session paths (skills mapped to `SKILL.md`), and the provenance index.+/// The full resolve step of resource loading: package-manager resolution,+/// returning the resolved paths, the enabled session paths (skills mapped+/// to `SKILL.md`), and the provenance index.pub(crate) struct ResolutionOutput {pub resolved: ResolvedPaths,pub skill_paths: Vec<String>,pub prompt_paths: Vec<String>,- pub extension_paths: Vec<String>,pub source_infos: SourceInfoIndex,}@@ -195,24 +180,12 @@ pub(crate) fn resolve_session_resources(extra_builtin_skill_overrides: options.extra_builtin_skill_overrides.clone(),});let resolved = manager.resolve()?;- let cli = manager.resolve_extension_sources(- &options.additional_extension_sources,- ResolveExtensionOptions {- temporary: true,- ..Default::default()- },- )?;let mut source_infos: SourceInfoIndex = Vec::new();index_source_infos(&mut source_infos, &resolved.skills);index_source_infos(&mut source_infos, &resolved.prompts);index_source_infos(&mut source_infos, &resolved.themes);- index_source_infos(&mut source_infos, &resolved.extensions);- index_cli_source_infos(&mut source_infos, &cli.skills);- index_cli_source_infos(&mut source_infos, &cli.extensions);- let cli_skills = as_strings(&enabled_paths(&cli.skills));- let cli_prompts = as_strings(&enabled_paths(&cli.prompts));let enabled_prompts = as_strings(&enabled_paths(&resolved.prompts));let enabled_skills: Vec<String> = resolved.skills@@ -223,35 +196,26 @@ pub(crate) fn resolve_session_resources(.collect();let prompt_paths = if options.no_prompt_templates {- merge_paths(&cli_prompts, &options.additional_prompt_paths, &options.cwd)+ merge_paths(&[], &options.additional_prompt_paths, &options.cwd)} else {- let primary = [cli_prompts, enabled_prompts].concat();- merge_paths(&primary, &options.additional_prompt_paths, &options.cwd)+ merge_paths(+ &enabled_prompts,+ &options.additional_prompt_paths,+ &options.cwd,+ )};let skill_paths = if options.no_skills {- merge_paths(&cli_skills, &options.additional_skill_paths, &options.cwd)+ merge_paths(&[], &options.additional_skill_paths, &options.cwd)} else {- let primary = [- cli_skills,- options.additional_skill_paths.clone(),- enabled_skills,- ]- .concat();+ let primary = [options.additional_skill_paths.clone(), enabled_skills].concat();merge_paths(&primary, &[], &options.cwd)};- let extension_paths = merge_paths(- &as_strings(&enabled_paths(&cli.extensions)),- &as_strings(&enabled_paths(&resolved.extensions)),- &options.cwd,- );-Ok(ResolutionOutput {resolved,skill_paths,prompt_paths,- extension_paths,source_infos,})}diff --git a/crates/pa-core/src/session_engine/branch_summarization.rs b/crates/pa-core/src/session_engine/branch_summarization.rsindex 436896b427..7df5c822e7 100644--- a/crates/pa-core/src/session_engine/branch_summarization.rs+++ b/crates/pa-core/src/session_engine/branch_summarization.rs@@ -154,7 +154,7 @@ fn get_message_from_entry(entry: &FileEntry) -> Option<AgentMessage> {#[must_use]pub fn prepare_branch_entries(entries: &[FileEntry], token_budget: u64) -> BranchPreparation {let mut file_ops = FileOperations::default();- // Cumulative tracking from prior branch summaries (never extension ones).+ // Cumulative tracking from prior branch summaries (never hooked ones).for entry in entries {if let FileEntry::BranchSummary { payload, .. } = entry {if payload.from_hook != Some(true) {diff --git a/crates/pa-core/src/session_engine/compaction_exec.rs b/crates/pa-core/src/session_engine/compaction_exec.rsindex c7731aa78b..2e01847457 100644--- a/crates/pa-core/src/session_engine/compaction_exec.rs+++ b/crates/pa-core/src/session_engine/compaction_exec.rs@@ -378,12 +378,10 @@ pub async fn compact_with(/// The compaction entry to persist for a result.///-/// `fromHook` carries the TS `fromExtension` origin: whether a compaction-/// extension produced the summary (`agent-session.ts` passes its-/// `fromExtension` flag into `appendCompaction`). The Rust engine has no-/// extension seam yet, so every built-in compaction records `fromHook:-/// false`, the exact durable value TS writes for its built-in path — never-/// a missing key.+/// `fromHook` carries the compaction origin (TS `agent-session.ts` passes+/// its producing path's flag into `appendCompaction`). Every Rust compaction+/// records `fromHook: false`, the exact durable value TS writes for its+/// built-in path — never a missing key.pub fn compaction_entry_for(result: &CompactionResult,details: &CompactionDetails,@@ -481,7 +479,7 @@ mod tests {}/// The entry records the TS wire record: `fromHook: false` (the- /// built-in origin — TS passes `fromExtension`), the file-operation+ /// built-in origin), the file-operation/// details, the summarizer usage, and the custom instructions.#[test]fn compaction_entry_records_the_ts_wire_fields() {diff --git a/crates/pa-core/src/session_engine/compaction_utils.rs b/crates/pa-core/src/session_engine/compaction_utils.rsindex b78012cfff..e575a20626 100644--- a/crates/pa-core/src/session_engine/compaction_utils.rs+++ b/crates/pa-core/src/session_engine/compaction_utils.rs@@ -293,9 +293,8 @@ pub fn serialize_conversation(messages: &[AgentMessage]) -> String {// result to its `#N`-prefixed entry in the [Assistant// tool calls] lines even when the same tool is called// repeatedly in one turn. Results whose call is not- // part of the input (extension callers may pass- // partial message lists) fall back to the name-only- // label.+ // part of the input (callers may pass partial message+ // lists) fall back to the name-only label.let index_suffix = tool_call_indices.get(&result.tool_call_id).map(|index| format!(" #{index}"))@@ -521,8 +520,8 @@ mod tests {assert_eq!(serialize_conversation(&messages), expected);}- /// A result whose call was not serialized (a partial message list from- /// an extension caller) falls back to the name-only label (TS #2424's+ /// A result whose call was not serialized (a partial message list)+ /// falls back to the name-only label (TS #2424's/// orphan arm).#[test]fn orphan_tool_result_falls_back_to_the_name_only_label() {diff --git a/crates/pa-core/src/session_engine/engine.rs b/crates/pa-core/src/session_engine/engine.rsindex 6eab67039b..d2c310ada8 100644--- a/crates/pa-core/src/session_engine/engine.rs+++ b/crates/pa-core/src/session_engine/engine.rs@@ -30,7 +30,7 @@ pub struct SessionEngineConfig {pub thinking_level: Option<ThinkingLevel>,/// Provider seam for the loop (required; wire a real provider here).pub stream_fn: Option<StreamFn>,- /// Pre-bridged loop tools (bash/edit/ipython + extensions).+ /// Pre-bridged loop tools (bash/edit/ipython).pub tools: Vec<Arc<dyn pa_agent::types::AgentTool>>,/// Override the default system prompt.pub custom_system_prompt: Option<String>,@@ -65,13 +65,6 @@ pub struct SessionEngineConfig {/// The full registry model (input modalities for `model.info`); the/// engine derives minimal facts from `model` when absent.pub model_info: Option<pa_types::ai::Model>,- /// CLI `--extension` sources (repeatable): resolved through the- /// package manager into the session's extension paths (temporary- /// scope, first-wins against configured/discovered extensions).- pub cli_extension_sources: Vec<String>,- /// Optional name allow-list for extension tools (`--tools`, TS- /// `isAllowedTool`); an absent list allows every registered tool.- pub extension_tool_allow_list: Option<Vec<String>>,/// Session telemetry wiring (`PostHog` client + execution mode). `None`/// (opt-out) installs nothing; non-depth-0 sessions never install.pub telemetry: Option<super::telemetry::TelemetryWiring>,@@ -154,14 +147,6 @@ pub struct SessionEngine {/// this field (shared handle: the daemon worker and the engine gate/// prompts through one store).pub mcp_manager: std::sync::Arc<std::sync::Mutex<crate::mcp::McpManager>>,- /// The extension runner when any extension loaded (sidecar host +- /// registration mirror); `None` keeps the no-extension fast path- /// byte-identical (cache-prefix stability).- pub extension_runner: Option<Arc<crate::extensions::ExtensionRunner>>,- /// Non-fatal startup diagnostics from extension loading (missing- /// node, per-path load errors, spawn failures). TS surfaces these in- /// startup notices.- pub extension_diagnostics: Vec<String>,/// The turn-boundary request surface (`compact.*`/`refine.*`//// `model.info` host requests and the pending requests the turn loop/// consumes after a settled turn).@@ -294,7 +279,6 @@ pub async fn create_session(mut config: SessionEngineConfig) -> anyhow::Result<Scwd: cwd.clone(),agent_dir: config.agent_dir.clone(),settings: Some(settings),- additional_extension_sources: config.cli_extension_sources.clone(),extra_builtin_skill_overrides,additional_skill_paths: config.additional_skill_paths.clone(),additional_prompt_paths: config.additional_prompt_paths.clone(),@@ -487,47 +471,6 @@ pub async fn create_session(mut config: SessionEngineConfig) -> anyhow::Result<Son_bootstrap_result,);let mut tools = config.tools.clone();- // Extension loading (design doc §3.2, stage 2): discovery already- // resolved the paths; the sidecar loads modules and lands the- // registrations. A session with zero extension paths never spawns the- // sidecar (fast-path parity) and nothing below changes.- let mut extension_diagnostics = Vec::new();- let extension_runner = if resources.extension_paths.is_empty() {- None- } else {- let mut spec =- crate::extensions::ExtensionHostSpec::new(cwd.clone(), config.agent_dir.clone());- spec.extension_paths = resources.extension_paths.clone();- match crate::extensions::ExtensionRunner::start(spec).await {- Ok(runner) => {- for error in runner.load_errors() {- extension_diagnostics.push(format!(- "Failed to load extension {}: {}",- error.path, error.error- ));- }- let tools_to_bridge = runner- .bridge_tools(config.extension_tool_allow_list.as_deref())- .await;- // TS `_refreshToolRegistry`: extension tools replace- // same-named tools (an extension may override a built-in).- for tool in tools_to_bridge {- if let Some(existing) = tools.iter().position(|t| t.name() == tool.name()) {- tools[existing] = tool;- } else {- tools.push(tool);- }- }- Some(std::sync::Arc::new(runner))- }- Err(error) => {- // A spawn/handshake failure degrades to no extensions- // (design doc §2.4 crash isolation); it is never fatal.- extension_diagnostics.push(format!("Extensions unavailable: {error:#}"));- None- }- }- };if !tools.iter().any(|tool| tool.name() == "ipython") {let definition = crate::tools::ipython::create_ipython_tool_definition(&cwd.to_string_lossy(),@@ -560,18 +503,7 @@ pub async fn create_session(mut config: SessionEngineConfig) -> anyhow::Result<Sprovisioner.prewarm();}- // Extension tool prompt guidelines flow into the prompt exactly like- // TS `_rebuildSystemPrompt` (agent-session.ts L5091+): normalized- // guidelines of the active tools append to the configured ones.- let mut prompt_guidelines = config.prompt_guidelines.clone();- if let Some(runner) = &extension_runner {- let guidelines = runner.registry().await.prompt_guidelines();- for guideline in guidelines {- if !prompt_guidelines.contains(&guideline) {- prompt_guidelines.push(guideline);- }- }- }+ let prompt_guidelines = config.prompt_guidelines.clone();// The per-model prompt layer keys on the resolved `provider/id`// selector; vision capability gates the image-input line. Both are@@ -696,8 +628,8 @@ pub async fn create_session(mut config: SessionEngineConfig) -> anyhow::Result<Ssuper::messages::engine_convert_to_llm(),)),// TS wires the instrumented `transformContext` seam over the- // extension context transform; the Rust engine has no transform- // yet, so the instrumented seam wraps a pass-through that exists+ // session context transform; the Rust engine wires no transform,+ // so the instrumented seam wraps a pass-through that exists// to mark the turn's dispatch moment. Always wired like TS — the// wrapper's own per-request check keeps the disabled path free of// timestamps and entries, and a flag flipped on mid-session still@@ -869,8 +801,6 @@ pub async fn create_session(mut config: SessionEngineConfig) -> anyhow::Result<Sgoal_driver,queued_goal_context_purge: config.queued_goal_context_purge.clone(),mcp_manager,- extension_runner,- extension_diagnostics,turn_boundary,telemetry,rlm_usage: wiring.rlm_usage,diff --git a/crates/pa-core/src/session_engine/engine/tests.rs b/crates/pa-core/src/session_engine/engine/tests.rsindex 25894e87ba..f02d9f732f 100644--- a/crates/pa-core/src/session_engine/engine/tests.rs+++ b/crates/pa-core/src/session_engine/engine/tests.rs@@ -81,8 +81,6 @@ async fn engine_runs_tool_loop_and_persists() {rlm_depth: None,telemetry: None,model_info: None,- cli_extension_sources: vec![],- extension_tool_allow_list: None,on_background_work_settled: None,prewarm_ipython_kernel: None,queued_goal_context_purge: None,@@ -182,8 +180,6 @@ async fn spawned_child_prompt_stamps_its_depth() {rlm_depth: Some(2),telemetry: None,model_info: None,- cli_extension_sources: vec![],- extension_tool_allow_list: None,on_background_work_settled: None,prewarm_ipython_kernel: None,queued_goal_context_purge: None,@@ -250,8 +246,6 @@ async fn oauth_creds_unlock_generic_mcp_gating_in_new_sessions() {rlm_depth: None,telemetry: None,model_info: None,- cli_extension_sources: vec![],- extension_tool_allow_list: None,on_background_work_settled: None,prewarm_ipython_kernel: None,queued_goal_context_purge: None,diff --git a/crates/pa-core/src/session_engine/harness_digest/tests.rs b/crates/pa-core/src/session_engine/harness_digest/tests.rsindex f0d67c40e2..0eca36b008 100644--- a/crates/pa-core/src/session_engine/harness_digest/tests.rs+++ b/crates/pa-core/src/session_engine/harness_digest/tests.rs@@ -182,7 +182,7 @@ fn append_replaces_older_digest_rows_and_strips_snapshot_blocks() {assert!(!is_digest_row(&plain, Some("older digest")));let unrelated = AgentMessage::Custom(pa_agent::types::CustomAgentMessage {role: "custom".to_string(),- payload: serde_json::json!({"customType": "extension_note"}),+ payload: serde_json::json!({"customType": "arbitrary_note"}),});assert!(!is_digest_row(&unrelated, Some("older digest")));diff --git a/crates/pa-core/src/session_engine/messages.rs b/crates/pa-core/src/session_engine/messages.rsindex 14dbea68a1..bf2e92484c 100644--- a/crates/pa-core/src/session_engine/messages.rs+++ b/crates/pa-core/src/session_engine/messages.rs@@ -542,7 +542,7 @@ mod tests {rest: serde_json::Map::default(),}),AgentMessage::Custom(pa_types::session::CustomMessage {- custom_type: "extension_note".to_string(),+ custom_type: "arbitrary_note".to_string(),content: UserContent::Text("a note".to_string()),display: true,details: None,@@ -615,7 +615,7 @@ state})).unwrap();let unknown_row: pa_agent::types::AgentMessage =- serde_json::from_value(serde_json::json!({ "role": "extension", "payload": "x" }))+ serde_json::from_value(serde_json::json!({ "role": "arbitrary", "payload": "x" })).unwrap();let user = pa_agent::types::AgentMessage::user("keep");let converted = loop_convert_to_llm(vec![digest_row, user, outcome_row, unknown_row]);diff --git a/crates/pa-core/src/session_engine/mod.rs b/crates/pa-core/src/session_engine/mod.rsindex ae95271fa9..da47f18ff0 100644--- a/crates/pa-core/src/session_engine/mod.rs+++ b/crates/pa-core/src/session_engine/mod.rs@@ -402,8 +402,8 @@ async fn persist_event(eprintln!("pa-core: message row not persisted: {error}");}}- // Git state is captured at both run boundaries, exactly like the TS- // extension-event path: a commit or branch switch made during the run+ // Git state is captured at both run boundaries, exactly like the+ // TS run-boundary event path: a commit or branch switch made during the run// (e.g. via the bash tool) lands in the session file at `agent_end`.// The persist check lives inside `record_git_state_if_changed`.AgentEvent::AgentStart | AgentEvent::AgentEnd { .. } => {diff --git a/crates/pa-core/src/session_engine/request_timing.rs b/crates/pa-core/src/session_engine/request_timing.rsindex f94b1075c9..dc0b7f877d 100644--- a/crates/pa-core/src/session_engine/request_timing.rs+++ b/crates/pa-core/src/session_engine/request_timing.rs@@ -318,9 +318,9 @@ impl RequestTimingWiring {// Seam wrappers// ----------------------------------------------------------------------------/// The pass-through context transform (the stand-in for TS's extension-/// `emitContext` transform, which the Rust engine has not ported yet): it-/// exists so the instrumented seam can mark the turn's dispatch moment.+/// The pass-through context transform (the Rust engine wires no context+/// transform): it exists so the instrumented seam can mark the turn's+/// dispatch moment.#[must_use]pub fn pass_through_transform() -> TransformContextFn {Arc::new(|messages, _signal| Box::pin(async move { Ok(messages) }))diff --git a/crates/pa-core/src/session_engine/tests.rs b/crates/pa-core/src/session_engine/tests.rsindex d740da1579..c998624ecb 100644--- a/crates/pa-core/src/session_engine/tests.rs+++ b/crates/pa-core/src/session_engine/tests.rs@@ -932,8 +932,8 @@ async fn template_expansion_applies() {assert_eq!(user_text, "Fix lint please");}-/// Git state is captured at both run boundaries (TS `_emitExtensionEvent`-/// calls `recordGitStateIfChanged` on `agent_start`/`agent_end`): a commit+/// Git state is captured at both run boundaries (the TS run-boundary event+/// path calls `recordGitStateIfChanged` on `agent_start`/`agent_end`): a commit/// made between session creation and the run lands as a `git_state`/// entry, and an unchanged context at `agent_end` adds nothing.#[tokio::test]diff --git a/crates/pa-core/src/settings/load.rs b/crates/pa-core/src/settings/load.rsindex aa5b1f715f..01d554a811 100644--- a/crates/pa-core/src/settings/load.rs+++ b/crates/pa-core/src/settings/load.rs@@ -39,7 +39,6 @@ const KNOWN_FIELDS: &[&str] = &["npmCommand","mcpServers","packages",- "extensions","skills","prompts","themes",@@ -138,6 +137,25 @@ mod tests {assert_eq!(settings.rlm_max_depth, Some(4));}+ /// A config that still carries the removed `extensions` resource key+ /// (the dead TS-extension setting) loads without error: the key is no+ /// longer part of the schema, so it survives in `extra` and nothing+ /// consumes it - an upgrading user's settings file never fails.+ #[test]+ fn removed_extensions_key_loads_gracefully() {+ let value: Value = serde_json::json!({+ "extensions": ["~/my-ext/index.ts"],+ "skills": ["~/my-skill"]+ });+ let settings = from_value_lenient(&value);+ assert_eq!(settings.skills, Some(vec!["~/my-skill".to_string()]));+ assert_eq!(+ settings.extra.get("extensions"),+ Some(&serde_json::json!(["~/my-ext/index.ts"])),+ "the dead key is preserved untouched in extra, never parsed"+ );+ }+/// TS #2462: a wrong-typed `requestTiming` behaves as unset (the/// known-field registry entry), never a surviving raw value.#[test]diff --git a/crates/pa-core/src/settings/manager.rs b/crates/pa-core/src/settings/manager.rsindex d2a3280e1b..939575b9ff 100644--- a/crates/pa-core/src/settings/manager.rs+++ b/crates/pa-core/src/settings/manager.rs@@ -522,13 +522,12 @@ impl SettingsManager {self.merged = deep_merge(&self.global, &self.project);}- /// Replace one resource-path array (`extensions`/`skills`/`prompts`/- /// `themes`) in the global settings file (TS `setSkillPaths` & friends).+ /// Replace one resource-path array (`skills`/`prompts`/`themes`) in the+ /// global settings file (TS `setSkillPaths` & friends).pub fn set_global_resource_array(&mut self, field: &str, values: Vec<String>) {let array: Vec<serde_json::Value> =values.into_iter().map(serde_json::Value::String).collect();match field {- "extensions" => self.global.extensions = Some(strings(&array)),"skills" => self.global.skills = Some(strings(&array)),"prompts" => self.global.prompts = Some(strings(&array)),"themes" => self.global.themes = Some(strings(&array)),@@ -548,7 +547,6 @@ impl SettingsManager {let array: Vec<serde_json::Value> =values.into_iter().map(serde_json::Value::String).collect();match field {- "extensions" => self.project.extensions = Some(strings(&array)),"skills" => self.project.skills = Some(strings(&array)),"prompts" => self.project.prompts = Some(strings(&array)),"themes" => self.project.themes = Some(strings(&array)),diff --git a/crates/pa-core/src/settings/types.rs b/crates/pa-core/src/settings/types.rsindex 71153f7f63..6dd755db46 100644--- a/crates/pa-core/src/settings/types.rs+++ b/crates/pa-core/src/settings/types.rs@@ -346,7 +346,6 @@ pub struct Settings {/// source wins per id, and no bundled id can be shadowed.pub mcp_catalog_sources: Option<Vec<String>>,pub packages: Option<Vec<serde_json::Value>>,- pub extensions: Option<Vec<String>>,pub skills: Option<Vec<String>>,pub prompts: Option<Vec<String>>,pub themes: Option<Vec<String>>,diff --git a/crates/pa-core/src/skills/mod.rs b/crates/pa-core/src/skills/mod.rsindex cff19d8df2..65cbc16708 100644--- a/crates/pa-core/src/skills/mod.rs+++ b/crates/pa-core/src/skills/mod.rs@@ -260,9 +260,8 @@ pub(crate) fn escape_xml(value: &str) -> String {/// message block. Port of `AgentSession._expandSkillCommand`: a non-skill/// input passes through unchanged; an unknown skill name passes through/// (the surfaces show their own unknown-command notice); a skill file that-/// fails to read passes through (TS emits an extension error event here,-/// a seam the Rust extension runner does not have yet). Returns the skill-/// the expansion used so the caller can report the invocation.+/// fails to read passes through. Returns the skill the expansion used so+/// the caller can report the invocation.#[must_use]pub fn expand_skill_command<'a>(text: &str, skills: &'a [Skill]) -> (String, Option<&'a Skill>) {let Some((name, args)) = parse_slash_command(text) else {diff --git a/crates/pa-core/src/tools/ipython.rs b/crates/pa-core/src/tools/ipython.rsindex 15ed3721ac..855e4f84b3 100644--- a/crates/pa-core/src/tools/ipython.rs+++ b/crates/pa-core/src/tools/ipython.rs@@ -220,8 +220,8 @@ pub fn kernel_restart_notice() -> &'static str {"<ipython_kernel_reset>\nThe Python kernel was restarted after a previous interrupted cell kept running. Variables, imports, async tasks, and open resources from before the restart are no longer available; recreate them before using them.\n</ipython_kernel_reset>"}-/// The UI surface the ipython tool needs from the host session-/// (the `ExtensionContext` in TS).+/// The UI surface the ipython tool needs from the host session (the TS+/// tool context).pub trait IpythonToolUi: Send + Sync {/// Prompt the user to choose between `choices`.fn select(diff --git a/crates/pa-core/src/tools/tool_definition.rs b/crates/pa-core/src/tools/tool_definition.rsindex d5e268b0e4..dfd6fc8107 100644--- a/crates/pa-core/src/tools/tool_definition.rs+++ b/crates/pa-core/src/tools/tool_definition.rs@@ -1,7 +1,7 @@//! Tool definition surface: the model-facing contract of a tool.//!//! Port of `packages/coding-agent/src/core/tools/tool-definition-wrapper.ts`-//! plus the `ToolDefinition` shape from `core/extensions/types.ts`. TUI+//! plus the TS `ToolDefinition` shape. TUI//! renderers stay in `pa-tui`; this layer owns the model-facing contract//! (name, schema, description) and execution.diff --git a/crates/pa-core/tests/abort_kernel_cell.rs b/crates/pa-core/tests/abort_kernel_cell.rsindex f28b01daf0..6d517c7b6a 100644--- a/crates/pa-core/tests/abort_kernel_cell.rs+++ b/crates/pa-core/tests/abort_kernel_cell.rs@@ -212,8 +212,6 @@ async fn abort_during_a_kernel_cell_settles_the_turn_immediately() {rlm_depth: None,telemetry: None,model_info: None,- cli_extension_sources: Vec::new(),- extension_tool_allow_list: None,mcp_manager: None,prewarm_ipython_kernel: None,on_background_work_settled: None,diff --git a/crates/pa-core/tests/extension_host.rs b/crates/pa-core/tests/extension_host.rsdeleted file mode 100644index a556997e2b..0000000000--- a/crates/pa-core/tests/extension_host.rs+++ /dev/null@@ -1,198 +0,0 @@-// The Tier-C/D ruling (fleet-uniform, 2026-09-28) - this target's own-// crate root: the same bounded-boundary disposition as src/lib.rs-// (large_futures/too_many_lines/the cast family; details there).-#![allow(- clippy::large_futures,- clippy::too_many_lines,- clippy::cast_possible_truncation,- clippy::cast_possible_wrap,- clippy::cast_sign_loss,- clippy::cast_precision_loss-)]--//! Extension host integration tests (design doc stage-1 verifier): real-//! `node`, no network, no TS product. The bundled host script proves the-//! spawn/handshake/ping/shutdown path end-to-end; the fixture script-//! (`tests/fixtures/extension_host_fixture.mjs`) drives the reverse ctx-//! direction and the mid-session death paths.--use std::path::{Path, PathBuf};-use std::sync::Arc;-use std::time::Duration;--use anyhow::Result;-use futures::future::BoxFuture;-use futures::FutureExt;-use pa_core::extensions::{- CtxCall, CtxCallHandler, ExtensionHost, ExtensionHostSpec, HostScript, HostTimeouts,- SidecarNotification,-};-use pa_types::extension_rpc::{ExtensionError, RpcError};-use serde_json::{json, Value};--/// The `node` binary, or None when the box has no Node (tests skip; the-/// stage-1 verifier runs where node exists).-fn node_binary() -> Option<PathBuf> {- let output = std::process::Command::new("node").arg("--version").output();- let output = output.ok()?;- let version = String::from_utf8(output.stdout).ok()?;- let major: u32 = version- .trim_start_matches('v')- .split('.')- .next()?- .parse()- .ok()?;- if major >= 18 {- Some(PathBuf::from("node"))- } else {- None- }-}--fn fixture_script() -> PathBuf {- Path::new(env!("CARGO_MANIFEST_DIR")).join("tests/fixtures/extension_host_fixture.mjs")-}--fn test_timeouts() -> HostTimeouts {- HostTimeouts {- hello: Duration::from_secs(20),- rpc: Duration::from_secs(5),- shutdown_wait: Duration::from_secs(5),- }-}--fn spec(node: &Path, script: HostScript) -> ExtensionHostSpec {- let mut spec = ExtensionHostSpec::new(std::env::temp_dir(), std::env::temp_dir());- spec.node = node.to_path_buf();- spec.script = script;- spec.timeouts = test_timeouts();- spec-}--struct TestCtx;--impl CtxCallHandler for TestCtx {- fn handle(&self, call: CtxCall) -> BoxFuture<'static, Result<Value, RpcError>> {- async move {- match call.method.as_str() {- "get_system_prompt" => Ok(json!({"systemPrompt": "test prompt"})),- other => Err(RpcError::message(format!(- "test ctx: unknown method {other}"- ))),- }- }- .boxed()- }-}--#[tokio::test]-async fn bundled_script_handshake_ping_shutdown() -> Result<()> {- let Some(node) = node_binary() else {- eprintln!("skipping: node >= 18 not available");- return Ok(());- };- let agent_dir = tempfile::tempdir()?;- let mut start_spec = spec(&node, HostScript::Bundled);- start_spec.agent_dir = agent_dir.path().to_path_buf();- let host = ExtensionHost::start(start_spec).await?;- assert!(host.is_alive());- assert!(host.pid().is_some());-- let pong = host.ping().await?;- assert_eq!(pong, json!({"ok": true}));-- host.shutdown("test end").await?;- Ok(())-}--#[tokio::test]-async fn fixture_ctx_roundtrip_notification_and_shutdown() -> Result<()> {- let Some(node) = node_binary() else {- eprintln!("skipping: node >= 18 not available");- return Ok(());- };- let mut start_spec = spec(&node, HostScript::At(fixture_script()));- start_spec.ctx_handler = Some(Arc::new(TestCtx) as Arc<dyn CtxCallHandler>);- let mut host = ExtensionHost::start(start_spec).await?;-- // The fixture reports an extension_error notification during hello.- match host.take_notifications().recv().await {- Some(SidecarNotification::ExtensionError(ExtensionError {- extension_path,- event,- error,- ..- })) => {- assert_eq!(extension_path, "fixture.ts");- assert_eq!(event, "session_start");- assert_eq!(error, "fixture diagnostic");- }- other => panic!("expected ExtensionError notification, got {other:?}"),- }-- // ping answers with the ctx round-trip result from the Rust handler.- let pong = host.ping().await?;- assert_eq!(pong, json!({"systemPrompt": "test prompt"}));-- host.shutdown("test end").await?;- Ok(())-}--#[tokio::test]-async fn kill9_mid_session_fails_pending_requests() -> Result<()> {- let Some(node) = node_binary() else {- eprintln!("skipping: node >= 18 not available");- return Ok(());- };- let mut start_spec = spec(&node, HostScript::At(fixture_script()));- start_spec.extension_paths = vec!["mode:hang".to_string()];- let host = ExtensionHost::start(start_spec).await?;-- let event = host.emit_event("session_start", json!({}));- let pid = host.pid().expect("live sidecar has a pid");- assert!(pa_core::platform::kill_pid(- pid as i32,- pa_core::platform::Signal::Kill- ));-- let error = event.await.unwrap_err();- // The pending request can fail through either transport arm after- // the kill: the death watcher's tracked reason ("extension sidecar- // stopped"), or the RPC write racing the dying pipe (the write error- // — the pipe died BECAUSE of the kill). Both shapes prove the kill9- // propagation; the ordering flips under load.- let rendered = error.to_string();- assert!(- rendered.contains("extension sidecar stopped")- || rendered.contains("write extension RPC request"),- "death reason missing: {rendered}"- );- assert!(!host.is_alive());-- // Shutdown on a dead sidecar still reaps the child without error.- host.shutdown("after kill").await?;- Ok(())-}--#[tokio::test]-async fn sidecar_exit_fails_pending_requests_with_death_reason() -> Result<()> {- let Some(node) = node_binary() else {- eprintln!("skipping: node >= 18 not available");- return Ok(());- };- let mut start_spec = spec(&node, HostScript::At(fixture_script()));- start_spec.extension_paths = vec!["mode:die".to_string()];- let host = ExtensionHost::start(start_spec).await?;-- let error = host- .emit_event("session_start", json!({}))- .await- .unwrap_err();- assert!(- error.to_string().contains("extension sidecar stopped"),- "death reason missing: {error}"- );- assert!(!host.is_alive());- host.shutdown("after death").await?;- Ok(())-}diff --git a/crates/pa-core/tests/extension_runner.rs b/crates/pa-core/tests/extension_runner.rsdeleted file mode 100644index 72a0dc7b8c..0000000000--- a/crates/pa-core/tests/extension_runner.rs+++ /dev/null@@ -1,387 +0,0 @@-// The Tier-C/D ruling (fleet-uniform, 2026-09-28) - this target's own-// crate root: the same bounded-boundary disposition as src/lib.rs-// (large_futures/too_many_lines/the cast family; details there).-#![allow(- clippy::large_futures,- clippy::too_many_lines,- clippy::cast_possible_truncation,- clippy::cast_possible_wrap,- clippy::cast_sign_loss,- clippy::cast_precision_loss-)]--//! Extension runner integration tests (design doc stage-2 verifier): real-//! `node`, the bundled host script runtime, the committed fixture extensions,-//! no network, no TS product at test time. The TS-parity differential is the-//! committed golden captured from the installed TS binary-//! (`fixtures/extensions/registration-payload.ts-golden.json`: the `prime-agent`-//! CLI loads `-e` extensions before the provider call, so the capture runs-//! with a bogus API key and still dumps the registration payloads).-//!-//! Verifier coverage (design doc §4 stage 2):-//! - load -> registration landing (hello registrations, TS error strings)-//! - tool call round-trip through the runner (`hello.ts` from the TS-//! examples corpus, run verbatim under both products)-//! - the `pi` API surface + registration payloads match the TS golden-//! - `--tools` allow-list filtering (`isAllowedTool`)-//! - a scripted session observes the extension tool in the model surface:-//! the loop calls `hello`, the sidecar executes it, the result lands in-//! the session messages, and the prompt guideline injection flows into-//! the system prompt--use std::path::{Path, PathBuf};-use std::sync::Arc;-use std::time::Duration;--use anyhow::Result;-use pa_agent::scripted::ScriptedProvider;-use pa_core::extensions::ExtensionHostSpec;-use pa_core::session_engine::engine::{create_session, SessionEngineConfig};-use pa_core::session_engine::{PromptOptions, PromptOutcome};-use serde_json::{json, Value};--/// The `node` binary, or None when the box has no Node (tests skip).-fn node_binary() -> Option<PathBuf> {- let output = std::process::Command::new("node").arg("--version").output();- let output = output.ok()?;- let version = String::from_utf8(output.stdout).ok()?;- let major: u32 = version- .trim_start_matches('v')- .split('.')- .next()?- .parse()- .ok()?;- (major >= 18).then(|| PathBuf::from("node"))-}--fn fixture(name: &str) -> PathBuf {- Path::new(env!("CARGO_MANIFEST_DIR"))- .join("tests")- .join("fixtures")- .join("extensions")- .join(name)-}--fn runner_spec(dir: &Path, paths: &[&str]) -> ExtensionHostSpec {- let mut spec = ExtensionHostSpec::new(dir.to_path_buf(), dir.join("agent-dir"));- if let Some(node) = node_binary() {- spec.node = node;- }- spec.extension_paths = paths- .iter()- .map(|name| fixture(name).display().to_string())- .collect();- spec.timeouts.hello = Duration::from_secs(30);- spec.timeouts.rpc = Duration::from_secs(15);- spec.timeouts.shutdown_wait = Duration::from_secs(10);- spec-}--#[tokio::test]-async fn loads_hello_ts_and_lands_the_registration() -> Result<()> {- let Some(_node) = node_binary() else {- eprintln!("skipping: node >= 18 not available");- return Ok(());- };- let dir = tempfile::tempdir()?;- let runner =- pa_core::extensions::ExtensionRunner::start(runner_spec(dir.path(), &["hello.ts"])).await?;- let hello = runner.hello();- assert!(hello.errors.is_empty(), "load errors: {:?}", hello.errors);- assert_eq!(hello.extensions.len(), 1);- let extension = &hello.extensions[0];- assert!(extension.path.ends_with("hello.ts"));- assert_eq!(extension.tools.len(), 1);- let tool = &extension.tools[0];- assert_eq!(tool.name, "hello");- assert_eq!(tool.label, "Hello");- assert_eq!(tool.description, "A simple greeting tool");- // The TypeBox schema from `Type.Object({ name: Type.String({ description }) })`- // crosses as the tool wire schema (JSON-Schema shaped).- assert_eq!(- tool.parameters,- json!({- "type": "object",- "properties": {- "name": { "type": "string", "description": "Name to greet" }- },- "required": ["name"],- })- );- assert!(extension.events.is_empty());- assert!(extension.commands.is_empty());- runner.shutdown("test end").await?;- Ok(())-}--#[tokio::test]-async fn tool_call_round_trips_through_the_runner() -> Result<()> {- let Some(_node) = node_binary() else {- eprintln!("skipping: node >= 18 not available");- return Ok(());- };- let dir = tempfile::tempdir()?;- let runner =- pa_core::extensions::ExtensionRunner::start(runner_spec(dir.path(), &["hello.ts"])).await?;- // hello.ts returns `Hello, ${params.name}!` with details `{ greeted }`.- let result = runner- .execute_tool("call-1", "hello", json!({ "name": "world" }))- .await?;- assert_eq!(result.content.len(), 1);- match &result.content[0] {- pa_types::extension_rpc::ToolResultBlock::Text { text } => {- assert_eq!(text, "Hello, world!");- }- other @ pa_types::extension_rpc::ToolResultBlock::Image { .. } => {- panic!("expected text block, got {other:?}")- }- }- assert!(!result.is_error);- runner.shutdown("test end").await?;- Ok(())-}--#[tokio::test]-async fn load_errors_use_the_ts_strings_and_never_abort_the_load() -> Result<()> {- let Some(_node) = node_binary() else {- eprintln!("skipping: node >= 18 not available");- return Ok(());- };- let dir = tempfile::tempdir()?;- // A module with a non-function default export + a throwing module +- // a good one: per-path errors, the good extension still loads- // (loader.ts loadExtensions semantics).- let bad_dir = dir.path().join("bad");- std::fs::create_dir_all(&bad_dir)?;- std::fs::write(- bad_dir.join("not-a-factory.ts"),- "export default { not: \"a factory\" };\n",- )?;- std::fs::write(bad_dir.join("throws.ts"), "throw new Error(\"boom\");\n")?;- let mut spec = runner_spec(dir.path(), &["hello.ts"]);- spec.extension_paths = vec![- bad_dir.join("not-a-factory.ts").display().to_string(),- bad_dir.join("throws.ts").display().to_string(),- fixture("hello.ts").display().to_string(),- ];- let runner = pa_core::extensions::ExtensionRunner::start(spec).await?;- let errors = runner.load_errors();- assert_eq!(errors.len(), 2, "{errors:?}");- assert!(- errors[0]- .error- .starts_with("Extension does not export a valid factory function:"),- "{errors:?}"- );- assert!(- errors[1]- .error- .starts_with("Failed to load extension: boom"),- "{errors:?}"- );- assert_eq!(runner.hello().extensions.len(), 1, "hello.ts still loaded");- runner.shutdown("test end").await?;- Ok(())-}--#[tokio::test]-async fn registration_payload_matches_the_ts_binary_golden() -> Result<()> {- let Some(_node) = node_binary() else {- eprintln!("skipping: node >= 18 not available");- return Ok(());- };- let dir = tempfile::tempdir()?;- let dump_path = dir.path().join("rust-dump.json");- // The fixture reads PA_REGISTRATION_DUMP from its environment; the- // sidecar inherits this process's environment.- std::env::set_var("PA_REGISTRATION_DUMP", &dump_path);- let runner = pa_core::extensions::ExtensionRunner::start(runner_spec(- dir.path(),- &["registration-dump.ts"],- ))- .await?;- std::env::remove_var("PA_REGISTRATION_DUMP");- runner.shutdown("test end").await?;- let rust_dump: Value = serde_json::from_str(- &std::fs::read_to_string(&dump_path).expect("the fixture wrote its dump"),- )?;- let golden: Value = serde_json::from_str(&std::fs::read_to_string(fixture(- "registration-payload.ts-golden.json",- ))?)?;- // The pi API surface (method names + kinds) is byte-identical.- assert_eq!(rust_dump["piShape"], golden["piShape"]);- // The registration payloads the extension passed are identical.- assert_eq!(rust_dump["registered"], golden["registered"]);- Ok(())-}--#[tokio::test]-async fn bridge_tools_filters_by_the_allow_list() -> Result<()> {- let Some(_node) = node_binary() else {- eprintln!("skipping: node >= 18 not available");- return Ok(());- };- let dir = tempfile::tempdir()?;- let runner =- pa_core::extensions::ExtensionRunner::start(runner_spec(dir.path(), &["hello.ts"])).await?;- let all = runner.bridge_tools(None).await;- assert_eq!(all.len(), 1);- assert_eq!(all[0].name(), "hello");- // TS isAllowedTool: an allow-list without the tool's name drops it.- let filtered = runner.bridge_tools(Some(&["other".to_string()])).await;- assert!(filtered.is_empty());- let kept = runner- .bridge_tools(Some(&["bash".to_string(), "hello".to_string()]))- .await;- assert_eq!(kept.len(), 1);- runner.shutdown("test end").await?;- Ok(())-}--#[tokio::test]-async fn dead_sidecar_degrades_to_errors_not_panics() -> Result<()> {- let Some(_node) = node_binary() else {- eprintln!("skipping: node >= 18 not available");- return Ok(());- };- let dir = tempfile::tempdir()?;- let runner =- pa_core::extensions::ExtensionRunner::start(runner_spec(dir.path(), &["hello.ts"])).await?;- assert!(runner.is_alive());- // Kill the sidecar process: the runner's requests fail fast with the- // death reason (§2.4 crash isolation; the registry stays usable).- let pid = runner.pid().expect("live sidecar has a pid");- assert!(pa_core::platform::kill_pid(- pid as i32,- pa_core::platform::Signal::Kill- ));- let error = runner- .execute_tool("call-1", "hello", json!({ "name": "world" }))- .await- .unwrap_err();- assert!(- format!("{error:#}").contains("sidecar stopped"),- "death reason missing: {error:#}"- );- assert!(!runner.is_alive());- // The registry view still reports the registrations (degraded, not lost).- let tools = runner.bridge_tools(None).await;- assert_eq!(tools.len(), 1);- runner.shutdown("after kill").await?;- Ok(())-}--/// The session-engine e2e: a scripted provider calls the extension tool;-/// the loop executes it through the sidecar and records the result.-#[tokio::test]-async fn scripted_session_executes_the_extension_tool() -> Result<()> {- let Some(_node) = node_binary() else {- eprintln!("skipping: node >= 18 not available");- return Ok(());- };- let dir = tempfile::tempdir()?;- let cwd = dir.path().join("project");- std::fs::create_dir_all(&cwd)?;- let model = pa_agent::types::Model {- id: "m".into(),- name: "m".into(),- api: "test".into(),- provider: "test".into(),- base_url: "http://localhost".into(),- reasoning: false,- cost: pa_agent::types::UsageCost::default(),- context_window: 1_000,- max_tokens: 100,- };- let provider = Arc::new(ScriptedProvider::new(model.clone()));- // Turn 1: call the extension tool. Turn 2: final text.- provider.push_tool_call_turn(- Some("greeting the user"),- vec![("call-1", "hello", json!({ "name": "world" }))],- );- provider.push_text_turn("greeted");-- let engine = create_session(SessionEngineConfig {- cron_store: None,- steering_mode: None,- follow_up_mode: None,- cwd: cwd.clone(),- agent_dir: dir.path().join("agent"),- model: Some(model),- stream_fn: Some(provider.stream_fn()),- cli_extension_sources: vec![fixture("hello.ts").display().to_string()],- ..Default::default()- })- .await?;-- // The extension landed: runner present, no diagnostics, the tool is in- // the model surface with the fixture's schema.- let runner = engine- .extension_runner- .as_ref()- .expect("the extension runner started");- assert!(runner.is_alive());- assert!(- engine.extension_diagnostics.is_empty(),- "{:?}",- engine.extension_diagnostics- );- let tool_names: Vec<String> = engine- .session- .agent()- .state()- .await- .tools- .iter()- .map(|tool| tool.name().to_string())- .collect();- assert!(- tool_names.iter().any(|name| name == "hello"),- "{tool_names:?}"- );- assert!(- tool_names.iter().any(|name| name == "ipython"),- "{tool_names:?}"- );-- let outcome = engine- .prompt("greet the world", PromptOptions::default())- .await?;- assert_eq!(outcome, PromptOutcome::Prompt);- engine.session.agent().wait_for_idle().await;-- // The loop executed the tool through the sidecar: the tool result- // message carries the extension's text and details.- let state = engine.session.agent().state().await;- let tool_results: Vec<&pa_agent::types::ToolResultMessage> = state- .messages- .iter()- .filter_map(|message| match message {- pa_agent::types::AgentMessage::Standard(pa_agent::types::Message::ToolResult(- result,- )) => Some(result),- _ => None,- })- .collect();- let hello_result = tool_results- .iter()- .find(|result| result.tool_name == "hello")- .expect("the hello tool result recorded");- assert_eq!(hello_result.tool_call_id, "call-1");- assert_eq!(- serde_json::to_value(&hello_result.content).unwrap(),- json!([{ "type": "text", "text": "Hello, world!" }])- );- // Orderly shutdown: destructure the engine (its fields are plain- // owners) and stop the sidecar explicitly; the Drop path would kill- // the process group instead.- let pa_core::session_engine::engine::SessionEngine {- extension_runner, ..- } = engine;- let runner = extension_runner.expect("runner present");- match Arc::try_unwrap(runner) {- Ok(runner) => runner.shutdown("test end").await?,- Err(_) => unreachable!("the test holds the only Arc reference"),- }- Ok(())-}diff --git a/crates/pa-core/tests/fixtures/extension_host_fixture.mjs b/crates/pa-core/tests/fixtures/extension_host_fixture.mjsdeleted file mode 100644index 4df8153b30..0000000000--- a/crates/pa-core/tests/fixtures/extension_host_fixture.mjs+++ /dev/null@@ -1,126 +0,0 @@-// Fixture sidecar for the extension-host integration tests-// (`crates/pa-core/tests/extension_host.rs`). A scripted protocol-2 peer-// with the modes the tests select through `extensionPaths[0]`:-//-// "basic" - ping answers with the result of a ctx call to-// `get_system_prompt` (exercises the reverse RPC direction);-// hello is answered with an `extension_error` notification-// first (exercises notification fan-out); shutdown replies-// and exits.-// "die" - on `event`, exit(3) with the request in flight (the host-// must fail the pending request with the death reason).-// "hang" - on `event`, never reply (the test SIGKILLs the process and-// expects the pending request to fail).-//-// Unlike the bundled stage-1 host script this fixture processes each line-// independently (no reply ordering) so a handler can await a ctx reply-// that arrives as a later line.--import readline from "node:readline";--const PROTOCOL = 2;--function write(value) {- process.stdout.write(JSON.stringify(value) + "\n");-}--function writeReply(id, result, error, done) {- const envelope = error !== undefined ? { id, error } : { id, result };- process.stdout.write(JSON.stringify(envelope) + "\n", done);-}--// ctxToken -> resolve(result, error) for ctx calls awaiting a host reply.-const pendingCtx = new Map();--function callCtx(ctxToken, method, params) {- return new Promise((resolve, reject) => {- pendingCtx.set(ctxToken, { resolve, reject });- write({ ctxToken, method, params });- });-}--function resolveCtxReply(line) {- const settled = pendingCtx.get(line.ctxToken);- if (!settled) return false;- pendingCtx.delete(line.ctxToken);- if (line.error !== undefined) {- settled.reject(Object.assign(new Error(line.error.message), line.error));- } else {- settled.resolve(line.result);- }- return true;-}--let mode = "basic";--function setMode(msg) {- const paths = (msg.params && msg.params.extensionPaths) || [];- if (paths[0] && paths[0].startsWith("mode:")) {- mode = paths[0].slice("mode:".length);- }-}--async function handleRequest(msg) {- switch (msg.method) {- case "hello":- setMode(msg);- write({- method: "extension_error",- params: {- extensionPath: "fixture.ts",- event: "session_start",- error: "fixture diagnostic",- },- });- return { result: { protocol: PROTOCOL, extensions: [], errors: [] } };- case "ping": {- const prompt = await callCtx("ctx-ping", "get_system_prompt", {});- return { result: prompt };- }- case "event":- if (mode === "die") {- process.exit(3);- }- if (mode === "hang") {- return new Promise(() => {}); // never resolves, never replies- }- return { result: { handled: true } };- case "shutdown":- return { result: { ok: true }, exit: 0 };- default:- return { error: { message: "fixture: unknown method '" + msg.method + "'" } };- }-}--const rl = readline.createInterface({ input: process.stdin, terminal: false });--rl.on("line", (line) => {- if (!line.trim()) return;- let msg;- try {- msg = JSON.parse(line);- } catch (err) {- process.stderr.write("fixture: unparsable line: " + line + " (" + err + ")\n");- process.exit(1);- }- if (msg.ctxToken !== undefined) {- resolveCtxReply(msg); // a reply to our own ctx call- return;- }- if (!("id" in msg)) {- return; // host notifications: no-op- }- handleRequest(msg)- .then((outcome) => {- writeReply(msg.id, outcome.result, outcome.error, () => {- if (outcome.exit !== undefined) {- process.exit(outcome.exit);- }- });- })- .catch((err) => {- writeReply(msg.id, undefined, { message: String(err && err.message) });- });-});--rl.on("close", () => process.exit(0));diff --git a/crates/pa-core/tests/fixtures/extensions/hello.ts b/crates/pa-core/tests/fixtures/extensions/hello.tsdeleted file mode 100644index 52da3910bd..0000000000--- a/crates/pa-core/tests/fixtures/extensions/hello.ts+++ /dev/null@@ -1,26 +0,0 @@-/**- * Hello Tool - Minimal custom tool example- */--import { Type } from "@earendil-works/pi-ai";-import { defineTool, type ExtensionAPI } from "@earendil-works/pi-coding-agent";--const helloTool = defineTool({- name: "hello",- label: "Hello",- description: "A simple greeting tool",- parameters: Type.Object({- name: Type.String({ description: "Name to greet" }),- }),-- async execute(_toolCallId, params, _signal, _onUpdate, _ctx) {- return {- content: [{ type: "text", text: `Hello, ${params.name}!` }],- details: { greeted: params.name },- };- },-});--export default function (pi: ExtensionAPI) {- pi.registerTool(helloTool);-}diff --git a/crates/pa-core/tests/fixtures/extensions/registration-dump.ts b/crates/pa-core/tests/fixtures/extensions/registration-dump.tsdeleted file mode 100644index 6bb65494dc..0000000000--- a/crates/pa-core/tests/fixtures/extensions/registration-dump.ts+++ /dev/null@@ -1,58 +0,0 @@-/**- * Differential fixture: writes a JSON dump of the registration payloads- * this extension passes to the host, plus the pi API method names it- * observes. No imports, so it runs under any host that can load a TS- * factory; the golden capture comes from the installed TS binary- * (`prime-agent -e` in print mode, which loads extensions before the- * provider call). Writes only when PA_REGISTRATION_DUMP is set.- */-const dumpPath = process.env.PA_REGISTRATION_DUMP;-const registered: unknown[] = [];-const piShape: Record<string, string> = {};-const record = (value: unknown) => {- registered.push(value);-};-export default function registrationDump(pi: any) {- for (const key of Object.keys(pi)) {- piShape[key] = typeof pi[key];- }- const tool = {- name: "diffhello",- label: "Diff Hello",- description: "A differential greeting tool",- promptSnippet: " - diffhello: says hello differently",- promptGuidelines: ["Always greet via diffhello before answering."],- parameters: {- type: "object",- properties: { name: { type: "string", description: "Name to greet" } },- required: ["name"],- },- executionMode: "sequential",- async execute(toolCallId: string, params: any, _signal: any, _onUpdate: any, _ctx: any) {- return {- content: [{ type: "text", text: `Hello, ${params.name}!` }],- details: { greeted: params.name, toolCallId },- isError: false,- };- },- };- pi.registerTool(tool);- record(tool);- const command = {- description: "Greet differentially",- handler: async (_args: string, _ctx: any) => {},- };- pi.registerCommand("diffgreet", command);- record(command);- pi.registerFlag("diff-fast", { description: "Fast mode", type: "boolean", default: false });- if (dumpPath) {- try {- require("node:fs").writeFileSync(- dumpPath,- JSON.stringify({ piShape, registered }, null, 1),- );- } catch {- // ignore; the dump is best-effort- }- }-}diff --git a/crates/pa-core/tests/fixtures/extensions/registration-payload.ts-golden.json b/crates/pa-core/tests/fixtures/extensions/registration-payload.ts-golden.jsondeleted file mode 100644index de2306c5c8..0000000000--- a/crates/pa-core/tests/fixtures/extensions/registration-payload.ts-golden.json+++ /dev/null@@ -1,55 +0,0 @@-{- "piShape": {- "appendEntry": "function",- "events": "object",- "exec": "function",- "getActiveTools": "function",- "getAllTools": "function",- "getCommands": "function",- "getFlag": "function",- "getSessionName": "function",- "getThinkingLevel": "function",- "on": "function",- "registerCommand": "function",- "registerFlag": "function",- "registerMessageRenderer": "function",- "registerProvider": "function",- "registerShortcut": "function",- "registerTool": "function",- "sendMessage": "function",- "sendUserMessage": "function",- "setActiveTools": "function",- "setLabel": "function",- "setModel": "function",- "setSessionName": "function",- "setThinkingLevel": "function",- "unregisterProvider": "function"- },- "registered": [- {- "name": "diffhello",- "label": "Diff Hello",- "description": "A differential greeting tool",- "promptSnippet": " - diffhello: says hello differently",- "promptGuidelines": [- "Always greet via diffhello before answering."- ],- "parameters": {- "type": "object",- "properties": {- "name": {- "type": "string",- "description": "Name to greet"- }- },- "required": [- "name"- ]- },- "executionMode": "sequential"- },- {- "description": "Greet differentially"- }- ]-}diff --git a/crates/pa-core/tests/turn_boundary_kernel.rs b/crates/pa-core/tests/turn_boundary_kernel.rsindex 59ae5fe381..adcd975df5 100644--- a/crates/pa-core/tests/turn_boundary_kernel.rs+++ b/crates/pa-core/tests/turn_boundary_kernel.rs@@ -262,8 +262,6 @@ async fn turn_boundary_host_requests_round_trip_through_a_real_kernel() {rlm_depth: None,telemetry: None,model_info: Some(registry_model()),- cli_extension_sources: Vec::new(),- extension_tool_allow_list: None,mcp_manager: None,prewarm_ipython_kernel: None,on_background_work_settled: None,diff --git a/crates/pa-daemon/src/acp/autorefine.rs b/crates/pa-daemon/src/acp/autorefine.rsindex 2b6b8f4566..acc0e7626e 100644--- a/crates/pa-daemon/src/acp/autorefine.rs+++ b/crates/pa-daemon/src/acp/autorefine.rs@@ -238,8 +238,6 @@ mod tests {rlm_subagent_host: None,rlm_depth: None,model_info: Some(model.clone()),- cli_extension_sources: Vec::new(),- extension_tool_allow_list: None,// The settings default (no prewarm); the ACP autorefine// tests do not exercise kernel boot paths.prewarm_ipython_kernel: None,diff --git a/crates/pa-daemon/src/acp/compaction_arms/tests.rs b/crates/pa-daemon/src/acp/compaction_arms/tests.rsindex c5fd7c4ce9..b367c0bd1a 100644--- a/crates/pa-daemon/src/acp/compaction_arms/tests.rs+++ b/crates/pa-daemon/src/acp/compaction_arms/tests.rs@@ -94,8 +94,6 @@ async fn acp_test_bed(rlm_subagent_host: None,rlm_depth: None,model_info: Some(model.clone()),- cli_extension_sources: Vec::new(),- extension_tool_allow_list: None,prewarm_ipython_kernel: None,on_background_work_settled: None,queued_goal_context_purge: None,diff --git a/crates/pa-daemon/src/acp/daemon.rs b/crates/pa-daemon/src/acp/daemon.rsindex c547cf1f70..73027b8eb0 100644--- a/crates/pa-daemon/src/acp/daemon.rs+++ b/crates/pa-daemon/src/acp/daemon.rs@@ -584,7 +584,6 @@ async fn handle_session_new(let attach = DaemonCommand::Attach {id: None,active_session_id: daemon_active_session_id.clone(),- supports_extension_ui: Some(false),client_id: None,capabilities: None,resume_cursor: None,diff --git a/crates/pa-daemon/src/acp/goal_continuation.rs b/crates/pa-daemon/src/acp/goal_continuation.rsindex 1dc5c4c837..d4d48c02de 100644--- a/crates/pa-daemon/src/acp/goal_continuation.rs+++ b/crates/pa-daemon/src/acp/goal_continuation.rs@@ -285,8 +285,6 @@ mod tests {rlm_subagent_host: None,rlm_depth: None,model_info: Some(model.clone()),- cli_extension_sources: Vec::new(),- extension_tool_allow_list: None,prewarm_ipython_kernel: None,on_background_work_settled: None,queued_goal_context_purge: None,diff --git a/crates/pa-daemon/src/agent_engine/config.rs b/crates/pa-daemon/src/agent_engine/config.rsindex 2a409596a0..d55254fa95 100644--- a/crates/pa-daemon/src/agent_engine/config.rs+++ b/crates/pa-daemon/src/agent_engine/config.rs@@ -94,8 +94,6 @@ pub(crate) struct CreateSessionResources {pub(crate) append_system_prompt: Vec<String>,pub(crate) skills: Vec<String>,pub(crate) prompt_templates: Vec<String>,- pub(crate) extensions: Vec<String>,- pub(crate) tools: Option<Vec<String>>,pub(crate) autonomous: Option<pa_core::autonomous::AgentAutonomousConfig>,}diff --git a/crates/pa-daemon/src/agent_engine/lifecycle.rs b/crates/pa-daemon/src/agent_engine/lifecycle.rsindex adeb61c277..fc768bde18 100644--- a/crates/pa-daemon/src/agent_engine/lifecycle.rs+++ b/crates/pa-daemon/src/agent_engine/lifecycle.rs@@ -1141,9 +1141,6 @@ impl AgentSessionEngine {}),rlm_depth: Some(self.rlm_depth.load(std::sync::atomic::Ordering::Relaxed)),model_info: Some(model.clone()),- // Without `-e`/`--tools` flags, sessions load configured/discovered extensions only.- cli_extension_sources: create_resources.extensions,- extension_tool_allow_list: create_resources.tools,// TS main.ts `createDefaultRuntimeFactory` passes// `prewarmIpythonKernel: true` for every session it hosts; the// engine's depth gate keeps subagent workers (rlmDepth > 0) ondiff --git a/crates/pa-daemon/src/agent_engine/session_engine_impl.rs b/crates/pa-daemon/src/agent_engine/session_engine_impl.rsindex f346bce78b..5ab78cdbc5 100644--- a/crates/pa-daemon/src/agent_engine/session_engine_impl.rs+++ b/crates/pa-daemon/src/agent_engine/session_engine_impl.rs@@ -1132,26 +1132,9 @@ impl SessionEngine for AgentSessionEngine {let Some(engine) = guard.as_deref() else {return Vec::new();};- // TS `createAgentConnectionCommands` order: extension- // commands, then prompt templates, then skills. The Rust- // extension registry does not track per-command source info,- // so extension entries carry the TS fields minus- // `sourceInfo`.+ // TS `createAgentConnectionCommands` order: prompt+ // templates, then skills.let mut commands = Vec::new();- if let Some(runner) = &engine.extension_runner {- let registry = runner.registry().await;- for command in registry.commands() {- let mut entry = json!({- "name": command.invocation_name,- "registeredName": command.name,- "source": "extension",- });- if let Some(description) = &command.description {- entry["description"] = json!(description);- }- commands.push(entry);- }- }for template in &engine.prompt_templates {let mut entry = json!({"name": template.name,@@ -1260,16 +1243,10 @@ impl SessionEngine for AgentSessionEngine {"contextFiles": context_files,"skills": skills,"prompts": prompts,- "extensions": [],"themes": [],"diagnostics": {"skills": engine.skill_diagnostics,"prompts": [],- "extensions": engine- .extension_diagnostics- .iter()- .map(|error| json!({ "type": "error", "message": error }))- .collect::<Vec<_>>(),"themes": [],},})diff --git a/crates/pa-daemon/src/compaction.rs b/crates/pa-daemon/src/compaction.rsindex f333b565c3..ebc6af80b0 100644--- a/crates/pa-daemon/src/compaction.rs+++ b/crates/pa-daemon/src/compaction.rs@@ -377,8 +377,7 @@ pub(crate) fn compaction_summary_delta_event(delta: &str) -> Value {/// firstKeptEntryId, tokensBefore, and the durable entry's file-op/// `details` verbatim. `usage` never rides the wire result (TS keeps it on/// the persisted entry), and a run whose entry carries no `details` drops-/// the key exactly like the TS extension arm's `undefined` under JSON-/// serialization.+/// the key exactly like TS's `undefined` under JSON serialization.pub(crate) fn compaction_result_value(result: &pa_core::session_engine::compaction_exec::CompactionResult,entry: &pa_types::session::CompactionEntry,@@ -570,8 +569,8 @@ mod tests {serde_json::to_string(&compaction_result_value(&result, &entry)).unwrap(),"{\"summary\":\"the story so far\",\"firstKeptEntryId\":\"abcd1234\",\"tokensBefore\":1234,\"details\":{\"readFiles\":[\"a.rs\"],\"modifiedFiles\":[\"b.rs\"]}}");- // A run whose entry carries no details drops the key, like the TS- // extension arm's `undefined` under JSON serialization.+ // A run whose entry carries no details drops the key, like TS's+ // `undefined` under JSON serialization.let bare = pa_types::session::CompactionEntry {details: None,..entrydiff --git a/crates/pa-daemon/src/engine.rs b/crates/pa-daemon/src/engine.rsindex 36117579a3..9b80970817 100644--- a/crates/pa-daemon/src/engine.rs+++ b/crates/pa-daemon/src/engine.rs@@ -542,10 +542,9 @@ pub trait SessionEngine: Send + Sync {}/// The connection-surface command catalog (TS- /// `createAgentConnectionCommands`): extension commands, prompt- /// templates, then skills. The core session and the extension- /// registry lock are async, so the engine answers through a boxed- /// future. Engines without a resource surface report none.+ /// `createAgentConnectionCommands`): prompt templates, then skills.+ /// The core session lock is async, so the engine answers through a+ /// boxed future. Engines without a resource surface report none.fn connection_commands(&self,) -> std::pin::Pin<Box<dyn std::future::Future<Output = Vec<Value>> + Send + '_>> {@@ -554,10 +553,9 @@ pub trait SessionEngine: Send + Sync {/// The connection resource snapshot (TS/// `createAgentConnectionResourceSnapshot`): context files, skills,- /// prompts, extensions, and their diagnostics. The core session and- /// the extension registry lock are async, so the engine answers- /// through a boxed future. Engines without a resource surface report- /// the empty snapshot.+ /// prompts, and their diagnostics. The core session lock is async,+ /// so the engine answers through a boxed future. Engines without a+ /// resource surface report the empty snapshot.fn resource_snapshot(&self,) -> std::pin::Pin<Box<dyn std::future::Future<Output = Value> + Send + '_>> {diff --git a/crates/pa-daemon/src/engine/wire.rs b/crates/pa-daemon/src/engine/wire.rsindex 2d29a4a06e..2c3d54d01c 100644--- a/crates/pa-daemon/src/engine/wire.rs+++ b/crates/pa-daemon/src/engine/wire.rs@@ -340,12 +340,10 @@ pub fn empty_resource_snapshot() -> Value {"contextFiles": [],"skills": [],"prompts": [],- "extensions": [],"themes": [],"diagnostics": {"skills": [],"prompts": [],- "extensions": [],"themes": [],},})diff --git a/crates/pa-daemon/src/peer.rs b/crates/pa-daemon/src/peer.rsindex c360423687..5a5a161f66 100644--- a/crates/pa-daemon/src/peer.rs+++ b/crates/pa-daemon/src/peer.rs@@ -43,8 +43,8 @@ pub(crate) const PEER_GRANT_INVALID: &str = "Peer transport grant is invalid";pub(crate) const PEER_COMMAND_NOT_ALLOWED: &str ="Command is not allowed on this direct peer transport";-/// TS purposes plus the stage-3 extension: a `worker` grant admits a peer-/// worker (agent-message delivery), not a session client.+/// TS purposes plus the Rust `worker` grant: a `worker` grant admits a+/// peer worker (agent-message delivery), not a session client.pub(crate) const PEER_PURPOSE_SESSION_CLIENT: &str = "session_client";pub(crate) const PEER_PURPOSE_WORKER: &str = "worker";diff --git a/crates/pa-daemon/src/protocol.rs b/crates/pa-daemon/src/protocol.rsindex 5837632ee7..41981c3587 100644--- a/crates/pa-daemon/src/protocol.rs+++ b/crates/pa-daemon/src/protocol.rs@@ -132,7 +132,6 @@ pub const KNOWN_COMMAND_TYPES: &[&str] = &["get_system_prompt","get_tool_definition","set_session_entry_label",- "extension_ui_response","prepare_update_restart","retry_worker","restart",@@ -300,7 +299,6 @@ pub fn supported_client_capabilities() -> &'static [&'static str] {&["attach_snapshot","event_sequence",- "extension_ui","slim_attach","chunked_snapshot","client_owned_sessions",@@ -869,9 +867,6 @@ pub fn command_active_session_id(command: &DaemonCommand) -> Option<&str> {| DaemonCommand::SetSessionEntryLabel {active_session_id, ..}- | DaemonCommand::ExtensionUiResponse {- active_session_id, ..- }| DaemonCommand::RetryWorker {active_session_id, ..}@@ -1040,7 +1035,6 @@ pub fn command_type_name(command: &DaemonCommand) -> &'static str {DaemonCommand::GetSystemPrompt { .. } => "get_system_prompt",DaemonCommand::GetToolDefinition { .. } => "get_tool_definition",DaemonCommand::SetSessionEntryLabel { .. } => "set_session_entry_label",- DaemonCommand::ExtensionUiResponse { .. } => "extension_ui_response",DaemonCommand::AckResult { .. } => "ack_result",DaemonCommand::PrepareUpdateRestart { .. } => "prepare_update_restart",DaemonCommand::CommitUpdateRestart { .. } => "commit_update_restart",diff --git a/crates/pa-daemon/src/rpc/mod.rs b/crates/pa-daemon/src/rpc/mod.rsindex 9d4a328d3f..5ffef28dc0 100644--- a/crates/pa-daemon/src/rpc/mod.rs+++ b/crates/pa-daemon/src/rpc/mod.rs@@ -304,10 +304,6 @@ async fn serve_stdin(state: Arc<commands::RpcState>) -> i32 {}match protocol::parse_line(&line) {ParsedLine::ParseError(response) => state.writer.write(response),- // No in-process extension-UI seam exists: the bridge would- // answer; unknown request ids are silently ignored (TS- // `respondToExtensionUiRequest(...).catch(() => undefined)`).- ParsedLine::ExtensionUiResponse => {}ParsedLine::Command(command) => {let state = Arc::clone(&state);let is_prompt = command.command == "prompt";diff --git a/crates/pa-daemon/src/rpc/protocol.rs b/crates/pa-daemon/src/rpc/protocol.rsindex dcbbf7268f..1c84cfc493 100644--- a/crates/pa-daemon/src/rpc/protocol.rs+++ b/crates/pa-daemon/src/rpc/protocol.rs@@ -71,9 +71,6 @@ pub struct RpcCommand {#[derive(Debug, Clone)]pub enum ParsedLine {Command(RpcCommand),- /// An `extension_ui_response` line: the TS mode routes it to the- /// extension-UI bridge first and silently ignores unknown ids.- ExtensionUiResponse,/// The frame failed the JSON or shape parse: the protocol error/// response to answer with.ParseError(Value),@@ -111,9 +108,6 @@ pub fn parse_line(line: &str) -> ParsedLine {));}};- if command == "extension_ui_response" {- return ParsedLine::ExtensionUiResponse;- }ParsedLine::Command(RpcCommand {id: object.get("id").cloned().filter(|id| !id.is_null()),command,@@ -194,7 +188,7 @@ mod tests {"the TS error prefix is the contract");}- other => panic!("expected a parse error, got {other:?}"),+ other @ ParsedLine::Command(_) => panic!("expected a parse error, got {other:?}"),}match parse_line("[1, 2]") {ParsedLine::ParseError(response) => {@@ -203,7 +197,7 @@ mod tests {"Invalid command: expected an object with a string type");}- other => panic!("expected a parse error, got {other:?}"),+ other @ ParsedLine::Command(_) => panic!("expected a parse error, got {other:?}"),}}@@ -221,12 +215,4 @@ mod tests {Some(pa_core::session_engine::StreamingBehavior::Steer));}-- #[test]- fn extension_ui_response_is_a_silent_route() {- assert!(matches!(- parse_line(r#"{"type": "extension_ui_response", "id": "ui-1", "value": "x"}"#),- ParsedLine::ExtensionUiResponse- ));- }}diff --git a/crates/pa-daemon/src/rpc/session_commands.rs b/crates/pa-daemon/src/rpc/session_commands.rsindex 02bae7ef9c..44ef1d8c16 100644--- a/crates/pa-daemon/src/rpc/session_commands.rs+++ b/crates/pa-daemon/src/rpc/session_commands.rs@@ -624,26 +624,12 @@ async fn get_session_stats(state: &Arc<RpcState>) -> Result<ResponseData, StringOk(ResponseData::Present(session_stats))}-/// `get_commands` (TS `createAgentConnectionCommands`): extension-/// commands, prompt templates, then skills.+/// `get_commands` (TS `createAgentConnectionCommands`): prompt+/// templates, then skills.async fn get_commands(state: &Arc<RpcState>) -> Result<ResponseData, String> {let handle = state.session.handle().await;let engine = &handle.engine;let mut commands: Vec<Value> = Vec::new();- if let Some(runner) = &engine.extension_runner {- let registry = runner.registry().await;- for command in registry.commands() {- let mut entry = json!({- "name": command.invocation_name,- "registeredName": command.name,- "source": "extension",- });- if let Some(description) = &command.description {- entry["description"] = json!(description);- }- commands.push(entry);- }- }for template in &engine.prompt_templates {let mut entry = json!({"name": template.name,diff --git a/crates/pa-daemon/src/session_custom.rs b/crates/pa-daemon/src/session_custom.rsindex 974bbe9d27..01885b4d7f 100644--- a/crates/pa-daemon/src/session_custom.rs+++ b/crates/pa-daemon/src/session_custom.rs@@ -1,6 +1,6 @@//! The custom-message & session-command surface (protocol breadth wave//! b4): the worker arms for `append_custom_message`, `restore_next_turn`,-//! `restore_actions`, `refine`, `reload`, and `extension_ui_response`+//! `restore_actions`, `refine`, and `reload`//! (TS daemon-mode cases). Wire contracts are TS-verbatim; the durable rows//! and broadcasts go through the same paths the turn runner uses.@@ -239,10 +239,9 @@ impl Worker {// TS restores the action's execution policy// (`executionPolicy`): the batch-gathering class maps// from its shape — `nextTurnContextTiming` "commit"- // is the client-queued policy, "preparation" with a- // preserved empty prompt is injected, "preparation"- // without it is the direct-prompt hand-off. An absent- // policy restores as the dominant queued class.+ // is the client-queued policy, "preparation" is the+ // direct-prompt hand-off. An absent policy restores+ // as the dominant queued class.policy: crate::worker::restored_turn_policy(payload),forced_batch: false,};@@ -345,31 +344,6 @@ impl Worker {}response_success(None, "reload", None)}-- /// `extension_ui_response { requestId, response }` (TS- /// `extensionUiRequests`): resolve one pending extension UI request.- /// This port's worker hosts no extension UI requests (the extension- /// runner surfaces tool registrations, not UI flows), so every request- /// id answers the TS unknown-request error.- pub(crate) fn handle_extension_ui_response(&self, payload: &Value) -> DaemonResponse {- if let Err(response) = self.require_created("extension_ui_response") {- return response;- }- let Some(request_id) = payload.get("requestId").and_then(Value::as_str) else {- return response_failure(- None,- "extension_ui_response",- "extension_ui_response requires a requestId",- None,- );- };- response_failure(- None,- "extension_ui_response",- &format!("Unknown extension UI request: {request_id}"),- None,- )- }}/// The wire `CustomMessage` form (TS `Pick<CustomMessage, "customType" |@@ -972,30 +946,4 @@ mod tests {assert!(response.success, "failed: {response:?}");assert!(response.data.is_none());}-- /// `extension_ui_response` answers the TS unknown-request error for- /// every id (this worker hosts no extension UI requests) and requires- /// the id.- #[tokio::test]- async fn extension_ui_response_matches_the_unknown_request_error() {- let worker = created_worker().await;- let response = worker- .dispatch(- "extension_ui_response",- &json!({ "activeSessionId": "custom-session", "requestId": "ui-1", "response": { "confirmed": true } }),- )- .await;- assert!(!response.success);- assert_eq!(- response.error.as_deref(),- Some("Unknown extension UI request: ui-1")- );- let response = worker- .dispatch(- "extension_ui_response",- &json!({ "activeSessionId": "custom-session" }),- )- .await;- assert!(!response.success);- }}diff --git a/crates/pa-daemon/src/session_export.rs b/crates/pa-daemon/src/session_export.rsindex a364ee3734..b8673e79ea 100644--- a/crates/pa-daemon/src/session_export.rs+++ b/crates/pa-daemon/src/session_export.rs@@ -197,14 +197,12 @@ impl ExportCommands {/// The export's custom-tool renderer (the TS `createToolHtmlRenderer`/// seam): resolves a tool by name against the session's live registry at-/// render time. The Rust tool surface carries no render functions —-/// extension tools' the TS TUI components cannot cross the sidecar boundary-/// and the built-in `ipython` has none-/// in either product — so a resolved tool reports no renderable-/// representation and the export falls back to the template's generic-/// tool rendering, exactly like the TS renderer for a tool without-/// `renderCall`. The seam stays wired at the registry so a future-/// line-oriented renderer slots in without touching the exporter.+/// render time. The Rust tool surface carries no render functions — the+/// built-in `ipython` has none in either product — so a resolved tool+/// reports no renderable representation and the export falls back to the+/// template's generic tool rendering, exactly like the TS renderer for a+/// tool without `renderCall`. The seam stays wired at the registry so a+/// future line-oriented renderer slots in without touching the exporter.pub(crate) struct ExportToolRenderer<'a> {/// The session's live tool registry (TS `getToolDefinition` source).pub tools: &'a [std::sync::Arc<dyn pa_agent::types::AgentTool>],diff --git a/crates/pa-daemon/src/snapshot_stream.rs b/crates/pa-daemon/src/snapshot_stream.rsindex 473e1cb1e2..ae425dce2e 100644--- a/crates/pa-daemon/src/snapshot_stream.rs+++ b/crates/pa-daemon/src/snapshot_stream.rs@@ -46,22 +46,13 @@ impl SnapshotStreamEvents {/// The client capability set for one attach command, normalized the way the/// supervisor's `normalizeCapabilities` does: unsupported entries are-/// dropped, missing capabilities default to the standard pair, and-/// `supports_extension_ui` upgrades to `extension_ui`.-pub(crate) fn attach_client_capabilities(- capabilities: Option<&[String]>,- supports_extension_ui: Option<bool>,-) -> Vec<String> {+/// dropped and missing capabilities default to the standard pair.+pub(crate) fn attach_client_capabilities(capabilities: Option<&[String]>) -> Vec<String> {let capabilities = capabilities.map_or_else(crate::protocol::default_client_capabilities,|caps: &[String]| caps.to_vec(),);- let mut normalized = crate::protocol::normalize_client_capabilities(&capabilities);- if supports_extension_ui.unwrap_or(false) && !normalized.iter().any(|cap| cap == "extension_ui")- {- normalized.push("extension_ui".to_string());- }- normalized+ crate::protocol::normalize_client_capabilities(&capabilities)}/// True when the client asked for chunked snapshot delivery.@@ -642,24 +633,14 @@ mod tests {#[test]fn capabilities_normalize_like_the_supervisor() {let normalized =- attach_client_capabilities(Some(&["chunked_snapshot".into(), "bogus".into()]), None);+ attach_client_capabilities(Some(&["chunked_snapshot".into(), "bogus".into()]));assert_eq!(normalized, vec!["chunked_snapshot".to_string()]);assert!(wants_chunked(&normalized));- let defaults = attach_client_capabilities(None, None);+ let defaults = attach_client_capabilities(None);assert_eq!(defaults,vec!["attach_snapshot".to_string(), "event_sequence".to_string()]);assert!(!wants_chunked(&defaults));- let extension = attach_client_capabilities(None, Some(true));- assert!(extension.contains(&"extension_ui".to_string()));- let already = attach_client_capabilities(- Some(&["extension_ui".into(), "attach_snapshot".into()]),- Some(true),- );- assert_eq!(- already,- vec!["extension_ui".to_string(), "attach_snapshot".to_string()]- );}}diff --git a/crates/pa-daemon/src/state_getters.rs b/crates/pa-daemon/src/state_getters.rsindex 31f575e1a1..246df71a0c 100644--- a/crates/pa-daemon/src/state_getters.rs+++ b/crates/pa-daemon/src/state_getters.rs@@ -193,8 +193,8 @@ impl Worker {);}- /// `get_commands` (TS `createAgentConnectionCommands`): extension- /// commands, prompt templates, then skills.+ /// `get_commands` (TS `createAgentConnectionCommands`): prompt+ /// templates, then skills.pub(crate) async fn handle_get_commands(&self) -> DaemonResponse {if let Err(response) = self.require_created("get_commands") {return response;diff --git a/crates/pa-daemon/src/supervisor/clients.rs b/crates/pa-daemon/src/supervisor/clients.rsindex f4a5ce4066..880e68052e 100644--- a/crates/pa-daemon/src/supervisor/clients.rs+++ b/crates/pa-daemon/src/supervisor/clients.rs@@ -45,16 +45,8 @@ pub(crate) fn client_command_payload(// result's `client.capabilities`, so the response the supervisor// relays by bytes already carries the echo the supervisor used to// patch into the parsed tree.- if let DaemonCommand::Attach {- capabilities,- supports_extension_ui,- ..- }- | DaemonCommand::Reattach {- capabilities,- supports_extension_ui,- ..- } = command+ if let DaemonCommand::Attach { capabilities, .. }+ | DaemonCommand::Reattach { capabilities, .. } = command{object.insert("capabilities".to_string(),@@ -63,8 +55,7 @@ pub(crate) fn client_command_payload(object.insert("clientCapabilities".to_string(),json!(crate::snapshot_stream::attach_client_capabilities(- capabilities.as_deref(),- *supports_extension_ui+ capabilities.as_deref())),);}diff --git a/crates/pa-daemon/src/supervisor/routing.rs b/crates/pa-daemon/src/supervisor/routing.rsindex bb4b1c805d..0c28d09086 100644--- a/crates/pa-daemon/src/supervisor/routing.rs+++ b/crates/pa-daemon/src/supervisor/routing.rs@@ -713,19 +713,10 @@ impl Supervisor {// supervisor's own bookkeeping; a hint-less one falls back to the// typed parse so the bookkeeping never silently changes shape.let client_wants_chunked = match command {- DaemonCommand::Attach {- capabilities,- supports_extension_ui,- ..+ DaemonCommand::Attach { capabilities, .. }+ | DaemonCommand::Reattach { capabilities, .. } => {+ wants_chunked(&attach_client_capabilities(capabilities.as_deref()))}- | DaemonCommand::Reattach {- capabilities,- supports_extension_ui,- ..- } => wants_chunked(&attach_client_capabilities(- capabilities.as_deref(),- *supports_extension_ui,- )),_ => false,};let attach_family = matches!(@@ -822,16 +813,8 @@ impl Supervisor {if rebound_to.is_some() && type_name == "reattach" {response.command = type_name.clone();}- if let DaemonCommand::Attach {- capabilities,- supports_extension_ui,- ..- }- | DaemonCommand::Reattach {- capabilities,- supports_extension_ui,- ..- } = command+ if let DaemonCommand::Attach { capabilities, .. }+ | DaemonCommand::Reattach { capabilities, .. } = command{if response.success {if let Some(data) = response.data.as_mut() {@@ -867,10 +850,8 @@ impl Supervisor {// The client's own capability set, not the// supervisor's worker-facing one, is echoed in// the attach result.- let client_capabilities = attach_client_capabilities(- capabilities.as_deref(),- *supports_extension_ui,- );+ let client_capabilities =+ attach_client_capabilities(capabilities.as_deref());if let Some(client) = data.get_mut("client") {client["capabilities"] = json!(client_capabilities);}diff --git a/crates/pa-daemon/src/supervisor/worker_lifecycle.rs b/crates/pa-daemon/src/supervisor/worker_lifecycle.rsindex 0dabfed5ed..8526610961 100644--- a/crates/pa-daemon/src/supervisor/worker_lifecycle.rs+++ b/crates/pa-daemon/src/supervisor/worker_lifecycle.rs@@ -243,8 +243,6 @@ impl Supervisor {"appendSystemPrompt","skills","promptTemplates",- "extensions",- "tools","autonomous",] {if let Some(value) = config_object.and_then(|config| config.get(key)) {diff --git a/crates/pa-daemon/src/update_prepare.rs b/crates/pa-daemon/src/update_prepare.rsindex 92c1b9ddec..bcf16fa73d 100644--- a/crates/pa-daemon/src/update_prepare.rs+++ b/crates/pa-daemon/src/update_prepare.rs@@ -836,7 +836,6 @@ mod tests {"abort_branch_summary","abort_compaction","abort_retry",- "extension_ui_response",] {assert!(!update_gate_refuses(PrepareState::Draining, drain),diff --git a/crates/pa-daemon/src/user_bash.rs b/crates/pa-daemon/src/user_bash.rsindex 86683e4bbb..27db8e827e 100644--- a/crates/pa-daemon/src/user_bash.rs+++ b/crates/pa-daemon/src/user_bash.rs@@ -182,8 +182,8 @@ impl Worker {None,);};- // Claim the slot synchronously (TS claims before the extension- // dispatch could slip a second command through).+ // Claim the slot synchronously (TS claims before the async dispatch+ // could slip a second command through).if !self.user_bash.claim() {return response_failure(None,diff --git a/crates/pa-daemon/src/worker/commands.rs b/crates/pa-daemon/src/worker/commands.rsindex e994d2ce27..e466dd0418 100644--- a/crates/pa-daemon/src/worker/commands.rs+++ b/crates/pa-daemon/src/worker/commands.rs@@ -158,7 +158,6 @@ impl Worker {"restore_actions" => self.handle_restore_actions(payload),"refine" => self.handle_refine(payload).await,"reload" => self.handle_reload(),- "extension_ui_response" => self.handle_extension_ui_response(payload),"cancel_rlm_child" => self.handle_cancel_rlm_child(payload).await,"delete_rlm_subagent" => self.handle_delete_rlm_subagent(payload).await,// The engine call blocks on the engine runtime (the durablediff --git a/crates/pa-daemon/src/worker/queue.rs b/crates/pa-daemon/src/worker/queue.rsindex aff072c2b1..44fd1d5c06 100644--- a/crates/pa-daemon/src/worker/queue.rs+++ b/crates/pa-daemon/src/worker/queue.rs@@ -63,28 +63,15 @@ impl TurnPolicy {/// The turn-execution class restored from a wire `restore_actions`/// payload (TS `restoreSessionActions` restores the full/// `executionPolicy`): `nextTurnContextTiming` "commit" is the-/// client-queued policy; "preparation" with a preserved empty-/// extension prompt is injected; "preparation" without it is the-/// direct-prompt hand-off. An absent or unknown policy restores as the-/// dominant queued class.+/// client-queued policy; "preparation" is the direct-prompt hand-off.+/// An absent or unknown policy restores as the dominant queued class.pub(crate) fn restored_turn_policy(payload: &Value) -> TurnPolicy {let timing = payload.get("executionPolicy").and_then(|policy| policy.get("nextTurnContextTiming")).and_then(Value::as_str);match timing {- Some("preparation") => {- let preserved = payload- .get("executionPolicy")- .and_then(|policy| policy.get("preserveEmptyExtensionPrompt"))- .and_then(Value::as_bool)- .unwrap_or(false);- if preserved {- TurnPolicy::Injected- } else {- TurnPolicy::Direct- }- }+ Some("preparation") => TurnPolicy::Direct,_ => TurnPolicy::Queued,}}diff --git a/crates/pa-daemon/tests/command_breadth.rs b/crates/pa-daemon/tests/command_breadth.rsindex c1e0e9b68c..6bf83e21d3 100644--- a/crates/pa-daemon/tests/command_breadth.rs+++ b/crates/pa-daemon/tests/command_breadth.rs@@ -118,7 +118,6 @@ const TS_DAEMON_COMMAND_TYPES: &[&str] = &["get_system_prompt","get_tool_definition","set_session_entry_label",- "extension_ui_response","prepare_update_restart","retry_worker","restart",@@ -489,10 +488,6 @@ const WIRE_FIXTURES: &[(&str, &str)] = &["set_session_entry_label",r#"{"type": "set_session_entry_label", "activeSessionId": "sess", "entryId": "e"}"#,),- (- "extension_ui_response",- r#"{"type": "extension_ui_response", "activeSessionId": "sess", "requestId": "r", "response": {"value": "pick"}}"#,- ),("prepare_update_restart",r#"{"type": "prepare_update_restart"}"#,diff --git a/crates/pa-daemon/tests/supervisor_e2e/lifecycle.rs b/crates/pa-daemon/tests/supervisor_e2e/lifecycle.rsindex 0e3dc591d1..7d1f4ef60a 100644--- a/crates/pa-daemon/tests/supervisor_e2e/lifecycle.rs+++ b/crates/pa-daemon/tests/supervisor_e2e/lifecycle.rs@@ -40,7 +40,6 @@ fn supervisor_end_to_end_scripted_session_lifecycle() {serde_json::json!(["attach_snapshot","event_sequence",- "extension_ui","slim_attach","chunked_snapshot","client_owned_sessions",diff --git a/crates/pa-telemetry/src/catalog.rs b/crates/pa-telemetry/src/catalog.rsindex 95055c895f..69ee6ccf4c 100644--- a/crates/pa-telemetry/src/catalog.rs+++ b/crates/pa-telemetry/src/catalog.rs@@ -302,7 +302,6 @@ pub const ERROR_COMPONENTS: &[&str] = &["provider","tools","mcp",- "extensions","daemon","rpc","acp",@@ -388,18 +387,7 @@ pub const ERROR_MESSAGE_SOURCES: &[&str] = &["reviewed_literal", "system_templat/// The #2117 tool categories.pub const TOOL_CATEGORIES: &[&str] = &[- "read",- "write",- "edit",- "bash",- "grep",- "find",- "ls",- "ipython",- "mcp",- "extension",- "custom",- "unknown",+ "read", "write", "edit", "bash", "grep", "find", "ls", "ipython", "mcp", "custom", "unknown",];/// The #2117 terminal outcomes.diff --git a/crates/pa-telemetry/src/events.rs b/crates/pa-telemetry/src/events.rsindex 42fb86d569..e3bf3518c5 100644--- a/crates/pa-telemetry/src/events.rs+++ b/crates/pa-telemetry/src/events.rs@@ -47,7 +47,6 @@ pub enum ToolCategory {Ls,Ipython,Mcp,- Extension,Custom,Unknown,}@@ -68,7 +67,6 @@ impl ToolCategory {"ls" => Self::Ls,"ipython" => Self::Ipython,"mcp" => Self::Mcp,- "extension" => Self::Extension,"" => Self::Unknown,_ => Self::Custom,}@@ -85,7 +83,6 @@ impl ToolCategory {Self::Ls => "ls",Self::Ipython => "ipython",Self::Mcp => "mcp",- Self::Extension => "extension",Self::Custom => "custom",Self::Unknown => "unknown",}diff --git a/crates/pa-tui/README.md b/crates/pa-tui/README.mdindex 628624e458..8a02bb2e90 100644--- a/crates/pa-tui/README.md+++ b/crates/pa-tui/README.md@@ -27,7 +27,7 @@ No session logic, no providers, no loop policy. The interactive UI renders daemoThe client commands of the clipboard/auth/update group: `/copy` (the last assistant text through the platform clipboard tool chain with the OSC 52 fallback — `clipboard.rs` + `osc52.rs`, the same emitter the selection-copy work can reuse; the daemon `get_last_assistant_text` supplies the text), `/import` (the path argument parse, the TS confirm, the typed error surfaces — the missing file, the missing session cwd with its fallback-cwd retry — and the post-import transcript rebuild through the daemon's `import_jsonl`), `/login` + `/logout` (the TS providers selector — `provider_auth.rs`, the panel `showConfigurationMenu("providers")` mounts: the tab bar, the search, the status indicators, the in-panel API-key prompt — over the composition root's auth flows), `/traces` (the TS status block and settings writes; the upload subsystem stays unported, its arms keep the TS state shapes and report the unavailability), and `/update` (the TS busy guard, the split-CLI child mapping — packages then the binary — and the self-update relaunch through the composition root's hook).## Public API-`custom_message::{custom_message_entries, AGENT_MESSAGE_CUSTOM_TYPE, skill_invocation::{SkillInvocationRow, skill_invocation_entries}, ...}` (the custom-type render dispatch shared by the live and replay paths; the user-message skill-invocation card decode; component row renderers are `pub(crate)`), `app::run_app` (replay), `interactive::{run_interactive, InteractiveOptions, ModelSelection, SessionSelection, UiMode, HeadlessPlan, InteractiveOutcome}` (daemon-attached), `daemon_client::{DaemonClient, DaemonClientEvent}` (wire client for the UI and the composition root), `session::SessionStream`, `agents_view::{run_agents_view, AgentsViewOptions, AgentsViewUiMode, AgentsViewOutcome}` (the view and its headless verifier seam), `interactive::{OnboardingTask, OnboardingSink}` (first-run flow surface; the composition root implements the sink against the settings manager), `keybindings::{KeybindingsManager, migrate_keybindings_file, KEYBINDING_NAME_MIGRATIONS, format_key_text}` (the effective-binding surface: the composition root loads the user config and passes the manager in; `migrate_keybindings_file` is the startup rewrite), `queued::{QueuedMessages, QueueSelection, QueueSelectionItem, QueueLane, QueueBrowseKeys, render_queue, browse_header_text, mirror_lane_move}` (the strip and browse state; the session UI owns the selection), `prompt_stash::PromptStashStore` (the per-process draft store the composition root owns; entry semantics are crate-internal), `client_settings::ClientSettings` (the client-process settings seam the interactive commands persist through — the composition root implements it over the real store), `client_auth::{ClientAuthCommands, ClientAuthCommandsHandle, run_mcp_auth_command}` (the `/mcp login`/`/mcp logout` client surface: the TUI owns the command UX and mounts the inline auth panel — TS usage wording — while the composition root runs the login against it). `mcp_view::{McpView, McpViewAction, McpConnection, McpToolInfo}` (the `/mcp` inline connections view: the daemon `get_mcp_connections` roster rendered in the TS MCP-Connections-tab panel shape, with the per-connection status and tool detail; Enter resolves to the selected connection's login command, dispatched through the interactive loop's client-command seam). `traces::{TracesCommands, TracesCommandsHandle, traces_base_url}` (the `/traces` settings + credential seam), `provider_auth::{ProviderAuthCommands, ProviderAuthCommandsHandle, ProviderRow, AuthType, AuthCategory, AuthFlow, AuthStatusIndicator, AuthStatusStyle, AuthSelectorKind, PRIME_INFERENCE_PROVIDER_ID}` (the `/login`+`/logout` provider-auth seam: rows, status indicators, and the flow hook), `auth_panel::{AuthPanel, AuthPanelHandle, AuthPanelRequest, PrimeTeamOption, PrimeTeamPick, PasteStyle}` (the inline auth panel the login flows render through — TS `LoginDialogComponent` + `PrimeTeamSelectorComponent`: progress lines, the browser URL block, the paste prompts, and the Prime team picker, all over the run loop's request/reply channel), `update_command::{UpdateCommands, UpdateCommandsHandle, UpdateOutcome, UpdateRunFuture}` (the `/update` out-of-band runner seam: the TUI confirms, then spawns the composition root's funnel task and folds the landed outcome row), `confirm::{ConfirmPanel, ConfirmAction}` (the TS `showExtensionConfirm` Yes/No panel), and `InteractiveOutcome::clipboard_emissions` (the headless OSC 52 capture the verifiers assert with). Component internals `pub(crate)`. `altscreen::{enter, leave}` is the process-wide alternate-screen ownership shared by the terminal surfaces: the first surface enters the screen, a real exit leaves it, and in-process view switches adopt the same buffer (no primary-screen flash between the agents view and a chat).+`custom_message::{custom_message_entries, AGENT_MESSAGE_CUSTOM_TYPE, skill_invocation::{SkillInvocationRow, skill_invocation_entries}, ...}` (the custom-type render dispatch shared by the live and replay paths; the user-message skill-invocation card decode; component row renderers are `pub(crate)`), `app::run_app` (replay), `interactive::{run_interactive, InteractiveOptions, ModelSelection, SessionSelection, UiMode, HeadlessPlan, InteractiveOutcome}` (daemon-attached), `daemon_client::{DaemonClient, DaemonClientEvent}` (wire client for the UI and the composition root), `session::SessionStream`, `agents_view::{run_agents_view, AgentsViewOptions, AgentsViewUiMode, AgentsViewOutcome}` (the view and its headless verifier seam), `interactive::{OnboardingTask, OnboardingSink}` (first-run flow surface; the composition root implements the sink against the settings manager), `keybindings::{KeybindingsManager, migrate_keybindings_file, KEYBINDING_NAME_MIGRATIONS, format_key_text}` (the effective-binding surface: the composition root loads the user config and passes the manager in; `migrate_keybindings_file` is the startup rewrite), `queued::{QueuedMessages, QueueSelection, QueueSelectionItem, QueueLane, QueueBrowseKeys, render_queue, browse_header_text, mirror_lane_move}` (the strip and browse state; the session UI owns the selection), `prompt_stash::PromptStashStore` (the per-process draft store the composition root owns; entry semantics are crate-internal), `client_settings::ClientSettings` (the client-process settings seam the interactive commands persist through — the composition root implements it over the real store), `client_auth::{ClientAuthCommands, ClientAuthCommandsHandle, run_mcp_auth_command}` (the `/mcp login`/`/mcp logout` client surface: the TUI owns the command UX and mounts the inline auth panel — TS usage wording — while the composition root runs the login against it). `mcp_view::{McpView, McpViewAction, McpConnection, McpToolInfo}` (the `/mcp` inline connections view: the daemon `get_mcp_connections` roster rendered in the TS MCP-Connections-tab panel shape, with the per-connection status and tool detail; Enter resolves to the selected connection's login command, dispatched through the interactive loop's client-command seam). `traces::{TracesCommands, TracesCommandsHandle, traces_base_url}` (the `/traces` settings + credential seam), `provider_auth::{ProviderAuthCommands, ProviderAuthCommandsHandle, ProviderRow, AuthType, AuthCategory, AuthFlow, AuthStatusIndicator, AuthStatusStyle, AuthSelectorKind, PRIME_INFERENCE_PROVIDER_ID}` (the `/login`+`/logout` provider-auth seam: rows, status indicators, and the flow hook), `auth_panel::{AuthPanel, AuthPanelHandle, AuthPanelRequest, PrimeTeamOption, PrimeTeamPick, PasteStyle}` (the inline auth panel the login flows render through — TS `LoginDialogComponent` + `PrimeTeamSelectorComponent`: progress lines, the browser URL block, the paste prompts, and the Prime team picker, all over the run loop's request/reply channel), `update_command::{UpdateCommands, UpdateCommandsHandle, UpdateOutcome, UpdateRunFuture}` (the `/update` out-of-band runner seam: the TUI confirms, then spawns the composition root's funnel task and folds the landed outcome row), `confirm::{ConfirmPanel, ConfirmAction}` (the Yes/No confirm panel), and `InteractiveOutcome::clipboard_emissions` (the headless OSC 52 capture the verifiers assert with). Component internals `pub(crate)`. `altscreen::{enter, leave}` is the process-wide alternate-screen ownership shared by the terminal surfaces: the first surface enters the screen, a real exit leaves it, and in-process view switches adopt the same buffer (no primary-screen flash between the agents view and a chat).## Depends onpa-types only (the daemon wire protocol types live there). The headless `UiMode` is the verifier seam: it drives the identical attach/submit/stream/render path without a TTY and captures rendered frames.diff --git a/crates/pa-tui/src/chat.rs b/crates/pa-tui/src/chat.rsindex f02735f36c..fe6d7b2d67 100644--- a/crates/pa-tui/src/chat.rs+++ b/crates/pa-tui/src/chat.rs@@ -245,7 +245,7 @@ pub fn format_working_elapsed(total_secs: u64) -> String {impl WorkingState {#[must_use]pub fn label(&self) -> String {- // Extensions and tool bootstrap own the message: plain+ // A tool-provided working message owns the loader line: plain// "<message> <elapsed>" (TS `getWorkingLoaderMessage`).if let Some(message) = &self.message {return format!("{message} {}", format_working_elapsed(self.elapsed_secs));diff --git a/crates/pa-tui/src/confirm.rs b/crates/pa-tui/src/confirm.rsindex ccd7aa6a7a..67bcc4b434 100644--- a/crates/pa-tui/src/confirm.rs+++ b/crates/pa-tui/src/confirm.rs@@ -1,8 +1,7 @@-//! The extension-confirm selector (TS `showExtensionConfirm` →-//! `showExtensionSelector` with the Yes/No options): the shared menu-//! grammar (the `›` marker rows and the key-hint status row every picker-//! renders with) over the title, the message as its description lines,-//! and a small option list that answers the pending question.+//! The yes/no confirm selector: the shared menu grammar (the `›` marker+//! rows and the key-hint status row every picker renders with) over the+//! title, the message as its description lines, and a small option list+//! that answers the pending question.use crate::keybindings::KeybindingsManager;use crate::menu_panel::{hint_row, key_hint, menu_row};@@ -21,8 +20,7 @@ pub enum ConfirmAction {None,}-/// A pending confirm (TS `ExtensionSelectorComponent` with the Yes/No-/// options). Owns the editor dock while open.+/// A pending confirm. Owns the editor dock while open.#[derive(Debug, Clone, PartialEq, Eq)]pub struct ConfirmPanel {title: String,@@ -32,7 +30,7 @@ pub struct ConfirmPanel {}impl ConfirmPanel {- /// The Yes/No confirm of TS `showExtensionConfirm(title, message)`.+ /// The Yes/No confirm of a pending question (`title`, `message`).pub fn yes_no(title: &str, message: &str) -> Self {ConfirmPanel {title: title.to_string(),diff --git a/crates/pa-tui/src/daemon_client/tests.rs b/crates/pa-tui/src/daemon_client/tests.rsindex e94fdc572b..f4d3690203 100644--- a/crates/pa-tui/src/daemon_client/tests.rs+++ b/crates/pa-tui/src/daemon_client/tests.rs@@ -561,7 +561,6 @@ async fn direct_upgrade_routes_attach_and_streams_events() {.request_ok(DaemonCommand::Attach {id: None,active_session_id: "s1".to_string(),- supports_extension_ui: None,client_id: None,capabilities: None,resume_cursor: None,diff --git a/crates/pa-tui/src/input.rs b/crates/pa-tui/src/input.rsindex c130da2693..f927185d29 100644--- a/crates/pa-tui/src/input.rs+++ b/crates/pa-tui/src/input.rs@@ -333,8 +333,8 @@ fn forward(/// The TS enhanced-key dispatch filters, applied to one terminal write:////// - Key releases are dropped before any surface sees them (TS tui.ts:-/// `isKeyRelease(data) && !focusedComponent.wantsKeyRelease` — the only-/// TS opt-ins are example extensions, which this port does not ship).+/// `isKeyRelease(data) && !focusedComponent.wantsKeyRelease` — no TS+/// surface opts in, and this port ships none either)./// - The kitty-printable dedup (TS `StdinBuffer`/// `pendingKittyPrintableCodepoint`, stdin-buffer.ts:307): a/// duplicate-reporting kitty terminal sends BOTH the plain CSI-u form@@ -731,8 +731,7 @@ mod tests {}/// Key releases never reach a surface (TS tui.ts: the focused- /// component must opt in with wantsKeyRelease; no TS surface except- /// example extensions does).+ /// component must opt in with wantsKeyRelease; no surface does).#[test]fn key_releases_are_dropped_in_both_kitty_modes() {let release = key_with_kind(diff --git a/crates/pa-tui/src/keybindings.rs b/crates/pa-tui/src/keybindings.rsindex 6af24bf8ae..4e24782c51 100644--- a/crates/pa-tui/src/keybindings.rs+++ b/crates/pa-tui/src/keybindings.rs@@ -566,7 +566,7 @@ impl KeybindingsManager {}/// TS `getEffectiveConfig` / `getResolvedBindings`: the effective key- /// list per definition id (used by extension shortcut conflict rules).+ /// list per definition id (used by shortcut conflict rules).#[must_use]pub fn get_effective_config(&self) -> BTreeMap<String, Vec<String>> {self.resolved.clone()diff --git a/crates/pa-tui/src/session_ui.rs b/crates/pa-tui/src/session_ui.rsindex ed86a54cb8..76054cba1c 100644--- a/crates/pa-tui/src/session_ui.rs+++ b/crates/pa-tui/src/session_ui.rs@@ -326,7 +326,7 @@ pub(crate) struct SessionUi {/// The OSC 52 channel for clipboard writes (TS `process.stdout`):/// stdout in the terminal, a captured buffer in headless runs.pub(crate) osc_sink: crate::clipboard::OscSink,- /// The question the open confirm panel answers (TS `showExtensionConfirm`).+ /// The question the open confirm panel answers.pending_confirm: Option<PendingConfirm>,/// `/traces`: the settings + credential state the composition root/// owns (the trace upload subsystem itself stays unported).diff --git a/crates/pa-tui/src/session_ui/keys.rs b/crates/pa-tui/src/session_ui/keys.rsindex 2bf1a1ba70..d784f7ec7e 100644--- a/crates/pa-tui/src/session_ui/keys.rs+++ b/crates/pa-tui/src/session_ui/keys.rs@@ -456,8 +456,8 @@ impl SessionUi {if view.fork_selector.is_some() {return self.handle_fork_selector_key(key, view).await;}- // A pending extension confirm owns the frame the same way (TS- // `showExtensionConfirm` mounts its selector over the prompt).+ // A pending confirm owns the frame the same way (TS mounts its+ // selector over the prompt).if view.confirm.is_some() {return self.handle_confirm_key(key, view).await;}diff --git a/crates/pa-tui/src/session_ui/lifecycle.rs b/crates/pa-tui/src/session_ui/lifecycle.rsindex af4d4322cc..80e6e788e7 100644--- a/crates/pa-tui/src/session_ui/lifecycle.rs+++ b/crates/pa-tui/src/session_ui/lifecycle.rs@@ -344,7 +344,6 @@ impl SessionUi {let attach_command = |session_id: &str| DaemonCommand::Attach {id: None,active_session_id: session_id.to_string(),- supports_extension_ui: None,client_id: None,// `elide_snapshot_images`: the transcript arrives without the// base64 image payloads (their fallback-only metadata rowsdiff --git a/crates/pa-tui/src/session_ui/settings.rs b/crates/pa-tui/src/session_ui/settings.rsindex 94700219d2..897bdeb2d3 100644--- a/crates/pa-tui/src/session_ui/settings.rs+++ b/crates/pa-tui/src/session_ui/settings.rs@@ -13,8 +13,8 @@ use super::{/// inputs, or the failure message (TS `handleReloadCommand`'s outcome).pub(crate) type ReloadNote = Result<(), String>;-/// The question a pending confirm answers (TS `showExtensionConfirm`-/// callers await inline; the TUI loop parks the continuation instead).+/// The question a pending confirm answers (callers await inline in TS;+/// the TUI loop parks the continuation instead).#[derive(Debug, Clone, PartialEq, Eq)]pub(super) enum PendingConfirm {/// `/import <path>`: replace the current session with the JSONL file.@@ -47,9 +47,8 @@ impl SessionUi {// Session import (/import)// ------------------------------------------------------------------- /// The import confirm (TS `handleImportCommand`'s- /// `showExtensionConfirm`): parse the path, park the confirm, and let- /// the panel answer it.+ /// The import confirm (TS `handleImportCommand`'s confirm): parse+ /// the path, park the confirm, and let the panel answer it.pub(super) fn open_import_confirm(&mut self, command_text: &str, view: &mut AgentView) {let Some(input_path) = crate::export_share::path_command_argument(command_text, "/import")else {@@ -811,8 +810,7 @@ impl SessionUi {/// editor (TS swaps the editor container) while the daemon reload/// runs; the run loop folds the outcome in when it lands.pub(super) fn handle_reload_command(&mut self, view: &mut AgentView) -> Result<()> {- view.reload_box =- Some("Reloading keybindings, extensions, skills, prompts, themes...".to_string());+ view.reload_box = Some("Reloading keybindings, skills, prompts, themes...".to_string());self.dirty = true;let client = self.client.clone();let active_session_id = self.active_session_id.clone();@@ -869,10 +867,7 @@ impl SessionUi {// TS `showStatus`: tracked, so a back-to-back status// (e.g. the `/thinking` unavailable row) rewrites it in// place.- self.note(- "Reloaded keybindings, extensions, skills, prompts, themes",- view,- );+ self.note("Reloaded keybindings, skills, prompts, themes", view);}Err(error) => {self.error_row(&format!("Reload failed: {error}"), view);diff --git a/crates/pa-tui/src/snapshot/decoder.rs b/crates/pa-tui/src/snapshot/decoder.rsindex 1a2cb1de1f..8e600726a8 100644--- a/crates/pa-tui/src/snapshot/decoder.rs+++ b/crates/pa-tui/src/snapshot/decoder.rs@@ -424,9 +424,10 @@ pub fn event_to_update(event: &Value) -> Option<TurnUpdate> {/// The loader note from a `tool_execution_update` partial result, if the/// tool owns one. The python-kernel bootstrap reports its startup stages as-/// partial results with `details.status = "starting"` (TS `reportStartupProgress`),-/// the same payload TS also hands its extension UI as the working message-/// (TS `setWorkingMessage`), so the loader row mirrors the stage text. `None`+/// partial results with `details.status = "starting"` (TS+/// `reportStartupProgress`), the same payload TS also hands its working+/// message surface (TS `setWorkingMessage`), so the loader row mirrors the+/// stage text. `None`/// leaves any current note untouched: streamed cell output reports `ok`,/// which is not a note change.pub fn working_message_from_update(partial: &Value) -> Option<String> {diff --git a/crates/pa-tui/src/toast/mod.rs b/crates/pa-tui/src/toast/mod.rsindex c8da16fa86..debb61c197 100644--- a/crates/pa-tui/src/toast/mod.rs+++ b/crates/pa-tui/src/toast/mod.rs@@ -4,8 +4,8 @@//! SANCTIONED DIVERGENCE from TS (documented per the #289 precedent): the//! TS product has no in-TUI toast surface — confirmations render as//! durable chat status rows (`showStatus`), and its "toast" surfaces are-//! OS-level notifications (the Windows Terminal / termux notifier-//! extensions). The Rust product keeps the chat row for anything the+//! OS-level notifications (the Windows Terminal / termux notifier). The+//! Rust product keeps the chat row for anything the//! transcript should remember and surfaces action acks the user only//! needs for a moment as an overlay instead: the confirmation never//! pollutes the transcript and the transcript never scrolls to show it.diff --git a/crates/pa-tui/src/tree_selector.rs b/crates/pa-tui/src/tree_selector.rsindex 2170df49fc..964c82fa4a 100644--- a/crates/pa-tui/src/tree_selector.rs+++ b/crates/pa-tui/src/tree_selector.rs@@ -37,10 +37,9 @@ enum Mode {Tree,/// The label input for one entry (TS `LabelInput`).LabelInput { entry_id: String, input: String },- /// "Summarize branch?" (TS `showExtensionSelector` with the three- /// options).+ /// "Summarize branch?" (the TS three-option selector).Summarize { target_id: String, selected: usize },- /// Custom summarization instructions (TS `showExtensionEditor`).+ /// Custom summarization instructions (the TS inline editor).CustomPrompt { target_id: String, input: String },}@@ -382,8 +381,8 @@ impl TreeSelector {}}-/// The key pair every inner pane's bottom hint renders (TS-/// `ExtensionSelectorComponent`'s `keyHint` pair): each segment carries+/// The key pair every inner pane's bottom hint renders (the TS selector+/// component's `keyHint` pair): each segment carries/// its binding's first effective key — `tui.select.cancel` defaults to/// two keys, and the one-line hint shows the primary, the crate's/// `key_hint` grammar — and a user override that empties a bindingdiff --git a/crates/pa-tui/src/view.rs b/crates/pa-tui/src/view.rsindex a13344347d..206ca9df3d 100644--- a/crates/pa-tui/src/view.rs+++ b/crates/pa-tui/src/view.rs@@ -97,8 +97,7 @@ pub struct AgentView {pub model_picker: Option<crate::model_picker::ModelPicker>,/// The `/tree` selector (owns the frame while open).pub tree_selector: Option<crate::tree_selector::TreeSelector>,- /// A pending extension confirm (TS `showExtensionConfirm`: the- /// Yes/No selector over the editor dock).+ /// A pending confirm: the Yes/No selector over the editor dock.pub confirm: Option<crate::confirm::ConfirmPanel>,/// The `/login` / `/logout` provider selector (TS/// `OAuthSelectorComponent` inline): owns the frame while open.diff --git a/crates/pa-types/README.md b/crates/pa-types/README.mdindex c5b7ec1516..8670957008 100644--- a/crates/pa-types/README.md+++ b/crates/pa-types/README.md@@ -36,7 +36,6 @@ Daemon wire mechanics shared by the serving side (pa-daemon) and clients (pa-tuiinto CSS variables). Everything built on top of the files — terminalcolor rendering, export CSS generation, custom-theme discovery — belongsto the consuming crates.-- `extension_rpc`: the private, versioned NDJSON-over-stdio protocol between the pa-core extension host and the Node sidecar (handshake, RPC envelopes, registration payloads, `ExtensionError`). Both ends ship in the same release, so these types are strict (no catch-alls).- `daemon::update_flow`: the update-flow state machine's shared vocabulary:the coordinator FSM states + legaldiff --git a/crates/pa-types/src/daemon/command.rs b/crates/pa-types/src/daemon/command.rsindex ce14a63904..78e98b0279 100644--- a/crates/pa-types/src/daemon/command.rs+++ b/crates/pa-types/src/daemon/command.rs@@ -257,8 +257,6 @@ pub enum DaemonCommand {id: Option<String>,active_session_id: String,#[serde(default, skip_serializing_if = "Option::is_none")]- supports_extension_ui: Option<bool>,- #[serde(default, skip_serializing_if = "Option::is_none")]client_id: Option<DaemonClientId>,#[serde(default, skip_serializing_if = "Option::is_none")]capabilities: Option<Vec<DaemonClientCapability>>,@@ -281,8 +279,6 @@ pub enum DaemonCommand {active_session_id: String,target_active_session_id: String,#[serde(default, skip_serializing_if = "Option::is_none")]- supports_extension_ui: Option<bool>,- #[serde(default, skip_serializing_if = "Option::is_none")]client_id: Option<DaemonClientId>,#[serde(default, skip_serializing_if = "Option::is_none")]capabilities: Option<Vec<DaemonClientCapability>>,@@ -1144,15 +1140,6 @@ pub enum DaemonCommand {#[serde(flatten)]rest: JsonMap,},- ExtensionUiResponse {- #[serde(default, skip_serializing_if = "Option::is_none")]- id: Option<String>,- active_session_id: String,- request_id: String,- response: DaemonExtensionUiResponse,- #[serde(flatten)]- rest: JsonMap,- },AckResult {#[serde(default, skip_serializing_if = "Option::is_none")]id: Option<String>,@@ -1249,15 +1236,6 @@ pub enum ForkPosition {At,}-/// Response payload of an `extension_ui_request` dialog.-#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]-#[serde(untagged)]-pub enum DaemonExtensionUiResponse {- Value { value: String },- Confirmed { confirmed: bool },- Cancelled { cancelled: bool },-}-#[cfg(test)]mod tests {use super::*;@@ -1278,11 +1256,4 @@ mod tests {r#"{"type":"worker_register","activeSessionId":"abc123def456","sessionId":"s-uuid","socketPath":"/tmp/w.sock","workerInstanceId":"inst-1","token":"tok","pid":4242}"#,);}-- #[test]- fn extension_ui_response_variants() {- rt::<DaemonExtensionUiResponse>(r#"{"value":"pick"}"#);- rt::<DaemonExtensionUiResponse>(r#"{"confirmed":true}"#);- rt::<DaemonExtensionUiResponse>(r#"{"cancelled":true}"#);- }}diff --git a/crates/pa-types/src/daemon/mod.rs b/crates/pa-types/src/daemon/mod.rsindex e113dd9104..cc611ce237 100644--- a/crates/pa-types/src/daemon/mod.rs+++ b/crates/pa-types/src/daemon/mod.rs@@ -117,8 +117,7 @@ mod worker;pub use command::{CycleDirection, DaemonCommand, DaemonCommandEnvelope, DaemonCommandFrameType,- DaemonCommandWire, DaemonExtensionUiResponse, DaemonSessionLifecycle, ForkPosition,- PromptInput, StreamingBehavior,+ DaemonCommandWire, DaemonSessionLifecycle, ForkPosition, PromptInput, StreamingBehavior,};pub use outbound::{DaemonClosingReason, DaemonErrorInfo, DaemonEventEnvelope, DaemonOutbound,diff --git a/crates/pa-types/src/daemon/outbound.rs b/crates/pa-types/src/daemon/outbound.rsindex 3452fd752f..c842a6e2ce 100644--- a/crates/pa-types/src/daemon/outbound.rs+++ b/crates/pa-types/src/daemon/outbound.rs@@ -425,26 +425,6 @@ pub enum DaemonOutbound {#[serde(flatten)]rest: JsonMap,},- ExtensionUiRequest {- active_session_id: String,- id: String,- method: String,- payload: JsonMap,- #[serde(default, skip_serializing_if = "Option::is_none")]- meta: Option<DaemonEventMeta>,- #[serde(flatten)]- rest: JsonMap,- },- ExtensionError {- active_session_id: String,- extension_path: String,- event: String,- error: String,- #[serde(default, skip_serializing_if = "Option::is_none")]- meta: Option<DaemonEventMeta>,- #[serde(flatten)]- rest: JsonMap,- },}#[cfg(test)]diff --git a/crates/pa-types/src/daemon/plane.rs b/crates/pa-types/src/daemon/plane.rsindex f5eb677538..50a6255e9e 100644--- a/crates/pa-types/src/daemon/plane.rs+++ b/crates/pa-types/src/daemon/plane.rs@@ -101,8 +101,7 @@ pub fn command_plane(command_type: &str) -> DaemonCommandPlane {| "get_last_assistant_text"| "get_system_prompt"| "get_tool_definition"- | "set_session_entry_label"- | "extension_ui_response" => Session,+ | "set_session_entry_label" => Session,_ => Control,}}@@ -172,8 +171,7 @@ pub fn is_daemon_mutating_command(command_type: &str) -> bool {pub fn is_update_drain_command(command_type: &str) -> bool {matches!(command_type,- "extension_ui_response"- | "abort"+ "abort"| "abort_bash"| "kill_kernel_bash"| "abort_branch_summary"@@ -258,7 +256,6 @@ mod tests {#[test]fn update_drain_commands_match_ts() {for drain in [- "extension_ui_response","abort","abort_bash","abort_branch_summary",diff --git a/crates/pa-types/src/daemon/worker.rs b/crates/pa-types/src/daemon/worker.rsindex 2dc4e5c777..34da0edb1c 100644--- a/crates/pa-types/src/daemon/worker.rs+++ b/crates/pa-types/src/daemon/worker.rs@@ -146,8 +146,6 @@ pub enum DaemonWorkerCommand {active_session_id: String,#[serde(default, skip_serializing_if = "Option::is_none")]capabilities: Option<Vec<DaemonClientCapability>>,- #[serde(default, skip_serializing_if = "Option::is_none")]- supports_extension_ui: Option<bool>,#[serde(flatten)]rest: JsonMap,},diff --git a/crates/pa-types/src/extension_rpc.rs b/crates/pa-types/src/extension_rpc.rsdeleted file mode 100644index 7070523e3b..0000000000--- a/crates/pa-types/src/extension_rpc.rs+++ /dev/null@@ -1,487 +0,0 @@-//! Extension host RPC: the private, versioned wire protocol between the-//! pa-core extension host and the Node sidecar (both shipped in the same-//! release, so they always match).-//!-//! The protocol: newline-delimited-//! JSON over the sidecar's stdio, correlation ids, `protocol: 1` handshake.-//! pa-core owns framing and dispatch; these types live in pa-types because the-//! daemon protocol also carries `extension_error` and extension UI dialogs to-//! attached clients.-//!-//! Field names are camelCase on the wire (the sidecar is JavaScript). The-//! protocol is private, so unlike the TS-parity wire types these structs are-//! strict (no unknown-field catch-all): both ends ship together.-//!-//! Stage status (design doc §4): stage 1 = process lifecycle + RPC framing;-//! stage 2 = host script runtime + extension loading. The event payload-//! table (§1.4) and ctx/UI actions beyond what the host runtime forwards-//! here land with the event-surface stages.--use serde::{Deserialize, Serialize};-use serde_json::Value;--use crate::JsonMap;--/// Protocol version of the extension host RPC. Bumped on any wire change;-/// both ends ship in the same release and reject mismatches in the-/// handshake. Protocol 2 = stage 2: the sidecar loads extension modules-/// (vendored jiti), lands registrations, and executes tools-/// (`tool_execute` + `tool_update`); protocol 1 was the stage-1 protocol-/// peer (empty hello, no tool execution).-pub const EXTENSION_RPC_PROTOCOL: u32 = 2;--/// Hard floor for the Node runtime the sidecar requires (detected by the host-/// script, surfaced as a handshake failure; jiti needs only the JS runtime).-pub const EXTENSION_HOST_NODE_MAJOR_FLOOR: u32 = 18;--// --- Method names (Rust -> sidecar requests / sidecar -> Rust ctx calls) -----/// Handshake + extension load request. Reply: [`HelloResult`].-pub const METHOD_HELLO: &str = "hello";-/// Emit one extension event; the reply carries the accumulated handler result.-pub const METHOD_EVENT: &str = "event";-/// Orderly unload: the sidecar emits `session_shutdown`, replies, then exits.-pub const METHOD_SHUTDOWN: &str = "shutdown";-/// Liveness probe.-pub const METHOD_PING: &str = "ping";-/// Notification: cancel the in-flight event dispatch named by `token`.-pub const METHOD_CANCEL: &str = "cancel";--/// Notification (sidecar -> Rust): an extension handler or registration threw-/// inside the error boundary; never fatal (design doc §1.5, §2.4).-pub const METHOD_EXTENSION_ERROR: &str = "extension_error";-/// Request (Rust -> sidecar): execute one registered extension tool. The-/// sidecar streams `tool_update` notifications, then replies with the final-/// result (design doc §2.3 `tool_execute`).-pub const METHOD_TOOL_EXECUTE: &str = "tool_execute";-/// Notification (sidecar -> Rust): a partial result from a running-/// extension tool (the `onUpdate` callback of `ToolDefinition.execute`).-pub const METHOD_TOOL_UPDATE: &str = "tool_update";-/// Request (Rust -> sidecar): dispatch a registered extension slash command-/// by invocation name (design doc §2.3 `command_execute`).-pub const METHOD_COMMAND_EXECUTE: &str = "command_execute";-/// Request (Rust -> sidecar): dispatch a registered extension keybinding.-pub const METHOD_SHORTCUT_EXECUTE: &str = "shortcut_execute";--/// Notification (sidecar -> Rust): registrations changed after the handshake-/// (post-bind `registerTool`/`registerCommand`/... from a handler).-pub const METHOD_REGISTRATION: &str = "registration";--// --- Envelopes ---------------------------------------------------------------/// RPC error shape used by both directions.-#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]-#[serde(rename_all = "camelCase")]-pub struct RpcError {- pub message: String,- #[serde(default, skip_serializing_if = "Option::is_none")]- pub stack: Option<String>,-}--impl RpcError {- pub fn message(message: impl Into<String>) -> Self {- Self {- message: message.into(),- stack: None,- }- }-}--/// A request the Rust host sends to the sidecar.-#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]-#[serde(rename_all = "camelCase")]-pub struct HostRequest {- pub id: u64,- pub method: String,- #[serde(default)]- pub params: Value,-}--/// The Rust host's reply to a sidecar ctx call (correlated by `ctxToken`).-#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]-#[serde(rename_all = "camelCase")]-pub struct HostReply {- pub ctx_token: String,- pub result: Value,-}--/// The Rust host's error reply to a sidecar ctx call.-#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]-#[serde(rename_all = "camelCase")]-pub struct HostErrorReply {- pub ctx_token: String,- pub error: RpcError,-}--/// A notification the Rust host sends to the sidecar (no reply expected).-#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]-#[serde(rename_all = "camelCase")]-pub struct HostNotification {- pub method: String,- #[serde(default)]- pub params: Value,-}--/// A message from the sidecar, parsed from one NDJSON line.-#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]-#[serde(untagged, rename_all_fields = "camelCase")]-pub enum SidecarMessage {- /// Reply to a [`HostRequest`]: `result` or `error`, never both.- Response {- id: u64,- #[serde(default, skip_serializing_if = "Option::is_none")]- result: Option<Value>,- #[serde(default, skip_serializing_if = "Option::is_none")]- error: Option<RpcError>,- },- /// Request from extension code running in a handler, correlated by- /// `ctxToken`; the host replies with [`HostReply`] or [`HostErrorReply`].- Request {- ctx_token: String,- method: String,- #[serde(default)]- params: Value,- },- /// Fire-and-forget from the sidecar (`extension_error`, registration).- Notification {- method: String,- #[serde(default)]- params: Value,- },-}--// --- Handshake (Rust -> sidecar `hello`) -------------------------------------#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]-#[serde(rename_all = "camelCase")]-pub struct HelloParams {- pub protocol: u32,- pub cwd: String,- pub agent_dir: String,- pub extension_paths: Vec<String>,- /// CLI-provided flag values that override registered defaults- /// (runner.ts `setFlagValue` runtime override seam).- #[serde(default)]- pub flag_values: JsonMap,-}--#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]-#[serde(rename_all = "camelCase")]-pub struct ExtensionLoadError {- pub path: String,- pub error: String,-}--/// The registrations one loaded extension produced (the serializable subset of-/// the TS `Extension` object; live functions stay in the sidecar).-#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]-#[serde(rename_all = "camelCase")]-pub struct ExtensionRegistration {- /// The configured extension path as given (may be relative or `<...>`).- pub path: String,- /// Absolute path after `~` expansion and cwd resolution (loader.ts- /// `resolvePath`).- pub resolved_path: String,- /// Event names with at least one handler; the host only emits events- /// with handlers (runner.ts `hasHandlers` gating).- #[serde(default)]- pub events: Vec<String>,- #[serde(default)]- pub tools: Vec<ToolRegistration>,- #[serde(default)]- pub commands: Vec<CommandRegistration>,- #[serde(default)]- pub flags: Vec<FlagRegistration>,- #[serde(default)]- pub shortcuts: Vec<ShortcutRegistration>,- /// Custom session message types this extension renders.- #[serde(default)]- pub message_renderer_types: Vec<String>,- /// Provider registrations queued during load (flushed at bind in TS;- /// consumed by the provider seam in a later stage).- #[serde(default)]- pub providers: Vec<ProviderRegistration>,-}--/// Extension tool definition (`ToolDefinition` minus functions; `parameters` is-/// the TypeBox/JSON Schema, passed through as the wire tool schema).-#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]-#[serde(rename_all = "camelCase")]-pub struct ToolRegistration {- pub name: String,- pub label: String,- pub description: String,- #[serde(default, skip_serializing_if = "Option::is_none")]- pub prompt_snippet: Option<String>,- #[serde(default, skip_serializing_if = "Option::is_none")]- pub prompt_guidelines: Option<Vec<String>>,- pub parameters: Value,- #[serde(default, skip_serializing_if = "Option::is_none")]- pub execution_mode: Option<String>,-}--#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]-#[serde(rename_all = "camelCase")]-pub struct CommandRegistration {- pub name: String,- #[serde(default, skip_serializing_if = "Option::is_none")]- pub description: Option<String>,-}--#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]-#[serde(rename_all = "lowercase")]-pub enum FlagType {- Boolean,- String,-}--#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]-#[serde(rename_all = "camelCase")]-pub struct FlagRegistration {- pub name: String,- #[serde(default, skip_serializing_if = "Option::is_none")]- pub description: Option<String>,- pub r#type: FlagType,- #[serde(default, skip_serializing_if = "Option::is_none")]- pub default: Option<Value>,-}--#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]-#[serde(rename_all = "camelCase")]-pub struct ShortcutRegistration {- /// Normalized (lowercase) key id (runner.ts `getShortcuts`).- pub key: String,- #[serde(default, skip_serializing_if = "Option::is_none")]- pub description: Option<String>,-}--/// Provider registration config (types.ts `ProviderConfig`). Kept as raw JSON:-/// `apiKey` is a value or an env var *name* (never resolved by the sidecar),-/// and `streamSimple`/`oauth` are v1-unsupported and reported as errors by the-/// host script rather than crossing the wire.-#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]-#[serde(rename_all = "camelCase")]-pub struct ProviderRegistration {- pub name: String,- pub config: Value,-}--#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]-#[serde(rename_all = "camelCase")]-pub struct HelloResult {- pub protocol: u32,- #[serde(default)]- pub extensions: Vec<ExtensionRegistration>,- #[serde(default)]- pub errors: Vec<ExtensionLoadError>,-}--// --- Requests (Rust -> sidecar) -----------------------------------------------#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]-#[serde(rename_all = "camelCase")]-pub struct EventParams {- /// Correlates a dispatch with a `cancel` notification.- pub event_id: String,- /// The `ExtensionEvent` type (`session_start`, `session_before_compact`, ...).- #[serde(rename = "type")]- pub event_type: String,- /// The event object minus its `type` field; the sidecar reconstructs- /// `{ type, ...payload }` before invoking handlers.- #[serde(default)]- pub payload: Value,-}--#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]-#[serde(rename_all = "camelCase")]-pub struct ShutdownParams {- pub reason: String,-}--#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]-#[serde(rename_all = "camelCase")]-pub struct CancelParams {- /// The in-flight `event_id` to cancel.- pub token: String,-}--// --- Tool execution (Rust -> sidecar `tool_execute`) -------------------------#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]-#[serde(rename_all = "camelCase")]-pub struct ToolExecuteParams {- pub tool_call_id: String,- pub tool_name: String,- #[serde(default)]- pub args: Value,-}--/// A content block of an extension tool result (TS `AgentToolResult.content`;-/// the text/image subset that crosses the wire).-#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]-#[serde(tag = "type", rename_all = "camelCase")]-pub enum ToolResultBlock {- Text {- text: String,- },- Image {- data: String,- #[serde(rename = "mimeType")]- mime_type: String,- },-}--#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]-#[serde(rename_all = "camelCase")]-pub struct ToolExecuteResult {- #[serde(default)]- pub content: Vec<ToolResultBlock>,- #[serde(default, skip_serializing_if = "Option::is_none")]- pub details: Option<Value>,- /// Absent on the wire when false (TS `AgentToolResult.isError` is- /// optional); defaulting to false on read keeps both spellings valid.- #[serde(default, skip_serializing_if = "std::ops::Not::not")]- pub is_error: bool,-}--#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]-#[serde(rename_all = "camelCase")]-pub struct CommandExecuteParams {- /// The collision-suffixed invocation name (registry output).- pub invocation_name: String,- /// The raw text after the command name.- #[serde(default)]- pub args: String,-}--#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]-#[serde(rename_all = "camelCase")]-pub struct ShortcutExecuteParams {- /// The normalized key id.- pub key: String,-}--/// Notification payload for [`METHOD_TOOL_UPDATE`]: the partial result the-/// extension tool passed to `onUpdate` (render-only in stage 2, like the-/// tool bridge's update forwarding).-#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]-#[serde(rename_all = "camelCase")]-pub struct ToolUpdateNotification {- pub tool_call_id: String,- #[serde(default)]- pub result: Value,-}--// --- Notifications (sidecar -> Rust) ------------------------------------------/// Port of types.ts `ExtensionError` (L1441-1446): the error-boundary report-/// for a throwing handler, timer, or registration. Never fatal.-#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]-#[serde(rename_all = "camelCase")]-pub struct ExtensionError {- pub extension_path: String,- pub event: String,- pub error: String,- #[serde(default, skip_serializing_if = "Option::is_none")]- pub stack: Option<String>,-}--#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]-#[serde(rename_all = "camelCase")]-pub struct RegistrationNotification {- pub extension_path: String,- /// The changed registration items (first-wins and collision rules apply- /// on the Rust side, runner.ts §1.5).- #[serde(default)]- pub registration: ExtensionRegistration,-}--#[cfg(test)]-mod tests {- use super::*;- use serde_json::json;-- fn rt<T: Serialize + for<'de> Deserialize<'de>>(json: &str) {- let original: Value = serde_json::from_str(json).unwrap();- let parsed: T = serde_json::from_str(json).expect("deserialize");- let out = serde_json::to_string(&parsed).expect("serialize");- let reparsed: Value = serde_json::from_str(&out).unwrap();- assert_eq!(original, reparsed, "round trip changed the value: {out}");- }-- #[test]- fn hello_params_roundtrip() {- rt::<HelloParams>(- r#"{"protocol":1,"cwd":"/repo","agentDir":"/home/u/.prime/agent","extensionPaths":["a.ts","<git:x>"],"flagValues":{"fast":true}}"#,- );- }-- #[test]- fn hello_result_roundtrip() {- rt::<HelloResult>(r#"{"protocol":1,"extensions":[],"errors":[]}"#);- rt::<HelloResult>(- r#"{"protocol":1,"extensions":[{"path":"a.ts","resolvedPath":"/repo/a.ts","events":["session_start"],"tools":[{"name":"hello","label":"Hello","description":"d","parameters":{"type":"object"}}],"commands":[],"flags":[{"name":"fast","type":"boolean","default":false}],"shortcuts":[{"key":"f1","description":"go"}],"messageRendererTypes":[],"providers":[]}],"errors":[{"path":"b.ts","error":"Failed to load extension: boom"}]}"#,- );- }-- #[test]- fn sidecar_message_variants_roundtrip() {- rt::<SidecarMessage>(r#"{"id":3,"result":{"ok":true}}"#);- rt::<SidecarMessage>(r#"{"id":3,"error":{"message":"boom","stack":"at x"}}"#);- rt::<SidecarMessage>(r#"{"ctxToken":"ctx-1","method":"exec","params":{"command":"ls"}}"#);- rt::<SidecarMessage>(- r#"{"method":"extension_error","params":{"extensionPath":"a.ts","event":"session_start","error":"boom"}}"#,- );- }-- #[test]- fn host_envelopes_roundtrip() {- rt::<HostRequest>(r#"{"id":1,"method":"hello","params":{"protocol":1}}"#);- rt::<HostReply>(r#"{"ctxToken":"ctx-1","result":{}}"#);- rt::<HostErrorReply>(r#"{"ctxToken":"ctx-1","error":{"message":"not bound"}}"#);- rt::<HostNotification>(r#"{"method":"cancel","params":{"token":"e1"}}"#);- }-- #[test]- fn event_and_shutdown_params_roundtrip() {- rt::<EventParams>(- r#"{"eventId":"e1","type":"session_before_compact","payload":{"options":{}}}"#,- );- rt::<ShutdownParams>(r#"{"reason":"session_end"}"#);- rt::<CancelParams>(r#"{"token":"e1"}"#);- }-- #[test]- fn tool_execute_roundtrip() {- rt::<ToolExecuteParams>(- r#"{"toolCallId":"c1","toolName":"hello","args":{"name":"world"}}"#,- );- rt::<ToolExecuteResult>(- r#"{"content":[{"type":"text","text":"Hello, world!"}],"details":{"greeted":"world"},"isError":true}"#,- );- rt::<ToolExecuteResult>(r#"{"content":[]}"#);- rt::<ToolExecuteResult>(r#"{"content":[],"isError":true}"#);- rt::<ToolUpdateNotification>(r#"{"toolCallId":"c1","result":{"content":[]}}"#);- }-- #[test]- fn command_and_shortcut_execute_roundtrip() {- rt::<CommandExecuteParams>(r#"{"invocationName":"greet:2","args":"hi there"}"#);- rt::<ShortcutExecuteParams>(r#"{"key":"ctrl+g"}"#);- }-- #[test]- fn error_shape_matches_daemon_extension_error() {- let e = ExtensionError {- extension_path: "a.ts".into(),- event: "session_start".into(),- error: "boom".into(),- stack: None,- };- let wire = serde_json::to_value(&e).unwrap();- assert_eq!(- wire,- json!({"extensionPath": "a.ts", "event": "session_start", "error": "boom"})- );- }-}diff --git a/crates/pa-types/src/lib.rs b/crates/pa-types/src/lib.rsindex f83dafb1cc..3f0434554e 100644--- a/crates/pa-types/src/lib.rs+++ b/crates/pa-types/src/lib.rs@@ -15,7 +15,6 @@pub mod ai;pub mod daemon;-pub mod extension_rpc;pub mod goal;pub mod incident;pub mod memory_release;diff --git a/crates/pa-types/src/session.rs b/crates/pa-types/src/session.rsindex 0806b32de6..d1b357a5b0 100644--- a/crates/pa-types/src/session.rs+++ b/crates/pa-types/src/session.rs@@ -85,7 +85,7 @@ pub struct BashExecutionMessage {pub exclude_from_context: Option<bool>,}-/// `role: "custom"`: extension/bookkeeping message with a `customType` tag.+/// `role: "custom"`: bookkeeping message with a `customType` tag.#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]#[serde(rename_all = "camelCase")]pub struct CustomMessage {@@ -225,7 +225,7 @@ pub struct BranchSummaryEntry {pub usage: Option<Usage>,}-/// `type: "custom"`: opaque extension data with a `customType` tag.+/// `type: "custom"`: opaque custom data with a `customType` tag.#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]#[serde(rename_all = "camelCase")]pub struct CustomEntry {diff --git a/crates/pa-types/src/slash_commands.rs b/crates/pa-types/src/slash_commands.rsindex 50f8e8cfcd..e05c36bb43 100644--- a/crates/pa-types/src/slash_commands.rs+++ b/crates/pa-types/src/slash_commands.rs@@ -84,7 +84,7 @@ const CANONICAL_BUILTIN_SLASH_COMMANDS: &[BuiltinSlashCommand] = &[BuiltinSlashCommand { name: "heartbeat", description: "Set or view a persistent heartbeat; delivery defaults to steer, use --follow-up to queue; supports pause, resume, stop, and clear", execution: SlashCommandExecution::Client, argument_hint: Some("[status|pause|resume|stop|[every <duration>] [--steer|--follow-up] <instruction>]"), aliases: &[], takes_argument: true },BuiltinSlashCommand { name: "heartbeats", description: "View and manage all user and agent heartbeats", execution: SlashCommandExecution::Client, argument_hint: None, aliases: &[], takes_argument: false },BuiltinSlashCommand { name: "resume", description: "Open the agents view, or resume a session by id or path", execution: SlashCommandExecution::Client, argument_hint: Some("[id|path]"), aliases: &[], takes_argument: true },- BuiltinSlashCommand { name: "reload", description: "Reload keybindings, extensions, skills, prompts, and themes", execution: SlashCommandExecution::Client, argument_hint: None, aliases: &[], takes_argument: false },+ BuiltinSlashCommand { name: "reload", description: "Reload keybindings, skills, prompts, and themes", execution: SlashCommandExecution::Client, argument_hint: None, aliases: &[], takes_argument: false },BuiltinSlashCommand { name: "speed", description: "Toggle footer readout of model output tok/sec (latest response and session average)", execution: SlashCommandExecution::Client, argument_hint: Some("[on|off]"), aliases: &[], takes_argument: true },BuiltinSlashCommand { name: "quit", description: "Quit Prime Agent", execution: SlashCommandExecution::Client, argument_hint: None, aliases: &[], takes_argument: false },];diff --git a/scripts/protocol_breadth_parity.py b/scripts/protocol_breadth_parity.pyindex bead38f35e..c43fbc0bbd 100644--- a/scripts/protocol_breadth_parity.py+++ b/scripts/protocol_breadth_parity.py@@ -235,9 +235,6 @@ CASES = [{"type": "refine", "activeSessionId": "bogus-1", "instructions": "tidy"}),("b4 command routes (reload)",{"type": "reload", "activeSessionId": "bogus-1"}),- ("b4 command routes (extension_ui_response)",- {"type": "extension_ui_response", "activeSessionId": "bogus-1",- "requestId": "ui-1", "response": {"confirmed": True}}),("b5 bash routes (execute_bash)",{"type": "execute_bash", "activeSessionId": "bogus-1", "command": "echo hi"}),("b5 bash routes (execute_bash_and_wait)",